/* IDPimp custom styles */

/* Font faces */
@font-face {
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 900;
  src: url("/static/assets5/vendor/fontawesome-free/webfonts/fa-solid-900.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 400;
  src: url("/static/assets5/vendor/fontawesome-free/webfonts/fa-regular-400.woff2") format("woff2");
  font-display: swap;
}

/* Base */
:root {
  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}
body {
  font-family: var(--font-sans);
}
.site-logo img {
  max-width: 130px;
  height: auto;
}
.welcome-msg {
  animation: none !important;
  -webkit-animation: none !important;
}

/* Header email link */
.idpimp-header-email {
  display: flex;
  flex-direction: column;
  min-height: 48px;
  justify-content: center;
  text-decoration: none;
  padding: 4px 0;
}
.idpimp-header-email:hover {
  text-decoration: underline;
}

/* Touch targets */
.btn-touch {
  min-height: 48px;
  min-width: 48px;
}

/* Link styles */
.link-like {
  text-decoration: underline;
  text-decoration-color: rgba(51,102,153,.4);
  text-underline-offset: 2px;
  color: #336699;
  transition: color 0.3s, text-decoration-color 0.3s;
}
.link-like:hover {
  color: darkblue;
  text-decoration-color: darkblue;
}

/* Buttons */
.btn-update {
  background-color: #5a6268 !important;
  color: #fff !important;
  border-radius: 2px !important;
  border: none !important;
}
.btn-update:hover {
  background-color: #4e555b !important;
}
.btn-finish {
  background-color: #0056b3 !important;
  color: #fff !important;
  border-radius: 2px !important;
  border: none !important;
}
.btn-finish:hover {
  background-color: #004999 !important;
}
.btn-add {
  background-color: #1e7e34 !important;
  color: #fff !important;
  border-radius: 2px !important;
  border: none !important;
}
.btn-add:hover {
  background-color: #19692c !important;
}

/* Order table */
.order-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}
.order-table th, .order-table td {
  padding: .75rem .9rem;
  vertical-align: middle;
}
.order-table thead th {
  border-bottom: 2px solid #e9ecef;
  font-weight: 600;
  white-space: nowrap;
}
.order-table tbody tr {
  border-bottom: 1px solid #f1f3f5;
}
.order-table .btn {
  border-radius: 2px;
}
.my-delete-btn {
  border-radius: 2px !important;
  background: #C62828 !important;
  color: #ffffff !important;
  border: none !important;
}
.my-delete-btn:hover {
  filter: brightness(.95) !important;
}
@media (max-width: 768px) {
  .order-table thead {
    display: none;
  }
  .order-table,
  .order-table tbody,
  .order-table tr,
  .order-table td {
    display: block;
    width: 100%;
  }
  .order-table tbody tr {
    margin: 0 0 .9rem 0;
    padding: .4rem .5rem;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
    background: #fff;
  }
  .order-table td {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: .55rem .6rem;
    border-bottom: 1px dashed #f1f3f5;
  }
  .order-table td:last-child {
    border-bottom: 0;
  }
  .order-table td::before {
    content: attr(data-label);
    font-weight: 600;
    flex: 0 0 45%;
    max-width: 50%;
  }
  .order-table td .btn {
    width: 100%;
  }
}

/* Form inputs */
body.home.loaded .form-control,
body.home.loaded input,
body.home.loaded select,
body.home.loaded textarea {
  color: #111827 !important;
}
body.home.loaded .form-control::placeholder,
body.home.loaded input::placeholder,
body.home.loaded textarea::placeholder {
  color: #6b7280 !important;
  opacity: 1;
}

/* WCAG 1.4.1 - Inline links distinguishable */
.main p a:not(.btn),
.main li a:not(.btn):not(.idpimp-state-link),
.card-body a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Homepage helpers */
.fw-600 { font-weight: 600; }
/* Fix: framework hides img:last-child inside <picture> (hover-swap rule) */
.product-media picture img {
  position: relative !important;
  opacity: 1 !important;
}

.idpimp-product-cat { color: #020101 !important; font-size: 16px !important; text-align: center !important; font-weight: 600 !important; }
.idpimp-product-price {
  font-size: 17px;
  font-weight: 700;
  color: #336699;
  text-align: center;
  margin: 4px 0;
}
.idpimp-cta-container { text-align: center; margin: 15px 0; }
.idpimp-product-btn { border-radius: 3px; }

/* Prevent CLS on product images */
.recently_products .post-media {
  aspect-ratio: 600 / 420;
  overflow: hidden;
  background-color: #AFAFAF;
}
.recently_products .post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product grid */
.recently_products .swiper-wrapper {
  display: grid;
  height: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 991px) {
  .recently_products .swiper-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575px) {
  .recently_products .swiper-wrapper {
    grid-template-columns: 1fr;
  }
}
.recently_products .swiper-slide {
  width: auto !important;
}

/* Pricing teaser cards */
.idpimp-price-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  height: 100%;
  transition: box-shadow 0.2s;
}
.idpimp-price-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.idpimp-price-card--popular {
  border-color: #336699;
  position: relative;
}
.idpimp-price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #336699;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.idpimp-price-amount {
  font-size: 1.8rem;
  font-weight: 700;
  color: #336699;
  margin: 0.8rem 0;
}
.idpimp-price-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0;
}
.idpimp-price-card p {
  color: #555;
  margin-bottom: 0;
}

/* State grid */
.idpimp-state-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.idpimp-state-link {
  display: inline-block;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  color: #333;
  text-decoration: underline;
  text-decoration-color: #dee2e6;
  text-underline-offset: 2px;
  transition: background 0.15s, border-color 0.15s;
}
.idpimp-state-link:hover {
  background: #336699;
  border-color: #336699;
  color: #fff;
  text-decoration-color: #fff;
}

/* Testimonial cards */
.idpimp-testimonial {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  height: 100%;
}
.idpimp-testimonial-stars {
  color: #f5a623;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  letter-spacing: 2px;
}
.idpimp-testimonial blockquote {
  line-height: 1.7;
  color: #333;
  margin: 0 0 1rem 0;
  padding: 0;
  border: none;
  font-style: italic;
}
.idpimp-testimonial-author {
  font-weight: 600;
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

/* Shipping & payment info cards */
.idpimp-info-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 2rem 1.5rem;
}
.idpimp-info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.idpimp-info-card h3 i {
  margin-right: 8px;
  color: #336699;
}
.idpimp-info-card li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

/* Order page helpers */
.idpimp-help-warning {
  color: #b91c1c !important;
  font-weight: 500 !important;
}
.idpimp-disc-list {
  list-style-type: disc;
}

/* Page header background */
.idpimp-page-header {
  background-color: #eee;
}

/* Prices table — desktop */
.idpimp-price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
}
.idpimp-price-table th,
.idpimp-price-table td {
  padding: 1rem 1.5rem;
  vertical-align: middle;
  text-align: center;
  border-bottom: 1px solid #e9ecef;
}
.idpimp-price-table thead th {
  background: #336699;
  color: #fff;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-bottom: 2px solid #2a5580;
}
.idpimp-price-table tbody tr:nth-child(even) {
  background: #f8f9fa;
}
.idpimp-price-table tbody tr:hover {
  background: #e9f0f7;
}
.idpimp-price-table td:first-child {
  text-align: left;
  font-weight: 600;
  font-size: 1.2rem;
  min-width: 180px;
}
.idpimp-price-table td:first-child a {
  color: #333;
  text-decoration: none;
  transition: color 0.15s;
}
.idpimp-price-table td:first-child a:hover {
  color: #336699;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.idpimp-price-table td:not(:first-child) {
  font-size: 1.25rem;
  font-weight: 500;
  color: #222;
  letter-spacing: 0.01em;
}
@media (max-width: 768px) {
  .idpimp-price-table thead {
    display: none;
  }
  .idpimp-price-table,
  .idpimp-price-table tbody,
  .idpimp-price-table tr,
  .idpimp-price-table td {
    display: block;
    width: 100%;
  }
  .idpimp-price-table tbody tr {
    margin: 0 0 .9rem 0;
    padding: .4rem .5rem;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
    background: #fff;
  }
  .idpimp-price-table td {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: .55rem .6rem;
    border-bottom: 1px dashed #f1f3f5;
    text-align: right;
  }
  .idpimp-price-table td:last-child {
    border-bottom: 0;
  }
  .idpimp-price-table td::before {
    content: attr(data-label);
    font-weight: 600;
    flex: 0 0 45%;
    max-width: 50%;
    text-align: left;
  }
  .idpimp-price-table td:first-child {
    font-weight: 600;
    background: #f8f9fa;
    border-radius: 6px 6px 0 0;
    text-align: right;
  }
}
