@font-face {font-family: "Vazir"; src: url("../fonts/Vazir.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap;}
@font-face {font-family: "Vazir"; src: url("../fonts/Vazir-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap;}
@font-face {font-family: "Vazir"; src: url("../fonts/Vazir-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap;}
/* ===== Mahour Shop — standalone styles ===== */
:root {
  --radius: 0.75rem;
  --background: oklch(0.974 0.012 80);
  --foreground: oklch(0.22 0.025 52);
  --card: oklch(0.99 0.006 75);
  --primary: oklch(0.49 0.13 26);
  --primary-foreground: oklch(0.985 0.006 75);
  --secondary: oklch(0.934 0.021 75);
  --muted: oklch(0.94 0.013 75);
  --muted-foreground: oklch(0.49 0.025 58);
  --border: oklch(0.85 0.018 74);
  --surface-float: oklch(0.99 0.006 75 / 92%);
  --glass: oklch(0.99 0.006 75 / 64%);
  --glass-line: oklch(1 0 0 / 72%);
  --rating: oklch(0.72 0.15 73);
  --success: oklch(0.5 0.1 158);
  --shadow-elegant: 0 18px 42px -18px oklch(0.49 0.13 26 / 45%);
  --shadow-hero: 0 35px 80px -34px oklch(0.22 0.025 52 / 40%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Vazir", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 2rem;
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-pill {
  border-radius: 999px;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-elegant);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-outline {
  border: 1px solid var(--glass-line);
  background: oklch(0.99 0.006 75 / 60%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-outline:hover {
  background: var(--secondary);
}

.btn-lg {
  height: 3rem;
  padding-inline: 1.75rem;
}

.btn-sm {
  height: 2.5rem;
  padding-inline: 1rem;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  position: relative;
  transition: background 0.2s;
}

.icon-btn:hover {
  background: var(--secondary);
}

.icon-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-inline svg {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  vertical-align: -0.15em;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== Header ===== */
.site-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--glass-line);
  background: oklch(0.99 0.006 75 / 70%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 640px) {
  .header-inner {
    height: 5rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid oklch(0.49 0.13 26 / 25%);
  background: oklch(0.49 0.13 26 / 10%);
  color: var(--primary);
}

.logo-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
  }
}

.nav-link {
  transition: color 0.2s;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.icon-btn-cart {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -0.25rem;
  left: -0.25rem;
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 10px;
  font-weight: 700;
}

.icon-btn-mobile {
  display: grid;
}

@media (min-width: 1024px) {
  .icon-btn-mobile {
    display: none;
  }
}

/* Search bar */
.search-bar {
  border-top: 1px solid var(--glass-line);
  background: oklch(0.99 0.006 75 / 90%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0.75rem 1.25rem;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-inline: 0;
}

.search-form .btn {
  height: 3rem;
  padding-inline: 1.25rem;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding-inline: 1rem;
}

.search-icon svg,
.search-clear svg {
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
  display: block;
}

.search-input-wrap input {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.875rem;
  color: inherit;
  min-width: 0;
}

.search-input-wrap input::placeholder {
  color: var(--muted-foreground);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, oklch(0.95 0.03 140), var(--background) 56%);
  padding-top: 4rem;
}

@media (min-width: 640px) {
  .hero {
    padding-top: 5rem;
  }
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 2rem;
  min-height: 680px;
  padding-block: 2.5rem;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
  order: 2;
  max-width: 36rem;
  padding-bottom: 3rem;
}

@media (min-width: 1024px) {
  .hero-copy {
    order: 1;
    padding-bottom: 0;
  }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.eyebrow-line {
  height: 1px;
  width: 2.5rem;
  background: var(--primary);
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-title-accent {
  display: block;
  color: var(--primary);
}

.hero-lead {
  margin-top: 1.5rem;
  max-width: 32rem;
  color: var(--muted-foreground);
  line-height: 2;
}

@media (min-width: 768px) {
  .hero-lead {
    font-size: 1.125rem;
  }
}

.hero-cta {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-stats {
  margin-top: 3rem;
  display: flex;
  gap: 2rem;
  border-top: 1px solid var(--glass-line);
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero-stats strong {
  display: block;
  font-size: 1.25rem;
  color: var(--foreground);
}

.hero-visual {
  order: 1;
  position: relative;
  margin-inline: auto;
  width: 100%;
  max-width: 560px;
}

@media (min-width: 1024px) {
  .hero-visual {
    order: 2;
  }
}

.hero-image {
  position: relative;
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  max-height: 650px;
  overflow: hidden;
  border-radius: 2.5rem;
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-hero);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 45%);
  border-radius: inherit;
}

.hero-card {
  position: absolute;
  inset-inline: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 1rem;
  border: 1px solid var(--glass-line);
  background: oklch(0.99 0.006 75 / 72%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 1rem;
}

.hero-card-sub {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.hero-card-title {
  margin-top: 0.25rem;
  font-weight: 700;
}

.hero-card-arrow {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
}

.hero-card-arrow svg {
  width: 1rem;
  height: 1rem;
}

/* ===== Products ===== */

.products-head {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .products-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.filter-group {
  display: flex;
  gap: 0.25rem;
  width: 100%;
  overflow-x: auto;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0.375rem;
}

@media (min-width: 768px) {
  .filter-group {
    width: auto;
  }
}

.filter-btn {
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 999px;
  padding-inline: 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
  transition: all 0.25s;
}

.filter-btn:hover {
  background: var(--secondary);
}

.filter-btn.is-active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.products-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Product card (glassmorphism) --- */
.product-card {
  position: relative;
  isolation: isolate;
  border-radius: 1rem;
  border: 1px solid var(--glass-line);
  padding: 0.5rem;
  background: linear-gradient(145deg, oklch(0.99 0.006 75 / 72%), oklch(0.99 0.006 75 / 52%));
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  box-shadow:
    inset 0 1px 0 oklch(0.99 0.006 75 / 85%),
    inset 0 -1px 0 oklch(0.22 0.025 52 / 5%),
    0 18px 55px -38px oklch(0.22 0.025 52 / 34%);
  transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.42s ease, border-color 0.42s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(145deg, oklch(0.99 0.006 75 / 85%), transparent 44%, oklch(0.49 0.13 26 / 16%));
  opacity: 0.55;
  transition: opacity 0.42s ease;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 12% 12% -6%;
  z-index: -2;
  border-radius: 1.5rem;
  background: oklch(0.49 0.13 26 / 15%);
  filter: blur(34px);
  opacity: 0;
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in oklab, var(--primary) 28%, var(--glass-line));
  box-shadow:
    inset 0 1px 0 oklch(0.99 0.006 75 / 95%),
    inset 0 -1px 0 oklch(0.49 0.13 26 / 8%),
    0 34px 80px -40px oklch(0.22 0.025 52 / 52%),
    0 12px 36px -24px oklch(0.49 0.13 26 / 45%);
}

.product-card:hover::before,
.product-card:hover::after {
  opacity: 1;
}

.product-card:hover::after {
  transform: translateY(6px) scale(1.04);
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 4.9;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--secondary);
  box-shadow: inset 0 0 0 1px oklch(0.99 0.006 75 / 65%), 0 12px 28px -22px oklch(0.22 0.025 52 / 45%);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease-out;
}

.product-card:hover .product-image img {
  transform: scale(1.065);
}

.product-image-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0.22 0.025 52 / 24%), transparent 32%);
  opacity: 0.32;
  transition: opacity 0.42s ease;
}

.product-card:hover .product-image-shade {
  opacity: 0.5;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: oklch(0.99 0.006 75 / 82%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--foreground);
}

.card-badge-row {
  position: absolute;
  inset-inline: 0.75rem;
  top: 0.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-action {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: oklch(0.99 0.006 75 / 76%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: inset 0 1px 0 oklch(0.99 0.006 75 / 90%), 0 8px 22px -14px oklch(0.22 0.025 52 / 45%);
  transition: all 0.3s ease;
}

.product-action:hover {
  transform: scale(1.08);
}

.product-action svg {
  width: 1.15rem;
  height: 1.15rem;
}

.product-action.is-liked svg {
  fill: var(--primary);
  stroke: var(--primary);
  transform: scale(1.1);
}

@media (min-width: 768px) {
  .action-quickview {
    opacity: 0;
    transform: translateX(0.75rem);
  }

  .product-card:hover .action-quickview {
    opacity: 1;
    transform: translateX(0);
  }
}

.quickview-strip {
  position: absolute;
  inset-inline: 0.75rem;
  bottom: 0.75rem;
  transform: translateY(0.75rem);
  opacity: 0;
  transition: all 0.3s ease;
}

.product-card:hover .quickview-strip {
  transform: translateY(0);
  opacity: 1;
}

.quickview-strip button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: oklch(0.99 0.006 75 / 84%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  font-size: 0.875rem;
  font-weight: 700;
  transition: background 0.2s;
}

.quickview-strip button:hover {
  background: var(--surface-float);
}

.quickview-strip svg {
  width: 1rem;
  height: 1rem;
}

.card-body {
  position: relative;
  z-index: 1;
  padding: 1rem 0.75rem 0.75rem;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cat-tag {
  border-radius: 999px;
  border: 1px solid oklch(0.49 0.13 26 / 15%);
  background: oklch(0.49 0.13 26 / 5%);
  color: var(--primary);
  padding: 0.25rem 0.625rem;
  font-size: 11px;
  font-weight: 700;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
}

.rating svg {
  width: 0.875rem;
  height: 0.875rem;
  fill: var(--rating);
  stroke: var(--rating);
}

.rating strong {
  font-weight: 700;
}

.rating-count {
  color: var(--muted-foreground);
}

.card-title {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  transition: color 0.2s;
}

.product-card:hover .card-title {
  color: var(--primary);
}

.card-price {
  margin-top: 1rem;
  min-height: 3rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--glass-line);
  padding-top: 0.75rem;
}

.old-price {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.price {
  margin-top: 0.125rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.price small {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-foreground);
}

.add-btn {
  margin-top: 1rem;
  width: 100%;
  height: 2.75rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-elegant);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.add-btn:hover {
  filter: brightness(1.08);
}

.add-btn.is-added {
  background: var(--success);
}

.add-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* Empty state */
.empty-state {
  margin-top: 2.5rem;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 1.5rem;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 4rem 1.5rem;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--muted-foreground);
}

.empty-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.empty-title {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.empty-sub {
  margin-top: 0.5rem;
  max-width: 22rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.empty-state .btn {
  margin-top: 1.5rem;
  height: 2.5rem;
  padding-inline: 1.25rem;
}

/* ===== Story ===== */
.story-section {
  border-block: 1px solid var(--glass-line);
  background: linear-gradient(105deg, color-mix(in oklab, var(--secondary) 80%, oklch(0.9 0.04 145)), var(--secondary));
  padding-block: 5rem;
}

.story-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .story-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.story-title {
  margin-top: 0.75rem;
  max-width: 36rem;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.35;
}

@media (min-width: 768px) {
  .story-title {
    font-size: 3rem;
  }
}

.story-text {
  color: var(--muted-foreground);
  line-height: 2;
}

.story-badges {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--glass-line);
  background: var(--glass);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
}

.footer-body {
  padding-block: 3.5rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  }
}

.footer-about {
  margin-top: 1rem;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--muted-foreground);
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
}

.footer-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-link {
  transition: color 0.2s;
  font-size: 0.875rem;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-newsletter-text {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--muted-foreground);
}

.newsletter-form {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: oklch(0.99 0.006 75 / 70%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0.375rem;
}

.newsletter-form input {
  flex: 1;
  height: 2.5rem;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.875rem;
  color: inherit;
  padding-inline: 0.75rem;
}

.newsletter-form input::placeholder {
  color: var(--muted-foreground);
}

.footer-bottom {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--glass-line);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: right;
  }
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

/* ===== Modal (quick view) ===== */
.modal,
.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.modal-backdrop,
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: oklch(0.22 0.025 52 / 45%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fade-in 0.25s ease;
}

.modal-panel {
  position: relative;
  z-index: 1;
  margin: 5vh auto;
  max-width: 52rem;
  width: calc(100% - 2rem);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 1.5rem;
  border: 1px solid var(--glass-line);
  background: var(--card);
  box-shadow: 0 40px 90px -30px oklch(0.22 0.025 52 / 50%);
  animation: pop-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background: var(--surface-float);
}

.modal-grid {
  display: grid;
}

@media (min-width: 768px) {
  .modal-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.modal-image {
  position: relative;
  aspect-ratio: 4 / 4.4;
  background: var(--secondary);
}

@media (min-width: 768px) {
  .modal-image {
    aspect-ratio: auto;
    min-height: 100%;
  }
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-image .badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.modal-body {
  padding: 1.5rem;
}

.qv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.qv-name {
  margin-top: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.qv-desc {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 2;
  color: var(--muted-foreground);
}

.qv-colors {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.color-chip {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-float);
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.qv-price-row {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-line);
}

.qv-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  padding: 0.25rem;
}

.qty-btn {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: var(--secondary);
}

.qty-btn svg {
  width: 1rem;
  height: 1rem;
}

.qty-value {
  min-width: 2rem;
  text-align: center;
  font-weight: 700;
}

.qv-add {
  flex: 1;
  height: 3rem;
  border-radius: 0.9rem;
}

/* ===== Cart drawer ===== */
.drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: min(26rem, 92vw);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-right: 1px solid var(--glass-line);
  box-shadow: 20px 0 60px -30px oklch(0.22 0.025 52 / 45%);
  animation: slide-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--glass-line);
}

.drawer-head h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer-foot {
  border-top: 1px solid var(--glass-line);
  padding: 1.25rem 1.5rem;
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.cart-total-row strong {
  font-size: 1.25rem;
  font-weight: 700;
}

.btn-checkout {
  width: 100%;
  height: 3rem;
  margin-top: 1rem;
}

.checkout-note {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted-foreground);
}

.cart-item {
  display: flex;
  gap: 0.875rem;
  align-items: center;
  border: 1px solid var(--glass-line);
  border-radius: 1rem;
  background: var(--glass);
  padding: 0.625rem;
}

.cart-item img {
  width: 4.5rem;
  height: 5.25rem;
  object-fit: cover;
  border-radius: 0.75rem;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
}

.cart-item-row {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.cart-qty .qty-btn {
  width: 1.75rem;
  height: 1.75rem;
}

.cart-qty .qty-btn svg {
  width: 0.8rem;
  height: 0.8rem;
}

.cart-qty .qty-value {
  min-width: 1.5rem;
  font-size: 0.85rem;
}

.remove-btn {
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.remove-btn:hover {
  color: oklch(0.577 0.245 27);
}

.remove-btn svg {
  width: 1rem;
  height: 1rem;
}

.cart-empty {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 0;
}

.cart-empty-icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-inline: auto;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--muted-foreground);
}

.cart-empty-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.cart-empty p {
  margin-top: 1rem;
  font-weight: 700;
}

.cart-empty span {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

/* ===== Mobile menu drawer ===== */
.menu-body {
  gap: 1.75rem;
}

.menu-account {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  border: 1px solid var(--glass-line);
  border-radius: 1rem;
  background: var(--glass);
  padding: 0.875rem 1rem;
}

.menu-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: oklch(0.49 0.13 26 / 10%);
  color: var(--primary);
}

.menu-avatar svg {
  width: 1.25rem;
  height: 1.25rem;
}

.menu-account-name {
  font-size: 0.9rem;
  font-weight: 700;
}

.menu-account-link {
  margin-top: 0.15rem;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
}

.menu-account-link:hover {
  text-decoration: underline;
}

.menu-section-title {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-foreground);
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  height: 2.75rem;
  border-radius: 0.75rem;
  padding-inline: 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--foreground);
  transition: background 0.2s ease;
}

.menu-link:hover {
  background: var(--secondary);
}

.menu-link-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--muted-foreground);
}

.menu-link-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.menu-link:hover .menu-link-icon {
  color: var(--primary);
}

.menu-foot {
  display: flex;
}

.menu-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  height: 2.9rem;
  border-radius: 999px;
  border: 1px solid oklch(0.577 0.245 27 / 30%);
  background: oklch(0.577 0.245 27 / 8%);
  color: oklch(0.5 0.19 27);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s ease;
}

.menu-logout:hover {
  background: oklch(0.577 0.245 27 / 14%);
}

.menu-logout svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
}

@keyframes slide-in {
  from {
    transform: translateX(-100%);
  }
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
[hidden] { display: none !important; }
input, select, textarea { font: inherit; }
.site-notice { position:fixed; bottom:1rem; inset-inline:1rem; margin:auto; max-width:36rem; padding:1rem; background:var(--foreground); color:var(--background); border-radius:1rem; z-index:1000; text-align:center; }
