:root {
  --blue: #0877bb;
  --blue-dark: #045f98;
  --green: #0c9b4a;
  --red: #e41e2c;
  --orange: #ff5a1f;
  --navy: #171832;
  --text: #111827;
  --muted: #687386;
  --line: #e8ecf2;
  --soft: #f6f8fb;
  --white: #ffffff;
  --shadow: 0 14px 35px rgba(17, 24, 39, 0.08);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.coupon-box {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.coupon-box label { font-size: 13px; font-weight: 800; }
.coupon-box__row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.coupon-box input {
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
}
.coupon-message { margin: 0; color: var(--muted); font-size: 12px; }
.coupon-remove { justify-self: start; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10, 15, 36, 0.42);
}

.quick-view-modal {
  position: fixed;
  z-index: 81;
  top: 50%;
  left: 50%;
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-size: 20px;
}

.quick-view-content {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 24px;
  padding: 24px;
}

.quick-view-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--soft);
}

.quick-view-copy h2 { margin: 8px 44px 10px 0; font-size: 26px; }
.quick-view-copy p { color: var(--muted); line-height: 1.6; }
.quick-view-actions,
.compare-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.compare-actions { justify-content: flex-end; margin: 0 0 16px; }

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  width: 20%;
  min-width: 160px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table th:first-child,
.compare-table td:first-child {
  width: 140px;
  min-width: 140px;
  background: var(--soft);
  font-weight: 800;
}

.compare-table th img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.compare-table th a { color: var(--text); text-decoration: none; }
.compare-remove {
  float: right;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.recent-section[hidden],
.modal-overlay[hidden],
.quick-view-modal[hidden] { display: none; }

@media (max-width: 720px) {
  .quick-view-content { grid-template-columns: 1fr; padding: 18px; }
  .quick-view-copy h2 { margin-right: 40px; font-size: 22px; }
  .coupon-box__row { grid-template-columns: 1fr; }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.ui-icon {
  display: inline-grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 999px;
  background: rgba(8, 119, 187, 0.1);
  color: var(--blue);
  font-size: 0.82em;
  font-weight: 900;
  line-height: 1;
  flex: 0 0 auto;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
}

.topbar__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.text-button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header__inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  padding: 0;
}

.brand__logo {
  width: 158px;
  height: auto;
}

.brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.brand__leaf {
  width: 20px;
  height: 30px;
  border-radius: 100% 0 100% 0;
  background: var(--green);
  transform: rotate(-28deg);
  position: absolute;
  top: 6px;
  left: 9px;
}

.brand__cross {
  position: absolute;
  right: 8px;
  bottom: 4px;
  color: var(--white);
  font-weight: 900;
  font-size: 24px;
}

.brand__text {
  font-size: 24px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}

.brand__text strong {
  color: var(--green);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.desktop-nav button,
.desktop-nav a,
.mobile-menu button,
.mobile-menu a,
.bottom-nav button,
.bottom-nav a {
  border: 0;
  background: transparent;
  color: var(--text);
  text-decoration: none;
}

.nav-mega {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 78px;
}

.nav-mega__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-mega__trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.mega-menu {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  z-index: 35;
  width: min(720px, calc(100vw - 32px));
  display: none;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.nav-mega:hover .mega-menu,
.nav-mega:focus-within .mega-menu {
  display: block;
}

.mega-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.mega-menu__head strong {
  font-size: 16px;
}

.mega-menu__head a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

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

.mega-menu__group {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.mega-menu__category {
  font-weight: 900;
  line-height: 1.25;
}

.mega-menu__sub {
  color: var(--muted) !important;
  font-size: 13px;
  line-height: 1.3;
}

.mega-menu__category:hover,
.mega-menu__sub:hover {
  color: var(--blue) !important;
}

.brand-menu {
  width: min(420px, calc(100vw - 32px));
}

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

.brand-menu__item {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
}

.brand-menu__item:hover {
  border-color: rgba(8, 119, 187, 0.35);
  background: var(--soft);
}

.brand-menu__item span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #eaf6ef;
  color: var(--green);
  font-weight: 900;
}

.brand-menu__item strong {
  min-width: 0;
  font-size: 13px;
  line-height: 1.25;
}

.search {
  min-width: 260px;
  max-width: 520px;
  width: 100%;
  justify-self: center;
  display: grid;
  grid-template-columns: 1fr auto;
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 999px;
  position: relative;
  overflow: visible;
}

.search:focus-within {
  border-color: var(--blue);
  background: var(--white);
}

.search input {
  border: 0;
  background: transparent;
  padding: 13px 18px;
  outline: 0;
  min-width: 0;
  border-radius: 999px 0 0 999px;
}

.search button {
  border: 0;
  color: var(--white);
  background: var(--blue);
  padding: 0 18px;
  border-radius: 0 999px 999px 0;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  display: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.search-suggestions.open {
  display: block;
}

.search-suggestion {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.search-suggestion:last-child {
  border-bottom: 0;
}

.search-suggestion:hover {
  background: var(--soft);
}

.search-suggestion__type {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eaf6ef;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.search-suggestion__body {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.search-suggestion__body strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.search-suggestion__body small,
.search-suggestions__empty span {
  color: var(--muted);
  font-size: 12px;
}

.search-suggestions__empty {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.search-suggestions__group {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.search-suggestions__group:last-child {
  border-bottom: 0;
}

.search-suggestions__title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.search-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-keyword {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: var(--soft);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.search-keyword:hover {
  border-color: rgba(8, 119, 187, 0.35);
  background: #f7fbff;
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-action__text {
  margin-left: 6px;
}

.notification-wrap {
  position: relative;
}

.notification-btn {
  position: relative;
}

.notification-dot {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: var(--white);
  font-size: 10px;
  font-weight: 900;
}

.action-badge,
.wishlist-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: var(--white);
  font-size: 10px;
  font-weight: 900;
}

.notification-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 45;
  width: 280px;
  display: none;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.notification-wrap:hover .notification-menu,
.notification-wrap:focus-within .notification-menu {
  display: grid;
  gap: 8px;
}

.notification-menu strong {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.notification-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  padding: 8px;
  border-radius: var(--radius);
}

.notification-menu a:hover {
  background: var(--soft);
  color: var(--blue);
}

.icon-action,
.cart-button,
.icon-button {
  position: relative;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-button {
  gap: 8px;
  background: var(--navy);
  color: var(--white);
}

.cart-button span {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--orange);
  display: grid;
  place-items: center;
  font-size: 12px;
}

.mobile-only,
.mobile-menu {
  display: none;
}

.shop-home-container {
  width: min(1060px, calc(100% - 32px));
}

.shop-hero {
  padding: 28px 0 42px;
  background: var(--white);
}

.shop-slider {
  position: relative;
  overflow: visible;
}

.shop-slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow: hidden;
  scroll-behavior: smooth;
  border-radius: var(--radius);
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.08);
}

.shop-slide {
  height: 260px;
  display: grid;
  grid-template-columns: 1fr 42%;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.shop-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.12), transparent 52%),
    repeating-linear-gradient(165deg, transparent 0 42px, rgba(255, 255, 255, 0.16) 42px 60px);
}

.shop-slide--yellow {
  background: linear-gradient(135deg, #ffc400, #ff9b22);
}

.shop-slide--blue {
  background: linear-gradient(135deg, #0877bb, #12a6ce);
}

.shop-slide--green {
  background: linear-gradient(135deg, #0c9b4a, #76c76b);
}

.shop-slide__content {
  color: var(--white);
  text-align: center;
  padding: 28px 48px;
  justify-self: center;
}

.shop-slide__content h1,
.shop-slide__content h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.shop-slide__content p {
  max-width: 440px;
  margin: 14px auto 18px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 15px;
  line-height: 1.45;
}

.shop-slide img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  align-self: stretch;
}

.sale-burst {
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f12570;
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.shop-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--orange);
  box-shadow: var(--shadow);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
}

.shop-slider__arrow--prev {
  left: 18px;
}

.shop-slider__arrow--next {
  right: 18px;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.slider-dots button {
  width: 18px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 24, 50, 0.45);
  padding: 0;
}

.slider-dots button.active {
  width: 28px;
  background: var(--orange);
}

.section--tight {
  padding-top: 14px;
  padding-bottom: 28px;
}

.section-arrows {
  display: flex;
  gap: 14px;
}

.section-arrows span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff2ef;
  color: var(--orange);
  font-weight: 800;
}

.shop-category-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.shop-category-card {
  display: grid;
  gap: 8px;
  text-align: center;
  color: var(--text);
  text-decoration: none;
}

.shop-category-card img {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.shop-category-card span {
  font-size: 13px;
  font-weight: 700;
}

.subcategory-section {
  background: var(--soft);
}

.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.subcategory-card {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  text-decoration: none;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.subcategory-card:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 119, 187, 0.35);
  box-shadow: var(--shadow);
}

.subcategory-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: #eaf6ef;
  color: var(--green);
  font-weight: 900;
}

.subcategory-card__content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.subcategory-card strong {
  font-size: 14px;
  line-height: 1.25;
}

.subcategory-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.season-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.season-card {
  min-height: 145px;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 42%;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
}

.season-card--soft {
  background: #fff1eb;
}

.season-card--aqua {
  background: #e5fbff;
}

.season-card--ice {
  background: #edf7ff;
}

.season-card div {
  padding: 24px;
  align-self: center;
}

.season-card em,
.wide-banner em {
  display: block;
  color: var(--blue);
  font-size: 28px;
  font-family: Georgia, serif;
  line-height: 1;
}

.season-card strong {
  display: block;
  margin: 8px 0;
}

.season-card span {
  color: var(--muted);
  font-size: 12px;
}

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

.wide-banner {
  min-height: 230px;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 48% 1fr;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  background: #eaf8ff;
}

.wide-banner img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.wide-banner div {
  padding: 32px;
}

.wide-banner h2 {
  margin: 8px 0;
  color: var(--blue);
  font-size: 42px;
}

.brand-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.brand-card {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--white);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.04);
  color: var(--red);
  font-weight: 800;
}

.brand-card span {
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}

.soft-button {
  min-height: 36px;
  background: #fff2ef;
  color: var(--orange);
  border: 0;
  font-size: 13px;
}

.hero__actions,
.section__head,
.card-actions,
.qty {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.chip,
.filter-chip {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
}

.icon-mini {
  min-width: 38px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  font-weight: 800;
}

.icon-mini.active,
.compare-btn.active {
  border-color: rgba(255, 90, 31, 0.45);
  background: #fff4ee;
  color: var(--orange);
}

.primary-button {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 12px 22px rgba(255, 90, 31, 0.2);
}

.secondary-button {
  background: var(--white);
  color: var(--blue);
  border-color: var(--line);
}

.full {
  width: 100%;
}

.hero__media {
  position: relative;
}

.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.section {
  padding: 34px 0;
}

.section__head {
  justify-content: space-between;
  margin-bottom: 18px;
}

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

.section__head p {
  margin: 4px 0 0;
  color: var(--muted);
}

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

.category-card,
.product-card,
.promo-card,
.info-card,
.checkout-card,
.details-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.category-card {
  min-height: 130px;
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 10px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.04);
}

.category-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8f6ef;
  color: var(--green);
  font-weight: 900;
}

.category-card strong {
  font-size: 14px;
}

.category-card span {
  color: var(--muted);
  font-size: 12px;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.promo-card {
  min-height: 160px;
  padding: 22px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, #eaf7ff, #ffffff);
  overflow: hidden;
}

.promo-card:nth-child(2) {
  background: linear-gradient(135deg, #f0fff5, #ffffff);
}

.promo-card:nth-child(3) {
  background: linear-gradient(135deg, #fff1ed, #ffffff);
}

.promo-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.promo-card p {
  margin: 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card__image {
  position: relative;
  display: block;
  background: var(--soft);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.28s ease;
  will-change: transform;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.12);
}

.product-card:hover .product-card__image img,
.product-card__image:hover img {
  transform: scale(1.08) !important;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.stock-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.stock-badge--in {
  background: #eaf8f1;
  color: #087a3d;
}

.stock-badge--low {
  background: #fff6dc;
  color: #9a6400;
}

.stock-badge--out {
  background: #ffe8e4;
  color: var(--red);
}

.wish {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  color: var(--orange);
  font-weight: 800;
  z-index: 3;
  pointer-events: none;
}

.wish.active {
  color: var(--red);
}

.product-card__body {
  padding: 14px;
}

.product-meta {
  color: var(--muted);
  font-size: 12px;
}

.product-card h3 {
  margin: 6px 0;
  min-height: 42px;
  font-size: 16px;
  line-height: 1.3;
}

.product-card h3 a {
  color: inherit;
  text-decoration: none;
}

.product-card .stock-badge {
  margin: 2px 0 8px;
}

.stars {
  color: #f7ae16;
  font-size: 13px;
}

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

.price strong {
  font-size: 20px;
}

.price del {
  color: var(--red);
  font-size: 13px;
}

.small-button {
  min-height: 38px;
  border-radius: 999px;
  border: 0;
  padding: 0 14px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
}

.product-page-container {
  width: min(1060px, calc(100% - 32px));
}

.product-breadcrumb {
  padding-top: 28px;
}

.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 26px;
  padding: 28px 0 46px;
}

.filters {
  border-right: 1px solid var(--line);
  padding-right: 22px;
}

.filter-group {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.filter-group h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  color: #1f2937;
}

.listing-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.listing-head h1 {
  margin: 4px 0 0;
  font-size: 32px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 13px;
}

select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: var(--white);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
  padding: 24px 0 52px;
}

.product-gallery {
  width: 100%;
}

.gallery__main img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  background: var(--soft);
  border-radius: var(--radius);
  transition: transform 0.25s ease;
}

.product-zoom {
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
}

.product-zoom img.is-zoomed {
  transform: scale(1.75);
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 86px);
  gap: 14px;
  margin-top: 16px;
}

.thumbs button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  background: var(--white);
}

.thumbs button.active {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(255, 90, 31, 0.12);
}

.thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.16;
}

.product-summary {
  padding-top: 4px;
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.detail-price strong {
  font-size: 25px;
}

.detail-price del {
  color: var(--red);
  font-size: 16px;
}

.detail-stars {
  margin-bottom: 26px;
}

.summary-divider {
  height: 1px;
  background: var(--line);
  margin: 0 0 24px;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  flex-wrap: wrap;
}

.product-option-row {
  min-height: 42px;
  gap: 14px;
}

.product-option-row > strong {
  min-width: 78px;
}

.chip,
.filter-chip {
  min-height: 34px;
  padding: 0 12px;
  background: var(--soft);
  border-color: var(--line);
  font-size: 13px;
}

.chip.active {
  background: var(--blue);
  color: var(--white);
}

.qty button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
}

.product-qty button {
  width: 18px;
  height: 18px;
  font-size: 12px;
}

.product-qty strong {
  min-width: 22px;
  text-align: center;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 26px;
}

.product-add {
  min-width: 170px;
  background: #91a4bd;
  box-shadow: none;
}

.product-favorite {
  min-width: 150px;
  color: var(--orange);
}

.buy-now-button {
  color: var(--orange);
  font-weight: 800;
}

.details-panel {
  padding: 24px;
  margin: 24px 0 10px;
}

.product-tabs-panel {
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  margin: 0 0 12px;
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding: 22px 28px;
  margin-bottom: 0;
}

.tabs button {
  border: 1px solid var(--line);
  background: var(--white);
  min-height: 40px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 700;
}

.tabs button.active {
  background: var(--navy);
  color: var(--white);
}

.product-detail-text {
  padding: 28px;
}

.product-detail-text h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.product-detail-text p,
.product-detail-text li {
  line-height: 1.65;
}

.related-section {
  padding-top: 24px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  padding: 34px 0;
}

.checkout-card {
  padding: 22px;
  margin-bottom: 16px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field input,
.field textarea {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
}

.field textarea {
  padding-top: 12px;
  resize: vertical;
}

.order-summary {
  position: sticky;
  top: 100px;
  align-self: start;
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.footer {
  background: var(--navy);
  color: var(--white);
  padding: 42px 0 90px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
}

.footer a,
.footer button {
  color: var(--white);
  display: block;
  margin: 9px 0;
  text-decoration: none;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.info-card {
  padding: 18px;
}

.info-card strong {
  display: block;
  margin-bottom: 5px;
}

.info-card p {
  color: var(--muted);
  margin: 0;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: rgba(17, 24, 39, 0);
  transition: background 0.2s ease;
}

.cart-drawer.open {
  pointer-events: auto;
  background: rgba(17, 24, 39, 0.34);
}

.drawer__panel {
  width: min(420px, 100%);
  height: 100%;
  margin-left: auto;
  background: var(--white);
  transform: translateX(100%);
  transition: transform 0.2s ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.cart-drawer.open .drawer__panel {
  transform: translateX(0);
}

.drawer__header,
.drawer__footer {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.drawer__footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-items {
  overflow: auto;
  padding: 12px 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius);
  object-fit: cover;
}

.empty {
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
}

.bottom-nav {
  display: none;
}

@media (max-width: 1023px) {
  .header__inner {
    grid-template-columns: auto auto 1fr;
    gap: 14px;
  }

  .desktop-nav,
  .header-actions .icon-action,
  .notification-wrap {
    display: none;
  }

  .mobile-only {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 42px;
    padding: 0;
  }

  .icon-button span {
    width: 17px;
    height: 2px;
    background: var(--text);
  }

  .search {
    grid-column: 1 / -1;
    max-width: none;
    order: 3;
  }

  .mobile-menu {
    position: fixed;
    top: 79px;
    left: 0;
    right: 0;
    z-index: 30;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px;
  }

  .mobile-menu.open {
    display: grid;
    gap: 12px;
  }

  .mobile-category-menu {
    display: grid;
    gap: 8px;
  }

  .mobile-category-menu summary {
    cursor: pointer;
    list-style: none;
    font-weight: 800;
  }

  .mobile-category-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-category-menu summary::after {
    content: "+";
    float: right;
    color: var(--blue);
    font-weight: 900;
  }

  .mobile-category-menu[open] > summary::after,
  .mobile-category-menu__group[open] > summary::after {
    content: "-";
  }

  .mobile-category-menu__list {
    display: grid;
    gap: 8px;
    padding: 8px 0 0 12px;
    border-left: 2px solid var(--line);
  }

  .mobile-category-menu__group {
    display: grid;
    gap: 7px;
  }

  .mobile-category-menu__group a {
    color: var(--muted);
    font-size: 14px;
    padding-left: 12px;
  }

  .product-detail,
  .checkout-layout,
  .layout {
    grid-template-columns: 1fr;
  }

  .product-detail {
    gap: 28px;
  }

  .gallery__main img {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .thumbs {
    grid-template-columns: repeat(4, minmax(0, 86px));
  }

  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .shop-category-row,
  .brand-row,
  .subcategory-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .season-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .promo-grid,
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Side Cart Overlay ── */
.side-cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(17, 24, 39, 0.45);
}
.side-cart-overlay.open { display: block; }

/* ── Side Cart Drawer ── */
.side-cart {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  width: 380px;
  max-width: 95vw;
  height: 100dvh;
  background: var(--white);
  box-shadow: -8px 0 40px rgba(17,24,39,0.14);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.side-cart.open { transform: translateX(0); }

.side-cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.side-cart__head h3 { margin: 0; font-size: 17px; }

.side-cart__close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font-size: 15px;
  display: grid;
  place-items: center;
}

.side-cart__items {
  flex: 1;
  overflow-y: auto;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.side-cart__empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}

.side-cart__item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.side-cart__item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.side-cart__item-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 3px;
}
.side-cart__item-price {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 7px;
}
.side-cart__item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.side-cart__remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  padding: 0;
  line-height: 1;
}
.side-cart__remove:hover { color: var(--red); }
.side-cart__item-subtotal { font-size: 13px; font-weight: 700; }

.side-cart__foot {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}

/* ── Qty buttons (shared: side cart + cart page) ── */
.side-cart__item-qty,
.cart-row__qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qty-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
}
.qty-btn:hover { background: var(--line); }
.qty-value { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }

/* ── Cart page ── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
  margin-top: 24px;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.cart-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.cart-row:last-child { border-bottom: 0; }
.cart-row__img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.cart-row__info a {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 4px;
}
.cart-row__info a:hover { color: var(--blue); }
.cart-row__subtotal { font-weight: 700; font-size: 15px; min-width: 80px; text-align: right; }
.cart-row__remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  padding: 4px;
}
.cart-row__remove:hover { color: var(--red); }

.cart-clear-row {
  padding: 14px 18px;
  background: var(--soft);
}

.cart-summary-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.cart-summary-box h2 { margin: 0 0 16px; font-size: 17px; }

.cart-empty {
  text-align: center;
  padding: 60px 20px;
}
.cart-empty__icon { font-size: 56px; margin-bottom: 16px; }
.cart-empty h2 { margin: 0 0 8px; }
.cart-empty p { color: var(--muted); margin: 0 0 20px; }

/* ── Checkout items list ── */
.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.checkout-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
}
.checkout-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.checkout-item span { display: block; font-size: 13px; }
.checkout-item strong { font-size: 13px; white-space: nowrap; }

.total-row--grand {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 4px;
  font-size: 16px;
}
.total-row--grand span,
.total-row--grand strong { font-size: 16px; font-weight: 700; }

/* ── Cart page responsive ── */
@media (max-width: 760px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 64px 1fr auto; grid-template-rows: auto auto; }
  .cart-row__subtotal { grid-column: 2; grid-row: 2; text-align: left; }
  .cart-row__remove { grid-column: 3; grid-row: 1; }
  .cart-row__qty { grid-column: 2 / -1; grid-row: 3; }
}

/* ── Wish button on product card ── */
.product-card__image { position: relative; }

.wish-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  font-size: 18px;
  display: grid;
  place-items: center;
  line-height: 1;
  color: var(--muted);
  transition: color 0.18s, background 0.18s, transform 0.18s;
  padding: 0;
}
.wish-btn:hover,
.wish-btn.wished {
  color: #e41e2c;
  background: #fff0f1;
  border-color: #f8c4c7;
  transform: scale(1.12);
}

/* ── Wishlist badge on header icon ── */
.wishlist-icon-btn {
  position: relative;
  padding: 0 14px;
}
.wishlist-badge {
  position: absolute;
  top: -6px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 3px;
}

/* ── Wishlist page ── */
.wishlist-empty {
  text-align: center;
  padding: 60px 20px;
}
.wishlist-empty__icon {
  font-size: 60px;
  line-height: 1;
  margin-bottom: 16px;
  color: var(--muted);
}
.wishlist-empty h2 { margin: 0 0 8px; }
.wishlist-empty p  { color: var(--muted); margin: 0 0 22px; }

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.wishlist-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.18s;
}
.wishlist-card:hover { box-shadow: var(--shadow); }

.wishlist-card__img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--soft);
}
.wishlist-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.wishlist-card:hover .wishlist-card__img-wrap img { transform: scale(1.04); }

.wishlist-card__remove {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  font-size: 13px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.wishlist-card__remove:hover { color: var(--red); background: #fff0f1; }

.wishlist-card__body {
  padding: 14px;
}
.wishlist-card__body h3 {
  margin: 4px 0 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.wishlist-card__body h3 a {
  color: var(--text);
  text-decoration: none;
}
.wishlist-card__body h3 a:hover { color: var(--blue); }

.wishlist-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.wishlist-card__actions .small-button,
.wishlist-card__actions .secondary-button {
  flex: 1;
  text-align: center;
}

/* ── Toast notification ── */
#toastContainer {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
  max-width: 280px;
}
.toast--show { opacity: 1; transform: translateY(0); }
.toast--info { background: var(--blue); }

/* ── Checkout: payment methods ── */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.payment-option input[type="radio"] { display: none; }
.payment-option__icon { font-size: 20px; }
.payment-option:hover { border-color: var(--blue); background: #f0f7ff; }
.payment-option.active { border-color: var(--blue); background: #e8f3fd; }

/* ── Form validation ── */
.field--error input,
.field--error textarea,
.field--error select { border-color: var(--red) !important; }
.field__error { display: block; color: var(--red); font-size: 12px; margin-top: 4px; }
.req { color: var(--red); }

/* ── Alert boxes ── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
}
.alert--error { background: #fff0f0; border: 1px solid #f8c4c4; color: #c0392b; }
.alert--info  { background: #f0f7ff; border: 1px solid #b3d4f5; color: #0877bb; }
.alert--success { background: #f0fff5; border: 1px solid #b3e8c8; color: #0c9b4a; }

/* ── field--full ── */
.field--full { grid-column: 1 / -1; }

/* ── Order success page ── */
.order-success {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 20px 60px;
}
.order-success__icon { font-size: 64px; margin-bottom: 16px; }
.order-success h1 { margin: 0 0 10px; font-size: 26px; color: var(--green); }
.order-success__sub { color: var(--muted); margin: 0 0 28px; font-size: 15px; }

.order-success__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  margin-bottom: 20px;
}
.order-success__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.order-success__row:last-child { border-bottom: 0; }
.order-success__row span:first-child { color: var(--muted); }
.order-number { font-size: 16px; color: var(--blue); letter-spacing: 0.5px; }

.status-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.status-badge--pending  { background: #fff3e0; color: #e65100; }
.status-badge--confirmed { background: #e8f5e9; color: #2e7d32; }
.status-badge--shipped  { background: #e3f2fd; color: #1565c0; }
.status-badge--delivered { background: #e8f5e9; color: #1b5e20; }
.status-badge--cancelled { background: #ffebee; color: #b71c1c; }

.order-success__note {
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0 24px;
}
.order-success__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Announcement bar ── */
.announcement-bar {
  background: linear-gradient(90deg, #0877bb, #0c9b4a);
  color: var(--white);
  font-size: 13px;
  overflow: hidden;
}
.announcement-bar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.announcement-bar__text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.announcement-bar__close {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  padding: 4px 6px;
  flex-shrink: 0;
}
.announcement-bar__close:hover { color: var(--white); }

/* ── Trust strip ── */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  background: var(--white);
}
.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust-strip__item > span { font-size: 24px; flex-shrink: 0; }
.trust-strip__item strong { display: block; font-size: 13px; font-weight: 700; }
.trust-strip__item small  { display: block; font-size: 12px; color: var(--muted); }

/* ── Flash sale section ── */
.flash-sale-section { background: #fff8f0; padding: 32px 0; }
.flash-sale-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.flash-sale-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.flash-sale-title h2 { margin: 0; }
.flash-icon { font-size: 26px; }

/* ── Countdown timer ── */
.countdown {
  display: flex;
  align-items: center;
  gap: 4px;
}
.countdown__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  border-radius: 6px;
  padding: 6px 10px;
  min-width: 52px;
}
.countdown__num   { font-size: 22px; font-weight: 800; line-height: 1; }
.countdown__label { font-size: 10px; opacity: 0.75; margin-top: 2px; }
.countdown__sep   { font-size: 22px; font-weight: 800; color: var(--navy); }

/* ── Section label ── */
.section-label-group { display: flex; align-items: center; gap: 10px; }
.section-label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.section-label--new { background: #e8f5e9; color: #2e7d32; }
.section-label--hot { background: #fff3e0; color: #e65100; }

.trending-section {
  background: #f7fbff;
}

.recommended-section {
  background: #fbfff7;
}

/* ── Testimonials ── */
.testimonials-section { background: var(--soft); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testimonial-card__stars { color: #f59e0b; font-size: 16px; letter-spacing: 1px; }
.testimonial-card__text  { font-size: 13px; color: var(--text); line-height: 1.6; flex: 1; margin: 0; }
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.testimonial-card__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.testimonial-card__author strong { display: block; font-size: 13px; }
.testimonial-card__author span   { display: block; font-size: 12px; color: var(--muted); }

/* ── Newsletter ── */
.newsletter-section { background: linear-gradient(135deg, #0877bb, #0c9b4a); padding: 48px 0; }
.newsletter-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.newsletter-box__text h2 { margin: 0 0 8px; color: var(--white); font-size: 22px; }
.newsletter-box__text p  { margin: 0; color: rgba(255,255,255,0.85); font-size: 14px; }
.newsletter-form {
  display: flex;
  gap: 10px;
  flex: 1;
  max-width: 440px;
}
.newsletter-form input {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 14px;
  outline: 0;
  min-width: 0;
}
.newsletter-form .primary-button {
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── WhatsApp floating button ── */
.whatsapp-btn {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 90;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 18px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.55);
}

/* ── Responsive homepage sections ── */
@media (max-width: 900px) {
  .trust-strip          { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid    { grid-template-columns: repeat(2, 1fr); }
  .newsletter-box       { flex-direction: column; text-align: center; }
  .newsletter-form      { max-width: 100%; width: 100%; }
  .flash-sale-head      { gap: 12px; }
}
@media (max-width: 600px) {
  .trust-strip          { grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
  .testimonials-grid    { grid-template-columns: 1fr; }
  .countdown__num       { font-size: 18px; }
  .countdown__block     { min-width: 44px; padding: 5px 8px; }
  .announcement-bar__text { font-size: 12px; }
}

/* ── Auth page ── */
.auth-wrap {
  max-width: 480px;
  margin: 40px auto 60px;
}
.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--line);
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1;
  padding: 13px;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.18s, border-color 0.18s;
}
.auth-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.auth-panel h2 { margin: 0 0 22px; font-size: 20px; }
.auth-panel .field { margin-bottom: 14px; }
.auth-switch { text-align: center; color: var(--muted); font-size: 14px; margin-top: 16px; }
.link-btn {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 14px;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

/* ── Account header button ── */
.account-btn { gap: 8px; }
.account-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.account-name { font-size: 13px; font-weight: 600; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Dashboard layout ── */
.dashboard {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 8px;
}

.dashboard-sidebar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.dashboard-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.dashboard-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.dashboard-user strong { display: block; font-size: 14px; }
.dashboard-user .product-meta { font-size: 12px; }

.dashboard-nav {
  display: flex;
  flex-direction: column;
}
.dashboard-nav a {
  padding: 13px 18px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.dashboard-nav a:last-child { border-bottom: 0; }
.dashboard-nav a:hover { background: var(--soft); }
.dashboard-nav a.active { background: #e8f3fd; color: var(--blue); font-weight: 600; }
.dashboard-logout { color: var(--red) !important; }

.dashboard-main h2 { margin: 0 0 20px; }

/* ── Order cards ── */
.orders-list { display: flex; flex-direction: column; gap: 16px; }
.orders-empty { text-align: center; padding: 40px 0; color: var(--muted); }
.orders-empty p { font-size: 18px; margin-bottom: 16px; }

.order-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.order-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.order-card__number { display: block; font-weight: 700; font-size: 14px; color: var(--blue); }
.order-card__head .product-meta { font-size: 12px; }
.order-card__body { padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.order-card__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  gap: 8px;
}
.order-card__item span:first-child { flex: 1; }
.order-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--soft);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

/* ── Desktop only helper ── */
.desktop-only { display: inline; }

/* ── Dashboard responsive ── */
@media (max-width: 760px) {
  .dashboard { grid-template-columns: 1fr; }
  .dashboard-nav { flex-direction: row; flex-wrap: wrap; }
  .dashboard-nav a { flex: 1 1 45%; border-right: 1px solid var(--line); }
  .desktop-only { display: none; }
  .auth-wrap { margin: 20px auto 40px; }
}

/* ── Wishlist grid responsive ── */
@media (max-width: 900px) {
  .wishlist-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .wishlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .container {
    width: min(100% - 20px, 1220px);
  }

  body {
    padding-bottom: 70px;
  }

  .topbar {
    display: none;
  }

  .site-header {
    top: 0;
  }

  .header__inner {
    min-height: 66px;
    grid-template-columns: auto 1fr auto;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .brand__logo {
    width: 116px;
  }

  .brand__text {
    font-size: 18px;
  }

  .cart-button {
    min-width: 46px;
    padding: 0 10px;
    font-size: 0;
  }

  .cart-button span {
    font-size: 12px;
  }

  .search {
    display: none;
  }

  .shop-hero {
    padding: 14px 0 24px;
  }

  .shop-slide {
    height: auto;
    grid-template-columns: 1fr;
  }

  .shop-slide__content {
    padding: 24px 18px 52px;
  }

  .shop-slide__content h1,
  .shop-slide__content h2 {
    font-size: 30px;
  }

  .shop-slide__content p {
    font-size: 14px;
    margin: 10px 0 16px;
  }

  .shop-slide img {
    height: 150px;
    order: -1;
  }

  .shop-slider__arrow {
    display: none;
  }

  .slider-dots {
    bottom: 18px;
  }

  .section {
    padding: 22px 0;
  }

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

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .shop-category-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .shop-category-card img {
    aspect-ratio: 1 / 0.8;
  }

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

  .subcategory-card {
    min-height: 82px;
    padding: 12px;
  }

  .season-grid,
  .brand-row {
    grid-template-columns: 1fr;
  }

  .season-card,
  .wide-banner {
    grid-template-columns: 1fr;
  }

  .season-card img {
    height: 140px;
    order: -1;
  }

  .wide-banner img {
    height: 150px;
  }

  .wide-banner h2 {
    font-size: 28px;
  }

  .category-card {
    min-height: 106px;
    padding: 10px;
  }

  .category-icon {
    width: 42px;
    height: 42px;
  }

  .promo-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

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

  .product-card h3 {
    font-size: 13px;
    min-height: 36px;
  }

  .product-card__body {
    padding: 10px;
  }

  .price strong {
    font-size: 16px;
  }

  .small-button {
    width: 100%;
    min-height: 36px;
  }

  .listing-head {
    display: grid;
  }

  .listing-head h1,
  .detail-copy h1 {
    font-size: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .checkout-card,
  .details-panel {
    padding: 16px;
  }

  .product-tabs-panel {
    padding: 0;
    border-radius: 16px;
  }

  .tabs {
    padding: 14px;
    gap: 8px;
  }

  .tabs button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .product-detail-text {
    padding: 18px;
  }

  .product-actions {
    gap: 12px;
  }

  .product-add,
  .product-favorite {
    min-width: 0;
    flex: 1;
  }

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

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    min-height: 64px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 25px rgba(17, 24, 39, 0.08);
  }

  .bottom-nav button {
    font-size: 12px;
  }

  .bottom-nav a {
    display: grid;
    place-items: center;
    font-size: 12px;
  }

  .bottom-nav__cart {
    color: var(--white) !important;
    background: var(--orange) !important;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    align-self: center;
    justify-self: center;
    box-shadow: 0 12px 22px rgba(255, 90, 31, 0.28);
  }
}

/* Last-mile frontend overrides */
.product-card .card-actions {
  display: grid;
  grid-template-columns: minmax(64px, 0.9fr) minmax(70px, 1fr) 42px;
  gap: 8px;
}

.product-card .card-actions > a.secondary-button {
  grid-column: 1 / -1;
  min-height: 36px;
}

.product-card h3 {
  min-height: 46px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mobile-filter-bar {
  position: sticky;
  top: 0;
  z-index: 36;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.filter-tags-bar,
.filter-tags {
  gap: 10px;
}

.order-summary,
.filters,
.dashboard-sidebar {
  align-self: start;
  position: sticky;
  top: 96px;
}

.compare-table-wrap,
.tracking-result,
.review-summary,
.review-form,
.review-card,
.map-box {
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding: 24px;
  border: 1px dashed #d8e0eb;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--soft));
  text-align: center;
}

.status-badge--processing { background: #eaf4ff; color: var(--blue); }
.status-badge--shipped { background: #eef2ff; color: #4452c8; }

@media (max-width: 900px) {
  .order-summary,
  .filters,
  .dashboard-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 68px;
  }

  .product-grid.list-view .product-card {
    grid-template-columns: 118px 1fr;
  }

  .cart-row {
    align-items: start;
    gap: 12px;
    padding: 14px;
  }

  .dashboard-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .dashboard-nav a {
    min-width: max-content;
  }
}

@media (max-width: 520px) {
  .quick-view-modal {
    inset: 10px;
    width: auto;
    max-height: none;
    transform: none;
    top: 0;
    left: 0;
  }

  .product-grid.list-view .product-card {
    grid-template-columns: 1fr;
  }
}

/* Final PRD completion polish */
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.footer-payments {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-payments span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.policy-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.policy-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.policy-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.auth-helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 14px;
}

.otp-note {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.skeleton-card {
  min-height: 320px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent),
    linear-gradient(#eef2f7 0 0);
  background-size: 180px 100%, 100% 100%;
  animation: skeleton-shimmer 1.15s infinite;
}

@keyframes skeleton-shimmer {
  from { background-position: -180px 0, 0 0; }
  to { background-position: calc(100% + 180px) 0, 0 0; }
}

@media (max-width: 760px) {
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .auth-helper-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .otp-note {
    text-align: left;
  }
}

@media print {
  .announcement-bar,
  .topbar,
  .site-header,
  .mobile-menu,
  .bottom-nav,
  .footer,
  .whatsapp-btn,
  .side-cart,
  .side-cart-overlay,
  .product-actions,
  .quick-view-modal,
  .modal-overlay,
  .related-section,
  .recent-section,
  .newsletter-section {
    display: none !important;
  }

  body {
    color: #111;
    background: #fff;
    padding: 0;
  }

  .container,
  .product-page-container {
    width: 100%;
    max-width: none;
  }

  .product-detail {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
  }

  .gallery__main img {
    height: auto;
    max-height: 220px;
  }

  .thumbs {
    display: none;
  }

  a {
    color: #111;
    text-decoration: none;
  }
}

/* Final frontend polish pass */
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(8, 119, 187, 0.28);
  outline-offset: 3px;
}

.section {
  scroll-margin-top: 110px;
}

.section:not(.section--tight) {
  padding-top: clamp(34px, 5vw, 62px);
  padding-bottom: clamp(34px, 5vw, 62px);
}

.section__head {
  margin-bottom: clamp(18px, 3vw, 28px);
}

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

.shop-hero {
  padding-top: 28px;
}

.shop-slider {
  max-width: 1060px;
  margin-inline: auto;
}

.shop-slide {
  min-height: clamp(260px, 34vw, 430px);
  align-items: stretch;
}

.shop-slide__content {
  align-self: center;
  max-width: 520px;
  padding: clamp(28px, 4vw, 52px);
}

.shop-slide__content h1,
.shop-slide__content h2 {
  max-width: 10ch;
  line-height: 1.04;
}

.shop-slide img {
  min-height: 100%;
  object-position: center;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.product-card h3 {
  min-height: 46px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card .price {
  margin-top: auto;
}

.product-card .card-actions {
  display: grid;
  grid-template-columns: minmax(64px, 0.9fr) minmax(70px, 1fr) 42px;
  gap: 8px;
}

.product-card .card-actions > a.secondary-button {
  grid-column: 1 / -1;
  min-height: 36px;
}

.quick-view-btn {
  white-space: nowrap;
}

.compare-btn.active::after {
  content: "Added";
  margin-left: 6px;
  font-size: 11px;
  font-weight: 800;
}

.product-grid.list-view .product-card {
  align-items: stretch;
  border: 1px solid var(--line);
}

.product-grid.list-view .product-card__image img {
  height: 100%;
  min-height: 210px;
}

.filter-tags-bar {
  align-items: flex-start;
  gap: 10px;
}

.filter-tags {
  gap: 8px;
}

.filter-tag {
  min-height: 34px;
  align-items: center;
}

.filters {
  align-self: start;
  position: sticky;
  top: 96px;
}

.mobile-filter-bar {
  position: sticky;
  top: 0;
  z-index: 36;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.empty-state,
.cart-empty,
.orders-empty {
  border: 1px dashed #d8e0eb;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--soft));
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding: 24px;
  text-align: center;
}

.empty-state span {
  color: var(--muted);
  font-size: 14px;
}

.gallery__main,
.thumbs button {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.thumbs button:hover {
  border-color: rgba(8, 119, 187, 0.35);
  transform: translateY(-1px);
}

.review-summary,
.review-form,
.review-card {
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.rating-bar b {
  min-width: 0;
}

.coupon-box {
  margin: 16px 0;
  background: #fbfcff;
}

.cart-row {
  transition: background 0.2s ease;
}

.cart-row:hover {
  background: #fbfcff;
}

.checkout-layout {
  align-items: start;
}

.checkout-layout form > .checkout-card {
  position: relative;
}

.checkout-layout form > .checkout-card > h2::before {
  content: "";
  display: inline-grid;
  place-items: center;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--blue);
  vertical-align: 2px;
}

.payment-option {
  gap: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.payment-option:hover,
.payment-option.active {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(8, 119, 187, 0.08);
}

.order-summary {
  position: sticky;
  top: 96px;
}

.compare-table-wrap {
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.compare-remove:hover {
  border-color: rgba(228, 30, 44, 0.35);
  color: var(--red);
}

.static-page-head + .static-card {
  text-align: center;
}

.dashboard {
  align-items: start;
}

.dashboard-sidebar {
  position: sticky;
  top: 96px;
}

.dashboard-main {
  min-width: 0;
}

.dashboard-main::before {
  content: "Dashboard";
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.account-order-details {
  overflow: hidden;
}

.account-order-details[open] {
  border-color: rgba(8, 119, 187, 0.22);
}

.status-badge {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.status-badge--pending { background: #fff6dc; color: #9a6400; }
.status-badge--processing { background: #eaf4ff; color: var(--blue); }
.status-badge--shipped { background: #eef2ff; color: #4452c8; }
.status-badge--delivered { background: #eaf8f1; color: #087a3d; }
.status-badge--cancelled { background: #ffe8e4; color: var(--red); }

.tracking-result {
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.tracking-steps span {
  position: relative;
}

.contact-layout {
  align-items: start;
}

.contact-form .alert--success {
  border-color: rgba(12, 155, 74, 0.22);
  background: #eaf8f1;
}

.map-box {
  min-height: 260px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.side-cart {
  max-width: min(420px, 100vw);
}

.quick-view-modal:focus {
  outline: none;
}

@media (hover: none) {
  .product-zoom {
    cursor: default;
  }

  .product-zoom img.is-zoomed {
    transform: none;
  }
}

@media (max-width: 900px) {
  .shop-slide {
    grid-template-columns: 1fr;
  }

  .shop-slide__content h1,
  .shop-slide__content h2 {
    max-width: 12ch;
  }

  .shop-slide img {
    max-height: 220px;
    width: 100%;
  }

  .filters,
  .dashboard-sidebar,
  .order-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 68px;
  }

  .site-header {
    top: 0;
    z-index: 50;
  }

  .filter-tags-bar {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .listing-head {
    gap: 12px;
  }

  .product-card .card-actions {
    grid-template-columns: 1fr 1fr 42px;
  }

  .product-grid.list-view .product-card {
    grid-template-columns: 118px 1fr;
  }

  .product-grid.list-view .product-card__image img {
    min-height: 100%;
  }

  .cart-row {
    align-items: start;
    gap: 12px;
    padding: 14px;
  }

  .cart-row__qty {
    width: 100%;
    justify-content: flex-start;
  }

  .checkout-layout {
    gap: 18px;
  }

  .compare-actions {
    justify-content: stretch;
  }

  .compare-actions > * {
    flex: 1;
  }

  .dashboard-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .dashboard-nav a {
    min-width: max-content;
  }

  .tracking-steps span {
    border-radius: var(--radius);
  }
}

@media (max-width: 520px) {
  .shop-slide__content {
    padding: 24px;
  }

  .shop-slide__content h1,
  .shop-slide__content h2 {
    font-size: 36px;
  }

  .product-grid.list-view .product-card {
    grid-template-columns: 1fr;
  }

  .quick-view-modal {
    inset: 10px;
    width: auto;
    max-height: none;
    transform: none;
    top: 0;
    left: 0;
  }

  .quick-view-content {
    gap: 16px;
  }

  .side-cart {
    width: 100vw;
  }

  .compare-table {
    min-width: 560px;
  }

  .review-card div {
    display: grid;
  }
}

/* ════════════════════════════════════════
   Products Page — Filter System
════════════════════════════════════════ */

.products-page {
  padding-bottom: 60px;
}

/* Mobile filter bar (shown on mobile above layout) */
.mobile-filter-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  padding-bottom: 4px;
}

.mobile-filter-bar__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.results-count-mobile {
  font-size: 14px;
  color: var(--muted);
}

.sort-select-mobile {
  min-height: 36px;
  font-size: 13px;
  padding: 0 8px;
  max-width: 160px;
}

.filter-mobile-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.filter-mobile-badge {
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 6px;
  line-height: 1.6;
}

/* Active filter tags bar */
.filter-tags-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  padding-bottom: 6px;
}

.filter-tags-label {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff3ee;
  color: var(--orange);
  border: 1px solid rgba(255, 90, 31, 0.25);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px 3px 12px;
}

.filter-tag button {
  background: none;
  border: none;
  color: var(--orange);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0 0 0 2px;
}

.filter-clear-all {
  white-space: nowrap;
  font-size: 13px;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 12px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}

.filter-clear-all:hover {
  color: var(--orange);
  border-color: var(--orange);
}

/* Filter sidebar head */
.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--orange);
  margin-bottom: 4px;
}

.filters__title {
  font-size: 18px;
  margin: 0;
}

.filters__reset {
  font-size: 13px;
  color: var(--orange);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}

.filters__reset:hover {
  text-decoration: underline;
}

/* Radio / checkbox labels */
.filter-radio,
.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  color: #1f2937;
  cursor: pointer;
  font-size: 14px;
  transition: color .15s;
}

.filter-radio:hover,
.filter-check:hover {
  color: var(--orange);
}

.filter-radio input[type="radio"],
.filter-check input[type="checkbox"] {
  accent-color: var(--orange);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

/* Price range inputs */
.price-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.price-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 0 8px;
  flex: 1;
  min-width: 0;
}

.price-currency {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  margin-right: 4px;
}

.price-input {
  border: none !important;
  padding: 6px 0 !important;
  min-height: 36px !important;
  width: 100%;
  font-size: 14px;
  background: transparent;
  outline: none;
}

.price-sep {
  color: var(--muted);
  flex-shrink: 0;
}

.price-apply-btn {
  min-height: 36px;
  padding: 0 14px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity .15s;
}

.price-apply-btn:hover {
  opacity: 0.88;
}

/* Listing section */
.listing-section {
  min-width: 0;
}

.listing-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-select {
  min-height: 40px;
  font-size: 14px;
}

/* Grid / list toggle */
.view-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--white);
  border: none;
  cursor: pointer;
  color: var(--muted);
  transition: background .15s, color .15s;
}

.view-btn.active,
.view-btn:hover {
  background: var(--orange);
  color: #fff;
}

/* No results state */
.no-results {
  text-align: center;
  padding: 64px 24px;
  color: var(--muted);
}

.no-results__icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.no-results h3 {
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 8px;
}

.no-results a {
  color: var(--orange);
}

/* List view */
.product-grid.list-view {
  grid-template-columns: 1fr !important;
}

.product-grid.list-view .product-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: start;
  gap: 0;
}

.product-grid.list-view .product-card__image {
  height: 160px;
  border-radius: var(--radius) 0 0 var(--radius);
}

.product-grid.list-view .product-card__body {
  padding: 18px 20px;
}

.product-grid.list-view .product-card__body h3 {
  font-size: 17px;
}

/* Mobile filter overlay & drawer */
.filter-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  z-index: 80;
}

.filter-mobile-overlay.open {
  display: block;
}

/* ── Responsive overrides ── */
@media (max-width: 768px) {
  .mobile-filter-bar {
    display: flex;
  }

  /* hide desktop sort/toggle from listing head on mobile */
  .listing-head .listing-controls {
    display: none;
  }

  .filters {
    position: fixed;
    top: 0;
    left: -100%;
    width: min(340px, 90vw);
    height: 100dvh;
    overflow-y: auto;
    background: var(--white);
    z-index: 90;
    border: none !important;
    padding: 20px 20px 100px !important;
    transition: left .28s ease;
    border-right: 1px solid var(--line) !important;
  }

  .filters.open {
    left: 0;
  }

  .filters__mobile-close {
    display: block;
    position: sticky;
    bottom: 0;
    width: 100%;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    min-height: 48px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 24px;
  }

  .layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  .filters__mobile-close {
    display: none;
  }
}

/* Static pages */
.static-page {
  padding-bottom: 58px;
}

.static-page a,
.policy-content a {
  color: var(--blue);
}

.static-page .primary-button {
  color: var(--white);
}

.static-page .secondary-button {
  color: var(--blue);
}

.static-page-head {
  max-width: 720px;
  margin: 18px 0 24px;
}

.static-page-head h1,
.static-hero h1,
.policy-content h1,
.error-page h1 {
  margin: 10px 0 10px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.06;
  letter-spacing: 0;
}

.static-page-head p,
.static-hero p,
.policy-content p,
.error-page p {
  color: var(--muted);
  line-height: 1.7;
}

.static-page--narrow {
  max-width: 900px;
}

.static-hero {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f7fbff, #fff7f2);
}

.static-hero__actions,
.error-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.static-stats {
  display: grid;
  gap: 12px;
}

.static-stats div,
.static-card,
.faq-item,
.policy-content {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.static-stats div {
  padding: 20px;
  display: grid;
  align-content: center;
}

.static-stats strong {
  color: var(--orange);
  font-size: 30px;
  line-height: 1;
}

.static-stats span {
  color: var(--muted);
  margin-top: 8px;
}

.static-grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.static-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.static-card {
  padding: 22px;
}

.static-card h2,
.policy-content h2,
.contact-form h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.static-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.static-card--accent {
  background: #f6fbf8;
  border-color: #cfead9;
}

.static-card--accent .secondary-button {
  margin-top: 18px;
}

.static-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-top: 16px;
}

.static-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 20px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 16px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-row span {
  color: var(--muted);
  text-align: right;
}

.map-box {
  min-height: 260px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(8, 119, 187, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(12, 155, 74, 0.08) 1px, transparent 1px),
    #f7fbff;
  background-size: 32px 32px;
  display: grid;
  place-items: center;
  padding: 22px;
  text-align: center;
}

.map-box div {
  max-width: 280px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.map-box span {
  display: block;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 0 18px;
}

.faq-item summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 800;
}

.faq-item summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--blue);
  flex: 0 0 auto;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.policy-content {
  padding: 30px;
  margin-top: 18px;
}

.policy-date {
  margin-top: 0;
  font-size: 14px;
}

.policy-content h2 {
  margin-top: 28px;
}

.error-page {
  min-height: 52vh;
  text-align: center;
  display: grid;
  place-items: center;
  align-content: center;
}

.error-code {
  font-size: clamp(74px, 14vw, 160px);
  line-height: 0.9;
  font-weight: 900;
  color: var(--orange);
}

.error-actions {
  justify-content: center;
}

@media (max-width: 900px) {
  .static-hero,
  .static-grid--three,
  .static-split,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .static-hero,
  .policy-content,
  .static-card,
  .checkout-card.contact-form {
    padding: 18px;
  }

  .contact-row {
    display: grid;
  }

  .contact-row span {
    text-align: left;
  }
}

.add-to-cart:disabled,
.product-add:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.reviews-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr minmax(260px, 340px);
  gap: 18px;
  align-items: start;
}

.review-summary strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}

.rating-bar {
  display: grid;
  grid-template-columns: 48px 1fr 24px;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.rating-bar b {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.rating-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #f7ae16;
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 16px;
}

.review-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.review-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.tracking-result {
  margin-top: 18px;
}

.tracking-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.tracking-steps span {
  min-height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.tracking-steps span.active {
  background: #eaf8f1;
  color: #087a3d;
}

.account-order-details {
  padding: 0;
}

.account-order-details summary {
  list-style: none;
  cursor: pointer;
  padding: 16px;
}

.account-order-details summary::-webkit-details-marker {
  display: none;
}

.account-order-details .order-card__body,
.account-order-details .order-card__foot {
  padding-left: 16px;
  padding-right: 16px;
}

.account-order-meta {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .reviews-layout {
    grid-template-columns: 1fr;
  }

  .compare-table {
    min-width: 620px;
  }
}

@media (max-width: 760px) {
  .tracking-steps {
    grid-template-columns: 1fr 1fr;
  }

  .product-actions,
  .quick-view-actions,
  .compare-actions {
    align-items: stretch;
  }

  .product-actions > *,
  .quick-view-actions > * {
    flex: 1 1 150px;
  }

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

  .cart-summary-box,
  .order-summary {
    position: static;
  }

  .compare-table th,
  .compare-table td {
    padding: 12px;
  }
}

/* Last-mile frontend overrides */
.product-card .card-actions {
  display: grid;
  grid-template-columns: minmax(64px, 0.9fr) minmax(70px, 1fr) 42px;
  gap: 8px;
}

.product-card .card-actions > a.secondary-button {
  grid-column: 1 / -1;
  min-height: 36px;
}

.product-card h3 {
  min-height: 46px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mobile-filter-bar {
  position: sticky;
  top: 0;
  z-index: 36;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.filter-tags-bar,
.filter-tags {
  gap: 10px;
}

.order-summary,
.filters,
.dashboard-sidebar {
  align-self: start;
  position: sticky;
  top: 96px;
}

.compare-table-wrap,
.tracking-result,
.review-summary,
.review-form,
.review-card,
.map-box {
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding: 24px;
  border: 1px dashed #d8e0eb;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--soft));
  text-align: center;
}

.status-badge--processing { background: #eaf4ff; color: var(--blue); }
.status-badge--shipped { background: #eef2ff; color: #4452c8; }

@media (max-width: 900px) {
  .order-summary,
  .filters,
  .dashboard-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 68px;
  }

  .product-grid.list-view .product-card {
    grid-template-columns: 118px 1fr;
  }

  .cart-row {
    align-items: start;
    gap: 12px;
    padding: 14px;
  }

  .dashboard-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .dashboard-nav a {
    min-width: max-content;
  }
}

@media (max-width: 520px) {
  .quick-view-modal {
    inset: 10px;
    width: auto;
    max-height: none;
    transform: none;
    top: 0;
    left: 0;
  }

  .product-grid.list-view .product-card {
    grid-template-columns: 1fr;
  }
}
