/* ===================================================================
   Nestopar Shop - single stylesheet for the whole site.
   Every page links only this file. Add new page styles under their
   own section banner below so it stays easy to manage.

   Contents:
     1. Design tokens & base
     2. Global / shared elements
     3. Product detail page
     4. Home page
     5. Cart page
     6. My orders page
     7. Checkout page
     8. Order detail page
     9. Return / exchange page
    10. Exchange order detail page
    11. Electronics category page
    12. Search results page
   =================================================================== */

/* ===================================================================
   1. Design tokens & base
   =================================================================== */

:root {
  --title-color: #111827;
  --body-color: #2e2e2e;
  --muted: #6b7280;
  --border-color: #b7bfc6;
  --brand-color: #c92846;
  --soft-bg: #f7f0f0;
  --light-bg: #f3f4f6;

  --brand: #c92846;
  --brand-dark: #a81f3a;
  --navy: #131921;
  --surface: #ffffff;
  --page: #f3f4f6;
  --text: #1f2937;
  --line: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--body-color);
}

/* Pages that want the soft grey page background add this class on <body> */
.page-bg {
  background: var(--page);
  color: var(--text);
  overflow-x: clip;
}

/* ===================================================================
   2. Global / shared elements
   =================================================================== */

.top-header-sticky {
  position: sticky;
  top: 0;
  z-index: 1020;
}
.btn{
  padding: 8px 16px;
}

/* ===================================================================
   3. Product detail page
   =================================================================== */

.nav-logo {
    display: flex;
    gap: 8px;
    text-decoration: none;
    align-items: center;
}

.nav-logo img {
    width: 32px;
    cursor: pointer;
}
.nav-logo .logo-text {
    color: var(--title-color);
    font-size: 1.25rem;
    margin-bottom: 0;
    font-weight: 700;
}

.product-preview-sticky {
  position: static;
}

.product-media-wrap {
  overflow: hidden;
  background: var(--light-bg);
  position: relative;
}

.product-main {
  position: relative;
  height: 514px;
  overflow: hidden;
  cursor: zoom-in;
}

.product-preview-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.12s ease-out;
  will-change: transform;
  transform-origin: center center;
}

.product-preview-image.is-zooming {
  transform: scale(2.2);
  object-fit: cover;
}

.video-btn {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border: 0;
  z-index: 3;
}

.mute-btn {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.6);
  border: 0;
  z-index: 3;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--body-color);
}

.preview-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  background: linear-gradient(to top, rgba(243, 244, 246, 0.96), rgba(243, 244, 246, 0.7), rgba(243, 244, 246, 0));
}

.preview-actions i {
  font-size: 20px;
  color: #4b5563;
}

.rating-badge{
  background: #ffffff;
  color: #212121;
}

.rating-badge i {
  color: #eba928;
}

.action-icon {
  background: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.action-icon:hover {
  background: #f3f4f6;
}

.action-icon i {
  font-size: 16px;
  color: #4b5563;
}

.product-zoom-hint {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.12);
}

.product-main:hover .product-zoom-hint {
  display: inline-flex;
}

@media (hover: none) {
  .product-zoom-hint {
    display: none !important;
  }

  .product-preview-image.is-zooming {
    transform: none;
  }
}

.thumb,
.swatch {
  width: 103px;
  height: 103px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  object-fit: cover;
}

.thumb-wrap {
  position: relative;
  border-radius: 6px;
  flex: 0 0 auto;
}

.thumb-wrap.active .thumb,
.swatch.active {
  border: 2px solid var(--brand-color);
}

.preview-thumbs {
  max-width: 100%;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.thumb-play {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  color: var(--body-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.thumb-crop-2 {
  object-position: left center;
}

.thumb-crop-3 {
  object-position: right 35%;
}

.thumb-crop-4 {
  object-position: 30% 30%;
}

.product-title {
  color: var(--title-color);
  font-size: 24px;
  line-height: 1.33;
  font-weight: 700;
}

.price-now {
  color: var(--title-color);
  font-size: 36px;
  line-height: 1.1;
  font-weight: 700;
}

.price-old {
  color: #9ca3af;
  font-size: 20px;
  text-decoration: line-through;
}

.emi-text {
  color: #374151;
  font-size: 16px;
}

.soft-card {
  background: var(--soft-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand-link {
  color: var(--brand-color);
  font-weight: 500;
}

.size-btn {
  min-width: 44px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: #374151;
}
.size-btn:hover{
  border-color: var(--brand-color);
}

.size-btn.active {
  background: var(--brand-color);
  border-color: var(--brand-color);
  color: #ffffff;
}

.size-btn.disabled,
.size-btn:disabled {
  background: #f9fafb;
  border: 1px solid var(--border-color);
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
  box-shadow: none;
}

.size-btn.disabled:hover,
.size-btn:disabled:hover {
  border-color: var(--border-color);
  background: #f9fafb;
  color: #9ca3af;
}

.btn-brand {
  background: var(--brand-color);
  color: #ffffff;
  border: 0;
  padding: 10px 18px;
  font-weight: 600;
}

.btn-brand:hover {
  background: var(--brand-dark);
  color: #ffffff;
}

.pdp-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.pdp-actions__cart,
.pdp-actions__buy {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  min-width: 0;
}

.pdp-actions__cart {
  border: 1px solid var(--brand);
  background: #ffffff;
  color: var(--brand);
}

.pdp-actions__cart:hover {
  background: #fff5f7;
  border-color: var(--brand-dark);
  color: var(--brand-dark);
}

.pdp-wishlist {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text);
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 16px;
}

.pdp-wishlist:hover,
.pdp-wishlist.active {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff5f7;
}

.pdp-wishlist.active .bi-heart::before {
  content: "\f415";
}

.qty-select {
  width: auto;
  min-width: 140px;
  border-color: var(--border-color);
  color: #374151;
}

.section-title {
  color: var(--title-color);
  font-size: 20px;
  font-weight: 700;
}

.highlights > div {
  color: var(--title-color);
}

.info-text {
  color: var(--body-color);
  font-size: 14px;
  line-height: 1.65;
}

.service-points-card {
  background: #f7f0f0;
  border-color: var(--border-color) !important;
}

.service-point-item {
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 96px;
}

.service-point-mid {
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.service-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-points small {
  color: #4b5563;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
}

.star-row i {
  font-size: 14px;
  margin-right: 2px;
}

.review-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
}

.review-score {
  background: #eba928;
  color: #ffffff;
}

.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #d1d5db;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}

.review-thumb {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  background: linear-gradient(135deg, #d1d5db, #9ca3af);
  flex-shrink: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.review-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.review-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 72px;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.review-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.review-lightbox-dialog {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(920px, calc(100vw - 144px));
  max-height: calc(100vh - 80px);
}

.review-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
}

.review-lightbox-close,
.review-lightbox-nav {
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  z-index: 1;
}

.review-lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
}

.review-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  font-size: 18px;
}

.review-lightbox-prev {
  left: -56px;
}

.review-lightbox-next {
  right: -56px;
}

.review-lightbox-close:hover,
.review-lightbox-nav:hover {
  background: #f3f4f6;
}

.review-lightbox-nav:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

body.review-lightbox-open {
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .review-lightbox {
    padding: 48px 16px;
  }

  .review-lightbox-dialog {
    width: min(100%, calc(100% - 32px));
    max-height: calc(100vh - 96px);
  }

  .review-lightbox-image {
    max-height: calc(100vh - 96px);
  }

  .review-lightbox-prev {
    left: 8px;
  }

  .review-lightbox-next {
    right: 8px;
  }

  .review-lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
  }
}
.site-footer {
  background: var(--title-color);
}

.footer-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.text-footer-secondary {
  color: #9ca3af;
  max-width: 420px;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
}

.size-chart-table thead th {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
  border-bottom-width: 1px;
}

.size-chart-table tbody td {
  font-size: 14px;
  color: #111827;
}

.mobile-sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 14px rgba(17, 24, 39, 0.08);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  box-sizing: border-box;
}

.mobile-sticky-buy__price {
  min-width: 92px;
  line-height: 1.15;
}

.mobile-sticky-buy__price strong {
  font-size: 18px;
  color: #111827;
}

.mobile-sticky-buy__btn {
  flex: 1;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 13px;
  gap: 6px;
  min-width: 0;
}

.mobile-sticky-buy__actions {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

@media (max-width: 991.98px) {
  .product-main {
    height: 440px;
  }

  .price-now {
    font-size: 30px;
  }

  main {
    padding-bottom: 96px !important;
  }

  /* Prevent page-level horizontal scroll on PDP */
  html,
  body {
    overflow-x: clip;
    max-width: 100%;
  }

  .product-preview-sticky,
  .product-media-wrap,
  .col-12 {
    max-width: 100%;
    min-width: 0;
  }

  .product-carousel {
    max-width: 100%;
  }
}

@media (min-width: 992px) {
  .product-preview-sticky {
    position: sticky;
    top: 24px;
  }
}

@media (max-width: 575.98px) {
  .soft-card {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .thumb,
  .swatch {
    width: 56px;
    height: 56px;
  }

  .thumb-play {
    width: 20px;
    height: 20px;
    left: 6px;
    bottom: 6px;
    font-size: 12px;
  }

  .preview-meta {
    padding: 8px 12px;
  }

  .preview-actions i {
    font-size: 16px;
  }

  .product-main {
    height: 320px;
  }

  .mute-btn,
  .video-btn {
    width: 34px;
    height: 34px;
  }

  .product-title {
    font-size: 20px;
    overflow-wrap: anywhere;
  }

  .price-now {
    font-size: 28px;
  }

  .review-thumb {
    width: 60px;
    height: 60px;
  }

  .service-point-item {
    padding: 14px 8px;
    min-height: 86px;
  }

  .service-icon {
    width: 24px;
    height: 24px;
  }

  .review-lightbox-dialog {
    width: min(100%, calc(100% - 32px));
    max-width: 100%;
  }
}

/* ===================================================================
   4. Home page
   =================================================================== */

.shop-header {
  z-index: 1030;
  transition: transform 0.28s ease;
  will-change: transform;
}

.shop-header.shop-header--hidden {
  transform: translateY(-100%);
}

@media (min-width: 992px) {
  .shop-header.shop-header--hidden {
    transform: none;
  }
}

.top-nav {
  background: var(--navy);
  color: #ffffff;
}

.top-nav-grid {
  display: grid;
  grid-template-columns: auto auto minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.brand .logo-image {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #cf513b, #c92947 59%, #da808e);
  color: #ffffff;
}

.brand-text {
  color: #ffffff;
  font-weight: 700;
  margin-left: 8px;
  letter-spacing: 0.02em;
}

.location {
  color: #d1d5db;
  gap: 8px;
}

.location-btn {
  color: #d1d5db;
  text-align: left;
  padding: 2px 6px;
}

.location-btn:hover {
  color: #ffffff;
}

.location-btn small {
  display: block;
  line-height: 1;
  font-size: 11px;
}

.location-btn strong {
  font-size: 13px;
  font-weight: 600;
}

.search-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.search-box {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.search-wrap .input-group {
  align-items: stretch;
  background: #ffffff;
  border: none;
  border-radius: 999px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
  max-width: 100%;
  flex-wrap: nowrap;
}

.search-wrap .input-group:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(201, 40, 70, 0.15);
}

.search-cat {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: var(--light-bg);
  color: var(--title-color);
  font-size: 13px;
  font-weight: 600;
  padding: 0 12px;
  cursor: pointer;
  box-shadow: none !important;
}

.search-cat:focus {
  outline: none;
}

.search-lead {
  display: flex;
  align-items: center;
  padding: 0 6px 0 14px;
  border: 0 !important;
  background: transparent !important;
  color: var(--muted);
  font-size: 18px;
}

.search-wrap .form-control {
  border: 0;
  background: transparent;
  height: 38px;
  padding-left: 4px;
  box-shadow: none !important;
  min-width: 0;
}

.search-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  background: var(--brand);
  color: #ffffff;
  border: 0;
  border-radius: 0;
  padding: 0 26px;
  font-size: 14px;
  font-weight: 600;
}

.search-btn:hover {
  background: var(--brand-dark);
  color: #ffffff;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  color: #111827;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.18);
  z-index: 1100;
  padding: 10px;
  max-height: min(560px, 72vh);
  overflow: auto;
}

.search-group + .search-group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.search-group-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}

.search-item {
  text-decoration: none;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 14px;
}

.search-item:hover,
.search-product-item:hover {
  background: #f8fafc;
}

.search-item .bi-fire {
  color: #ef4444;
}

.search-product-item {
  text-decoration: none;
  color: #1f2937;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
}

.search-product-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
}

.search-product-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-product-meta strong {
  font-size: 13px;
  font-weight: 600;
}

.search-product-meta small {
  font-size: 12px;
  color: #4b5563;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  min-width: 0;
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  padding: 0;
  cursor: pointer;
}

.top-link:hover,
.top-link:focus-visible {
  color: #ffffff;
}

.top-link--menu {
  display: none;
}

.top-link__label {
  display: inline;
}

.top-link__chevron {
  font-size: 11px;
}

.top-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-action > .bi-person,
.top-action > .bi-cart3,
.top-action > .bi-list,
.top-link > .bi-person,
.top-link > .bi-list {
  font-size: 18px;
  line-height: 1;
}

.cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-icon > .bi-cart3 {
  font-size: inherit;
}

.cart-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--navy);
}

.top-profile__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.top-profile__toggle .bi-chevron-down {
  font-size: 11px;
}

.location-dropdown--strip {
  width: 100%;
  padding: 6px 0;
}

.location-dropdown--strip .location-btn {
  width: 100%;
  color: #e5e7eb;
  padding: 4px 0;
  gap: 8px;
}

.location-dropdown--strip .location-btn:hover {
  color: #ffffff;
}

.location-dropdown--strip .location-btn > div {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.location-dropdown--strip .location-btn small {
  display: inline;
  flex-shrink: 0;
  font-size: 12px;
  color: #d1d5db;
  line-height: 1.2;
}

.location-dropdown--strip .location-btn strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.location-menu {
  width: min(320px, calc(100vw - 24px));
  padding: 16px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.25);
}

.location-menu__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--title-color);
}

.location-menu__sub {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.location-menu__divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.location-menu__divider::before,
.location-menu__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.location-pincode {
  display: flex;
  gap: 8px;
}

.location-pincode .form-control {
  height: 40px;
}

.location-apply {
  flex: 0 0 auto;
  background: var(--title-color);
  color: #ffffff;
  font-weight: 600;
  padding: 0 16px;
}

.location-apply:hover {
  background: #000;
  color: #ffffff;
}

.location-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.location-current:hover {
  color: var(--brand-dark);
}

.profile-menu {
  width: min(340px, calc(100vw - 24px));
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.25);
}

.profile-menu__head {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.profile-menu__new {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.profile-menu .profile-menu__new a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}
.profile-menu .profile-menu__new a:hover {
  color: var(--brand-dark);
}

.profile-menu__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px 16px;
}

.profile-menu__col h6 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--title-color);
}

.profile-menu .profile-menu__col a {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: #4b5563;
  text-decoration: none;
}

.profile-menu .profile-menu__col a:hover {
  color: var(--brand);
}

.profile-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1080;
  background: rgba(17, 24, 39, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.profile-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.profile-menu.profile-menu--drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  bottom: 0 !important;
  inset: 0 0 0 auto !important;
  width: min(340px, 88vw) !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 16px 0 0 16px !important;
  box-shadow: -12px 0 40px rgba(17, 24, 39, 0.22) !important;
  background: #ffffff;
  display: block !important;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%) !important;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 1085;
  -webkit-overflow-scrolling: touch;
}

.profile-menu.profile-menu--drawer.is-open {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) !important;
}

.profile-menu--drawer .profile-menu__head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #ffffff;
  padding: 18px 16px 16px;
}

.profile-menu--drawer .profile-menu__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.profile-menu--drawer .profile-menu__close:hover {
  background: #e5e7eb;
  color: var(--brand);
}

.profile-menu--drawer .profile-menu__cols {
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 16px 18px 28px;
}

.profile-menu--drawer .profile-menu__col h6 {
  font-size: 14px;
  margin-bottom: 10px;
}

.profile-menu--drawer .profile-menu__col a {
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.profile-menu--drawer .profile-menu__col a:last-child {
  border-bottom: 0;
}

body.profile-drawer-open {
  overflow: hidden;
}

.top-links a {
  color: inherit;
  text-decoration: none;
}

.top-links a:hover {
  color: inherit;
}

.nav-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
}

.category-strip {
  background: #232f3e;
}

.nav-links-row {
  align-items: center;
  gap: 8px !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-links-row::-webkit-scrollbar {
  display: none;
}

.nav-link-pill {
  color: #FFFFFF;
  text-decoration: none;
  padding: 6px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  background: transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-link-pill:hover,
.nav-link-pill.active {
  color: #ffffff;
  border-bottom-color: var(--brand);
}

.nav-link-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.vendor-store .nav-cat-dropdown {
  position: relative;
  flex-shrink: 0;
}

.vendor-store .nav-cat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vendor-store .nav-cat-toggle .bi-chevron-down {
  font-size: 11px;
  opacity: 0.85;
  transition: transform 0.15s ease;
}

.vendor-store .nav-cat-dropdown:hover .nav-cat-toggle .bi-chevron-down,
.vendor-store .nav-cat-dropdown:focus-within .nav-cat-toggle .bi-chevron-down {
  transform: rotate(180deg);
}

.vendor-store .category-strip,
.vendor-store .category-strip .container-fluid,
.vendor-store .nav-links-row {
  overflow: visible;
}

.vendor-store .nav-cat-menu {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  z-index: 1080;
  min-width: 210px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);
}

.vendor-store .nav-cat-dropdown:hover > .nav-cat-menu,
.vendor-store .nav-cat-dropdown:focus-within > .nav-cat-menu {
  display: block;
}

.vendor-store .nav-cat-menu__item {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: #1f2937 !important;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
}

.vendor-store .nav-cat-menu__item:hover,
.vendor-store .nav-cat-menu__item:focus {
  background: #f8fafc;
  color: var(--brand) !important;
}

@media (min-width: 992px) {
  .vendor-store .shop-header {
    overflow: visible;
  }
}

.nav-link-all i{
  font-size: 24px;
}

.offcanvas {
  max-width: 320px;
}

.category-panel-group {
  padding: 14px 16px;
}

.category-panel-group + .category-panel-group {
  border-top: 1px solid var(--line);
}

.category-panel-group h6 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.category-panel-group a {
  display: block;
  text-decoration: none;
  color: #1f2937;
  padding: 8px 0;
  font-size: 14px;
}

.hero-card {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #0f172a;
}

.hero-card img {
  width: 100%;
  height: clamp(280px, 30vw, 420px);
  object-fit: cover;
  filter: brightness(0.58);
  display: block;
}

.hero-card .hero-video {
  width: 100%;
  height: clamp(280px, 30vw, 420px);
  object-fit: contain;
  object-position: center;
  filter: brightness(0.7);
  display: block;
  background: #0f172a;
}

.hero-content {
  position: absolute;
  left: 24px;
  bottom: 24px;
  color: #ffffff;
  max-width: 70%;
}

.hero-content .eyebrow {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.98;
}

.hero-content h1 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 3.2vw, 3rem);
  line-height: 1.1;
  font-weight: 800;
}

.hero-sub {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  max-width: 560px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-indicators {
  margin-bottom: 12px;
}

.hero-indicators button {
  width: 24px !important;
  height: 4px !important;
  border-radius: 6px;
  border: 0 !important;
}

.hero-control {
  width: 48px;
}

.hero-control .carousel-control-prev-icon,
.hero-control .carousel-control-next-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background-color: rgba(17, 24, 39, 0.55);
  background-size: 48% 48%;
}

.quick-deals {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.quick-deals h2 {
  font-size: 18px;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.deal-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 4 / 3;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.18);
}

.deal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deal-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.05) 55%, rgba(17, 24, 39, 0));
}

.deal-card__badge {
  background: var(--brand);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.deal-card__badge--alt {
  background: #16a34a;
}

.deal-card__name {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 20px;
}

.section-head a {
  text-decoration: none;
  color: var(--brand);
  font-weight: 500;
}

.horizontal-products {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 12px;
}

.product-tile {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
}

.product-tile img {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  object-fit: cover;
}

.product-tile .title {
  margin: 10px 0 6px;
  font-size: 14px;
  font-weight: 500;
  min-height: 40px;
}

.product-tile .meta {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.product-tile .meta i {
  color: #f59e0b;
}

.product-tile .price {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.product-tile .price span {
  color: #16a34a;
  margin: 0 4px;
}

.product-tile .price del {
  color: #9ca3af;
  font-weight: 400;
}

/* Shop by brands */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  align-items: start;
}

.brand-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.12);
}

.brand-card__media {
  background: var(--light-bg);
}

.brand-card__media img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.shop-category-grid .brand-card__media img {
  height: 220px;
}

@media (max-width: 767.98px) {
  .shop-category-grid .brand-card__media img {
    height: 180px;
  }
}

.brand-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}

.brand-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--title-color);
}

.brand-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}

@media (min-width: 576px) {
  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .brand-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Mid-page advertisement banner */
.mid-banner{
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-banner {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  text-decoration: none;
  background: #0f172a;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
}

.ad-banner img {
  display: block;
  width: 100%;
  height: clamp(180px, 24vw, 280px);
  object-fit: cover;
  object-position: right center;
  transition: transform 0.35s ease;
}

.ad-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(15, 23, 42, 0.78) 38%,
    rgba(15, 23, 42, 0.28) 68%,
    rgba(15, 23, 42, 0.08) 100%
  );
  pointer-events: none;
}

.ad-banner:hover img {
  transform: scale(1.03);
}

.ad-banner__content {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 28px;
  color: #ffffff;
  max-width: 560px;
}

.ad-banner__label {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ad-banner__content h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
}

.ad-banner__content p {
  margin: 0 0 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 40ch;
}

.ad-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.ad-banner:hover .ad-banner__cta {
  background: var(--brand-dark);
}

@media (max-width: 575.98px) {
  .ad-banner__content {
    padding: 16px 18px;
    max-width: none;
  }

  .ad-banner__content p {
    margin-bottom: 10px;
    font-size: 13px;
  }

  .ad-banner::after {
    background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.88) 0%,
      rgba(15, 23, 42, 0.55) 55%,
      rgba(15, 23, 42, 0.35) 100%
    );
  }
}

/* Shop promo card row */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.promo-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.promo-card__title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--title-color);
  line-height: 1.3;
}

.promo-card__quad {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
}

.promo-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
}

.promo-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: var(--light-bg);
}

.promo-tile span {
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}

.promo-tile:hover span {
  color: var(--brand);
}

.promo-card__more {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.promo-card__more:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

@media (min-width: 576px) {
  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .promo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Special offering price - premium limited time deals */
.special-offer {
  border-radius: 18px;
  padding: 20px;
  color: #ffffff;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1210 0%, #4a0f1f 48%, #8f1b33 100%);
  box-shadow: 0 12px 30px rgba(120, 20, 40, 0.28);
}

.special-offer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.special-offer__title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.special-offer__fire {
  font-size: 30px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(255, 138, 0, 0.55));
}

.special-offer__title h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.special-offer__title p {
  margin: 3px 0 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.countdown {
  display: flex;
  align-items: center;
  gap: 12px;
}

.countdown__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.countdown__boxes {
  display: flex;
  align-items: center;
  gap: 6px;
}

.countdown__box {
  min-width: 44px;
  padding: 8px 6px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.countdown__sep {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.claim {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.claim__bar {
  height: 6px;
  border-radius: 999px;
  background: #eef0f2;
  overflow: hidden;
}

.claim__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.claim__text {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.stock-alert {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #ef4444;
}

@media (max-width: 575.98px) {
  .special-offer__head {
    gap: 12px;
  }

  .countdown__box {
    min-width: 38px;
    font-size: 17px;
  }
}

/* Horizontal product carousel (Recently Viewed) */
.carousel-shell {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.18);
}

.carousel-nav:hover {
  background: #f3f4f6;
}

.carousel-nav--prev {
  left: 2px;
}

.carousel-nav--next {
  right: 2px;
}

.carousel-nav[hidden] {
  display: none;
}

.product-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  cursor: grab;
}

.product-carousel::-webkit-scrollbar {
  height: 8px;
}

.product-carousel::-webkit-scrollbar-thumb {
  background: #cbd1d8;
  border-radius: 999px;
}

.product-carousel::-webkit-scrollbar-thumb:hover {
  background: #aeb6bf;
}

.product-carousel.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.product-carousel.is-dragging img {
  pointer-events: none;
}

.product-card {
  flex: 0 0 270px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.12);
}

.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f3f4f6;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 12px;
}

.product-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--title-color);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.product-card__title:hover {
  color: var(--brand);
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.product-card__rating .stars i {
  color: #f59e0b;
  font-size: 13px;
}

.product-card__rating .value {
  font-weight: 600;
  color: var(--text);
}

.product-card__price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.product-card__price .off {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
}

.product-card__price .now {
  font-size: 16px;
  font-weight: 700;
  color: var(--title-color);
}

.product-card__price .was {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: line-through;
}

.product-card__purchased {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.product-card__wish,
.product-card__cart {
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.product-card__wish {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  text-decoration: none;
}

.product-card__wish:hover,
.product-card__wish.active {
  border-color: var(--brand);
  color: var(--brand);
}

.product-card__cart {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.product-card__cart:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: #ffffff;
}

.product-card__media-wrap {
  position: relative;
}

.product-card__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.12);
}

.product-card__remove:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}

.product-card__stock {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

.product-card__stock.in-stock {
  color: #15803d;
}

.product-card__stock.out-stock {
  color: #b91c1c;
}

.product-card__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: auto;
}

.product-card__actions .product-card__cart,
.product-card__buy {
  width: 100%;
  margin-top: 0;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  white-space: nowrap;
}

.product-card__buy {
  border: 1px solid var(--brand);
  background: #ffffff;
  color: var(--brand);
}

.product-card__buy:hover {
  background: #fff5f7;
  color: var(--brand-dark);
  border-color: var(--brand-dark);
}

.product-card__buy.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: default;
}

.product-card__actions .product-card__cart:disabled {
  opacity: 0.7;
  cursor: default;
}

@container product-card (min-width: 220px) {
  .product-card__actions {
    grid-template-columns: 1fr 1fr;
  }
}

.filter-chip {
  border: 1px solid #d1d5db;
  background: #ffffff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  white-space: nowrap;
}

.filter-chip.active {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff5f7;
}

.product-grid-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #ffffff;
  height: 100%;
}

.product-grid-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
}

.product-grid-card .title {
  margin: 8px 0 6px;
  font-size: 13px;
  min-height: 36px;
}

.product-grid-card .price {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.product-grid-card .price span {
  color: #16a34a;
}

.product-grid-card .price del {
  color: #9ca3af;
  margin-left: 2px;
}

.shop-footer {
  background: #111827;
  color: #d1d5db;
  margin-top: 16px;
}

.footer-top {
  display: block;
  width: 100%;
  border: 0;
  background: #232f3e;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  padding: 14px;
}

.footer-top:hover {
  background: #2b3a4d;
}

.vendor-store .footer-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 40;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.25);
}

.vendor-store .footer-top:hover {
  background: #2b3a4d;
}

@media (max-width: 575.98px) {
  .vendor-store .footer-top {
    right: 14px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 20px;
}

.vendor-store .footer-columns {
  grid-template-columns: 1fr;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.footer-brand .logo-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer-brand__desc {
  margin: 0;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.55;
  color: #b7c0cd;
}

@media (min-width: 768px) {
  .vendor-store .footer-columns {
    grid-template-columns: minmax(220px, 1.4fr) 1fr 1fr;
    gap: 32px 40px;
  }
}

.footer-col__title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-col__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}

.footer-col__links li {
  margin-bottom: 10px;
}

.footer-col__links a {
  color: #b7c0cd;
  text-decoration: none;
  font-size: 14px;
}

.footer-col__links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-apps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-app {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid #3a4656;
  border-radius: 10px;
  text-decoration: none;
  color: #ffffff;
  background: #1b2531;
  max-width: 190px;
}

.footer-app:hover {
  border-color: var(--brand);
}

.footer-app i {
  font-size: 24px;
}

.footer-app span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.footer-app small {
  font-size: 10px;
  color: #9aa5b1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-app strong {
  font-size: 15px;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid #2a3543;
  background: #0d131c;
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-bottom__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.footer-bottom__brand .logo-image {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-bottom__copy {
  font-size: 13px;
  color: #8b95a1;
}

.footer-bottom__powered {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #8b95a1;
  text-decoration: none;
}

.footer-bottom__powered:hover {
  color: #ffffff;
}

.footer-bottom__powered img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  color: #b7c0cd;
  font-size: 18px;
}

.footer-social a:hover {
  color: #ffffff;
}

@media (min-width: 768px) {
  .footer-columns {
    grid-template-columns: repeat(4, 1fr);
  }
}

.nowrap-scroll {
  scrollbar-width: thin;
}

/* Tablet / small laptop: keep every top-bar item, wrap instead of hide */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .top-nav-grid {
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-areas:
      "brand location links"
      "search search search";
    gap: 8px 12px;
    align-items: center;
  }

  .top-nav-grid > .brand {
    grid-area: brand;
  }

  .top-nav-grid > .location-dropdown--top {
    grid-area: location;
    min-width: 0;
  }

  .top-nav-grid > .search-wrap {
    grid-area: search;
  }

  .top-nav-grid > .header-actions {
    grid-area: links;
    justify-self: end;
  }

  .top-links {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .brand-text {
    font-size: 14px;
    margin-left: 6px;
  }

  .location-btn {
    padding: 2px 4px;
    gap: 6px;
  }

  .location-btn small {
    font-size: 10px;
  }

  .location-btn strong {
    font-size: 12px;
  }

  .search-cat {
    padding: 0 8px;
    font-size: 12px;
  }

  .search-wrap .form-control {
    height: 36px;
    font-size: 13px;
  }

  .search-btn {
    padding: 0 14px;
    font-size: 13px;
  }

  .nav-link-pill {
    padding: 6px 10px;
    font-size: 13px;
  }

  .nav-link-all i {
    font-size: 20px;
  }
}

@media (min-width: 1200px) {
  .top-nav-grid {
    grid-template-columns: auto auto minmax(320px, 1fr) auto;
    gap: 16px;
  }

  .top-links {
    gap: 20px;
  }
}

@media (max-width: 991.98px) {
  .top-nav-grid {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand actions"
      "search search";
    gap: 8px 10px;
    align-items: center;
  }

  .top-nav-grid > .brand {
    grid-area: brand;
  }

  .top-nav-grid > .header-actions {
    grid-area: actions;
    justify-self: end;
  }

  .top-nav-grid > .search-wrap {
    grid-area: search;
    grid-column: 1 / -1;
  }

  .category-strip {
    background: #232f3e;
  }

  .brand-text {
    font-size: 14px;
  }

  .search-btn {
    padding: 0 14px;
    font-size: 13px;
  }

  .search-cat {
    max-width: 72px;
    padding: 0 8px;
    font-size: 12px;
  }

  .hero-card img,
  .hero-card .hero-video {
    height: 260px;
  }

  .hero-content {
    max-width: 86%;
  }

  .hero-sub {
    max-width: 100%;
  }

  .quick-deals h2,
  .section-head h2 {
    font-size: 18px;
  }

  /* Single header nav: compact mobile treatment */
  .top-links {
    gap: 2px;
  }

  .top-link--text {
    display: none;
  }

  .top-link--menu {
    display: inline-flex;
  }

  .top-link {
    min-width: 40px;
    padding: 6px 8px;
    gap: 4px;
    font-size: 11px;
  }

  .top-link__label {
    display: none;
  }

  .top-link__chevron {
    display: none;
  }

  .top-link > .bi-person,
  .top-link > .bi-list,
  .top-link .cart-icon > .bi-cart3 {
    font-size: 22px;
  }

  .top-link .cart-badge {
    top: -4px;
    right: -8px;
  }
}

@media (max-width: 480px) {
  .top-link {
    min-width: 40px;
    padding: 6px 8px;
  }

  .top-link > .bi-person,
  .top-link > .bi-list,
  .top-link .cart-icon > .bi-cart3 {
    font-size: 24px;
  }

  .brand-text {
    font-size: 13px;
  }

  .location-dropdown--strip .location-btn small {
    font-size: 11px;
  }

  .location-dropdown--strip .location-btn strong {
    font-size: 12px;
  }
}

@media (min-width: 768px) {
  .deal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .deal-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ===================================================================
   5. Auth / Sign-in page
   =================================================================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-header {
  padding: 22px 16px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.auth-header .brand-mark {
  background: linear-gradient(135deg, #cf513b, #c92947 59%, #da808e);
}

.auth-header .logo-text {
  color: var(--title-color);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-left: 8px;
}

.auth-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--title-color);
  margin: 0 0 20px;
}

.auth-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--title-color);
  margin-bottom: 8px;
}

.auth-input {
  height: 46px;
  border-color: var(--border-color);
  border-radius: 10px;
  margin-bottom: 8px;
}

.auth-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(201, 40, 70, 0.15);
}

.auth-error {
  display: none;
  color: var(--brand);
  font-size: 13px;
  margin-bottom: 8px;
}

.auth-error.show {
  display: block;
}

.auth-continue {
  padding-top: 12px;
  padding-bottom: 12px;
  font-weight: 600;
  margin-top: 4px;
}

.auth-terms {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 16px 0 0;
}

.auth-divider {
  margin: 22px 0;
  border-color: var(--line);
}

.auth-subhead {
  font-size: 15px;
  font-weight: 700;
  color: var(--title-color);
  margin: 0 0 4px;
}

.auth-back {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}

.auth-back:hover {
  color: var(--brand);
}

.auth-otp-note {
  font-size: 14px;
  color: var(--body-color);
  margin: 0 0 20px;
}

.auth-footer {
  padding: 24px 16px 32px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.auth-footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}

.auth-footer__links a {
  color: var(--brand);
  font-size: 13px;
  text-decoration: none;
}

.auth-footer__links a:hover {
  text-decoration: underline;
}

.auth-footer__copy {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* ===================================================================
   6. Cart page
   =================================================================== */

.cart-count-badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--light-bg);
  border-radius: 999px;
  padding: 3px 12px;
  vertical-align: middle;
  margin-left: 8px;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.cart-item:hover {
  border-color: #d7dbe0;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.07);
}

.cart-item[data-unavailable] .cart-item__media img {
  opacity: 0.7;
}

.cart-item__body {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
}

.cart-item__left {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cart-check {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  border-radius: 6px;
  border-color: var(--border-color);
  cursor: pointer;
}

.cart-check:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}

.cart-check:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(201, 40, 70, 0.15);
}

.cart-item__media {
  display: block;
}

.cart-item__media img {
  width: 116px;
  height: 116px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--light-bg);
}

.cart-item__info {
  flex: 1 1 auto;
  min-width: 0;
}

.cart-item__title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--title-color);
  text-decoration: none;
  line-height: 1.45;
}

.cart-item__title:hover {
  color: var(--brand);
}

.cart-item__pricing {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.cart-item__off {
  font-size: 14px;
  font-weight: 700;
  color: #16a34a;
}

.cart-item__now {
  font-size: 20px;
  font-weight: 800;
  color: var(--title-color);
  letter-spacing: -0.01em;
}

.cart-item__was {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: line-through;
}

.cart-item__options {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.cart-item__variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cart-option-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 13px;
  font-weight: 600;
  color: var(--title-color);
  line-height: 1.3;
}

.cart-option-view em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}

.cart-option-view em::after {
  content: ":";
}

.cart-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 10px;
}

.cart-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--title-color);
  background: #ffffff;
  transition: border-color 0.15s ease;
}

.cart-select:hover {
  border-color: var(--brand);
}

.cart-select > span {
  color: var(--muted);
}

.cart-select select {
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--title-color);
  padding-right: 2px;
  outline: none;
  cursor: pointer;
}

.cart-item__stock {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cart-item__stock::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.cart-item__stock.in-stock {
  color: #16a34a;
}

.cart-item__stock.out-stock {
  color: var(--brand);
}

.cart-item__return {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
}

.cart-item__return:hover {
  text-decoration: underline;
}

.cart-item__coupon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 6px;
  cursor: pointer;
}

.cart-item__coupon .form-check-input {
  width: 16px;
  height: 16px;
  margin: 0;
  border-color: var(--border-color);
  cursor: pointer;
}

.cart-item__coupon .form-check-input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}

.cart-item__coupon .form-check-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(201, 40, 70, 0.15);
}

.cart-item__conditions {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
}

.cart-item__service {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--body-color);
}

.cart-item__delivery {
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.cart-item__delivery p {
  margin: 0;
  font-size: 13px;
  color: var(--body-color);
  line-height: 1.6;
}

.cart-item__delivery strong {
  color: var(--title-color);
}

.cart-item__actions {
  display: flex;
  border-top: 1px solid var(--line);
  background: #fafbfc;
}

.cart-item__action {
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.cart-item__action + .cart-item__action {
  border-left: 1px solid var(--line);
}

.cart-item__action:hover {
  color: var(--brand);
  background: var(--soft-bg);
}

.cart-item__action-text {
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .cart-item__actions {
    min-height: 58px;
  }

  .cart-item__action {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
  }

  .cart-item__action i {
    font-size: 18px;
    line-height: 1;
  }

  .cart-item__action-prefix {
    display: none;
  }

  .cart-item__action[data-remove]:hover {
    color: #b91c1c;
    background: #fef2f2;
  }
}

.cart-empty {
  text-align: center;
  padding: 48px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
}

.cart-empty i {
  font-size: 40px;
  color: #cbd1d8;
}

.cart-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.cart-summary__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--title-color);
  margin: 0 0 16px;
}

.cart-coupon {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-coupon__field {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0 4px 0 12px;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cart-coupon__field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(201, 40, 70, 0.15);
}

.cart-coupon__field > .bi-tag {
  color: var(--muted);
  font-size: 16px;
}

.cart-coupon__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  height: 42px;
  padding: 0 10px;
  font-size: 14px;
  color: var(--title-color);
  text-transform: uppercase;
}

.cart-coupon__input::placeholder {
  text-transform: none;
  color: var(--muted);
}

.cart-coupon__input[readonly] {
  color: var(--title-color);
  cursor: default;
}

.cart-coupon__apply {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
}

.cart-coupon__apply:hover:not(:disabled) {
  background: var(--soft-bg);
}

.cart-coupon__apply:disabled {
  color: #9ca3af;
  cursor: not-allowed;
}

.cart-coupon__msg {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
  min-height: 0;
}

.cart-coupon__msg:empty {
  margin: 0;
}

.cart-coupon__msg.is-success {
  color: #16a34a;
}

.cart-coupon__msg.is-error {
  color: var(--brand);
}

.cart-coupon__hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.cart-coupon__view {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
}

.cart-coupon__view:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.cart-coupon__view i {
  font-size: 12px;
}

.coupon-modal .modal-content {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
}

.coupon-modal .modal-header {
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
}

.coupon-modal .modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--title-color);
}

.coupon-modal .modal-body {
  padding: 16px 20px 20px;
  background: #f8f9fb;
}

.coupon-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.coupon-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px 40px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.coupon-card.is-applied {
  border-color: #f0b7c2;
  background: linear-gradient(180deg, #fff5f7 0%, #ffffff 70%);
  box-shadow: 0 4px 14px rgba(201, 40, 70, 0.08);
}

.coupon-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.coupon-card__code-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.coupon-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--soft-bg);
  color: var(--brand);
  font-size: 13px;
  flex-shrink: 0;
}

.coupon-card__icon--bank {
  background: #eef2ff;
  color: #4338ca;
}

.coupon-card__code {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--title-color);
  text-transform: uppercase;
  word-break: break-word;
}

.coupon-card__save {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: #0f766e;
  white-space: nowrap;
}

.coupon-card__desc {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--body-color);
  line-height: 1.45;
}

.coupon-card__desc.is-applied-msg {
  color: #0f766e;
  font-weight: 500;
}

.coupon-card__meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.coupon-card__action {
  position: absolute;
  right: 14px;
  bottom: 12px;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  padding: 0;
}

.coupon-card__action:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.cart-summary__coupon-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-summary__coupon-remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  line-height: 1;
  display: inline-flex;
}

.cart-summary__coupon-remove:hover {
  color: var(--brand);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--body-color);
  margin-bottom: 10px;
}

.cart-summary__total {
  font-size: 18px;
  font-weight: 700;
  color: var(--title-color);
  margin-bottom: 4px;
}

.cart-summary__note {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 16px;
}

.cart-summary__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

@media (min-width: 992px) {
  .cart-summary {
    position: sticky;
    top: 92px;
  }
}

@media (max-width: 575.98px) {
  .cart-item__body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 12px;
    padding: 12px;
    align-items: start;
  }

  .cart-item__left {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .cart-item__info {
    display: contents;
  }

  .cart-item__title {
    grid-column: 2;
    grid-row: 1;
    font-size: 14px;
  }

  .cart-item__pricing {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }

  .cart-item__options,
  .cart-item__meta,
  .cart-item__service,
  .cart-item__delivery {
    grid-column: 1 / -1;
  }

  .cart-item__options {
    margin: 4px 0 0;
  }

  .cart-item__variants {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }

  .cart-option-view {
    max-width: 100%;
  }

  .cart-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-bottom: 8px;
  }

  .cart-item__stock,
  .cart-item__return {
    margin: 0;
  }

  .cart-item__media img {
    width: 80px;
    height: 80px;
  }

  .cart-item__now {
    font-size: 16px;
  }
}

/* ===================================================================
   7. Checkout page
   =================================================================== */

.checkout-back {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--title-color);
  font-size: 20px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.checkout-back:hover {
  background: var(--light-bg);
  color: var(--brand);
}

.co-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.co-section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--title-color);
  margin: 0 0 14px;
}

/* Address */
.co-address {
  display: flex;
  gap: 12px;
}

.co-address__pin {
  color: var(--brand);
  font-size: 20px;
  margin-top: 2px;
}

.co-address__body {
  flex: 1 1 auto;
  min-width: 0;
}

.co-address__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.co-address__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--title-color);
}

.co-address__text {
  margin: 4px 0 2px;
  font-size: 14px;
  color: var(--body-color);
  line-height: 1.5;
}

.co-address__phone {
  margin: 0;
  font-size: 14px;
  color: var(--body-color);
}

/* Empty address (first-time buyer) */
.co-address-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.co-address-empty__pin {
  color: var(--brand);
  font-size: 20px;
}

.co-address-empty__body {
  flex: 1 1 auto;
  min-width: 0;
}

.co-address-empty__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--title-color);
}

.co-address-empty__text {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--body-color);
  line-height: 1.5;
}

.co-address-empty__btn {
  flex: 0 0 auto;
  padding-inline: 18px;
}

@media (max-width: 575.98px) {
  .co-address-empty__btn {
    width: 100%;
  }
}

/* Add address modal */
.addr-modal .modal-body {
  padding-top: 8px;
}

.addr-modal__actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 12px;
}

.addr-modal__actions .btn-brand {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}

.addr-locate {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--soft-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.addr-locate__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-size: 18px;
  flex: 0 0 auto;
}

.addr-locate__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.addr-locate__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--title-color);
}

.addr-locate__text {
  font-size: 13px;
  color: var(--body-color);
}

.addr-locate__chevron {
  color: var(--body-color);
  font-size: 18px;
  flex: 0 0 auto;
}

.addr-default {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.addr-default__check {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  border-radius: 6px;
  border-color: var(--border-color);
  cursor: pointer;
  flex: 0 0 auto;
}

.addr-default__check:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}

.addr-default__body {
  display: flex;
  flex-direction: column;
}

.addr-default__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--title-color);
}

.addr-default__text {
  font-size: 13px;
  color: var(--body-color);
}

/* Default badge on the delivery address */
.co-address__badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  background: var(--soft-bg);
  border: 1px solid var(--brand);
  border-radius: 999px;
  padding: 2px 10px;
  line-height: 1.4;
  flex: 0 0 auto;
}

/* Actions under the delivery address */
.co-address__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.co-address__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  background: transparent;
  border: 1px solid var(--brand);
  border-radius: 999px;
  padding: 6px 16px;
}

.co-address__action:hover {
  background: var(--soft-bg);
  color: var(--brand);
}

/* Choose-address list */
.addr-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.addr-item {
  display: flex;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  margin: 0;
}

.addr-item.is-selected {
  border-color: var(--brand);
  background: var(--soft-bg);
}

.addr-item__radio {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  cursor: pointer;
  flex: 0 0 auto;
  accent-color: var(--brand);
}

.addr-item__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.addr-item__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.addr-item__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--title-color);
}

.addr-item__badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 999px;
  padding: 1px 9px;
}

.addr-item__text {
  margin: 4px 0 2px;
  font-size: 14px;
  color: var(--body-color);
  line-height: 1.5;
}

.addr-item__phone {
  font-size: 14px;
  color: var(--body-color);
}

.addr-item__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.addr-item__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--title-color);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.addr-item__link:hover {
  background: var(--soft-bg);
  border-color: #d1d5db;
  color: var(--title-color);
}

.addr-item__link--danger {
  color: var(--title-color);
}

.addr-item__link--danger:hover {
  background: var(--soft-bg);
  border-color: #d1d5db;
  color: var(--title-color);
}

.addr-add-new {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  border: 1px dashed var(--brand);
  color: var(--brand);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
}

.addr-add-new:hover {
  background: var(--soft-bg);
}

/* Self pickup */
.co-pickup {
  display: flex;
  gap: 12px;
  margin: 0;
  cursor: pointer;
}

.co-pickup__check {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  border-radius: 6px;
  border-color: var(--border-color);
  cursor: pointer;
  flex: 0 0 auto;
}

.co-pickup__check:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}

.co-pickup__check:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(201, 40, 70, 0.15);
}

.co-pickup__body {
  flex: 1 1 auto;
}

.co-pickup__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.co-pickup__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--title-color);
}

.co-pickup__text {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Coupon (applied) */
.co-coupon {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--soft-bg);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.co-coupon__icon {
  color: #16a34a;
  font-size: 24px;
}

.co-coupon__text {
  flex: 1 1 auto;
  min-width: 0;
}

.co-coupon__code {
  font-weight: 700;
  color: #16a34a;
  margin-right: 4px;
}

.co-coupon__text small {
  display: block;
  font-size: 13px;
  color: var(--body-color);
  margin-top: 2px;
}

.co-coupon__action {
  flex: 0 0 auto;
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.co-coupon__action:hover {
  color: var(--brand-dark);
}

/* Payment option cards */
.pay-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
}

.pay-option__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--title-color);
}

.pay-option__radio {
  width: 22px;
  height: 22px;
  margin: 0;
  border-color: var(--border-color);
  flex: 0 0 auto;
  cursor: pointer;
  accent-color: var(--brand);
}

.pay-option__radio:focus {
  outline: none;
  box-shadow: none;
}

.pay-option--group {
  display: block;
  padding: 0;
  overflow: hidden;
}

.pay-option:has(.pay-option__radio:checked) {
  border-color: var(--brand);
}

.pay-option__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  margin: 0;
  cursor: pointer;
}

.pay-option__panel {
  padding: 0 16px 16px;
  display: none;
}

.pay-option--group:has(.pay-option__radio:checked) .pay-option__panel {
  display: block;
}

/* Bank offers banner */
.bank-offers {
  background: var(--soft-bg);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}

.bank-offers__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--title-color);
}

.bank-offers__title i {
  color: #16a34a;
}

.bank-offers__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bank-offers__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--title-color);
  text-decoration: none;
}

.bank-offers__pill i {
  color: var(--brand);
}

.bank-offers__pill--link {
  color: var(--brand);
}

/* Payment options list */
.pay-list__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--title-color);
  margin: 0 0 8px;
}

.pay-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.pay-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  text-decoration: none;
  color: var(--title-color);
}

.pay-row + .pay-row {
  border-top: 1px solid var(--line);
}

.pay-row:hover {
  background: var(--light-bg);
}

.pay-row__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--light-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--brand);
  flex: 0 0 auto;
}

.pay-row__main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pay-row__name {
  font-size: 15px;
  font-weight: 600;
}

.pay-row__offers {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
}

.pay-row__cashback {
  font-size: 12px;
  color: #16a34a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-row__chevron {
  color: var(--muted);
  font-size: 14px;
  flex: 0 0 auto;
}

/* Nestopar wallet */
.wallet-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
}

.wallet-row__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--soft-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--brand);
  flex: 0 0 auto;
}

.wallet-row__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.wallet-row__body small {
  font-size: 12px;
  color: var(--muted);
}

/* Wallet redeem toggle */
.wallet-row__redeem {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  flex: 0 0 auto;
}

.wallet-row__check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wallet-row__redeemed {
  display: none;
  align-items: center;
  gap: 4px;
}

.wallet-row__redeem:has(.wallet-row__check:checked) .wallet-row__redeem-label {
  display: none;
}

.wallet-row__redeem:has(.wallet-row__check:checked) .wallet-row__redeemed {
  display: inline-flex;
}

/* Redeem deduction row: shown only after the wallet is redeemed */
.co-redeem-row {
  display: none;
}

main:has(#wallet-redeem:checked) .co-redeem-row {
  display: flex;
}

/* Price detail summary */
.co-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.co-summary__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--title-color);
  margin: 0 0 16px;
}

.co-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--body-color);
  margin-bottom: 10px;
}

.co-summary__total {
  font-size: 18px;
  font-weight: 700;
  color: var(--title-color);
  margin-bottom: 4px;
}

.co-summary__note {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 16px;
}

.co-checkout-items {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--light-bg);
  overflow: hidden;
}

.co-checkout-items .order-item {
  padding: 14px;
  background: transparent;
}

.co-checkout-items .order-item + .order-item {
  border-top: 1px solid var(--line);
}

@media (min-width: 992px) {
  .co-summary {
    position: sticky;
    top: 92px;
  }
}

/* Mobile sticky action bar */
.checkout-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  background: #ffffff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 14px rgba(17, 24, 39, 0.08);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-bar__price {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 96px;
}

.checkout-bar__price small {
  font-size: 12px;
}

.checkout-bar__price strong {
  font-size: 18px;
  color: var(--title-color);
}

.checkout-bar__price .brand-link {
  font-size: 12px;
}

.checkout-bar__btn {
  flex: 1 1 auto;
  padding-top: 12px;
  padding-bottom: 12px;
}

@media (max-width: 991.98px) {
  .checkout-main {
    padding-bottom: 92px !important;
  }

  .cart-page main {
    padding-bottom: 100px !important;
  }

  .cart-summary__note {
    margin-bottom: 0;
  }
}

/* ===================================================================
   8. My Orders page
   =================================================================== */

/* Search + filter toolbar */
.orders-toolbar {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.orders-search {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.orders-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(201, 40, 70, 0.15);
}

.orders-search i {
  color: var(--muted);
  font-size: 16px;
}

.orders-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  height: 44px;
  font-size: 14px;
  color: var(--title-color);
}

.orders-filter-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--title-color);
}

.orders-filter-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Order groups */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.order-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: var(--soft-bg);
  border-bottom: 1px solid var(--line);
}

.order-card__head-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
}

.order-card__field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.order-card__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--title-color);
}

.order-card__value small {
  font-weight: 400;
  color: var(--muted);
}

.order-card__head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.order-card__id {
  font-size: 13px;
  font-weight: 700;
  color: var(--title-color);
}

.order-card__price-link {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
}

.order-card__price-link:hover {
  color: var(--brand-dark);
}

.order-card__items {
  display: flex;
  flex-direction: column;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  color: inherit;
}

.order-item + .order-item {
  border-top: 1px solid var(--line);
}

.order-item img {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--light-bg);
}

.order-item__info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-item__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--title-color);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.order-item__title:hover {
  color: var(--brand);
}

.order-item__opts {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* Right-side CTA column */
.order-item__actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 168px;
}

.order-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: var(--title-color);
  text-decoration: none;
  white-space: nowrap;
}

.order-cta:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--soft-bg);
}

/* Status labels with a colored dot */
.order-status {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.order-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

.order-status--transit,
.order-status--delivered {
  color: #16a34a;
}

.order-status--cancelled {
  color: var(--brand);
}

.order-status--return {
  color: #d97706;
}

.order-status--exchange {
  color: #7c3aed;
}

.order-status__old {
  color: var(--muted);
  font-weight: 400;
  text-decoration: line-through;
  margin-left: 2px;
}

/* Order footer / cancel action */
.order-card__foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}

.order-card__foot--note {
  background: #f0fdf4;
}

.order-card__cancel {
  width: 100%;
  border: 1px solid var(--brand);
  background: #ffffff;
  color: var(--brand);
  border-radius: 999px;
  padding: 11px;
  font-size: 14px;
  font-weight: 700;
}

.order-card__cancel:hover {
  background: var(--soft-bg);
}

.order-refund {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #16a34a;
}

.order-refund i {
  font-size: 16px;
}

/* Empty / no-results */
.orders-empty {
  text-align: center;
  padding: 48px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
}

.orders-empty i {
  font-size: 40px;
  color: #cbd1d8;
}

.orders-empty p {
  font-size: 15px;
  font-weight: 600;
  color: var(--title-color);
}

.orders-empty span {
  font-size: 13px;
}

/* Filter offcanvas */
.order-filter {
  width: 340px;
}

.order-filter__options {
  display: flex;
  flex-direction: column;
}

.order-filter__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--title-color);
  cursor: pointer;
}

.order-filter__opt input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
  cursor: pointer;
}

.order-filter__foot {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.order-filter__clear,
.order-filter__apply {
  flex: 1 1 50%;
  border-radius: 999px;
  padding: 11px;
  font-weight: 700;
}

.order-filter__clear {
  border: 1px solid var(--brand);
  color: var(--brand);
  background: #ffffff;
}

.order-filter__clear:hover {
  background: var(--soft-bg);
  color: var(--brand);
}

/* Order modals (cancel + price detail) */
.order-modal {
  border: 0;
  border-radius: 16px;
}

.order-modal .modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--title-color);
}

.order-modal__text {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body-color);
}

.order-modal__confirm,
.order-modal__back {
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
}

.order-modal__back {
  border: 1px solid var(--brand);
  color: var(--brand);
  background: #ffffff;
}

.order-modal__back:hover {
  background: var(--soft-bg);
  color: var(--brand);
}

.price-detail__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--body-color);
  margin-bottom: 12px;
}

.price-detail__divider {
  border: 0;
  border-top: 1px dashed var(--border-color);
  margin: 4px 0 12px;
}

.price-detail__row--total {
  font-size: 16px;
  font-weight: 700;
  color: var(--title-color);
  margin-bottom: 0;
}

/* Recommendations sidebar */
.reco__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--title-color);
  margin: 0 0 4px;
}

.reco-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.reco-item:first-of-type {
  border-top: 0;
  padding-top: 12px;
}

.reco-item__media {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--light-bg);
}

.reco-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reco-item__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reco-item__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--title-color);
  text-decoration: none;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reco-item__title:hover {
  color: var(--brand);
}

.reco-item__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.reco-item__rating .stars i {
  color: #f59e0b;
  font-size: 12px;
}

.reco-item__price {
  margin: 2px 0 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.reco-item__price .off {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
}

.reco-item__price .now {
  font-size: 17px;
  font-weight: 700;
  color: var(--title-color);
}

.reco-item__mrp {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.reco-item__delivery {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--body-color);
}

.reco-item__delivery strong {
  color: var(--title-color);
}

.reco-item__cart {
  align-self: flex-start;
  margin-top: 8px;
  border: 1px solid var(--brand);
  background: #ffffff;
  color: var(--brand);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 600;
}

.reco-item__cart:hover {
  background: var(--brand);
  color: #ffffff;
}

.reco-item__options {
  align-self: flex-start;
  margin-top: 8px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--title-color);
  text-decoration: none;
}

.reco-item__options:hover {
  border-color: var(--brand);
  color: var(--brand);
}

@media (max-width: 767.98px) {
  .order-card__head {
    padding: 14px;
  }

  .order-item {
    flex-wrap: wrap;
    padding: 14px;
    align-items: flex-start;
  }

  .order-item__actions {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 4px;
  }

  .order-cta {
    flex: 1 1 auto;
    width: auto;
  }

  .order-card__foot {
    padding: 12px 14px;
  }
}

/* Add review modal */
.review-modal-dialog {
  max-width: 520px;
}

.review-modal {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
}

.review-modal__header {
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}

.review-modal__header .modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--title-color);
}

.review-modal__body {
  padding: 20px;
}

.review-modal__product {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--title-color);
  line-height: 1.4;
}

.review-field + .review-field {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.review-field__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--title-color);
}

.review-field__sub {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.review-stars {
  display: flex;
  gap: 8px;
}

.review-stars__btn {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 28px;
  line-height: 1;
  color: #d1d5db;
  cursor: pointer;
}

.review-stars__btn.is-active,
.review-stars__btn:hover {
  color: #f59e0b;
}

.review-textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  color: var(--title-color);
  resize: vertical;
  min-height: 110px;
}

.review-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(201, 40, 70, 0.15);
}

.review-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.review-photo-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 88px;
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  background: #ffffff;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
}

.review-photo-add:hover {
  background: var(--light-bg);
  border-color: #9ca3af;
}

.review-photos.has-photos .review-photo-add {
  width: 88px;
  min-height: 88px;
  flex-direction: column;
  gap: 4px;
  font-size: 24px;
  border: 1px dashed var(--border-color);
  color: var(--brand);
}

.review-photos.has-photos .review-photo-add span {
  display: none;
}

.review-photo-thumb {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.review-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--title-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.review-modal__footer {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
  padding: 0 20px 20px;
}

.review-cancel {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  border: 1px solid var(--brand);
  border-radius: 999px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  background: #ffffff;
}

.review-cancel:hover {
  background: var(--soft-bg);
  color: var(--brand);
}

.review-submit {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(90deg, #f3b4c0, #e8a0ad);
}

.review-submit:not(:disabled) {
  background: linear-gradient(90deg, #d63a56, var(--brand));
}

.review-submit:not(:disabled):hover {
  background: linear-gradient(90deg, var(--brand-dark), #9a1830);
  color: #ffffff;
}

.review-submit:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.review-view-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 22px;
  color: #f59e0b;
}

.review-view-stars span {
  margin-left: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--title-color);
}

.review-view-text {
  margin: 0;
  font-size: 14px;
  color: var(--body-color);
  line-height: 1.55;
}

.review-view-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.review-view-photos img {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.order-item__rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.order-item__rating .stars i {
  color: #f59e0b;
  font-size: 13px;
}

.order-item__view {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}

.order-item__view:hover {
  text-decoration: underline;
}

/* ===================================================================
   8. Order detail page
   =================================================================== */

.od-page .od-main {
  padding-bottom: 32px;
}

@media (min-width: 1200px) {
  .od-page .od-main,
  .xod-page .xod-main,
  .rex-page .rex-main,
  main.checkout-main {
    max-width: 1140px;
    margin-inline: auto;
  }
}

.od-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.od-topbar__start {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.od-topbar .od-invoice {
  margin-top: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

.od-topbar__eyebrow {
  margin: 0 0 2px;
  font-size: 13px;
  color: var(--muted);
}

.od-layout {
  align-items: flex-start;
}

.od-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}

.od-panel > .od-layout,
.od-panel > .rex-layout,
.od-panel > .checkout-layout {
  margin: 0;
}

.od-sidebar__stack {
  display: flex;
  flex-direction: column;
}

.od-left-col,
.od-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.od-address-summary-row {
  --bs-gutter-x: 16px;
  --bs-gutter-y: 0;
  width: 100%;
  margin: 0;
}

.od-address-summary-row .od-card,
.od-sidebar .od-card {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .od-page .od-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    margin: 0;
  }

  .od-page .od-left-col,
  .od-page .od-sidebar-col,
  .od-page .od-sidebar,
  .od-page .od-address-summary-row {
    display: contents;
  }

  .od-page .od-layout .od-progress-col,
  .od-page .od-layout .od-summary-col,
  .od-page .od-layout .od-address-col,
  .od-page .od-layout .od-main-col,
  .od-page .od-layout .od-sidebar__stack {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .od-page .od-main-col,
  .od-page .od-sidebar__stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .od-page .od-layout .od-card,
  .od-page .od-main-col .od-card,
  .od-page .od-sidebar__stack .od-card {
    margin-bottom: 0;
  }

  .xod-page .od-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    margin: 0;
  }

  .xod-page .od-left-col,
  .xod-page .od-sidebar-col,
  .xod-page .od-sidebar,
  .xod-page .xod-sidebar,
  .xod-page .od-address-summary-row {
    display: contents;
  }

  .xod-page .od-layout .od-summary-col,
  .xod-page .od-layout .od-address-col,
  .xod-page .od-layout .od-main-col,
  .xod-page .od-layout .od-sidebar__stack,
  .xod-page .od-layout .xod-compare,
  .xod-page .od-layout > .od-card {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .xod-page .od-main-col,
  .xod-page .od-sidebar__stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .xod-page .od-layout .od-card,
  .xod-page .od-main-col .od-card,
  .xod-page .od-sidebar__stack .od-card {
    margin-bottom: 0;
  }

  .od-panel {
    padding: 16px;
  }
}

.od-card,
.rex-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.od-card__title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--title-color);
}

.od-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.od-card__head .od-card__title {
  margin-bottom: 0;
}

/* Status hero */
.od-hero {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #fff 0%, var(--soft-bg) 100%);
  border-color: #f0d4d9;
}

.od-hero--success {
  background: linear-gradient(135deg, #fff 0%, #ecfdf3 100%);
  border-color: #bbf7d0;
}

.od-hero__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #ffffff;
  font-size: 20px;
}

.od-hero--success .od-hero__icon {
  background: #16a34a;
}

.od-hero__body {
  flex: 1 1 auto;
  min-width: 0;
}

.od-hero__eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.od-hero--success .od-hero__eyebrow {
  color: #16a34a;
}

.od-hero__title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--title-color);
  line-height: 1.3;
}

.od-hero__text {
  margin: 0;
  font-size: 14px;
  color: var(--body-color);
  line-height: 1.45;
}

.od-hero__cta {
  align-self: center;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 16px;
}

.od-progress-col {
  width: 100%;
}

.od-progress-col .od-card {
  display: block !important;
  margin-bottom: 0;
}

.od-progress-col .od-progress {
  display: flex;
}

.od-progress-col .od-timeline {
  display: flex;
}

@media (min-width: 768px) {
  .od-progress-col .od-timeline {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  .od-progress-col .od-progress {
    display: none !important;
  }
}

/* Horizontal progress (Shop) */
.od-progress {
  display: none;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
}

.od-progress__step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.od-progress__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  left: calc(50% + 16px);
  width: calc(100% - 32px);
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.od-progress__step.is-done:not(:last-child)::after {
  background: var(--brand);
}

.od-progress__dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #ffffff;
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}

.od-progress__step.is-done .od-progress__dot,
.od-progress__step.is-active .od-progress__dot {
  border-color: var(--brand);
  background: var(--brand);
}

.od-progress__step.is-pending .od-progress__dot {
  background: #ffffff;
  color: var(--muted);
}

.od-progress__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--title-color);
  line-height: 1.3;
}

.od-progress__step.is-pending .od-progress__label {
  color: var(--muted);
}

.od-progress__date {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* Shipment card */
.od-shipment__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.od-shipment__items {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--light-bg);
  overflow: hidden;
}

.od-shipment__items .order-item {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 14px;
}

.od-shipment__items .order-item + .order-item {
  border-top: 1px solid var(--line);
}

.order-item__price {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--title-color);
}

.od-post__prompt {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--body-color);
}

.od-invoice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--title-color);
  text-decoration: none;
}

.od-invoice:hover {
  color: var(--brand);
}

.od-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.od-badge--placed {
  background: var(--soft-bg);
  color: var(--brand);
  border: 1px solid #f0d4d9;
}

.od-badge--transit {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.od-badge--delivered {
  background: #ecfdf3;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.card-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eff6ff;
  border-color: #dbeafe;
  color: #1e40af;
}

.card-tip i {
  flex: 0 0 auto;
  font-size: 18px;
}

.card-tip p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

/* Service center */
.od-service-center .od-card__title {
  margin-bottom: 10px;
}

.od-service-center__provider {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.od-service-center__provider strong {
  color: var(--title-color);
  font-weight: 700;
}

.od-service-center__note {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--body-color);
  line-height: 1.45;
}

.od-service-center__note a {
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.od-service-center__note a:hover {
  text-decoration: underline;
}

.od-service-center__list {
  margin: 0 0 16px;
  padding-left: 18px;
  font-size: 14px;
  color: var(--body-color);
  line-height: 1.5;
}

.od-service-center__list li + li {
  margin-top: 4px;
}

.od-service-center__contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.od-service-center__contact {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--title-color);
  text-decoration: none;
  transition: color 0.15s ease;
}

.od-service-center__contact:hover {
  color: var(--brand);
}

.od-service-center__icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--soft-bg);
  color: var(--brand);
  font-size: 16px;
}

.od-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--title-color);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.od-link:hover {
  background: var(--soft-bg);
  border-color: #d1d5db;
  color: var(--title-color);
  text-decoration: none;
}

.od-text-link {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  cursor: pointer;
}

.od-text-link:hover {
  text-decoration: underline;
  color: var(--brand-dark);
}

.od-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.od-meta__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  font-size: 14px;
}

.od-meta__label {
  color: var(--muted);
  flex: 0 0 auto;
}

.od-meta__value {
  color: var(--title-color);
  font-weight: 600;
  text-align: right;
}

/* Vertical timeline (mobile) */
.od-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.od-step {
  display: flex;
  gap: 12px;
  position: relative;
  padding-bottom: 18px;
}

.od-step:last-child {
  padding-bottom: 0;
}

.od-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.od-step.is-done:not(:last-child)::before {
  background: var(--brand);
}

.od-step__dot {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #ffffff;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

.od-step.is-done .od-step__dot,
.od-step.is-active .od-step__dot {
  border-color: var(--brand);
  background: var(--brand);
}

.od-step.is-pending .od-step__dot {
  background: #ffffff;
}

.od-step__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.od-step__body strong {
  font-size: 14px;
  color: var(--title-color);
}

.od-step.is-pending .od-step__body strong {
  color: var(--muted);
}

.od-step__body span,
.od-step__body em {
  font-size: 13px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
}

.od-step__notice {
  display: block;
  margin-top: 4px;
  color: #16a34a !important;
  font-weight: 500;
}

.od-post {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.od-post__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.od-post__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.od-post__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--title-color);
  margin-bottom: 6px;
}

.od-post__sub {
  display: block;
  font-size: 13px;
  color: var(--body-color);
}

.od-post__stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 16px;
}

.od-post__stars--empty {
  color: #9ca3af;
}

.od-post__stars--filled {
  color: #f59e0b;
}

.od-post__stars--filled small {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--title-color);
}

.od-address-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.od-address-card i {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--soft-bg);
  color: var(--brand);
  font-size: 16px;
}

.od-address-card strong {
  display: block;
  font-size: 14px;
  color: var(--title-color);
  margin-bottom: 4px;
}

.od-address-card p,
.od-address-card span {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--body-color);
}

.od-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.od-sidebar .od-card {
  margin-bottom: 16px;
}

.od-sidebar__actions {
  flex-direction: column;
  gap: 10px;
}

.od-price__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--body-color);
  margin-bottom: 10px;
}

.od-price__divider {
  border: 0;
  border-top: 1px dashed var(--line);
  margin: 4px 0 12px;
}

.od-price__row--total {
  font-size: 18px;
  font-weight: 700;
  color: var(--title-color);
  margin-bottom: 4px;
}

.od-price__note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.od-help-text {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--body-color);
  line-height: 1.45;
}

.od-help-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--title-color);
  text-decoration: none;
}

.od-help-link:hover {
  color: var(--brand);
}

.od-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  font-size: 15px;
  font-weight: 700;
  color: var(--title-color);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.od-action:hover {
  background: var(--light-bg);
  border-color: #d1d5db;
  color: var(--title-color);
}

.od-action--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.od-action--primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #ffffff;
}

.od-action--cancel:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Mobile sticky bar */
.od-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  background: #ffffff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 14px rgba(17, 24, 39, 0.08);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
}

.od-bar__price {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex: 0 0 auto;
}

.od-bar__price strong {
  font-size: 18px;
  color: var(--title-color);
}

.od-bar__btn {
  flex: 1 1 auto;
  padding-top: 12px;
  padding-bottom: 12px;
  text-decoration: none;
}

.od-bar__btn--cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  font-size: 15px;
  font-weight: 700;
  color: var(--title-color);
}

.od-bar__btn--cancel:hover {
  background: var(--light-bg);
  border-color: var(--brand);
  color: var(--brand);
}

.od-bar__label {
  font-size: 12px;
  color: var(--muted);
}

body[data-order-status="delivered"] .od-progress-col,
body[data-order-status="reviewed"] .od-progress-col {
  display: none !important;
}

/* Status-based visibility */
.od-state {
  display: none !important;
}

body[data-order-status="placed"] .od-state--placed,
body[data-order-status="shipped"] .od-state--shipped,
body[data-order-status="delivered"] .od-state--delivered,
body[data-order-status="reviewed"] .od-state--reviewed {
  display: block !important;
}

body[data-order-status="placed"] .od-bar .od-state--placed,
body[data-order-status="shipped"] .od-bar .od-state--shipped,
body[data-order-status="delivered"] .od-bar .od-state--delivered,
body[data-order-status="reviewed"] .od-bar .od-state--reviewed,
body[data-order-status="placed"] .od-sidebar__actions .od-state--placed,
body[data-order-status="shipped"] .od-sidebar__actions .od-state--shipped,
body[data-order-status="delivered"] .od-sidebar__actions .od-state--delivered,
body[data-order-status="reviewed"] .od-sidebar__actions .od-state--reviewed {
  display: flex !important;
}

body[data-order-status="delivered"] .od-invoice.od-state--delivered,
body[data-order-status="reviewed"] .od-invoice.od-state--reviewed {
  display: inline-flex !important;
}

body[data-order-status="placed"] .od-link.od-state--placed,
body[data-order-status="shipped"] .od-link.od-state--shipped,
body[data-order-status="delivered"] .od-link.od-state--delivered,
body[data-order-status="reviewed"] .od-link.od-state--reviewed,
body[data-order-status="placed"] button.od-link.od-state--placed,
body[data-order-status="shipped"] button.od-link.od-state--shipped,
body[data-order-status="delivered"] button.od-link.od-state--delivered,
body[data-order-status="reviewed"] button.od-link.od-state--reviewed {
  display: inline-flex !important;
}

body[data-order-status="placed"] .od-hero.od-state--placed,
body[data-order-status="shipped"] .od-hero.od-state--shipped {
  display: flex !important;
}

body[data-order-status="delivered"] .od-hero.od-state--delivered,
body[data-order-status="reviewed"] .od-hero.od-state--delivered {
  display: flex !important;
}

.od-badge.od-state {
  display: none !important;
}

body[data-order-status="placed"] .od-badge.od-state--placed,
body[data-order-status="shipped"] .od-badge.od-state--shipped,
body[data-order-status="delivered"] .od-badge.od-state--delivered,
body[data-order-status="reviewed"] .od-badge.od-state--reviewed {
  display: inline-flex !important;
}

/* Placed vs shipped hero text */
body[data-order-status="placed"] .od-hero__eyebrow--shipped,
body[data-order-status="placed"] .od-hero__title--shipped,
body[data-order-status="placed"] .od-hero__text--shipped,
body[data-order-status="shipped"] .od-hero__eyebrow--placed,
body[data-order-status="shipped"] .od-hero__title--placed,
body[data-order-status="shipped"] .od-hero__text--placed {
  display: none;
}

body[data-order-status="delivered"] .od-only-reviewed,
body[data-order-status="placed"] .od-only-reviewed,
body[data-order-status="shipped"] .od-only-reviewed {
  display: none !important;
}

body[data-order-status="reviewed"] .od-only-delivered,
body[data-order-status="placed"] .od-only-delivered,
body[data-order-status="shipped"] .od-only-delivered,
body[data-order-status="reviewed"] .od-review-add {
  display: none !important;
}

body[data-order-status="reviewed"] .od-only-reviewed.od-post__stars--filled,
body[data-order-status="reviewed"] .od-only-reviewed.od-link,
body[data-order-status="reviewed"] .od-only-reviewed.order-cta,
body[data-order-status="reviewed"] button.od-only-reviewed {
  display: inline-flex !important;
}

@media (min-width: 768px) {
  .od-progress {
    display: flex;
  }

  .od-timeline {
    display: none;
  }

  .od-hero {
    align-items: center;
  }
}

@media (min-width: 992px) {
  .od-panel .od-sidebar-col,
  .od-panel .rex-layout > .col-lg-4,
  .od-panel .checkout-layout > .col-lg-4 {
    position: sticky;
    top: 92px;
    align-self: flex-start;
    height: fit-content;
  }

  .od-sidebar {
    position: sticky;
    top: 92px;
  }
}

@media (max-width: 991.98px) {
  .od-page .od-main {
    padding-bottom: 92px !important;
  }

  .od-hero {
    flex-wrap: wrap;
  }

  .od-hero__cta {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .od-card {
    padding: 16px;
  }

  .od-hero__title {
    font-size: 18px;
  }
}

/* ===================================================================
   9. Return / exchange page
   =================================================================== */

.rex-main {
  padding-bottom: 24px;
}

.rex-section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--title-color);
  margin: 0 0 14px;
}

.rex-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.rex-card__head .rex-section-title {
  margin-bottom: 0;
}

/* Product card */
.rex-product {
  padding: 0;
  overflow: hidden;
}

.rex-product__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.rex-product__link:hover {
  background: var(--light-bg);
}

.rex-product__link img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid var(--line);
}

.rex-product__info {
  flex: 1 1 auto;
  min-width: 0;
}

.rex-product__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--title-color);
  line-height: 1.35;
}

.rex-product__meta,
.rex-product__note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.rex-product__chevron {
  flex: 0 0 auto;
  font-size: 16px;
  color: var(--muted);
}

/* Request type toggle */
.rex-type-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rex-type-toggle__option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.rex-type-toggle__option i {
  font-size: 22px;
}

.rex-type-toggle__option.is-active,
.rex-type-toggle__option:has(.rex-type-toggle__input:checked) {
  border-color: var(--brand);
  background: var(--soft-bg);
  color: var(--brand);
}

.rex-type-toggle__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Reason list */
.rex-reasons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rex-reason {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.rex-reason:hover {
  background: var(--light-bg);
}

.rex-reason:has(.rex-reason__input:checked) {
  border-color: var(--brand);
  background: var(--soft-bg);
}

.rex-reason__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rex-reason__text {
  font-size: 14px;
  font-weight: 600;
  color: var(--title-color);
}

.rex-reason__check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #ffffff;
  background: var(--brand);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.rex-reason:has(.rex-reason__input:checked) .rex-reason__check {
  opacity: 1;
}

/* Upload evidence */
.rex-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft-bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
}

.rex-field__sub {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.rex-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 120px;
  border: 1px dashed var(--brand);
  border-radius: 12px;
  background: #ffffff;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.rex-upload i {
  font-size: 28px;
}

.rex-upload:hover {
  background: var(--soft-bg);
}

.rex-upload-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--light-bg);
}

.rex-upload-preview__thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--title-color);
}

.rex-upload-preview__thumb i {
  flex: 0 0 auto;
  font-size: 24px;
  color: var(--brand);
}

.rex-upload-preview__thumb span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rex-upload-preview__remove {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: var(--title-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.rex-upload-preview__remove:hover {
  background: var(--soft-bg);
  color: var(--brand);
}

/* Comments */
.rex-textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  color: var(--title-color);
  resize: vertical;
  min-height: 110px;
}

.rex-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(201, 40, 70, 0.15);
}

.rex-char-count {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

/* Refund options */
.rex-refund-note {
  margin: 0;
  font-size: 13px;
  color: var(--body-color);
  line-height: 1.5;
}

.rex-refund-section .pay-option--group {
  margin-bottom: 12px;
}

.rex-refund-section .pay-option--group:last-child {
  margin-bottom: 0;
}

.rex-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--title-color);
}

/* Exchange options */
.rex-variant + .rex-variant {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.rex-variant__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.rex-variant__label {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--title-color);
}

.rex-variant__color-label {
  margin: 0;
  font-size: 14px;
  color: var(--body-color);
}

.rex-swatch-wrap {
  position: relative;
  border-radius: 6px;
  cursor: pointer;
}

.rex-exchange-section .rex-swatch {
  width: 80px;
  height: 80px;
}

.rex-swatch-wrap.active .rex-swatch,
.rex-swatch-wrap .rex-swatch.active {
  border: 2px solid var(--brand-color);
}

.rex-swatch__check {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #ffffff;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.rex-swatch-wrap.active .rex-swatch__check {
  opacity: 1;
}

.rex-summary__free {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #16a34a;
  letter-spacing: 0.02em;
}

/* Sidebar */
.rex-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rex-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  font-size: 14px;
  color: var(--body-color);
  margin-bottom: 10px;
}

.rex-summary__row--total {
  font-size: 16px;
  font-weight: 700;
  color: var(--title-color);
  margin-bottom: 12px;
}

.rex-summary__divider {
  margin: 12px 0;
  border: 0;
  border-top: 1px dashed var(--line);
}

.rex-summary__breakdown {
  padding-top: 4px;
  margin-bottom: 12px;
}

.rex-summary__breakdown .rex-summary__row {
  font-size: 13px;
  color: var(--muted);
}

.rex-summary__note {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #16a34a;
  line-height: 1.45;
}

.rex-help-text {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--body-color);
  line-height: 1.45;
}

.rex-help-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.rex-help-link:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.rex-submit {
  min-height: 48px;
  font-size: 15px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
}

/* Mobile sticky bar */
.rex-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #ffffff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

/* Success modal */
.rex-success-dialog {
  max-width: 440px;
}

.rex-success {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
}

.rex-success__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.rex-success__body {
  padding: 36px 28px 28px;
  text-align: center;
}

.rex-success__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #16a34a;
  color: #ffffff;
  font-size: 32px;
}

.rex-success__title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--title-color);
}

.rex-success__text {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

@media (min-width: 992px) {
  .rex-sidebar {
    position: sticky;
    top: 92px;
  }

  .rex-submit {
    margin-top: 4px;
  }
}

@media (max-width: 991.98px) {
  .rex-page .rex-main {
    padding-bottom: 88px !important;
  }
}

@media (max-width: 575.98px) {
  .rex-card {
    padding: 16px;
  }

  .rex-type-toggle__option {
    min-height: 84px;
    font-size: 14px;
  }
}

/* ===================================================================
   10. Exchange order detail page
   =================================================================== */

.xod-page .xod-main {
  padding-bottom: 32px;
}

.xod-sidebar {
  display: flex;
  flex-direction: column;
}

.xod-compare__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.xod-compare__item {
  min-width: 0;
  text-align: center;
}

.xod-compare__label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.xod-compare__item img {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  margin-bottom: 10px;
}

.xod-compare__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--title-color);
  line-height: 1.35;
}

.xod-compare__meta {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.xod-compare__swap {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--soft-bg);
  color: var(--brand);
  font-size: 18px;
}

/* Exchange tracking timeline */
.xod-page .xod-timeline {
  display: flex !important;
}

.xod-timeline .od-step.is-done:not(:last-child)::before,
.xod-timeline .od-step.is-active:not(:last-child)::before {
  background: #16a34a;
}

.xod-timeline .od-step.is-done .od-step__dot,
.xod-timeline .od-step.is-active .od-step__dot {
  border-color: #16a34a;
  background: #16a34a;
}

.xod-timeline .od-step.is-pending .od-step__body strong {
  color: var(--title-color);
}

.xod-detail {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--light-bg);
}

.xod-detail__row {
  padding: 16px 18px;
  background: #ffffff;
}

.xod-detail__row + .xod-detail__row {
  border-top: 1px solid var(--line);
}

.xod-detail__label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.xod-detail__value {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--title-color);
  margin-bottom: 4px;
  line-height: 1.4;
}

.xod-detail__sub {
  margin: 0;
  font-size: 14px;
  color: var(--body-color);
  line-height: 1.45;
}

.xod-evidence {
  position: relative;
  display: block;
  width: 100px;
  height: 100px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  cursor: pointer;
}

.xod-evidence img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xod-evidence__play {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font-size: 28px;
}

@media (min-width: 768px) {
  .xod-detail {
    flex-direction: row;
    align-items: stretch;
  }

  .xod-detail__row {
    flex: 1 1 0;
    min-width: 0;
  }

  .xod-detail__row + .xod-detail__row {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .xod-detail__row--evidence {
    flex: 0 0 180px;
  }
}

.xod-continue {
  min-height: 48px;
  font-size: 15px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.xod-continue-outline {
  min-height: 48px;
  border: 1px solid var(--brand);
  background: #ffffff;
  color: var(--brand);
  font-size: 15px;
  font-weight: 700;
}

.xod-continue-outline:hover {
  background: var(--soft-bg);
  color: var(--brand-dark);
  border-color: var(--brand-dark);
}

.xod-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #ffffff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
  .xod-page .xod-timeline {
    display: flex !important;
  }
}

@media (min-width: 992px) {
  .xod-sidebar {
    position: sticky;
    top: 92px;
  }
}

@media (max-width: 991.98px) {
  .xod-page .xod-main {
    padding-bottom: 88px !important;
  }
}

@media (max-width: 767.98px) {
  .xod-compare__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .xod-compare__swap {
    transform: rotate(90deg);
    margin: 0 auto;
  }
}

/* ===================================================================
   11. Return order detail page
   =================================================================== */

.rod-page .xod-main {
  padding-bottom: 32px;
}

.rod-product-card {
  padding: 0;
}

.rod-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
}

.rod-product:hover {
  color: inherit;
}

.rod-product img {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.rod-product__info {
  min-width: 0;
  flex: 1 1 auto;
}

.rod-product__title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--title-color);
  line-height: 1.35;
  margin-bottom: 4px;
}

.rod-product__meta {
  margin: 0 0 2px;
  font-size: 13px;
  color: var(--muted);
}

.rod-product__note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.rod-product__chevron {
  flex: 0 0 auto;
  font-size: 16px;
  color: var(--muted);
}

.rod-refund__text {
  margin: 0;
  font-size: 14px;
  color: var(--body-color);
  line-height: 1.45;
}

.rod-refund__text strong {
  font-weight: 700;
  color: var(--title-color);
}

.rod-refund__date {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--body-color);
}

.rod-refund-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f5f6ff;
  border: 1px solid #e8eaf7;
}

.rod-refund-breakdown__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--body-color);
  line-height: 1.4;
}

.rod-refund-breakdown__row strong {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--title-color);
}

.rod-refund-success .od-card__title {
  margin-bottom: 4px;
}

.rod-page .od-post__row {
  border-bottom: 0;
  padding-bottom: 0;
}

@media (min-width: 992px) {
  .rod-page .xod-sidebar {
    position: sticky;
    top: 92px;
  }
}

@media (max-width: 991.98px) {
  .rod-page .xod-main {
    padding-bottom: 88px !important;
  }
}

/* ===================================================================
   12. Guest checkout flow
   =================================================================== */

.guest-page .guest-main {
  padding-bottom: 32px;
}

.guest-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.guest-banner i {
  flex: 0 0 auto;
  font-size: 20px;
  margin-top: 2px;
}

.guest-banner__title {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--title-color);
}

.guest-banner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--body-color);
}

.guest-banner a {
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.guest-banner a:hover {
  text-decoration: underline;
}

.guest-banner--info {
  background: #eff6ff;
  border-color: #dbeafe;
  color: #1e40af;
}

.guest-banner--success {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #15803d;
}

.guest-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.guest-header-actions a {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.co-verified-mobile {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.co-verified-mobile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.co-verified-mobile__label {
  margin: 0;
}

.co-verified-mobile__input {
  background: var(--light-bg);
  color: var(--title-color);
  cursor: default;
}

.co-verified-mobile__input:focus {
  border-color: var(--line);
  box-shadow: none;
}

.co-verified-mobile__note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.co-verified-mobile__change {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
}

.co-verified-mobile__change:hover {
  text-decoration: underline;
  color: var(--brand-dark);
}

.guest-header-actions a:hover {
  text-decoration: underline;
}

.guest-lookup-card {
  max-width: 520px;
  margin: 0 auto;
}

.guest-lookup-card .auth-input {
  margin-bottom: 0;
}

.guest-confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ecfdf3;
  color: #16a34a;
  font-size: 32px;
  margin-bottom: 16px;
}

.guest-confirm-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--title-color);
}

.guest-confirm-text {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--body-color);
  line-height: 1.5;
}

.guest-confirm-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--light-bg);
  border: 1px solid var(--line);
  text-align: left;
}

.guest-confirm-meta span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--body-color);
}

.guest-confirm-meta strong {
  color: var(--title-color);
  font-weight: 700;
}

.guest-form-section + .guest-form-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.guest-app-cta {
  padding: 16px;
  border-radius: 12px;
  background: var(--light-bg);
  border: 1px solid var(--line);
}

.guest-app-cta__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.guest-app-cta__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--brand);
  font-size: 20px;
}

.guest-app-cta__title {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--title-color);
}

.guest-app-cta__text {
  margin: 0;
  font-size: 13px;
  color: var(--body-color);
  line-height: 1.45;
}

.guest-app-cta__stores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.guest-app-cta__store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--title-color);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.guest-app-cta__store:hover {
  border-color: var(--border-color);
  color: var(--title-color);
  background: var(--light-bg);
}

.guest-app-cta__store i {
  font-size: 16px;
  color: var(--title-color);
}

.guest-app-modal {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
}

.guest-app-modal .modal-body {
  padding: 8px 24px 28px;
}

.guest-app-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--soft-bg);
  border: 1px solid var(--line);
  color: var(--brand);
  font-size: 26px;
}

.guest-app-modal__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--title-color);
}

.guest-app-modal__text {
  margin: 0 auto 20px;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--body-color);
}

.guest-app-modal .guest-app-cta__stores {
  justify-content: center;
}

@media (max-width: 991.98px) {
  .guest-page.checkout-main,
  .guest-page .guest-main {
    padding-bottom: 88px !important;
  }
}

/* Guest product detail — app download CTA (this page only) */
.guest-product-detail-page .gpd-app-cta {
  --gpd-cta-ink: #14090c;
  --gpd-cta-ink-soft: #1e1014;
  --gpd-cta-rose: #e84a66;
  margin-top: 12px;
  margin-bottom: 36px;
  padding-top: 32px;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
}

.guest-product-detail-page .gpd-app-cta__panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  min-height: 320px;
  padding: clamp(32px, 4vw, 52px) clamp(28px, 4vw, 56px);
  border-radius: 24px;
  background:
    linear-gradient(115deg, rgba(201, 40, 70, 0.22) 0%, transparent 42%),
    linear-gradient(180deg, var(--gpd-cta-ink-soft) 0%, var(--gpd-cta-ink) 100%);
  color: #ffffff;
  isolation: isolate;
}

.guest-product-detail-page .gpd-app-cta__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.04) 40%,
    rgba(201, 40, 70, 0.35)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.guest-product-detail-page .gpd-app-cta__glow {
  position: absolute;
  right: -8%;
  top: 50%;
  width: min(420px, 55%);
  height: 140%;
  transform: translateY(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(201, 40, 70, 0.38) 0%,
    rgba(201, 40, 70, 0.12) 42%,
    transparent 70%
  );
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
  animation: gpd-cta-glow 6s ease-in-out infinite;
}

.guest-product-detail-page .gpd-app-cta__copy,
.guest-product-detail-page .gpd-app-cta__scan {
  position: relative;
  z-index: 1;
}

.guest-product-detail-page .gpd-app-cta__brand {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--gpd-cta-rose);
  animation: gpd-cta-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.guest-product-detail-page .gpd-app-cta__title {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #ffffff;
  animation: gpd-cta-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.guest-product-detail-page .gpd-app-cta__text {
  margin: 0 0 28px;
  max-width: 34ch;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
  animation: gpd-cta-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.guest-product-detail-page .gpd-app-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: gpd-cta-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.guest-product-detail-page .gpd-app-cta__store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 152px;
  padding: 11px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  text-decoration: none;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.guest-product-detail-page .gpd-app-cta__store:hover {
  color: #111827;
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.guest-product-detail-page .gpd-app-cta__store:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.guest-product-detail-page .gpd-app-cta__store i {
  font-size: 26px;
  line-height: 1;
}

.guest-product-detail-page .gpd-app-cta__store span {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.guest-product-detail-page .gpd-app-cta__store small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #6b7280;
}

.guest-product-detail-page .gpd-app-cta__store strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.guest-product-detail-page .gpd-app-cta__scan {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 22px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: gpd-cta-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.guest-product-detail-page .gpd-app-cta__scan-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.guest-product-detail-page .gpd-app-cta__scan-label i {
  font-size: 15px;
  color: var(--gpd-cta-rose);
}

.guest-product-detail-page .gpd-app-cta__qrs {
  display: flex;
  gap: 14px;
}

.guest-product-detail-page .gpd-app-cta__qr {
  margin: 0;
  padding: 12px 12px 10px;
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.guest-product-detail-page .gpd-app-cta__qr:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.guest-product-detail-page .gpd-app-cta__qr img {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 8px;
}

.guest-product-detail-page .gpd-app-cta__qr figcaption {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #111827;
}

.guest-product-detail-page .gpd-app-cta__qr figcaption i {
  font-size: 13px;
}

@keyframes gpd-cta-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gpd-cta-glow {
  0%,
  100% {
    opacity: 0.85;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.06);
  }
}

@media (min-width: 992px) {
  .guest-product-detail-page .gpd-app-cta {
    margin-bottom: 48px;
    padding-top: 40px;
  }

  .guest-product-detail-page .gpd-app-cta__qr img {
    width: 132px;
    height: 132px;
  }
}

@media (max-width: 991.98px) {
  .guest-product-detail-page .guest-main {
    padding-bottom: 24px !important;
  }

  .guest-product-detail-page .gpd-app-cta {
    margin-bottom: 28px;
    padding-bottom: 88px;
  }

  .guest-product-detail-page .gpd-app-cta__panel {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
  }

  .guest-product-detail-page .gpd-app-cta__text {
    max-width: none;
    margin-bottom: 22px;
  }

  .guest-product-detail-page .gpd-app-cta__glow {
    width: 80%;
    right: -20%;
    top: auto;
    bottom: -30%;
    height: 70%;
    transform: none;
  }
}

@media (max-width: 575.98px) {
  .guest-product-detail-page .gpd-app-cta__panel {
    padding: 28px 20px 24px;
    border-radius: 20px;
  }

  .guest-product-detail-page .gpd-app-cta__title br {
    display: none;
  }

  .guest-product-detail-page .gpd-app-cta__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .guest-product-detail-page .gpd-app-cta__store {
    min-width: 0;
    padding: 10px 12px;
  }

  .guest-product-detail-page .gpd-app-cta__store i {
    font-size: 22px;
  }

  .guest-product-detail-page .gpd-app-cta__store strong {
    font-size: 12px;
  }

  .guest-product-detail-page .gpd-app-cta__scan {
    padding: 18px 14px;
  }

  .guest-product-detail-page .gpd-app-cta__qrs {
    width: 100%;
    justify-content: center;
  }

  .guest-product-detail-page .gpd-app-cta__qr {
    flex: 1 1 0;
    max-width: 148px;
  }

  .guest-product-detail-page .gpd-app-cta__qr img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guest-product-detail-page .gpd-app-cta__brand,
  .guest-product-detail-page .gpd-app-cta__title,
  .guest-product-detail-page .gpd-app-cta__text,
  .guest-product-detail-page .gpd-app-cta__actions,
  .guest-product-detail-page .gpd-app-cta__scan,
  .guest-product-detail-page .gpd-app-cta__glow,
  .guest-product-detail-page .gpd-app-cta__qr,
  .guest-product-detail-page .gpd-app-cta__store {
    animation: none;
    transition: none;
  }
}

/* ===================================================================
   11. Electronics category page
   =================================================================== */

.cat-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}

.cat-breadcrumb a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}

.cat-breadcrumb a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.cat-breadcrumb i {
  font-size: 11px;
  color: #9ca3af;
}

.cat-breadcrumb span {
  color: var(--title-color);
  font-weight: 600;
}

.cat-page-head h1 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: var(--title-color);
}

.cat-page-head p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 640px;
}

.elec-dept-grid {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 6px;
  scrollbar-width: none;
  cursor: grab;
}

.elec-dept-grid::-webkit-scrollbar {
  display: none;
}

.elec-dept-grid.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.elec-dept-grid.is-dragging img {
  pointer-events: none;
  user-select: none;
}

.elec-dept {
  flex: 1 0 96px;
  min-width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  text-decoration: none;
  color: var(--text);
  border-radius: 14px;
  border: 1px solid transparent;
  scroll-snap-align: start;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.elec-dept:hover {
  background: var(--soft-bg);
  border-color: #f0d5d9;
  transform: translateY(-2px);
  color: var(--brand);
}

.elec-dept__media {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #f3f4f6;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.06);
}

.elec-dept__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.elec-dept:hover .elec-dept__media img {
  transform: scale(1.06);
}

.elec-dept__name {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
}

@media (min-width: 576px) {
  .elec-dept {
    flex-basis: 108px;
    min-width: 108px;
    padding: 12px 6px;
  }

  .elec-dept__media {
    width: 96px;
    height: 96px;
  }
}

@media (min-width: 992px) {
  .elec-dept {
    flex: 1 0 110px;
    min-width: 110px;
    padding: 8px 4px 10px;
  }

  .elec-dept__media {
    width: 104px;
    height: 104px;
  }
}

.cat-page-head__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cat-filter-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 12px;
}

.cat-filter-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff5f7;
}

.cat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.cat-results {
  min-width: 0;
  max-width: 100%;
}

.plp-filter-panel-head {
  display: none;
}

.plp-filter-toggle {
  display: none;
  flex-shrink: 0;
}

.plp-head-tools {
  display: none;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
}

.plp-sort-toggle {
  display: none;
  flex-shrink: 0;
}

.plp-tools {
  margin-bottom: 14px;
}

@media (min-width: 992px) {
  .cat-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
  }

  .cat-layout > .sr-filter-backdrop,
  .plp-filter-panel-head,
  .plp-filter-toggle,
  .plp-head-tools,
  .plp-sort-toggle {
    display: none !important;
  }

  .plp-tools {
    margin-bottom: 14px;
  }

  .plp-tools .sr-sort--trigger .sr-sort__btn {
    display: none;
  }

  .plp-tools .sr-sort--trigger .sr-sort__text {
    display: inline;
  }

  .plp-toolbar {
    display: flex;
  }

  .cat-filters {
    position: sticky;
    top: 120px;
  }

  .cat-filters .shop-filters {
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
  }

  .cat-filters .shop-filters::-webkit-scrollbar {
    width: 6px;
  }

  .cat-filters .shop-filters::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
  }

  .cat-filters .shop-filters::-webkit-scrollbar-track {
    background: transparent;
  }
}

@media (max-width: 991.98px) {
  .cat-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cat-results {
    grid-column: 1 / -1;
  }

  .cat-page-head__row {
    align-items: center;
  }

  .sr-head__row:has(.plp-head-tools) {
    align-items: flex-start;
    gap: 8px;
  }

  .sr-head__row:has(.plp-head-tools) > :first-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  .sr-head:has(.plp-head-tools) .sr-head__title {
    font-size: 1.125rem;
    line-height: 1.25;
  }

  .sr-head:has(.plp-head-tools) .sr-head__meta {
    font-size: 12px;
    line-height: 1.35;
  }

  .plp-head-tools {
    display: inline-flex;
    margin-top: 1px;
  }

  .plp-filter-toggle,
  .plp-sort-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: auto;
    min-height: 32px;
    padding: 5px 9px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    user-select: none;
  }

  .plp-filter-toggle:hover,
  .plp-sort-toggle:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: #fff5f7;
  }

  .plp-sort-toggle.sr-sort {
    position: relative;
    margin: 0;
    overflow: hidden;
    color: var(--text);
  }

  .plp-sort-toggle.sr-sort:hover {
    color: var(--brand);
  }

  .plp-sort-toggle .sr-sort__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: inherit;
  }

  .plp-sort-toggle .sr-sort__text {
    display: none;
  }

  .plp-sort-toggle select {
    position: absolute;
    inset: 0;
    width: 100%;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    border: 0;
    background: transparent;
  }

  .sr-toolbar.plp-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    margin-bottom: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .sr-toolbar.plp-toolbar .sr-toolbar__chips {
    flex: 1;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .sr-toolbar.plp-toolbar .sr-toolbar__chips::-webkit-scrollbar {
    display: none;
  }

  .sr-toolbar.plp-toolbar > .sr-sort {
    display: none;
  }

  .sr-head:has(.plp-head-tools) ~ .cat-layout .sr-filter-bar {
    display: none !important;
  }

  .sr-head:has(.plp-head-tools) ~ .cat-layout .sr-filter-shell {
    margin-bottom: 0;
  }

  .sr-filter-toggle__input:checked ~ .cat-layout {
    position: relative;
    z-index: 1100;
  }

  .cat-layout > .sr-filter-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1100;
    margin: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
  }

  .sr-filter-toggle__input:checked ~ .cat-layout > .sr-filter-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .cat-layout > .cat-filters {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1101;
    display: flex;
    flex-direction: column;
    width: min(340px, 88vw);
    max-width: 100%;
    margin: 0;
    padding: 16px;
    background: #ffffff;
    border: 0;
    border-radius: 0;
    box-shadow: -8px 0 28px rgba(15, 23, 42, 0.18);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.28s ease;
  }

  .sr-filter-toggle__input:checked ~ .cat-layout > .cat-filters {
    transform: translateX(0);
  }

  .plp-filter-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    margin: 0 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  .plp-filter-panel-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
  }

  .plp-filter-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    border: 0;
    border-radius: 8px;
    background: #f3f4f6;
    color: var(--text);
    cursor: pointer;
  }

  .plp-filter-close:hover {
    background: #e5e7eb;
  }

  .cat-layout > .cat-filters .shop-filters {
    max-height: none;
    overflow: visible;
  }

  .plp-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
  }

  .plp-tools .plp-filter-toggle {
    width: 100%;
    min-height: 44px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  }

  .plp-tools .sr-toolbar {
    display: contents;
    margin-bottom: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .plp-tools .sr-toolbar__chips {
    display: none;
  }

  .plp-tools .sr-sort--trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  }

  .plp-tools .sr-sort--trigger:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: #fff5f7;
  }

  .plp-tools .sr-sort--trigger .sr-sort__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .plp-tools .sr-sort--trigger .sr-sort__text {
    display: none;
  }

  .plp-tools .sr-sort--trigger select {
    position: absolute;
    inset: 0;
    width: 100%;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    border: 0;
    background: transparent;
  }

  .cat-page-head p {
    font-size: 13px;
  }

  .cat-page-head h1 {
    font-size: 1.35rem;
  }

  /* Touch-scroll categories; arrows crowd small screens */
  .carousel-shell:has(.elec-dept-grid) .carousel-nav {
    display: none;
  }

  .elec-dept-grid {
    gap: 2px;
    margin: 0 -4px;
    padding: 2px 4px 4px;
  }

  .elec-dept {
    flex: 0 0 84px;
    min-width: 84px;
    padding: 6px 2px;
    gap: 8px;
  }

  .elec-dept__media {
    width: 68px;
    height: 68px;
  }

  .elec-dept__name {
    font-size: 12px;
  }

  .content-card {
    padding: 12px;
    border-radius: 14px;
  }

  /* Keep product carousels inside the viewport */
  .product-carousel {
    margin: 0 -4px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .product-card {
    flex: 0 0 min(240px, 72vw);
  }

  .hero-card {
    border-radius: 14px;
  }

  .ad-banner {
    border-radius: 14px;
  }

  .hero-card img,
  .hero-card .hero-video {
    height: 220px;
  }

  .hero-content {
    left: 14px;
    right: 52px;
    bottom: 14px;
    max-width: none;
  }

  .hero-content h1 {
    margin-bottom: 8px;
    font-size: 1.4rem;
  }

  .hero-content .eyebrow {
    margin-bottom: 4px;
    font-size: 12px;
  }

  .hero-sub {
    display: none;
  }

  .hero-cta {
    padding: 8px 14px;
    font-size: 13px;
  }

  .hero-control {
    width: 36px;
  }

  .hero-control .carousel-control-prev-icon,
  .hero-control .carousel-control-next-icon {
    width: 28px;
    height: 28px;
  }

  .promo-card {
    padding: 12px;
  }

  .promo-card__title {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .plp-head-tools .plp-filter-toggle > span,
  .plp-head-tools .plp-sort-toggle .sr-sort__btn > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .plp-head-tools .plp-filter-toggle,
  .plp-head-tools .plp-sort-toggle {
    min-width: 32px;
    min-height: 32px;
    padding: 6px;
    gap: 0;
  }

  .sr-head:has(.plp-head-tools) .sr-head__title {
    font-size: 1.05rem;
  }
}

@media (max-width: 575.98px) {
  .cat-filter-toggle {
    padding: 7px 10px;
    font-size: 12px;
  }

  .hero-content {
    right: 44px;
  }

  .hero-content h1 {
    font-size: 1.25rem;
  }

  .carousel-shell .carousel-nav {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
}

.shop-filters {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px 16px;
}

.shop-filters--drawer {
  border: 0;
  border-radius: 0;
  padding: 8px 4px 24px;
}

.shop-filters__section {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.shop-filters__section:first-child {
  padding-top: 0;
}

.shop-filters__section:last-of-type {
  border-bottom: 0;
  padding-bottom: 4px;
}

.shop-filters__title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--title-color);
  line-height: 1.3;
}

.shop-filters__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-filters__links li + li {
  margin-top: 6px;
}

.shop-filters__links a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
}

.shop-filters__links a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* Amazon-style category tree (Department / Category) */
.shop-cat-tree {
  font-size: 14px;
  line-height: 1.35;
  color: var(--text);
}

.shop-cat-tree__back {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--text);
  text-decoration: none;
}

.shop-cat-tree__back:hover {
  color: var(--brand);
  text-decoration: underline;
}

.shop-cat-tree__back::before {
  content: "< ";
}

.shop-cat-tree__branch {
  margin-top: 2px;
  padding-left: 14px;
}

.shop-cat-tree__current {
  display: block;
  font-weight: 700;
  color: var(--title-color);
  margin-bottom: 6px;
}

.shop-cat-tree__children {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
}

.shop-cat-tree__children li + li {
  margin-top: 6px;
}

.shop-cat-tree__children a {
  display: block;
  color: var(--text);
  text-decoration: none;
}

.shop-cat-tree__children a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.shop-filters__check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  line-height: 1.35;
}

.shop-filters__check:last-of-type {
  margin-bottom: 0;
}

.shop-filters__check input {
  margin-top: 2px;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  accent-color: var(--brand);
  cursor: pointer;
}

.shop-filters__ratings {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shop-filters__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

.shop-filters__rating input {
  width: 14px;
  height: 14px;
  accent-color: var(--brand);
  cursor: pointer;
}

.shop-filters__stars {
  display: inline-flex;
  gap: 1px;
  color: #f59e0b;
  font-size: 13px;
  line-height: 1;
}

.shop-filters__stars .bi-star {
  color: #d1d5db;
}

.shop-filters__more {
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.shop-cat-tree .shop-filters__more {
  display: block;
}

.shop-filters__collapse-item[hidden] {
  display: none !important;
}

.shop-filters__more:hover {
  text-decoration: underline;
  color: var(--brand-dark);
}

.shop-filters__price-range {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.shop-filters__price-range .form-control {
  max-width: 72px;
  font-size: 12px;
  padding: 4px 6px;
}

.shop-filters__price-range span {
  color: var(--muted);
  font-size: 12px;
}

.shop-filters__go {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  color: var(--text);
  border-radius: 6px;
}

.shop-filters__go:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff5f7;
}

.shop-filters__clear {
  width: 100%;
  margin-top: 12px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: var(--text);
  border-radius: 8px;
}

.shop-filters__clear:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff5f7;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .cat-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }
}

/* ===================================================================
   12. Search results page
   =================================================================== */

.sr-head__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sr-head__title {
  margin: 0 0 4px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  color: var(--title-color);
  line-height: 1.3;
}

.sr-head__meta {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.sr-filter-shell {
  margin-bottom: 14px;
}

.sr-filter-toggle__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-filter-bar {
  display: none;
}

.sr-filter-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.sr-filter-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff5f7;
}

.sr-sort__btn {
  display: none;
}

.sr-sort__text {
  display: inline;
}

.sr-filter-backdrop {
  display: none;
}

.sr-toolbar__panel-head {
  display: none;
}

.sr-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.sr-toolbar--sticky {
  position: sticky;
  top: var(--shop-header-offset, 72px);
  z-index: 1020;
}

.sr-filter-shell.sr-toolbar--sticky {
  box-shadow: none;
}

.sr-filter-shell.sr-toolbar--sticky .sr-filter-bar {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  border-radius: 10px;
}

.sr-toolbar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sr-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sr-toolbar__clear {
  margin: 0;
  margin-right: auto;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sr-toolbar__clear:hover {
  color: var(--brand-dark, #9f1239);
}

.sr-toolbar__clear[hidden] {
  display: none !important;
}

.cat-layout--full {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 992px) {
  .cat-layout--full {
    grid-template-columns: minmax(0, 1fr);
  }
}

.sr-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  min-width: 0;
}

.sr-sort select {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  min-width: 160px;
  max-width: 100%;
}

@media (max-width: 991.98px) {
  .sr-filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0;
    background: transparent;
  }

  .sr-filter-bar .sr-filter-toggle,
  .sr-filter-bar .sr-sort--trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  }

  .sr-filter-bar .sr-sort--trigger {
    position: relative;
    overflow: hidden;
  }

  .sr-filter-bar .sr-sort--trigger .sr-sort__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .sr-filter-bar .sr-sort--trigger .sr-sort__text {
    display: none;
  }

  .sr-filter-bar .sr-sort--trigger select {
    position: absolute;
    inset: 0;
    width: 100%;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    border: 0;
    background: transparent;
  }

  .sr-filter-bar .sr-filter-toggle:hover,
  .sr-filter-bar .sr-sort--trigger:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: #fff5f7;
  }

  /* Sticky shell creates a stacking context below the header (1030).
     Raise it while the drawer is open so the panel sits above the header. */
  .sr-filter-shell.sr-toolbar--sticky {
    z-index: 1020;
  }

  .sr-filter-shell:has(.sr-filter-toggle__input:checked) {
    z-index: 1100;
  }

  .sr-filter-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1100;
    margin: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
  }

  .sr-filter-toggle__input:checked ~ .sr-filter-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .sr-filter-shell .sr-toolbar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1101;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
    width: min(340px, 88vw);
    max-width: 100%;
    margin: 0;
    padding: 16px;
    border: 0;
    border-radius: 0;
    box-shadow: -8px 0 28px rgba(15, 23, 42, 0.18);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.28s ease;
  }

  .sr-filter-toggle__input:checked ~ .sr-toolbar {
    transform: translateX(0);
  }

  .sr-toolbar__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line);
  }

  .sr-toolbar__panel-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
  }

  .sr-toolbar__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    border: 0;
    border-radius: 8px;
    background: #f3f4f6;
    color: var(--text);
    cursor: pointer;
  }

  .sr-toolbar__close:hover {
    background: #e5e7eb;
  }

  .sr-toolbar__filters {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sr-toolbar__clear {
    margin-right: 0;
    padding: 4px 0;
  }

  .sr-toolbar .sr-sort {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    white-space: normal;
  }

  .sr-toolbar .sr-sort span {
    font-size: 12px;
    font-weight: 600;
  }

  .sr-toolbar .sr-sort select {
    width: 100%;
    min-width: 0;
  }
}

@media (min-width: 992px) {
  .sr-filter-shell {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  }

  .sr-filter-bar {
    display: contents;
  }

  .sr-filter-toggle,
  .sr-filter-backdrop,
  .sr-toolbar__panel-head,
  .sr-sort--trigger .sr-sort__btn {
    display: none !important;
  }

  .sr-filter-shell .sr-toolbar {
    display: flex;
    position: static;
    transform: none;
    flex: 1;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .sr-sort--trigger {
    display: inline-flex;
    flex-shrink: 0;
    order: 3;
    margin-left: auto;
  }

  .sr-sort--trigger .sr-sort__text {
    display: inline;
  }

  .sr-sort--trigger select {
    position: static;
    opacity: 1;
    width: auto;
    min-width: 160px;
    height: auto;
  }
}

.sr-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sr-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.sr-item:hover {
  border-color: #f0d5d9;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
}

.sr-item__media {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
  align-self: start;
}

.sr-item__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.sr-item__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.sr-item__body .cart-item__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sr-item__body .cart-item__conditions {
  margin: 0;
}

.sr-item__body .cart-item__delivery {
  padding-top: 2px;
  border-top: 0;
}

.sr-item__body .cart-item__service {
  margin: 0;
  color: var(--muted);
}

.sr-deal {
  display: inline-flex;
  align-self: start;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #bbdefb;
  background: #e3f2fd;
  color: #1976d2;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.sr-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.sr-page {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sr-page:hover:not(:disabled):not(.active) {
  border-color: var(--brand);
  color: var(--brand);
}

.sr-page.active {
  border-color: var(--brand);
  background: #fff5f7;
  color: var(--brand);
}

.sr-page:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sr-page-gap {
  color: var(--muted);
  padding: 0 4px;
}

@media (min-width: 576px) {
  .sr-item {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
  }
}

@media (min-width: 768px) {
  .sr-item {
    grid-template-columns: 160px minmax(0, 1fr);
  }
}

/* Category browse + listing product grids */
.plp-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.plp-product-grid .product-card {
  flex: none;
  width: 100%;
  min-width: 0;
  container-type: inline-size;
  container-name: product-card;
}

.plp-see-all {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 28px 20px;
  background: linear-gradient(180deg, #fff8f9 0%, #ffffff 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.link {
  text-decoration: none;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
}

.plp-see-all__count {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

@media (min-width: 768px) {
  .plp-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .plp-see-all {
    flex-direction: row;
    gap: 24px;
    padding: 32px 28px;
  }

  .plp-see-all__count {
    font-size: 1.35rem;
  }
}

@media (min-width: 992px) {
  .plp-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .plp-product-grid--listing {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .plp-product-grid--listing {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Vendor storefront */
.vendor-store-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
}

.vendor-store-bar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.vendor-store-bar__logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}

.brand-logo-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #f8f7f4 100%);
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.brand-logo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px 16px;
  justify-items: center;
  padding: 8px 4px 4px;
}

.brand-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 120px;
  text-decoration: none;
  color: inherit;
}

.brand-logo-item__circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow:
    0 1px 2px rgba(17, 24, 39, 0.04),
    0 10px 24px rgba(17, 24, 39, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.brand-logo-item__circle img {
  width: 58%;
  height: 58%;
  object-fit: contain;
  display: block;
}

.brand-logo-item__name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1f2937;
  text-align: center;
  transition: color 0.2s ease;
}

.brand-logo-item:hover .brand-logo-item__circle {
  transform: translateY(-4px);
  border-color: rgba(201, 41, 71, 0.28);
  box-shadow:
    0 2px 4px rgba(17, 24, 39, 0.05),
    0 14px 28px rgba(17, 24, 39, 0.1);
}

.brand-logo-item:hover .brand-logo-item__name {
  color: var(--brand);
}

@media (max-width: 991.98px) {
  .brand-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .brand-logo-item__circle {
    width: 76px;
    height: 76px;
  }
}

@media (max-width: 575.98px) {
  .brand-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 10px;
  }

  .brand-logo-item__circle {
    width: 68px;
    height: 68px;
  }

  .brand-logo-item__name {
    font-size: 11px;
    letter-spacing: 0.04em;
  }
}

.video-banner__frame {
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
}

.video-banner__media {
  display: block;
  width: 100%;
  height: clamp(220px, 32vw, 420px);
  object-fit: cover;
  object-position: center;
  background: #0f172a;
}

@media (max-width: 767.98px) {
  .video-banner__frame {
    border-radius: 14px;
  }

  .video-banner__media {
    height: 240px;
  }
}

.vendor-store-bar__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.vendor-store-bar__meta strong {
  font-size: 1.05rem;
  color: var(--ink, #111827);
}

.vendor-store-bar__meta span {
  font-size: 0.85rem;
  color: var(--muted, #6b7280);
}

.vendor-store-bar__stats {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--muted, #6b7280);
}

.vendor-store-bar__stats .bi-star-fill {
  color: #f59e0b;
  margin-right: 2px;
}

@media (max-width: 575.98px) {
  .vendor-store-bar__stats {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ==========================================================================
   Vendor store navigation (scoped to .vendor-store to avoid conflicts)
   ========================================================================== */

.vendor-store .category-strip {
  background: #232f3e;
}

.vendor-store .category-strip .container-fluid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.vendor-store .vendor-nav-toggle {
  display: none;
}

.vendor-store .vendor-nav-panel__head {
  display: none;
}

.vendor-store .vendor-nav-backdrop {
  display: none;
}

.vendor-store .vendor-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 4px 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.vendor-store .vendor-nav::-webkit-scrollbar {
  display: none;
}

.vendor-store .vendor-nav .nav-link-pill {
  flex: 0 0 auto;
  color: #ffffff;
  text-decoration: none;
  padding: 6px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  background: transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.vendor-store .vendor-nav .nav-link-pill:hover,
.vendor-store .vendor-nav .nav-link-pill:focus,
.vendor-store .vendor-nav .nav-link-pill.active {
  color: #ffffff;
  border-bottom-color: var(--brand);
}

/* Mobile / tablet: one nav becomes left slide-in drawer */
@media (max-width: 991.98px) {
  .vendor-store .vendor-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .vendor-store .vendor-nav-panel {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    width: min(300px, 86vw);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    background: #1f2937;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    overflow: auto;
  }

  .vendor-store .vendor-nav-panel.is-open {
    transform: translateX(0);
  }

  .vendor-store .vendor-nav-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .vendor-store .vendor-nav-panel__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
  }

  .vendor-store .vendor-nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
  }

  .vendor-store .vendor-nav-close:hover,
  .vendor-store .vendor-nav-close:focus-visible {
    background: rgba(255, 255, 255, 0.08);
  }

  .vendor-store .vendor-nav {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px 0 16px;
    overflow: visible;
  }

  .vendor-store .vendor-nav .nav-link-pill {
    width: 100%;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 15px;
  }

  .vendor-store .vendor-nav .nav-link-pill:last-child {
    border-bottom: 0;
  }

  .vendor-store .vendor-nav .nav-link-pill:hover,
  .vendor-store .vendor-nav .nav-link-pill:focus,
  .vendor-store .vendor-nav .nav-link-pill.active {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
  }

  .vendor-store .vendor-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1070;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
  }

  .vendor-store .vendor-nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

html.vendor-nav-open,
html.vendor-nav-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

body.vendor-nav-open {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
}

/* Desktop: horizontal row in the category strip */
@media (min-width: 992px) {
  .vendor-store .vendor-nav-toggle {
    display: none !important;
  }

  .vendor-store .vendor-nav-panel {
    position: static;
    width: 100%;
    height: auto;
    background: transparent;
    border: 0;
    transform: none;
  }

  .vendor-store .vendor-nav-panel__head,
  .vendor-store .vendor-nav-close,
  .vendor-store .vendor-nav-backdrop {
    display: none !important;
  }
}

/* All products grid — infinite-scroll hooks */
.vendor-store .vendor-products-sentinel {
  height: 1px;
  width: 100%;
  margin-top: 8px;
  pointer-events: none;
}

.vendor-store .vendor-products-status {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
}
