/* =========================================================
   USWA IMPEX — shared stylesheet
   Design tokens borrowed from the PayPaiva reference (Fraunces
   + Inter, purple palette, glass cards) applied to a bedding brand.
   ========================================================= */

:root {
  --bg: #FFFFFF;
  --ink: #211C2B;
  --ink-soft: #5B5568;
  --heading: #2A1440;
  --border-rgb: 231,225,239;
  --surface-rgb: 255,255,255;
  --card-alpha: 0.6;
  --header-alpha: 0.72;
  --nav-alpha: 0.9;
  --modal-alpha: 0.85;
  --shadow: 0 12px 32px rgba(42,20,64,0.10);

  --purple: #5A2D82;
  --purple-rgb: 90,45,130;
  --purple-dark: #3E1F5C;
  --purple-dark-rgb: 62,31,92;
  --purple-darker: #2A1440;
  --purple-darker-rgb: 42,20,64;
  --purple-light: #8B5FBF;

  --red: #B23A3A;
  --red-rgb: 178,58,58;

  --on-dark: #FFFFFF;
  --success: #2E7D4F;
  --radius: 10px;
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease-fluid: cubic-bezier(.22,1,.36,1);
}

[data-theme="dark"] {
  --bg: #0B0D17;
  --ink: #F3F1F8;
  --ink-soft: #B7AFCB;
  --heading: #EDE3F9;
  --border-rgb: 255,255,255;
  --card-alpha: 0.07;
  --header-alpha: 0.55;
  --nav-alpha: 0.7;
  --modal-alpha: 0.14;
  --shadow: 0 16px 40px rgba(0,0,0,0.5);
  --purple: #A57ED6;
  --purple-light: #C9A8ED;
  --red: #E08585;
  --success: #4CBB7D;
}

/* Cross-document view transitions — smooth crossfade between page
   navigations in supporting browsers, silently ignored elsewhere. */
@view-transition {
  navigation: auto;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

/* Urdu toggle: dir="rtl" lets flexbox mirror layouts natively; we only
   need to swap the font and loosen line-height for Nastaliq's shape. */
html[dir="rtl"] { direction: rtl; }
html[lang="ur"] body { font-family: "Noto Nastaliq Urdu", "Noto Sans Arabic", var(--font-sans); }
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3, html[lang="ur"] h4 { font-family: "Noto Nastaliq Urdu", serif; line-height: 1.9; }
html[lang="ur"] p, html[lang="ur"] .btn, html[lang="ur"] .nav-link, html[lang="ur"] .eyebrow { line-height: 2.1; }
html[lang="ur"] .logo span, html[lang="ur"] .footer__note, html[lang="ur"] .footer__bottom { font-family: var(--font-sans); direction: ltr; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
  animation: page-in 0.5s var(--ease-fluid);
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--heading); line-height: 1.2; margin: 0 0 16px; font-weight: 600; }
h1 { font-size: 2.9rem; }
h2 { font-size: 2.05rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p { color: var(--ink-soft); margin: 0 0 16px; }
a { color: var(--purple); text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

/* Top bar */
.topbar { background: rgba(var(--purple-darker-rgb), 0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: #D9C9EE; font-size: 0.82rem; transition: max-height 0.3s var(--ease-fluid); }
.topbar__inner { display: flex; justify-content: flex-start; align-items: center; padding: 8px 24px; flex-wrap: wrap; gap: 10px; }
.topbar__msg { display: flex; align-items: center; gap: 10px; }
.topbar__msg[hidden] { display: none; }
.topbar__close { background: none; border: none; color: #D9C9EE; opacity: 0.65; cursor: pointer; font-size: 1.05rem; line-height: 1; padding: 0 2px; transition: opacity 0.15s ease, transform 0.15s var(--ease-fluid); flex-shrink: 0; }
.topbar__close:hover { opacity: 1; transform: scale(1.15); }
.topbar__right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.topbar a { color: #D9C9EE; }
.topbar a:hover { color: #fff; }
.divider { opacity: 0.4; }
.theme-toggle {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(217,201,238,0.35);
  color: #D9C9EE;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s var(--ease-fluid);
}
.theme-toggle:hover { background: rgba(255,255,255,0.16); }
.theme-toggle:active { transform: scale(0.94); }

/* Header */
.header {
  border-bottom: 1px solid rgba(var(--border-rgb), 0.5);
  background: rgba(var(--surface-rgb), var(--header-alpha));
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  position: sticky; top: 0; z-index: 50;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 1.28rem; font-weight: 700; color: var(--heading); letter-spacing: 0.3px; cursor: pointer; border: none; background: none; padding: 0; }
.logo em { font-style: normal; color: var(--purple); }
.logo span.tagline { display: block; font-family: var(--font-sans); font-size: 0.62rem; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-soft); margin-top: -2px; }
.logo svg { transition: transform 0.4s var(--ease-fluid); }
.logo:hover svg { transform: rotate(-8deg) scale(1.06); }

.nav { display: flex; align-items: center; gap: 26px; flex: 1; justify-content: center; }
.nav-link { color: var(--ink); font-weight: 500; font-size: 0.94rem; background: none; border: none; cursor: pointer; padding: 4px 0; position: relative; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--purple); transform: scaleX(0); transition: transform 0.25s var(--ease-fluid); transform-origin: left; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--purple); }

.header__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(var(--border-rgb), 0.6); background: transparent; color: var(--heading); cursor: pointer; transition: all 0.15s var(--ease-fluid); }
.icon-btn:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-1px); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn svg { width: 19px; height: 19px; }
.basket-count { position: absolute; top: -4px; right: -4px; background: var(--red); color: #fff; font-size: 0.65rem; font-weight: 700; min-width: 17px; height: 17px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 3px; transition: transform 0.3s var(--ease-fluid); }
.basket-count[hidden] { display: none; }
.basket-count.is-bumped { animation: bump 0.45s var(--ease-fluid); }
@keyframes bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.55); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.icon-btn.is-bumped { animation: icon-shake 0.45s var(--ease-fluid); }
@keyframes icon-shake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-9deg); }
  50% { transform: rotate(7deg); }
  75% { transform: rotate(-4deg); }
}

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--heading); display: block; transition: transform 0.25s ease, opacity 0.25s ease; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px; border-radius: 6px; font-weight: 600; font-size: 0.92rem; border: 1.5px solid transparent; cursor: pointer; transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.15s var(--ease-fluid), box-shadow 0.2s ease; }
.btn--primary { background: rgba(var(--purple-rgb), 0.92); color: #fff; }
.btn--primary:hover { background: rgba(var(--purple-dark-rgb), 0.95); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(var(--purple-rgb),0.25); }
.btn--ghost { background: transparent; color: var(--heading); border-color: transparent; }
.btn--ghost:hover { color: var(--purple); }
.btn--outline { background: rgba(var(--purple-rgb), 0.06); border-color: var(--purple); color: var(--purple); }
.btn--outline:hover { background: rgba(var(--purple-rgb), 0.14); transform: translateY(-2px); }
.btn--lg { padding: 14px 30px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--sm { padding: 7px 14px; font-size: 0.82rem; }
.btn--danger { background: rgba(var(--red-rgb), 0.1); border-color: var(--red); color: var(--red); }
.btn--danger:hover { background: rgba(var(--red-rgb), 0.18); }
.btn:active { transform: scale(0.96); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn.is-success { background: var(--success) !important; border-color: var(--success) !important; color: #fff !important; }

/* Page banner (interior pages) */
.page-banner { background: linear-gradient(180deg, rgba(var(--purple-rgb), 0.12) 0%, rgba(var(--purple-rgb), 0) 100%); padding: 56px 0 40px; text-align: center; }
.page-banner .eyebrow { justify-content: center; display: flex; }
.breadcrumb { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 10px; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--purple); }

/* Hero */
.hero { background: linear-gradient(180deg, rgba(var(--purple-rgb), 0.10) 0%, rgba(var(--purple-rgb), 0) 100%); padding: 64px 0 56px; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.78rem; font-weight: 700; color: var(--purple); margin-bottom: 14px; }
.eyebrow--light { color: var(--purple-light); }
.hero__lede { font-size: 1.06rem; max-width: 520px; }
.hero__cta { display: flex; gap: 16px; margin: 26px 0 34px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-serif); font-size: 1.45rem; color: var(--heading); }
.hero__stats span { font-size: 0.8rem; color: var(--ink-soft); }

.hero__visual { position: relative; height: 360px; perspective: 1200px; }
.swatch-card {
  background: rgba(var(--surface-rgb), var(--card-alpha));
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(var(--border-rgb), 0.4);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; width: 300px; position: absolute;
  transition: transform 0.35s var(--ease-fluid), box-shadow 0.35s ease;
  will-change: transform;
  animation: float-card 6s ease-in-out infinite;
}
.swatch-card:first-child { top: 0; left: 8%; z-index: 2; }
.swatch-card--secondary { top: 175px; left: 26%; z-index: 1; background: rgba(var(--purple-darker-rgb), 0.72); border-color: rgba(var(--purple-darker-rgb), 0.72); animation-delay: -3s; }
.swatch-card--secondary h4, .swatch-card--secondary p { color: var(--on-dark); }
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) { .swatch-card { animation: none; } }
.swatch-card__row { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 12px; }
.swatch-card--secondary .swatch-card__row { color: #D9C9EE; }
.pill { background: rgba(var(--purple-rgb), 0.14); color: var(--purple); padding: 2px 10px; border-radius: 20px; font-weight: 700; font-size: 0.72rem; }
.pill--alt { background: rgba(255,255,255,0.15); color: var(--on-dark); }
.pill--sale { background: rgba(var(--red-rgb), 0.15); color: var(--red); }
.pill--muted { background: rgba(var(--border-rgb), 0.5); color: var(--ink-soft); }
.swatch { height: 78px; border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.swatch-card__price { font-family: var(--font-serif); font-size: 1.5rem; color: var(--heading); margin: 0 0 8px; }
.swatch-card--secondary .swatch-card__price { color: var(--on-dark); }
.swatch-card__footer { display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; border-top: 1px solid rgba(var(--border-rgb), 0.4); padding-top: 12px; gap: 12px; }
.swatch-card__footer .ok { color: var(--success); font-weight: 600; white-space: nowrap; }
.swatch-card--secondary .swatch-card__footer { border-top-color: rgba(255,255,255,0.15); color: #D9C9EE; }

/* Trust bar */
.trust { padding: 46px 0; border-bottom: 1px solid rgba(var(--border-rgb), 0.4); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.trust__icon { width: 46px; height: 46px; border-radius: 50%; background: rgba(var(--purple-rgb), 0.12); color: var(--purple); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; transition: transform 0.3s var(--ease-fluid); }
.trust__item:hover .trust__icon { transform: scale(1.12) rotate(-6deg); }
.trust__icon svg { width: 22px; height: 22px; }
.trust__item h3 { font-size: 1.02rem; margin-bottom: 6px; }
.trust__item p { font-size: 0.88rem; margin: 0; }

/* Sections */
.section { padding: 80px 0; }
.section--tint { background: rgba(var(--purple-rgb), 0.05); }
.section--dark { background: rgba(var(--purple-darker-rgb), 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.section--dark p, .section--dark li { color: #C9B8E0; }
.section__head { max-width: 620px; margin: 0 auto 46px; text-align: center; }
.section__sub { font-size: 1rem; }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; height: 190px; display: flex; align-items: flex-end; padding: 18px; border: 1px solid rgba(var(--border-rgb), 0.4); cursor: pointer; transition: transform 0.35s var(--ease-fluid), box-shadow 0.35s ease; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat-card::before { content: ""; position: absolute; inset: 0; opacity: 0.92; transition: transform 0.5s var(--ease-fluid); }
.cat-card:hover::before { transform: scale(1.08); }
.cat-card--1::before { background: linear-gradient(135deg, rgba(90,45,130,0.62), rgba(139,95,191,0.4)), url('bedsheet-yellow-redcheck.jpg') center/cover; }
.cat-card--2::before { background: linear-gradient(135deg, #3E1F5C, #5A2D82); }
.cat-card--3::before { background: linear-gradient(135deg, rgba(139,95,191,0.55), rgba(178,58,58,0.55)), url('coral-cushion-branded.jpg') center/cover; }
.cat-card--4::before { background: linear-gradient(135deg, #2A1440, #5A2D82); }
.cat-card span { position: relative; color: #fff; font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; }
.cat-card em { font-style: normal; }
.cat-card small { position: relative; display: block; color: rgba(255,255,255,0.8); font-size: 0.78rem; font-weight: 500; margin-top: 2px; }

/* Product grid */
.product-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 12px; }
.product-toolbar__filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip { border: 1.5px solid rgba(var(--border-rgb), 0.6); background: transparent; color: var(--ink-soft); border-radius: 20px; padding: 6px 16px; font-size: 0.84rem; cursor: pointer; transition: all 0.2s var(--ease-fluid); }
.filter-chip:hover { border-color: var(--purple); color: var(--purple); }
.filter-chip[aria-current="true"] { border-color: var(--purple); color: var(--purple); background: rgba(var(--purple-rgb), 0.08); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card { background: rgba(var(--surface-rgb), var(--card-alpha)); border: 1px solid rgba(var(--border-rgb), 0.4); border-radius: var(--radius); overflow: hidden; transition: transform 0.35s var(--ease-fluid), box-shadow 0.35s ease; opacity: 0; animation: card-in 0.55s var(--ease-fluid) forwards; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
@keyframes card-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .product-card { animation: none; opacity: 1; } }
.product-card__media { position: relative; height: 190px; overflow: hidden; }
.product-card__media-img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.5s var(--ease-fluid); }
.product-card:hover .product-card__media-img { transform: scale(1.08); }
.product-card__body { padding: 18px 18px 20px; }
.product-card__cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--purple); font-weight: 700; margin-bottom: 6px; }
.product-card__body h3 { font-size: 1.02rem; margin-bottom: 6px; }
.product-card__stars { color: #D8A928; font-size: 0.8rem; margin-bottom: 10px; }
.product-card__stars span { color: var(--ink-soft); margin-left: 4px; }
.product-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-card__price { font-family: var(--font-serif); font-size: 1.2rem; color: var(--heading); }
.product-card__price del { color: var(--ink-soft); font-size: 0.85rem; font-weight: 400; margin-right: 6px; }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.product-grid-more { text-align: center; margin-top: 40px; }
.product-empty { text-align: center; padding: 60px 20px; color: var(--ink-soft); grid-column: 1 / -1; }

/* Shop toolbar (search + sort) */
.shop-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.shop-search { position: relative; flex: 1; min-width: 220px; max-width: 360px; }
.shop-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-soft); }
.shop-search input { width: 100%; padding: 10px 12px 10px 36px; border-radius: 20px; border: 1.5px solid rgba(var(--border-rgb), 0.6); background: rgba(var(--surface-rgb), var(--card-alpha)); color: var(--ink); font-size: 0.9rem; transition: border-color 0.2s ease; }
.shop-search input:focus { outline: none; border-color: var(--purple); }
.shop-sort { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ink-soft); }
.shop-sort select { padding: 8px 12px; border-radius: 8px; border: 1.5px solid rgba(var(--border-rgb), 0.6); background: rgba(var(--surface-rgb), var(--card-alpha)); color: var(--ink); font-size: 0.85rem; }
.shop-count { font-size: 0.84rem; color: var(--ink-soft); margin-bottom: 18px; }

/* Social strip */
.fb-section-grid { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: center; }
.social-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.social-strip__tile { height: 130px; border-radius: 8px; background-size: cover; background-position: center; border: 1px solid rgba(var(--border-rgb), 0.4); transition: transform 0.3s var(--ease-fluid), opacity 0.3s ease; }
.social-strip:hover .social-strip__tile { opacity: 0.75; }
.social-strip__tile:hover { transform: scale(1.06) rotate(-1deg); opacity: 1 !important; }

/* Beddings by USWA IMPEX — Facebook card (scoped to .uswa-fb-card) */
.uswa-fb-card{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  width:100%;
  max-width:340px;
  background:#fff;
  border-radius:18px;
  box-shadow:0 10px 30px rgba(24,119,242,0.18),0 2px 8px rgba(0,0,0,0.06);
  overflow:hidden;
  text-align:center;
  box-sizing:border-box;
  margin:0 auto;
  transition: transform 0.3s var(--ease-fluid);
}
.uswa-fb-card:hover { transform: translateY(-4px); }
.uswa-fb-card *{box-sizing:border-box;}
.uswa-fb-banner{
  background:linear-gradient(135deg,#1877F2 0%,#0d5fc4 100%);
  height:100px;
}
.uswa-fb-avatar{
  width:92px;height:92px;
  border-radius:50%;
  background:#fff;
  border:4px solid #fff;
  box-shadow:0 4px 12px rgba(0,0,0,0.12);
  display:flex;align-items:center;justify-content:center;
  font-size:40px;
  margin:-46px auto 0;
}
.uswa-fb-body{padding:12px 26px 30px;}
.uswa-fb-title{
  font-size:21px;
  color:#1c1e21;
  margin:12px 0 0;
  font-weight:700;
  letter-spacing:-0.2px;
}
.uswa-fb-tagline{
  color:#606770;
  font-size:14px;
  margin:6px 0 0;
  line-height:1.5;
}
.uswa-fb-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  margin-top:20px;width:100%;
  padding:13px 20px;
  background:#1877F2;
  color:#fff;
  text-decoration:none;
  font-weight:600;
  font-size:15.5px;
  border-radius:10px;
  transition:background .18s ease,transform .12s ease;
}
.uswa-fb-btn:hover{background:#0d5fc4;}
.uswa-fb-btn:active{transform:scale(0.98);}
.uswa-fb-btn svg{flex-shrink:0;}

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split__copy { order: 2; }
.split--reverse .split__visual { order: 1; }
.checklist li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--ink-soft); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--purple); }
.checklist--light li::before { background: var(--purple-light); }
.checklist--light li { color: #C9B8E0; }
.fabric-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fabric-mosaic div { height: 90px; border-radius: 8px; background-size: cover; background-position: center; transition: transform 0.35s var(--ease-fluid); }
.fabric-mosaic div:hover { transform: scale(1.05); }
.fabric-mosaic div:nth-child(1) { background-image: url('cushion-stem-print.jpg'); }
.fabric-mosaic div:nth-child(2) { background-image: url('cushion-bird-print.jpg'); }
.fabric-mosaic div:nth-child(3) { background-image: url('cushion-poppy-red.jpg'); }
.fabric-mosaic div:nth-child(4) { background-image: url('bedsheet-starlit-bloom.jpg'); grid-column: span 2; }
.fabric-mosaic div:nth-child(5) { background-image: url('cushion-teal-floral-set.jpg'); }

/* Timeline (About page) */
.timeline { max-width: 720px; margin: 0 auto; }
.timeline-item { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding-bottom: 34px; position: relative; }
.timeline-item::before { content: ""; position: absolute; left: 44px; top: 30px; bottom: -4px; width: 2px; background: rgba(var(--border-rgb), 0.5); }
.timeline-item:last-child::before { display: none; }
.timeline-year { font-family: var(--font-serif); font-weight: 700; color: var(--purple); text-align: right; }
.timeline-dot { position: absolute; left: 40px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--purple); }

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card { background: rgba(var(--surface-rgb), var(--card-alpha)); border: 1px solid rgba(var(--border-rgb), 0.4); border-radius: var(--radius); padding: 26px; transition: transform 0.3s var(--ease-fluid); }
.testi-card:hover { transform: translateY(-4px); }
.testi-card__stars { color: #D8A928; font-size: 0.85rem; margin-bottom: 12px; }
.testi-card p { font-size: 0.92rem; margin-bottom: 16px; }
.testi-card__who { display: flex; align-items: center; gap: 10px; }
.testi-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--purple); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.testi-card__who strong { display: block; font-size: 0.88rem; color: var(--heading); }
.testi-card__who span { font-size: 0.78rem; color: var(--ink-soft); }
.testi-note { text-align: center; margin-top: 30px; font-size: 0.84rem; color: var(--ink-soft); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(var(--border-rgb), 0.5); }
.faq-item__q { width: 100%; text-align: left; background: none; border: none; padding: 20px 4px; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; font-family: var(--font-serif); font-size: 1.02rem; color: var(--heading); font-weight: 600; }
.faq-item__icon { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(var(--border-rgb), 0.8); display: flex; align-items: center; justify-content: center; color: var(--purple); font-size: 0.95rem; transition: transform 0.3s var(--ease-fluid); }
.faq-item[data-open="true"] .faq-item__icon { transform: rotate(45deg); }
.faq-item__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease-fluid); }
.faq-item[data-open="true"] .faq-item__a { grid-template-rows: 1fr; }
.faq-item__a-inner { overflow: hidden; }
.faq-item__a p { padding: 0 4px 20px; font-size: 0.92rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; }
.contact-card { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid rgba(var(--border-rgb), 0.4); }
.contact-card:last-child { border-bottom: none; }
.contact-card__icon { width: 42px; height: 42px; border-radius: 50%; background: rgba(var(--purple-rgb), 0.12); color: var(--purple); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card__icon svg { width: 19px; height: 19px; }
.contact-card h4 { margin-bottom: 4px; font-size: 0.95rem; }
.contact-card p, .contact-card a { margin: 0; font-size: 0.92rem; }
.contact-form { background: rgba(var(--surface-rgb), var(--card-alpha)); border: 1px solid rgba(var(--border-rgb), 0.4); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-field label { font-size: 0.84rem; font-weight: 600; color: var(--heading); }
.form-field input, .form-field textarea, .form-field select {
  font-family: var(--font-sans); font-size: 0.95rem; padding: 10px 12px;
  border: 1.5px solid rgba(var(--border-rgb), 0.6); border-radius: 6px;
  background: rgba(var(--surface-rgb), var(--card-alpha)); color: var(--ink);
  transition: border-color 0.2s ease;
}
.form-field textarea { resize: vertical; min-height: 90px; font-family: inherit; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--purple); }
.form-ok { background: rgba(46,125,79,0.1); color: var(--success); border: 1px solid rgba(46,125,79,0.25); border-radius: 6px; padding: 10px 12px; font-size: 0.85rem; margin: 4px 0 16px; animation: fade-slide-in 0.35s var(--ease-fluid); }
.form-error { background: rgba(178,58,58,0.1); color: var(--red); border: 1px solid rgba(178,58,58,0.25); border-radius: 6px; padding: 10px 12px; font-size: 0.85rem; margin: -4px 0 16px; animation: fade-slide-in 0.35s var(--ease-fluid); }
@keyframes fade-slide-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* CTA final */
.cta-final { background: rgba(var(--purple-rgb), 0.9); padding: 74px 0; text-align: center; }
.cta-final h2 { color: var(--on-dark); }
.cta-final p { color: #EAD9FA; max-width: 560px; margin: 0 auto 10px; }
.cta-final .btn--outline { background: rgba(255,255,255,0.08); border-color: var(--on-dark); color: var(--on-dark); }
.cta-final .btn--outline:hover { background: rgba(255,255,255,0.18); }
.cta-final .btn--primary { background: rgba(var(--purple-darker-rgb), 0.8); }
.cta-final .btn--primary:hover { background: rgba(30,15,48,0.9); }
.cta-final__inner { display: flex; flex-direction: column; align-items: center; }
.cta-final .hero__cta { justify-content: center; }

/* Footer */
.footer { background: rgba(var(--purple-darker-rgb), 0.94); color: #C9B8E0; padding: 64px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer__brand p { font-size: 0.85rem; color: #B39FCF; }
.logo--footer { color: var(--on-dark); margin-bottom: 14px; }
.footer__social { display: flex; gap: 10px; margin-top: 16px; }
.footer__social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: #D9C9EE; transition: transform 0.25s var(--ease-fluid), background 0.2s ease; }
.footer__social a:hover { background: rgba(255,255,255,0.1); color: #fff; transform: translateY(-3px); }
.footer__social svg { width: 16px; height: 16px; }
.footer__col h4 { color: var(--on-dark); font-size: 0.92rem; margin-bottom: 16px; font-family: var(--font-sans); }
.footer__col a, .footer__col button { display: block; color: #C9B8E0; font-size: 0.87rem; margin-bottom: 12px; background: none; border: none; text-align: left; cursor: pointer; padding: 0; font-family: inherit; }
.footer__col a:hover, .footer__col button:hover { color: var(--on-dark); }
.footer__newsletter { display: flex; gap: 8px; margin-top: 8px; }
.footer__newsletter input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); color: #fff; font-size: 0.85rem; }
.footer__newsletter input::placeholder { color: #9A82BB; }
.footer__bottom { padding: 22px 24px; font-size: 0.78rem; color: #9A82BB; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__note { padding: 0 24px 22px; font-size: 0.74rem; color: #8A72AC; max-width: 900px; }
.footer__admin-link { color: #7A6299; font-size: 0.74rem; }
.footer__admin-link:hover { color: #C9B8E0; }

/* WhatsApp float */
.wa-float { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,0.25); z-index: 60; animation: pulse-glow 2.6s ease-in-out infinite; transition: transform 0.25s var(--ease-fluid); }
.wa-float:hover { filter: brightness(1.06); transform: scale(1.08); animation-play-state: paused; }
.wa-float svg { width: 28px; height: 28px; }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 0 0 10px rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }

/* Basket drawer */
.drawer-overlay { position: fixed; inset: 0; background: rgba(10,6,18,0.5); backdrop-filter: blur(4px); z-index: 200; opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease-fluid), visibility 0s linear 0.3s; }
.drawer-overlay.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s var(--ease-fluid); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 92vw; background: var(--bg); border-left: 1px solid rgba(var(--border-rgb), 0.4); box-shadow: var(--shadow); z-index: 201; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.4s var(--ease-fluid); }
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid rgba(var(--border-rgb), 0.4); }
.drawer__head h3 { margin: 0; }
.drawer__close { background: none; border: none; font-size: 1.5rem; color: var(--ink-soft); cursor: pointer; line-height: 1; transition: transform 0.2s ease; }
.drawer__close:hover { transform: rotate(90deg); color: var(--red); }
.drawer__body { flex: 1; overflow-y: auto; padding: 10px 22px; }
.drawer__empty { text-align: center; padding: 60px 10px; color: var(--ink-soft); }
.cart-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid rgba(var(--border-rgb), 0.35); animation: fade-slide-in 0.3s var(--ease-fluid); }
.cart-item__thumb { width: 60px; height: 60px; border-radius: 8px; flex-shrink: 0; background-size: cover; background-position: center; }
.cart-item__body { flex: 1; min-width: 0; }
.cart-item__body h4 { font-size: 0.9rem; margin: 0 0 4px; }
.cart-item__body .cart-item__meta { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 8px; }
.cart-item__qty { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 24px; height: 24px; border-radius: 5px; border: 1px solid rgba(var(--border-rgb), 0.6); background: transparent; color: var(--heading); cursor: pointer; font-size: 0.9rem; line-height: 1; transition: transform 0.15s var(--ease-fluid), border-color 0.15s ease; }
.qty-btn:hover { border-color: var(--purple); color: var(--purple); }
.qty-btn:active { transform: scale(0.88); }
.cart-item__price { font-weight: 600; color: var(--heading); font-size: 0.9rem; white-space: nowrap; }
.cart-item__remove { background: none; border: none; color: var(--red); font-size: 0.78rem; cursor: pointer; padding: 0; margin-top: 8px; }
.drawer__foot { padding: 18px 22px 22px; border-top: 1px solid rgba(var(--border-rgb), 0.4); }
.drawer__subtotal { display: flex; justify-content: space-between; font-weight: 700; color: var(--heading); margin-bottom: 6px; font-size: 1.02rem; }
.drawer__hint { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 14px; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,6,18,0.5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 210;
  opacity: 0; visibility: hidden; transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.is-open { opacity: 1; visibility: visible; transition: opacity 0.28s ease; }
.modal {
  background: var(--bg); border: 1px solid rgba(var(--border-rgb), 0.4); border-radius: var(--radius);
  box-shadow: var(--shadow); width: 100%; max-width: 440px; padding: 34px 30px; position: relative;
  max-height: 88vh; overflow-y: auto;
  transform: translateY(36px) scale(0.98); opacity: 0;
  transition: transform 0.38s var(--ease-fluid), opacity 0.3s ease;
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); opacity: 1; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: none; background: transparent; color: var(--ink-soft); font-size: 1.4rem; line-height: 1; cursor: pointer; border-radius: 50%; transition: transform 0.2s ease; }
.modal__close:hover { background: rgba(var(--purple-rgb), 0.12); color: var(--heading); transform: rotate(90deg); }
.modal__body h3 { margin-bottom: 10px; }
.modal__lede { font-size: 0.94rem; margin-bottom: 22px; }
.modal__form { display: flex; flex-direction: column; gap: 14px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px) scale(0.985); transition: opacity 0.7s var(--ease-fluid), transform 0.7s var(--ease-fluid); transition-delay: var(--reveal-delay, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; opacity: 1; transform: none; } }

/* ================= Admin portal ================= */
.admin-gate { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.admin-gate__card { max-width: 380px; width: 100%; text-align: center; background: rgba(var(--surface-rgb), var(--card-alpha)); border: 1px solid rgba(var(--border-rgb), 0.4); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 30px; }
.admin-gate__icon { font-size: 2.4rem; margin-bottom: 6px; }
.admin-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 34px; }
.admin-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.admin-stat { background: rgba(var(--purple-rgb), 0.08); border-radius: 8px; padding: 10px 18px; text-align: center; min-width: 90px; }
.admin-stat strong { display: block; font-family: var(--font-serif); font-size: 1.3rem; color: var(--heading); }
.admin-stat span { font-size: 0.75rem; color: var(--ink-soft); }
.admin-grid { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: start; }
.admin-panel { background: rgba(var(--surface-rgb), var(--card-alpha)); border: 1px solid rgba(var(--border-rgb), 0.4); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; position: sticky; top: 90px; }
.admin-panel h3 { margin-bottom: 4px; }
.admin-image-preview { width: 100%; height: 140px; border-radius: 8px; background: rgba(var(--purple-rgb), 0.08); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 0.82rem; margin-bottom: 14px; border: 1.5px dashed rgba(var(--border-rgb), 0.7); overflow: hidden; }
.admin-table-wrap { overflow-x: auto; border: 1px solid rgba(var(--border-rgb), 0.4); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 640px; }
.admin-table th { text-align: left; padding: 12px 14px; background: rgba(var(--purple-rgb), 0.07); color: var(--heading); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-table td { padding: 10px 14px; border-top: 1px solid rgba(var(--border-rgb), 0.4); vertical-align: middle; }
.admin-row-thumb { width: 44px; height: 44px; border-radius: 6px; background-size: cover; background-position: center; flex-shrink: 0; }
.admin-row-name { display: flex; align-items: center; gap: 10px; }
.admin-row-name strong { font-size: 0.86rem; color: var(--heading); font-weight: 600; }
.admin-status { font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.admin-status--live { background: rgba(46,125,79,0.12); color: var(--success); }
.admin-status--hidden { background: rgba(var(--red-rgb), 0.12); color: var(--red); }
.admin-status--custom { background: rgba(var(--purple-rgb), 0.14); color: var(--purple); margin-left: 6px; }
.admin-row-actions { display: flex; gap: 6px; }
.admin-empty { text-align: center; padding: 40px; color: var(--ink-soft); }
.admin-toast { position: fixed; bottom: 24px; left: 24px; background: var(--heading); color: #fff; padding: 12px 20px; border-radius: 8px; font-size: 0.86rem; box-shadow: var(--shadow); z-index: 300; opacity: 0; transform: translateY(12px); transition: opacity 0.3s var(--ease-fluid), transform 0.3s var(--ease-fluid); pointer-events: none; }
.admin-toast.is-visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  h1 { font-size: 2.1rem; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { height: 300px; margin-top: 10px; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split--reverse .split__copy, .split--reverse .split__visual { order: initial; }
  .split { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .fb-section-grid { grid-template-columns: 1fr; }
  .uswa-fb-card { max-width: 340px; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-panel { position: static; }

  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(var(--surface-rgb), var(--nav-alpha));
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    flex-direction: column; align-items: flex-start; padding: 20px 24px;
    border-bottom: 1px solid rgba(var(--border-rgb), 0.4); gap: 16px;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .topbar__inner { flex-direction: column; gap: 6px; text-align: center; }
  .topbar__msg { flex-direction: column; gap: 2px; }
  .topbar__right { margin-left: 0; }
}

@media (max-width: 640px) {
  .cat-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .swatch-card { width: 100%; position: static; margin-bottom: 16px; animation: none; }
  .hero__visual { height: auto; }
  .header__inner { padding: 12px 16px; gap: 10px; }
  .drawer { width: 100%; }
  .social-strip { grid-template-columns: repeat(3, 1fr); }
  .social-strip__tile { height: 100px; }
  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .shop-search { max-width: none; }
}
