/* Turath Home - Amazon-inspired layout */

.home-hero {
  width: 100%;
  max-width: none;
  margin: 18px 0 8px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.hero-carousel {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  background: #0f3b2d;
  min-height: 360px;
}

.hero-carousel .carousel-item {
  min-height: 360px;
}

.hero-slide {
  min-height: 360px;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  background: linear-gradient(120deg, rgba(15, 59, 45, 0.85) 0%, rgba(27, 77, 62, 0.6) 60%, rgba(27, 77, 62, 0.2) 100%);
  padding: 24px;
  min-height: 360px;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 520px;
  color: #ffffff;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 2.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-solid {
  background: #ffffff;
  color: #0f3b2d;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
  color: #0f3b2d;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-panel-card {
  background: #ffffff;
  border: 1px solid #e3eee7;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.hero-panel-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f3b2d;
  margin-bottom: 6px;
}

.hero-panel-card p {
  color: #6b7280;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.mini-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-cats a {
  background: #f3f7f4;
  border: 1px solid #e3eee7;
  color: #0f3b2d;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.mini-cats a:hover {
  background: #0f3b2d;
  color: #ffffff;
}

.section-block {
  max-width: 1500px;
  margin: 18px auto;
  padding: 0 12px;
}

.section-header-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.section-header-inline h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f3b2d;
  margin: 0;
}

.section-link {
  color: #0f3b2d;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.section-link:hover {
  text-decoration: underline;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.deal-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e3eee7;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
}

.deal-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: #f8f6f1;
  padding: 10px;
}

.deal-body {
  padding: 12px 14px 14px;
}

.deal-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f3b2d;
  margin-bottom: 6px;
}

.deal-cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2d6a56;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
  gap: 14px;
}

.product-grid > * {
  width: auto;
  min-width: 0;
}
.product-tile {
  position: relative;
  background: #ffffff;
  border-radius: 11px;
  border: 1px solid #e3eee7;
  overflow: hidden;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.product-thumb {
  position: relative;
  display: block;
  height: 160px;
  background: #f6f9f7;
}

.product-thumb-link {
  display: block;
  height: 100%;
}

.product-thumb img,
.product-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f8f6f1;
  padding: 12px;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #d97706;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  z-index: 2;
}

.product-badge-sponsored {
  top: 46px;
  background: linear-gradient(135deg, #174c3c, #23624f);
}

.quick-view-trigger {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 59, 45, 0.9);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(15, 59, 45, 0.26);
  transition: transform 0.16s ease, background 0.16s ease;
  z-index: 2;
}

.quick-view-trigger:hover {
  transform: translateY(-1px) scale(1.03);
  background: #0f3b2d;
}

.product-meta {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-title {
  font-size: 0.92rem;
  color: #111827;
  font-weight: 700;
  min-height: 40px;
  line-height: 1.35;
  overflow: hidden;
}

.product-rating {
  color: #f59e0b;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 2px;
}

.product-rating .text-muted {
  margin-inline-start: 4px;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #0f3b2d;
  font-size: 0.96rem;
}

.product-price .price-old {
  font-weight: 500;
  color: #9ca3af;
  text-decoration: line-through;
  font-size: 0.85rem;
}

.product-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.product-actions.qty-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.qty-btn {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 66px;
  border: 1px solid rgba(15, 91, 74, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f4faf7 100%);
  color: #0f3b2d;
  padding: 8px 5px;
  border-radius: 11px;
  font-weight: 900;
  font-size: 0.72rem;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.qty-btn b,
.qty-btn small,
.qty-btn .qty-price {
  display: block;
  color: inherit;
  line-height: 1.25;
}

.qty-btn small {
  margin-top: 3px;
  font-size: 0.62rem;
  font-weight: 800;
  opacity: 0.92;
}

.qty-btn b {
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.qty-btn .qty-price {
  margin-top: 1px;
  color: #0f6a4e;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.05;
  white-space: nowrap;
}

.qty-btn .qty-price-line {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  min-height: 16px;
  line-height: 1;
  white-space: normal;
  overflow: hidden;
}

.qty-btn .qty-old-price {
  max-width: 100%;
  color: #8b948f;
  font-size: 0.61rem;
  font-weight: 800;
  text-decoration-thickness: 1px;
}

.qty-btn .qty-discount {
  width: 100%;
  max-width: 100%;
  margin-top: 2px;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(201, 150, 53, 0.14);
  color: #77520d;
  font-size: 0.48rem;
  font-weight: 950;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  overflow: hidden;
}

.qty-btn .qty-shipping {
  max-width: 100%;
  min-height: 20px;
  margin-top: 2px;
  padding: 3px 5px;
  border-radius: 5px;
  background: rgba(15, 106, 78, 0.09);
  color: #0f5b49;
  font-size: 0.44rem;
  font-weight: 900;
  line-height: 1.22;
  white-space: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.qty-btn .qty-shipping i {
  font-size: 0.54rem;
  flex: 0 0 auto;
}

.qty-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 91, 74, 0.34);
  box-shadow: 0 10px 20px rgba(16, 67, 51, 0.1);
}

.qty-btn.hot {
  background: linear-gradient(180deg, #fffaf1 0%, #f6fbf8 100%);
  border-color: rgba(207, 153, 55, 0.46);
  color: #0f513f;
}

.qty-btn.hot .qty-price {
  color: #0f513f;
}

.qty-btn.hot .qty-shipping {
  background: rgba(201, 150, 53, 0.12);
  color: #78540e;
}

.qty-btn.selected {
  outline: 0;
  background: linear-gradient(135deg, #0f6a4e, #0b4d3a);
  border-color: #c99635;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 59, 45, 0.18), inset 0 0 0 1px rgba(236, 190, 95, 0.54);
}

.qty-btn.selected .qty-price,
.qty-btn.selected .qty-shipping,
.qty-btn.selected .qty-old-price,
.qty-btn.selected .qty-discount {
  color: #ffffff;
}

.qty-btn.selected .qty-shipping,
.qty-btn.selected .qty-discount {
  background: rgba(255, 255, 255, 0.14);
}

.product-tile .qty-btn,
.quick-view-inline-offers .qty-btn {
  min-height: 66px;
  border-radius: 8px !important;
  border: 1px solid rgba(15, 91, 74, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f4faf7 100%);
  color: #0f3b2d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.quick-view-modal .qty-btn {
  min-height: 66px;
  border-radius: 8px !important;
}

.product-tile .qty-btn.hot,
.quick-view-inline-offers .qty-btn.hot {
  background: linear-gradient(180deg, #fffaf1 0%, #f6fbf8 100%);
  border-color: rgba(207, 153, 55, 0.46);
  color: #0f513f;
}

.product-tile .qty-btn.selected,
.quick-view-inline-offers .qty-btn.selected {
  background: linear-gradient(135deg, #0f6a4e, #0b4d3a);
  border-color: #c99635;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 59, 45, 0.18), inset 0 0 0 1px rgba(236, 190, 95, 0.54);
}

.qty-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.qty-btn:disabled:hover {
  transform: none;
  filter: none;
}

.product-actions.secondary-actions {
  margin-top: 5px;
}

.product-shipping-coverage {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 5px 9px;
  min-height: 72px;
  margin-top: 7px;
  padding: 9px 10px;
  border: 1px solid rgba(15, 91, 74, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, #f4f8f5 0%, #eef5f1 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.product-shipping-coverage::after {
  content: "";
  position: absolute;
  inset-inline-end: -32px;
  top: -38px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(15, 106, 78, 0.045);
  pointer-events: none;
}

.shipping-coverage-icon {
  grid-row: 1 / span 2;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(15, 106, 78, 0.2);
  border-radius: 8px;
  background: #ffffff;
  color: #0f6a4e;
  font-size: 1rem;
  box-shadow: 0 5px 12px rgba(15, 59, 45, 0.08);
}

.shipping-coverage-copy {
  min-width: 0;
  line-height: 1.25;
}

.shipping-coverage-copy strong,
.shipping-coverage-copy small {
  display: block;
}

.shipping-coverage-copy strong {
  color: #123f32;
  font-size: 0.7rem;
  font-weight: 950;
}

.shipping-coverage-copy small {
  margin-top: 3px;
  color: #66776f;
  font-size: 0.54rem;
  font-weight: 700;
  line-height: 1.4;
}

.shipping-coverage-link {
  grid-column: 2;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #0f6a4e;
  font-size: 0.56rem;
  font-weight: 950;
  text-decoration: none;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.16s ease, gap 0.16s ease;
  z-index: 1;
}

.shipping-coverage-link:hover {
  color: #b07518;
  gap: 7px;
}

.free-shipping-regions-modal.show {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  z-index: 30010 !important;
  overflow-x: hidden;
  overflow-y: auto;
}

.free-shipping-regions-modal .modal-dialog {
  position: relative;
  z-index: 30012;
  max-width: 780px;
}

.free-shipping-regions-modal .modal-content {
  overflow: hidden;
  border: 1px solid rgba(15, 91, 74, 0.17);
  border-radius: 18px;
  background: #fbfdfb;
  box-shadow: 0 28px 70px rgba(7, 38, 29, 0.28);
}

.free-shipping-modal-hero {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  min-height: 132px;
  padding: 23px 26px;
  background:
    radial-gradient(circle at 8% 10%, rgba(224, 178, 87, 0.24), transparent 27%),
    linear-gradient(135deg, #0e6048 0%, #0a4434 100%);
  color: #ffffff;
}

.free-shipping-modal-hero::after {
  content: "";
  position: absolute;
  inset-inline-end: -52px;
  bottom: -92px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.free-shipping-modal-hero .btn-close {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  margin: 0;
  filter: invert(1) grayscale(1);
  opacity: 0.9;
  z-index: 2;
}

.free-shipping-modal-icon {
  width: 62px;
  height: 62px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.13);
  color: #f3c86f;
  font-size: 1.65rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.free-shipping-modal-hero small {
  display: block;
  margin-bottom: 4px;
  color: #f0c36a;
  font-size: 0.72rem;
  font-weight: 900;
}

.free-shipping-modal-hero h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1.35;
}

.free-shipping-modal-hero p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 650;
}

.free-shipping-regions-modal .modal-body {
  padding: 20px 22px 17px;
}

.free-shipping-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  padding: 11px 13px;
  border: 1px solid rgba(15, 106, 78, 0.13);
  border-radius: 8px;
  background: #edf7f1;
  color: #315b4c;
  font-size: 0.75rem;
}

.free-shipping-summary > i {
  color: #0f8a65;
  font-size: 1.05rem;
}

.free-shipping-summary strong {
  color: #0b5d45;
  font-weight: 950;
}

.free-shipping-regions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.free-shipping-region-card {
  padding: 13px;
  border: 1px solid #e0e9e3;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 59, 45, 0.045);
}

.free-shipping-region-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf1ee;
}

.free-shipping-region-heading > span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #edf7f1;
  color: #0f6a4e;
  font-size: 0.85rem;
}

.free-shipping-region-heading small {
  display: block;
  color: #9a7a38;
  font-size: 0.55rem;
  font-weight: 850;
}

.free-shipping-region-heading h3 {
  margin: 1px 0 0;
  color: #173f34;
  font-size: 0.88rem;
  font-weight: 950;
}

.free-shipping-region-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 8px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}

.free-shipping-region-card li {
  position: relative;
  padding-inline-start: 12px;
  color: #586b62;
  font-size: 0.66rem;
  font-weight: 750;
}

.free-shipping-region-card li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.48em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c99635;
}

.free-shipping-address-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 13px;
  border-inline-start: 3px solid #c99635;
  border-radius: 7px;
  background: #fbf7ed;
}

.free-shipping-address-note > i {
  margin-top: 2px;
  color: #a76c13;
}

.free-shipping-address-note p,
.free-shipping-address-note strong,
.free-shipping-address-note span {
  display: block;
}

.free-shipping-address-note p {
  margin: 0;
}

.free-shipping-address-note strong {
  color: #6f4c15;
  font-size: 0.7rem;
  font-weight: 950;
}

.free-shipping-address-note span {
  margin-top: 2px;
  color: #76694e;
  font-size: 0.63rem;
  font-weight: 650;
}

.free-shipping-regions-modal .modal-footer {
  justify-content: flex-start;
  padding: 13px 22px 17px;
  border-top: 1px solid #e7eee9;
  background: #f6f9f7;
}

.free-shipping-modal-done {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f6a4e, #0b4d3a);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(15, 91, 74, 0.2);
}

@media (max-width: 620px) {
  .free-shipping-regions-modal .modal-dialog {
    margin: 12px;
  }

  .free-shipping-modal-hero {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 11px;
    min-height: 118px;
    padding: 20px 16px;
  }

  .free-shipping-modal-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    font-size: 1.25rem;
  }

  .free-shipping-modal-hero h2 {
    padding-inline-start: 25px;
    font-size: 1rem;
  }

  .free-shipping-modal-hero p {
    font-size: 0.66rem;
  }

  .free-shipping-regions-modal .modal-body {
    padding: 14px;
  }

  .free-shipping-regions-grid {
    grid-template-columns: 1fr;
  }

  .free-shipping-regions-modal .modal-footer {
    padding: 11px 14px 14px;
  }

  .free-shipping-modal-done {
    width: 100%;
  }
}

.product-actions.purchase-actions {
  margin-top: 2px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.tile-cart-cta,
.tile-buy-cta {
  min-height: 38px;
  border-radius: 9px;
  border: 1px solid rgba(15, 59, 45, 0.16);
  font-size: 0.76rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.tile-cart-cta {
  background: #f3f8f5;
  color: #0f3b2d;
}

.tile-buy-cta {
  background: linear-gradient(135deg, #0f6a4e, #0d8b64);
  color: #ffffff;
  border-color: #0f6a4e;
}

.tile-cart-cta:disabled,
.tile-buy-cta:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.secondary-actions .btn-ghost {
  flex: 1;
}

.product-actions .btn-ghost {
  background: #f3f7f4;
  border: 1px solid #e3eee7;
  color: #0f3b2d;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

.quick-view-modal .modal-content {
  border-radius: 14px;
  border: 0;
}

.quick-view-modal:not(.show) {
  display: none !important;
}

.quick-view-modal.show {
  position: fixed !important;
  inset: 0 !important;
  z-index: 30010 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  padding: 18px;
}

.quick-view-modal .modal-dialog {
  width: min(980px, calc(100vw - 28px));
  max-width: min(980px, calc(100vw - 28px));
  margin: 0 auto;
  z-index: 30012;
}

.quick-view-modal .modal-content {
  overflow: hidden;
  background: linear-gradient(180deg, #fffdfa 0%, #f7fbf8 100%);
  border: 1px solid rgba(15, 91, 74, 0.14);
  box-shadow: 0 26px 80px rgba(13, 36, 29, 0.28);
  opacity: 1;
  max-height: calc(100dvh - 36px);
}

.quick-view-modal .modal-body {
  overflow: auto;
}

.quick-view-modal .modal-header {
  position: relative;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(15, 91, 74, 0.1);
}

.quick-view-modal .modal-title {
  width: 100%;
  margin: 0;
  padding-left: 44px;
  color: #103d34;
  font-weight: 900;
  text-align: right;
}

.quick-view-modal .btn-close {
  position: absolute;
  left: 20px;
  top: 50%;
  margin: 0;
  transform: translateY(-50%);
}

.modal-backdrop.show {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 30000 !important;
  background: rgba(7, 24, 18, 0.38) !important;
  opacity: 1 !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.quick-view-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 18px;
}

.quick-view-image-wrap {
  position: relative;
  min-height: 340px;
  border: 1px solid #e3eee7;
  border-radius: 12px;
  background: #f7faf8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
  touch-action: none;
  overscroll-behavior: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  outline: none;
}

.quick-view-image-wrap:focus-visible {
  border-color: #0f6a4e;
  box-shadow: 0 0 0 4px rgba(15, 106, 78, 0.14);
}

.quick-view-image-wrap.is-zoomed {
  cursor: grab;
}

.quick-view-image-wrap.is-dragging {
  cursor: grabbing;
}

.quick-view-image-wrap img {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.16s ease;
  will-change: transform;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.quick-view-zoom-hint {
  position: absolute;
  z-index: 2;
  inset-inline-start: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border: 1px solid rgba(15, 91, 74, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #315f50;
  box-shadow: 0 8px 24px rgba(13, 54, 42, 0.12);
  backdrop-filter: blur(8px);
  font-size: 0.67rem;
  font-weight: 800;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.quick-view-image-wrap.is-zoomed .quick-view-zoom-hint {
  opacity: 0;
  transform: translateY(4px);
}

.quick-view-touch-hint {
  display: none;
}

.quick-view-zoom-controls {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dce8e1;
  border-radius: 999px;
  padding: 4px 10px;
  background: #fbfdfc;
}

.zoom-btn {
  border: 0;
  width: 27px;
  height: 27px;
  border-radius: 999px;
  background: #0f3b2d;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.quick-view-thumbs {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.quick-thumb {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border: 1px solid #d7e6dc;
  border-radius: 10px;
  background: #fff;
  padding: 3px;
  cursor: pointer;
}

.quick-thumb.active {
  border-color: #0f3b2d;
  box-shadow: 0 0 0 2px rgba(15, 59, 45, 0.14);
}

.quick-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.quick-view-description {
  margin: 12px 0 0;
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.7;
}

.quick-view-title {
  margin: 0;
  color: #0f3b2d;
  font-size: 1.2rem;
  font-weight: 800;
}

.quick-view-prices {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-view-prices .price-now {
  color: #0f3b2d;
  font-size: 1.3rem;
  font-weight: 800;
}

.quick-view-prices .price-before {
  color: #9ca3af;
  text-decoration: line-through;
}

.quick-view-cta-text {
  margin: 12px 0 8px;
  color: #6b7280;
  font-size: 0.9rem;
}

.quick-view-qty-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.quick-view-modal .qty-btn.hot:not(.selected) {
  background: linear-gradient(180deg, #fffaf0, #f8f4e9);
  border-color: rgba(190, 132, 34, 0.46);
  color: #174c3c;
}

.quick-view-modal .qty-btn.hot:not(.selected) .qty-price {
  color: #0f6a4e;
}

.quick-view-modal .qty-btn.hot:not(.selected) .qty-old-price {
  color: #8b948f;
}

.quick-view-modal .qty-btn.hot:not(.selected) .qty-discount {
  background: rgba(201, 150, 53, 0.16);
  color: #77520d;
}

.quick-view-modal .qty-btn.hot.selected .qty-price,
.quick-view-modal .qty-btn.hot.selected .qty-old-price,
.quick-view-modal .qty-btn.hot.selected .qty-discount {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(4, 35, 25, 0.3);
}

.quick-view-modal .qty-btn.hot.selected .qty-shipping,
.quick-view-modal .qty-btn.hot.selected .qty-discount {
  background: rgba(255, 255, 255, 0.16);
  color: #fff5d6;
}

.quick-view-modal-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quick-view-modal-actions .tile-cart-cta,
.quick-view-modal-actions .tile-buy-cta {
  min-height: 44px;
}

.quick-view-detail-link {
  margin-top: 12px;
  width: 100%;
}

.quick-view-inline-panel {
  grid-column: 1 / -1;
  margin: 10px 0 14px;
  border: 1px solid rgba(15, 91, 74, 0.16);
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #f6fbf8);
  box-shadow: 0 18px 42px rgba(17, 53, 43, 0.12);
  overflow: hidden;
}

.quick-view-inline-panel[hidden] {
  display: none !important;
}

.quick-view-inline-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  padding: 16px;
}

.quick-view-inline-media {
  min-height: 260px;
  border-radius: 10px;
  background: #f8f6f1;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.quick-view-inline-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.quick-view-inline-body {
  display: grid;
  align-content: center;
  gap: 10px;
}

.quick-view-inline-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.quick-view-inline-head h3 {
  margin: 0;
  color: #103d34;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.5;
}

.quick-view-inline-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(15, 91, 74, 0.14);
  border-radius: 9px;
  background: #ffffff;
  color: #103d34;
}

.quick-view-inline-price {
  color: #0f5b4a;
  font-size: 1.15rem;
  font-weight: 900;
}

.quick-view-inline-price del {
  margin-inline-start: 8px;
  color: #9ca3af;
  font-size: 0.9rem;
  font-weight: 700;
}

.quick-view-inline-description {
  margin: 0;
  color: #5f6c63;
  line-height: 1.8;
}

.quick-view-inline-offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.quick-view-inline-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
}

.quick-view-inline-actions .btn-ghost {
  min-height: 44px;
}

.home-toast-stack {
  position: fixed;
  top: 95px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.home-toast {
  min-width: 220px;
  border-radius: 10px;
  padding: 9px 14px;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.home-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.home-toast.is-success {
  background: #0f7a45;
}

.home-toast.is-danger {
  background: #b42318;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.category-tile {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e3eee7;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.category-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #f0f7f2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f3b2d;
  font-size: 1.2rem;
}

.category-meta h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f3b2d;
}

.category-meta span {
  font-size: 0.8rem;
  color: #6b7280;
}

.stats-strip {
  max-width: 1500px;
  margin: 28px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.stat-card {
  background: #0f3b2d;
  color: #ffffff;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}

.stat-card .stat-number {
  font-size: 1.8rem;
  font-weight: 800;
}

.stat-card .stat-label {
  font-size: 0.9rem;
  opacity: 0.85;
}

.service-strip {
  max-width: 1500px;
  margin: 26px auto 8px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.service-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e3eee7;
  padding: 18px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.service-card i {
  font-size: 1.6rem;
  color: #0f3b2d;
  margin-bottom: 8px;
}

.service-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.service-card p {
  color: #6b7280;
  font-size: 0.85rem;
  margin: 0;
}

@media (max-width: 1400px) {
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 992px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }

  .quick-view-grid {
    grid-template-columns: 1fr;
  }

  .quick-view-image-wrap {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .quick-view-modal.show {
    padding: 10px;
  }

  .quick-view-modal .modal-dialog {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }

  .quick-view-modal .modal-content {
    max-height: calc(100dvh - 20px);
    border-radius: 18px;
  }

  .quick-view-modal .modal-header {
    padding: 14px 16px;
  }

  .quick-view-modal .modal-title {
    padding-left: 38px;
    font-size: 0.95rem;
  }

  .quick-view-modal .btn-close {
    left: 16px;
  }

  .quick-view-modal .modal-body {
    padding: 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 12px;
  }

  .product-actions.qty-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .quick-view-qty-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .qty-btn {
    min-height: 62px;
    font-size: 0.64rem;
    padding: 7px 3px;
  }

  .qty-btn .qty-price {
    font-size: 0.72rem;
  }

  .qty-btn .qty-shipping {
    padding-inline: 4px;
    font-size: 0.48rem;
  }

  .product-actions.purchase-actions,
  .quick-view-inline-offers,
  .quick-view-inline-actions,
  .quick-view-modal-actions {
    grid-template-columns: 1fr;
  }

  .quick-view-inline-grid {
    grid-template-columns: 1fr;
  }

  .quick-view-inline-media {
    min-height: 230px;
  }

  .quick-view-image-wrap {
    min-height: 210px;
  }

  .quick-view-image-wrap img {
    max-height: 210px;
  }

  .quick-view-description {
    font-size: 0.82rem;
  }
}

@media (max-width: 420px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

html[data-theme='dark'] .hero-panel-card,
html[data-theme='dark'] .deal-card,
html[data-theme='dark'] .product-tile,
html[data-theme='dark'] .category-tile,
html[data-theme='dark'] .service-card {
  background: #0f1f1a;
  border-color: #1d3a30;
  color: #e7efe9;
}

html[data-theme='dark'] .hero-panel-card h3,
html[data-theme='dark'] .section-header-inline h2,
html[data-theme='dark'] .product-title,
html[data-theme='dark'] .category-meta h4 {
  color: #e7efe9;
}

html[data-theme='dark'] .product-rating .text-muted,
html[data-theme='dark'] .product-price .price-old,
html[data-theme='dark'] .service-card p,
html[data-theme='dark'] .category-meta span,
html[data-theme='dark'] .quick-view-description,
html[data-theme='dark'] .quick-view-cta-text {
  color: #b7c9bf !important;
}

html[data-theme='dark'] .product-actions .btn-ghost {
  background: #0b1512;
  border-color: #1d3a30;
  color: #e7efe9;
}

html[data-theme='dark'] .product-shipping-coverage {
  background: linear-gradient(135deg, #13271f, #102119);
  border-color: rgba(181, 211, 196, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme='dark'] .shipping-coverage-icon {
  background: #0c1914;
  border-color: rgba(201, 150, 53, 0.28);
  color: #e0b257;
}

html[data-theme='dark'] .shipping-coverage-copy strong {
  color: #eef8f2;
}

html[data-theme='dark'] .shipping-coverage-copy small {
  color: #aec0b6;
}

html[data-theme='dark'] .shipping-coverage-link {
  color: #e0b257;
}

html[data-theme='dark'] .free-shipping-regions-modal .modal-content,
html[data-theme='dark'] .free-shipping-region-card {
  background: #102019;
  border-color: rgba(183, 201, 191, 0.14);
}

html[data-theme='dark'] .free-shipping-summary {
  background: #142a21;
  border-color: rgba(117, 187, 153, 0.17);
  color: #c3d6cc;
}

html[data-theme='dark'] .free-shipping-summary strong,
html[data-theme='dark'] .free-shipping-region-heading h3 {
  color: #eef8f2;
}

html[data-theme='dark'] .free-shipping-region-heading {
  border-color: rgba(183, 201, 191, 0.1);
}

html[data-theme='dark'] .free-shipping-region-heading > span {
  background: #173126;
  color: #e0b257;
}

html[data-theme='dark'] .free-shipping-region-card li {
  color: #b8cac0;
}

html[data-theme='dark'] .free-shipping-address-note {
  background: #282416;
}

html[data-theme='dark'] .free-shipping-address-note strong {
  color: #f1cf8b;
}

html[data-theme='dark'] .free-shipping-address-note span {
  color: #cbbf9e;
}

html[data-theme='dark'] .free-shipping-regions-modal .modal-footer {
  background: #0c1813;
  border-color: rgba(183, 201, 191, 0.11);
}

html[data-theme='dark'] .qty-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border-color: rgba(196, 222, 209, 0.18);
  color: #eef8f2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme='dark'] .qty-btn.hot {
  background: linear-gradient(180deg, rgba(217, 154, 52, 0.18), rgba(255, 255, 255, 0.04));
  border-color: rgba(240, 207, 132, 0.36);
  color: #f7e3ad;
}

html[data-theme='dark'] .qty-btn.selected {
  background: linear-gradient(135deg, #d99a34, #b66b1d);
  border-color: rgba(240, 207, 132, 0.62);
  color: #ffffff;
}

html[data-theme='dark'] .tile-cart-cta {
  background: rgba(255, 255, 255, 0.07);
  color: #eef8f2;
  border-color: rgba(196, 222, 209, 0.16);
}

html[data-theme='dark'] .tile-buy-cta {
  background: linear-gradient(135deg, #d99a34, #b66b1d);
  border-color: rgba(240, 207, 132, 0.42);
}

html[data-theme='dark'] .quick-view-inline-panel {
  background: linear-gradient(135deg, #0f1f1a, #0b1512);
  border-color: rgba(196, 222, 209, 0.16);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

html[data-theme='dark'] .quick-view-inline-media {
  background: #0b1512;
}

html[data-theme='dark'] .quick-view-inline-head h3,
html[data-theme='dark'] .quick-view-inline-price {
  color: #eef8f2;
}

html[data-theme='dark'] .quick-view-inline-description {
  color: #c4ded1;
}

html[data-theme='dark'] .quick-view-inline-close {
  background: rgba(255, 255, 255, 0.08);
  color: #eef8f2;
  border-color: rgba(196, 222, 209, 0.16);
}

html[data-theme='dark'] .quick-view-modal .modal-content {
  background: #0f1f1a;
  color: #e7efe9;
  border-color: rgba(213, 231, 221, 0.16);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
}

html[data-theme='dark'] .quick-view-modal .modal-header {
  border-color: rgba(213, 231, 221, 0.12);
}

html[data-theme='dark'] .quick-view-modal .modal-title,
html[data-theme='dark'] .quick-view-title,
html[data-theme='dark'] .quick-view-prices .price-now,
html[data-theme='dark'] #quickViewZoomValue {
  color: #f3fbf7 !important;
}

html[data-theme='dark'] .quick-view-prices .price-before {
  color: #aebeb6 !important;
}

html[data-theme='dark'] .quick-view-modal .btn-close {
  filter: invert(1) grayscale(1) brightness(1.8);
}

html[data-theme='dark'] .quick-view-detail-link {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(213, 231, 221, 0.18);
  color: #eff8f3;
}

html[data-theme='dark'] .quick-view-image-wrap,
html[data-theme='dark'] .quick-view-zoom-controls,
html[data-theme='dark'] .quick-thumb {
  background: #0b1512;
  border-color: #1d3a30;
}

html[data-theme='dark'] .quick-view-zoom-hint {
  border-color: rgba(224, 178, 87, 0.24);
  background: rgba(7, 24, 18, 0.88);
  color: #f0d99f;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

html[data-theme='dark'] .quick-view-modal .qty-btn b,
html[data-theme='dark'] .quick-view-modal .qty-price,
html[data-theme='dark'] .quick-view-modal .qty-discount,
html[data-theme='dark'] .quick-view-modal .qty-shipping {
  color: #f1f8f4 !important;
}

html[data-theme='dark'] .quick-view-modal .qty-old-price {
  color: #b8c6bf !important;
}

html[data-theme='dark'] .quick-view-modal .qty-discount,
html[data-theme='dark'] .quick-view-modal .qty-shipping {
  background: rgba(255, 255, 255, 0.09);
}

html[data-theme='dark'] .quick-view-modal .qty-btn.selected b,
html[data-theme='dark'] .quick-view-modal .qty-btn.selected .qty-price,
html[data-theme='dark'] .quick-view-modal .qty-btn.selected .qty-old-price,
html[data-theme='dark'] .quick-view-modal .qty-btn.selected .qty-discount,
html[data-theme='dark'] .quick-view-modal .qty-btn.selected .qty-shipping {
  color: #ffffff !important;
}

@media (hover: none), (pointer: coarse) {
  .quick-view-desktop-hint {
    display: none;
  }

  .quick-view-touch-hint {
    display: inline;
  }
}

html[data-theme='dark'] .quick-view-description,
html[data-theme='dark'] .quick-view-cta-text {
  color: #b2c7bc;
}
