:root {
  --ink: #f8f5ef;
  --ink-soft: #efe8dc;
  --card: #ffffff;
  --line: #e2d8ca;
  --text: #171411;
  --muted: #756c61;
  --red: #df3f2f;
  --red-dark: #b72f23;
  --red-soft: rgba(223, 63, 47, 0.11);
  --gold: #b98022;
  --gold-soft: rgba(185, 128, 34, 0.14);
  --green: #197d63;
  --green-soft: rgba(25, 125, 99, 0.12);
  --blue: #325f7f;
  --blue-soft: rgba(50, 95, 127, 0.12);
  --plum: #463143;
  --mint: #d7eadf;
  --cream: #fffaf1;
  --shadow: 0 22px 70px rgba(49, 39, 29, 0.13);
  --shadow-sm: 0 8px 26px rgba(49, 39, 29, 0.08);
  --floating-inset: 18px;
  --floating-gap: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(215, 234, 223, 0.72), transparent 28%),
    linear-gradient(135deg, #fffaf1 0%, #f8f5ef 42%, #eef5f0 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

/* ── Ticker ── */
.ticker {
  position: relative;
  z-index: 21;
  overflow: hidden;
  background: var(--text);
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  min-width: 100%;
  gap: 34px;
  padding: 9px 0;
  animation: slideTicker 26s linear infinite;
}

.ticker span {
  color: #fff4df;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

/* ── Site header ── */
.site-header {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  width: min(1180px, calc(100% - 28px));
  margin: 10px auto 0;
  padding: 10px 12px;
  background: rgba(255, 250, 241, 0.88);
  border-bottom: 1px solid var(--line);
  border: 1px solid rgba(226, 216, 202, 0.86);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease,
    opacity 0.25s ease, transform 0.25s ease;
}

/* Hidden while parked at the very top of the home page hero (script.js
   toggles this based on scroll position) so the banner reads uninterrupted;
   reappears the moment the user scrolls. */
.site-header.is-hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.site-header.is-solid {
  background: rgba(255, 250, 241, 0.98);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--text);
  font-size: 14px;
}

.brand small,
.main-nav a {
  color: var(--muted);
}

.brand small {
  margin-top: 2px;
  font-size: 12px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--text);
  background: #fff;
}

.main-nav .main-nav-enquire {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.header-actions form {
  margin: 0;
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.login-button,
.primary-action,
.secondary-action,
.collection-bar a,
.admin-products button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

/* Thin indeterminate progress bar along a button's bottom edge, shown while
   an async action (submit inquiry, generate/regenerate PDF) is in flight -
   works on any button that already has position via the rules above. */
.is-loading-bar {
  position: relative;
  overflow: hidden;
  cursor: progress;
  pointer-events: none;
}

.is-loading-bar::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.28);
  z-index: 1;
}

.is-loading-bar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 40%;
  background: var(--gold, #b98022);
  z-index: 2;
  animation: loadingBarSlide 1.1s ease-in-out infinite;
}

@keyframes loadingBarSlide {
  0% {
    left: -40%;
  }
  100% {
    left: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-loading-bar::after {
    animation: none;
    width: 100%;
    left: 0;
  }
}

.login-button {
  padding: 10px 16px;
  color: #fff;
  background: var(--text);
}

/* ── Cart badge (used on the floating cart button) ── */
.cart-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 8px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.cart-badge[hidden] {
  display: none;
}

/* ── Shared typography ── */
h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: inherit;
  font-weight: 850;
  letter-spacing: 0;
}

.eyebrow {
  display: block;
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.text-link {
  color: var(--red);
  font-weight: 800;
}

.primary-action,
.secondary-action {
  min-height: 46px;
  padding: 12px 18px;
}

.primary-action {
  color: #fff;
  background: var(--text);
}

.secondary-action {
  color: var(--text);
  border: 1px solid var(--line);
  background: #fff;
}

.form-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--red-dark);
  font-weight: 700;
}

.form-success {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  background: #1f8a4c;
  font-weight: 700;
}

section {
  padding: clamp(46px, 6vw, 86px) clamp(16px, 5vw, 72px);
}

/* ── Homepage hero ── */
.home-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(18px, 4vw, 36px) 0;
}

.home-hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding: clamp(14px, 3vw, 24px) clamp(16px, 4vw, 40px);
  background: linear-gradient(0deg, rgba(17, 15, 13, 0.62) 0%, rgba(17, 15, 13, 0.2) 70%, rgba(17, 15, 13, 0) 100%);
  color: #fff;
}

.home-eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.home-title {
  margin: 0 0 10px;
  max-width: 740px;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 0.92;
  color: #fff;
}

.home-sub {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 2px 14px rgba(17, 15, 13, 0.44);
}

.home-hero-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  /* Cancels .home-hero-visual's negative margin-top so pulling the hero
     image up behind the header doesn't also drag these buttons upward. */
  margin-top: clamp(18px, 4vw, 36px);
}

.home-hero-actions {
  display: flex;
  align-self: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 clamp(16px, 5vw, 72px);
}

.home-hero-actions .btn-primary,
.home-hero-actions .btn-secondary {
  min-width: 220px;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid var(--line);
  transition: border-color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--text);
}

.home-community-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: min(760px, calc(100% - 2 * clamp(16px, 5vw, 72px)));
  min-height: 54px;
  margin: 0 auto;
  padding: 10px 24px;
  border-radius: 999px;
  background: #08c94f;
  color: #fff;
  font-size: clamp(13px, 1.6vw, 17px);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 16px 34px rgba(8, 201, 79, 0.26);
}

.home-community-icon {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #08c94f;
}

.home-community-icon svg {
  width: 21px;
  height: 21px;
}

.home-hero-slider {
  position: relative;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  /* Matches the active banner's own natural width/height (set in script.js)
     so the hero is exactly as tall as the image's real proportions dictate -
     no forced ratio, no cropping. Falls back to 16:9 before JS runs. */
  aspect-ratio: var(--hero-natural-ratio, 16 / 9);
  background: var(--ink-soft);
  box-shadow: var(--shadow);
}

/* Immersive scroll effect: JS drives --hero-inset/--hero-radius/--hero-scale
   on scroll (see script.js), pulling the full-bleed hero image into a
   shrinking, rounded "frame" as the user scrolls through the hero. */
.home-hero-visual {
  /* Pull the image up behind the fixed-height ticker + sticky header so it
     reaches the true top edge of the page. The image's own height stays
     purely aspect-ratio driven (no offset baked in); .home-hero-cta below
     gets the matching margin-top instead, so the CTA content doesn't shift. */
  margin-top: calc(-1 * var(--hero-offset, 0px));
  padding: var(--hero-inset, 0px);
}

.hero-image {
  border-radius: var(--hero-radius, 0px);
  transform: scale(var(--hero-scale, 1));
  transform-origin: center;
  will-change: transform, border-radius;
  transition: border-radius 0.05s linear;
}

/* Home hero slide (also reused for any future banner slider) */
.deal-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.deal-slide.active {
  opacity: 1;
}

.deal-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ink-soft);
}

.home-hero-slider .deal-slide img {
  object-fit: cover;
  background: #f8f5ef;
}

/* Default hero placeholder (shown when no admin banner is set) is a branded
   graphic, not a photo - contain it fully instead of cropping the logo. */
.home-hero-slider .deal-slide.deal-slide-contain img {
  object-fit: contain;
}

.slide-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 18px;
  background: rgba(23, 20, 17, 0.58);
  backdrop-filter: blur(16px);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* ── Sticky section-dot nav (home) ── */
.section-dots {
  position: fixed;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.section-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text);
  opacity: 0.28;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.section-dot::before {
  content: "";
  position: absolute;
  inset: -8px;
}

.section-dot:hover,
.section-dot:focus-visible {
  opacity: 0.85;
  transform: scale(1.2);
}

.section-dot.active {
  opacity: 1;
  background: #7a1f3d;
  transform: scale(1.4);
}

.section-dot-tooltip {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.section-dot:hover .section-dot-tooltip,
.section-dot:focus-visible .section-dot-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 980px) {
  .section-dots {
    display: none;
  }
}

/* ── Why-us strip (home) ── */
.why-us-section {
  padding: 0 clamp(16px, 5vw, 72px);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.why-us-card {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(226, 216, 202, 0.8);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-sm);
}

.why-us-card svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #7a1f3d;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-us-card strong {
  color: var(--text);
  font-size: 15px;
}

.why-us-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .why-us-grid {
    grid-template-columns: 1fr;
  }
}

.why-us-grid-8 {
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.why-us-grid-8 .why-us-card {
  justify-items: center;
}

.why-us-grid-8 .why-us-card strong {
  font-size: clamp(20px, 2.6vw, 28px);
  color: #7a1f3d;
}

@media (max-width: 900px) {
  .why-us-grid-8 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .why-us-grid-8 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .why-us-grid-8 .why-us-card {
    padding: 16px;
  }
}

/* ── How it works (home) ── */
.how-it-works-video-section {
  padding: clamp(24px, 4vw, 48px) clamp(16px, 5vw, 72px) 0;
}

.how-it-works-video-frame {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}

.how-it-works-video-frame iframe,
.how-it-works-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.how-it-works-section {
  padding: clamp(42px, 6vw, 88px) clamp(16px, 5vw, 72px);
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.how-it-works-step {
  display: grid;
  gap: 6px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.7);
  border: 1px solid rgba(226, 216, 202, 0.8);
}

.how-it-works-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #7a1f3d;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
}

.how-it-works-step strong {
  color: var(--text);
  font-size: 15px;
}

.how-it-works-step span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .how-it-works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .how-it-works-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Category grid (home) ── */
.cat-section {
  padding: clamp(22px, 4vw, 54px) clamp(16px, 5vw, 72px) clamp(42px, 6vw, 88px);
}

.cat-section#section-collections {
  padding-top: 10px;
}

.cat-section#section-collections .cat-section-head {
  display: none;
}

.cat-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  text-align: left;
}

.cat-section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 0.98;
  color: var(--text);
}

.cat-section-head p {
  margin: 0;
  max-width: 390px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.cat-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(226, 216, 202, 0.74);
  box-shadow: 0 12px 34px rgba(49, 39, 29, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.cat-card-static {
  cursor: default;
}

.cat-card-static:hover {
  transform: none;
  box-shadow: 0 12px 34px rgba(49, 39, 29, 0.08);
}

.cat-card-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--ink-soft);
}

.cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.cat-card:hover .cat-card-img img {
  transform: scale(1.04);
}

.cat-card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.cat-card-label span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cat-card-label small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.cat-card-label svg {
  flex-shrink: 0;
  color: var(--red);
}

/* ── Inner-page hero (photo + dark scrim, used on contact/product/collection/admin/auth) ── */
.page-hero {
  background:
    linear-gradient(90deg, rgba(23, 20, 17, 0.82), rgba(70, 49, 67, 0.4)),
    url("https://i.ibb.co/7dVkNWm4/cotton-ethnic-wear-23-08-28.jpg") center/cover;
  margin: 18px clamp(16px, 5vw, 72px) 0;
  border-radius: 28px;
  overflow: hidden;
}

.page-hero.compact {
  min-height: 320px;
  display: grid;
  align-content: center;
}

.page-hero .eyebrow {
  color: #ffe1a6;
}

.page-hero h1 {
  max-width: 900px;
  color: #fbf6ea;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.95;
}

.page-hero p {
  max-width: 620px;
  color: #e6dbc8;
  line-height: 1.55;
}

.tight {
  padding-bottom: 12px;
}

.collections-section.tight {
  padding: 30px 0 58px;
}

.products-section {
  padding: 26px clamp(16px, 5vw, 72px) 0;
}

/* ── Collection page ── */
.coll-hero {
  width: min(1280px, calc(100% - 28px));
  margin: 0 auto;
  padding: 52px 0 28px;
  background: transparent;
}

.coll-hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.back-history-btn {
  cursor: pointer;
  font: inherit;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 16px;
  padding: 7px 16px 7px 8px;
  border: 1px solid rgba(226, 216, 202, 0.92);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.94);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(49, 39, 29, 0.18);
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.back-link-icon-wrap {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: rgba(185, 128, 34, 0.14);
  color: var(--gold);
}

.back-link-icon {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex: none;
}

.home-link-icon {
  width: 17px;
  height: 17px;
}

.back-link:hover {
  color: var(--gold);
  border-color: rgba(185, 128, 34, 0.42);
  transform: translateX(-2px);
}

.coll-title {
  margin: 0 0 8px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.92;
  color: var(--text);
}

.coll-count {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.coll-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 12px;
  background: rgba(255, 250, 241, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 78px;
  z-index: 15;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.filter-pill:hover {
  border-color: var(--red);
  color: var(--red);
}

.filter-pill.active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.coll-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  width: min(1280px, calc(100% - 28px));
  margin: 20px auto 0;
  align-items: start;
  position: relative;
}

.coll-products-wrap {
  padding: 0 0 58px;
}

.coll-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  min-height: 40px;
}

.coll-load-more-spinner {
  font-size: 13px;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.2s;
}

.coll-load-more-wrap.is-loading .coll-load-more-spinner {
  opacity: 1;
}

.filter-toggle-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.filter-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #7a1f3d;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.filter-toggle-btn svg {
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 999px;
  background: var(--gold-soft);
  fill: currentColor;
  stroke: none;
  color: var(--gold);
}

.filter-overlay {
  display: none;
}

.coll-sidebar {
  position: sticky;
  top: 88px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.8);
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  overflow-x: hidden;
}

.filter-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  fill: var(--muted);
  pointer-events: none;
}

.filter-search-input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
}

.filter-search-input:focus {
  outline: none;
  border-color: var(--text);
}

.coll-sidebar-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group:last-of-type {
  margin-bottom: 12px;
}

.filter-group-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.filter-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-radio-pill {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.filter-radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-radio-pill:has(input:checked) {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.filter-pill-count {
  margin-left: 3px;
  opacity: 0.65;
  font-weight: 600;
}

.filter-radio-pill:has(input:checked) .filter-pill-count {
  opacity: 0.85;
}

.filter-budget-slider {
  width: 100%;
}

.filter-budget-range {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

  .filter-toggle-btn {
    position: fixed;
    left: var(--floating-inset);
    bottom: var(--floating-inset);
    z-index: 58;
    display: inline-flex;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 1px solid rgba(226, 216, 202, 0.92);
    border-radius: 50%;
    background: rgba(255, 250, 241, 0.94);
    color: var(--gold);
    justify-content: center;
    box-shadow: 0 14px 34px rgba(49, 39, 29, 0.18);
  }

  .coll-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 86vw);
    max-height: none;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 60;
  }

  .coll-sidebar.is-open {
    transform: translateX(0);
  }

  .coll-sidebar-head {
    display: flex;
  }

  .filter-overlay:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 55;
  }
}

@media (max-width: 640px) {
  .filter-toggle-btn {
    width: 50px;
    height: 50px;
  }

  .filter-toggle-btn .filter-toggle-label {
    display: none;
  }

  .filter-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
  }
}

@media (max-width: 980px) {
  .filter-toggle-btn .filter-toggle-label {
    display: none;
  }

  .filter-toggle-btn svg {
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    color: currentColor;
  }

  .filter-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
  }
}

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.prod-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(226, 216, 202, 0.72);
  box-shadow: 0 14px 34px rgba(49, 39, 29, 0.08);
  transition: box-shadow 0.2s, transform 0.2s;
}

.prod-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.prod-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--ink-soft);
}

.prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.prod-card:hover .prod-img img {
  transform: scale(1.04);
}

.prod-info {
  display: grid;
  gap: 6px;
  padding: 14px 16px 18px;
}

.prod-info strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.prod-meta {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

/* ── Product listing page ── */
.collection-bar {
  position: sticky;
  top: 78px;
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  overflow: visible;
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.82);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.collection-bar a {
  flex: 0 1 auto;
  min-height: 36px;
  padding: 8px 12px;
  color: var(--muted);
  border: 1px solid transparent;
  background: transparent;
  font-size: 12px;
  white-space: nowrap;
}

.collection-bar a.active,
.collection-bar a:hover {
  color: #fff;
  border-color: var(--text);
  background: var(--text);
}

.view-toggle-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(226, 216, 202, 0.72);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.view-toggle-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.view-toggle-btn.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

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

.product-grid.list-view {
  grid-template-columns: 1fr;
  gap: 12px;
}

.product-grid.list-view .product-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(140px, auto);
  align-items: stretch;
  min-height: 150px;
  border-radius: 14px;
}

.product-grid.list-view .product-image {
  width: 100%;
  height: 100%;
  min-height: 150px;
  aspect-ratio: auto;
}

.product-grid.list-view .product-card img,
.product-grid.list-view .card-slider-slide {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.product-grid.list-view .price-tag {
  display: none;
}


.add-to-cart-fab.list-add-to-cart {
  display: none;
}

.product-grid.list-view .product-image .add-to-cart-fab {
  display: none;
}

.product-grid.list-view .list-add-to-cart {
  position: relative;
  inset: auto;
  display: grid;
  align-self: center;
  justify-self: end;
  z-index: 2;
  width: 46px;
  height: 52px;
  border-radius: 999px 0 0 999px;
  transform: none;
  box-shadow: 0 10px 22px rgba(185, 128, 34, 0.2);
}

.product-grid.list-view .list-add-to-cart:hover {
  transform: translateX(-2px);
}

.product-card-meta {
  display: none;
}

.product-grid.list-view .product-card-meta {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
  padding: 16px 18px;
}

.product-card-meta h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}

.product-card-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.product-card-meta strong {
  color: var(--gold);
  font-size: 15px;
}

.product-grid.list-view .size-picker {
  align-items: center;
  align-content: center;
  justify-content: flex-end;
  padding: 16px;
  border-top: 0;
  border-left: 1px solid rgba(226, 216, 202, 0.6);
}

.product-grid.compact-view {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}

.product-grid.compact-view .product-card {
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(49, 39, 29, 0.07);
}

.product-grid.compact-view .product-card:hover {
  transform: translateY(-2px);
}

.product-grid.compact-view .card-size-picker {
  display: none;
}

.product-grid.compact-view .price-tag {
  padding: 6px 9px 6px 8px;
  font-size: 10px;
}

.product-grid.compact-view .add-to-cart-fab {
  width: 34px;
  height: 38px;
}

.product-grid.compact-view .add-to-cart-fab svg {
  width: 17px;
  height: 17px;
}

.size-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.size-pill {
  padding: 3px 9px;
  border: 1px solid rgba(226, 216, 202, 0.9);
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.card-size-picker {
  padding: 8px 10px;
  border-top: 1px solid rgba(226, 216, 202, 0.6);
}

.size-pill-oos {
  cursor: not-allowed;
  color: var(--muted);
  background: var(--ink-soft);
  text-decoration: line-through;
  opacity: 0.6;
}

.size-pill.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.size-row {
  border: 1px solid rgba(226, 216, 202, 0.72);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
}

.size-row-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.size-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.size-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.size-chip strong {
  font-size: 13px;
}

.size-chip-instock {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.size-chip button {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: var(--ink-soft);
  color: var(--text);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.size-adder-input-row {
  display: flex;
  gap: 8px;
}

.size-adder-input-row input {
  flex: 1 1 auto;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.size-instock-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  white-space: nowrap;
}

.size-tier-rows {
  margin-bottom: 6px;
}

.cart-removed-notice {
  font-size: 12px;
  font-weight: 700;
  color: #b13b3b;
  background: rgba(177, 59, 59, 0.08);
  border-radius: 8px;
  padding: 8px 10px;
  margin: 8px 0 0;
}

.product-card {
  overflow: hidden;
  border: 1px solid rgba(226, 216, 202, 0.72);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(49, 39, 29, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-image {
  position: relative;
  display: block;
  aspect-ratio: 1/1;
  overflow: hidden;
  touch-action: pan-y;
}

.product-image-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card-slider-track {
  position: absolute;
  inset: 0;
}

.card-slider-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ink-soft);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.card-slider-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.card-slider-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.card-slider-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(17, 17, 24, 0.15);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease, border-radius 0.2s ease;
}

.card-slider-dot.active {
  width: 14px;
  border-radius: 4px;
  background: #fff;
}

.product-card-static {
  cursor: default;
}

.product-card-static:hover {
  transform: none;
  box-shadow: 0 12px 32px rgba(49, 39, 29, 0.08);
}

.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: var(--ink-soft);
}

.price-tag {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  padding: 6px 12px 7px 10px;
  border-radius: 0 14px 14px 0;
  background: var(--text);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 4px 12px rgba(17, 17, 24, 0.18);
}

.price-tag small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.8;
}

/* ── Shared product pricing / cart controls ── */
.product-price {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

button.tier-badge {
  min-height: 24px;
  cursor: pointer;
}

button.tier-badge:hover,
button.tier-badge.active {
  border-color: rgba(245, 158, 11, 0.35);
  background: #f59e0b;
  color: #fff;
}

/* ── Product detail page ── */
.product-detail-section {
  padding: 40px 24px 60px;
}

.product-detail-back {
  margin-bottom: 18px;
  margin-inline-start: max(0px, calc((100% - 1080px) / 2));
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
  align-items: start;
}

.product-detail-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-detail-block {
  padding-top: 14px;
  border-top: 1px solid rgba(226, 216, 202, 0.72);
}

.product-detail-block-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-detail-tag {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ink-soft);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.product-detail-tag-category {
  background: rgba(122, 31, 61, 0.08);
  color: #7a1f3d;
}

@media (max-width: 780px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

.product-detail-image {
  position: relative;
  border: 1px solid rgba(226, 216, 202, 0.72);
  border-radius: 22px;
  overflow: hidden;
  background: var(--ink-soft);
}

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

.product-slider-track {
  position: relative;
  aspect-ratio: 1 / 1;
}

.product-slider-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.product-slider-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.product-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.product-slider-prev {
  left: 10px;
}

.product-slider-next {
  right: 10px;
}

.product-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.product-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
}

.product-slider-dot.active {
  background: #fff;
}

.product-detail-info {
  display: grid;
  gap: 12px;
}

.product-detail-info h2 {
  margin: 0;
  font-size: 24px;
  color: var(--text);
}

.product-detail-price {
  font-size: 20px;
}

.stock-status {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.stock-status.out-of-stock {
  color: #b13b3b;
}

.add-to-cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 11px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.add-to-cart-button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.add-to-cart-button.in-cart {
  background: var(--gold, #2e7d32);
}

.size-price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 12px;
}

.size-price-table th,
.size-price-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(226, 216, 202, 0.72);
}

.product-detail-specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 8px 0 0;
  font-size: 13px;
}

.product-detail-specs dt {
  color: var(--muted);
  font-weight: 700;
}

.product-detail-specs dd {
  margin: 0;
  color: var(--text);
}

/* Half-oval add-to-cart button, bumped off the right edge of the image */
.add-to-cart-fab {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  padding-right: 3px;
  border: 0;
  border-radius: 999px 0 0 999px;
  background: var(--text);
  color: #fff;
  box-shadow: -2px 4px 12px rgba(17, 17, 24, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.add-to-cart-fab:hover {
  background: var(--red);
  transform: translateY(-50%) scale(1.08);
}

.add-to-cart-fab svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
}

.add-to-cart-fab .icon-check {
  display: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.add-to-cart-fab.in-cart {
  background: var(--green);
  cursor: default;
}

.add-to-cart-fab.in-cart:hover {
  background: var(--green);
  transform: translateY(-50%);
}

.add-to-cart-fab.in-cart .icon-plus {
  display: none;
}

.add-to-cart-fab.in-cart .icon-check {
  display: block;
}

/* ── Contact page ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 32px;
}

.contact-grid article {
  display: grid;
  gap: 10px;
  min-height: 170px;
  align-content: end;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(239, 232, 220, 0.74));
  box-shadow: var(--shadow-sm);
}

.contact-grid strong {
  display: block;
  color: var(--text);
  font-size: 24px;
  line-height: 1.05;
}

.contact-grid span,
.contact-grid a {
  color: var(--muted);
  line-height: 1.55;
}

/* ── Auth pages (login / register / admin login / admin register) ── */
.auth-section {
  min-height: 560px;
  display: grid;
  place-items: center;
  padding-top: 84px;
}

.auth-card {
  display: grid;
  width: min(430px, 100%);
  gap: 14px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.auth-card h1 {
  margin-bottom: 4px;
  font-size: 44px;
  line-height: 0.98;
}

.otp-note {
  margin: 0;
  padding: 11px 13px;
  border-radius: 8px;
  color: var(--text);
  background: var(--red-soft);
  font-size: 13px;
  font-weight: 700;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.84);
}

input[type="file"] {
  padding: 10px;
}

select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.84);
}

select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

/* Custom chevron + no native arrow, scoped to the cart form so it doesn't
   fight the `background` shorthand other selects (e.g. admin filters) use,
   which would otherwise wipe this background-image out from under them. */
.cart-form select {
  padding-right: 38px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b98022' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}

.checkbox-label {
  display: flex;
  align-items: center;
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
}

.checkbox-label-indent {
  padding-left: 1.5em;
  opacity: 0.85;
}

.image-control {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.image-control > input[type="url"] {
  flex: 1 1 140px;
  min-width: 0;
}

.preview-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.preview-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.preview-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.image-preview {
  position: absolute;
  right: 10px;
  bottom: calc(100% + 8px);
  z-index: 2;
  width: 150px;
  height: 150px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.image-preview[hidden] {
  display: none;
}

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.gallery-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 84px;
}

.gallery-thumb img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.gallery-thumb-remove {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #b13b3b;
}

/* ── Admin ── */
.admin-body {
  min-height: 100vh;
  background: #f4f5f7;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.admin-sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--line);
}

.admin-sidebar-brand strong,
.admin-sidebar-brand small {
  display: block;
}

.admin-sidebar-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.admin-sidebar-nav {
  display: grid;
  gap: 6px;
}

.admin-nav-label {
  margin: 12px 10px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-sidebar-nav a,
.admin-sidebar-view-site {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.admin-sidebar-nav a:hover,
.admin-sidebar-nav a.active {
  color: var(--red);
  background: var(--red-soft);
}

.admin-sidebar svg,
.admin-menu-toggle svg,
.admin-icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.admin-sidebar-view-site {
  margin-top: auto;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--ink-soft);
}

.admin-main {
  position: relative;
  min-width: 0;
}

.admin-version-badge {
  position: fixed;
  right: 14px;
  bottom: 10px;
  z-index: 30;
  padding: 4px 8px;
  border: 1px solid rgba(226, 216, 202, 0.9);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
  font-size: 11px;
  font-weight: 800;
}

.admin-content {
  display: grid;
  gap: 20px;
  padding: 30px clamp(16px, 3vw, 38px) 42px;
}

.admin-content-head {
  padding-right: 80px;
}

.admin-content-head p {
  margin: 0 0 6px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-content-head h1 {
  margin: 0;
  font-size: 34px;
}

.admin-corner {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 35;
}

.admin-icon-button,
.admin-menu-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.admin-menu-toggle {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 45;
  display: none;
}

.admin-avatar-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 220px;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-avatar-menu[hidden] {
  display: none;
}

.admin-avatar-menu strong {
  font-size: 14px;
}

.admin-avatar-menu-email {
  color: var(--muted);
  font-size: 12px;
  word-break: break-word;
}

.admin-avatar-menu a,
.admin-avatar-menu button {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--text);
  background: var(--ink-soft);
  cursor: pointer;
  text-align: left;
  font-weight: 700;
}

.admin-avatar-menu form {
  margin: 0;
}

.admin-page {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 20px;
}

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

.stat-card {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-value {
  align-self: end;
  font-size: 34px;
}

.stat-red {
  border-top: 3px solid var(--red);
}

.stat-gold {
  border-top: 3px solid var(--gold);
}

.stat-blue {
  border-top: 3px solid var(--blue);
}

.stat-green {
  border-top: 3px solid var(--green);
}

.admin-panel,
.admin-products-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.admin-panel h2,
.admin-products-panel h2 {
  margin: 0;
  font-size: 20px;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-panel-head h2 {
  margin: 0;
}

.admin-inline-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-inline-stats div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
}

.admin-inline-stats span,
.admin-recent-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-inline-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.admin-recent-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.admin-page > .form-error,
.admin-page > form:last-child {
  grid-column: 1 / -1;
}

.admin-form {
  align-self: start;
  display: grid;
  gap: 13px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.admin-form h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

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

.admin-form-grid label:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.admin-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.collection-picker {
  display: grid;
  gap: 10px;
}

.collection-picker > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.collection-picker .checkbox-label {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
}

.collection-picker .checkbox-label input {
  width: 15px;
  min-height: 15px;
}

.admin-products {
  display: grid;
  gap: 8px;
  max-height: 760px;
  overflow: auto;
}

/* ── Product Management page (light, stacked layout) ── */
.products-page {
  display: grid;
  gap: 26px;
}

.admin-panel {
  padding: 24px clamp(18px, 3vw, 30px);
  border: 1px solid rgba(226, 216, 202, 0.6);
  border-radius: 20px;
  background: var(--card);
}

.admin-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

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

.admin-panel-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

.products-page .admin-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  gap: 26px;
}

.form-section {
  display: grid;
  gap: 12px;
}

.form-section-label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

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

.admin-form-grid-3 label:last-child:nth-child(odd) {
  grid-column: auto;
}

.products-page .collection-picker > div {
  gap: 6px;
}

.products-page .collection-picker .checkbox-label {
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 8px;
  border-color: rgba(226, 216, 202, 0.7);
  background: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.products-page .collection-picker .checkbox-label:has(input:checked) {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red-dark);
}

/* Admin settings */
.settings-page {
  gap: 18px;
}

.settings-panel {
  position: relative;
  overflow: hidden;
}

.settings-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 170px;
  /* background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.95), rgba(215, 234, 223, 0.64)),
    repeating-linear-gradient(90deg, rgba(226, 216, 202, 0.28) 0 1px, transparent 1px 36px); */
  pointer-events: none;
}

.settings-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  gap: 22px;
  min-height: 150px;
  margin: -6px -8px 24px;
  padding: 24px 28px;
  border: 1px solid rgba(226, 216, 202, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.settings-hero-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.settings-kicker {
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-hero h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
}

.settings-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.settings-logo-cluster {
  position: relative;
  min-height: 128px;
}

.settings-brand-svg,
.settings-orbit-svg {
  position: absolute;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-brand-svg {
  inset: 0 20px auto auto;
  width: 128px;
  height: 128px;
  color: var(--text);
  stroke-width: 4;
}

.settings-brand-svg path:first-of-type {
  fill: var(--gold-soft);
  stroke: var(--gold);
}

.settings-orbit-svg {
  width: 58px;
  height: 58px;
  padding: 11px;
  border: 1px solid rgba(226, 216, 202, 0.9);
  border-radius: 14px;
  background: #fff;
  color: var(--green);
  stroke-width: 2.4;
  box-shadow: var(--shadow-sm);
}

.settings-orbit-one {
  right: 122px;
  top: 6px;
}

.settings-orbit-two {
  right: 2px;
  bottom: 4px;
  color: var(--blue);
}

.settings-page .admin-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.settings-card {
  align-content: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(226, 216, 202, 0.82);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 241, 0.72));
  box-shadow: 0 10px 26px rgba(49, 39, 29, 0.06);
}

.settings-card:nth-of-type(3),
.settings-card:nth-of-type(6) {
  grid-column: 1 / -1;
}

.settings-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(226, 216, 202, 0.72);
}

.settings-section-icon {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
}

.settings-section-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.settings-page label {
  min-width: 0;
}

.settings-page textarea {
  min-height: 96px;
}

.settings-save-row {
  position: sticky;
  bottom: 14px;
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding: 14px;
  border: 1px solid rgba(226, 216, 202, 0.82);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(17, 17, 24, 0.1);
  backdrop-filter: blur(10px);
}

.settings-save-row .primary-action {
  min-width: 170px;
}

.password-save-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.password-save-row .primary-action {
  min-width: 170px;
}

.admin-filter-bar {
  display: grid;
  gap: 10px;
  padding: 14px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--ink);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-row-selects,
.filter-row-checks {
  padding-top: 10px;
  border-top: 1px solid rgba(226, 216, 202, 0.6);
}

.admin-filter-bar input[type="search"] {
  flex: 1 1 260px;
  min-width: 0;
  min-height: 38px;
  border-radius: 9px;
}

.admin-filter-bar select {
  flex: 0 1 auto;
  min-height: 38px;
  border: 1px solid rgba(226, 216, 202, 0.7);
  border-radius: 9px;
  padding: 0 10px;
  color: var(--text);
  background: #fff;
  font-size: 13px;
}

.admin-filter-bar .checkbox-label {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(226, 216, 202, 0.7);
  border-radius: 9px;
  background: #fff;
  font-size: 12px;
}

.admin-filter-bar .primary-action,
.admin-filter-bar .secondary-action {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.product-management-head {
  align-items: center;
  gap: 16px;
}

.product-management-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.product-management-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.product-filter-bar {
  gap: 12px;
  padding: 16px;
}

.product-filter-bar .filter-row-search {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
}

.product-filter-bar .filter-row-search input[type="search"] {
  width: 100%;
}

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

.product-filter-selects select {
  width: 100%;
  min-width: 0;
}

.product-filter-checks {
  display: flex;
  flex-wrap: wrap;
}

.product-filter-checks .checkbox-label {
  flex: 0 1 auto;
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .product-management-head {
    align-items: flex-start;
  }

  .product-management-actions {
    width: 100%;
    justify-content: flex-start;
  }

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

@media (max-width: 640px) {
  .product-management-panel {
    padding: 18px 12px;
    border-radius: 12px;
  }

  .product-management-title {
    width: 100%;
    justify-content: space-between;
  }

  .product-management-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-management-actions .secondary-action,
  .product-management-actions .primary-action {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
  }

  .product-management-actions .primary-action {
    grid-column: 1 / -1;
  }

  .product-filter-bar {
    padding: 12px;
    border-radius: 10px;
  }

  .product-filter-bar .filter-row-search,
  .product-filter-selects {
    grid-template-columns: 1fr;
  }

  .product-filter-bar .filter-row-search .primary-action,
  .product-filter-bar .filter-row-search .secondary-action {
    width: 100%;
    justify-content: center;
  }

  .product-filter-checks {
    display: grid;
    grid-template-columns: 1fr;
  }

  .product-filter-checks .checkbox-label {
    width: 100%;
  }
}

.product-list {
  display: grid;
}

.product-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 6px;
  border-bottom: 1px solid rgba(226, 216, 202, 0.55);
}

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

.product-row img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--ink-soft);
}

.product-row-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.product-row-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
}

.product-row-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.product-row-meta-muted {
  opacity: 0.8;
}

.status-badge.status-inactive {
  background: var(--ink-soft);
  color: var(--muted);
}

.product-row-stats {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

.product-row-price {
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.product-row-unpriced {
  color: var(--muted);
  font-weight: 700;
}

.product-row-gst {
  color: var(--muted);
  font-size: 11px;
}

.product-row-actions {
  display: flex;
  gap: 6px;
}

.product-row-actions form {
  margin: 0;
}

.product-row-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.product-row-actions form button {
  border-color: rgba(223, 63, 47, 0.35);
  color: var(--red-dark);
}

.product-row-actions form button:hover {
  background: var(--red-soft);
}

.product-row-actions .product-danger-action,
.product-management-actions .product-danger-action {
  border-color: var(--danger, #c0392b);
  color: var(--danger, #c0392b);
}

.product-row-actions .product-danger-action:hover,
.product-management-actions .product-danger-action:hover {
  background: var(--danger, #c0392b);
  color: #fff;
}

.product-row-actions .product-edit-trigger:hover {
  background: var(--ink-soft);
}

@media (max-width: 640px) {
  .product-row {
    grid-template-columns: 44px minmax(0, 1fr);
    row-gap: 8px;
    padding: 14px 4px;
  }

  .product-row img {
    grid-column: 1;
    grid-row: 1;
    width: 44px;
    height: 44px;
  }

  .product-row-main {
    grid-column: 2;
    grid-row: 1;
  }

  .product-row-stats {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-direction: row;
    justify-items: unset;
    justify-content: flex-start;
    text-align: left;
    align-items: center;
    gap: 12px;
  }

  .product-row-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: flex-end;
  }
}

/* ── Collections management page ── */
.admin-panel-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-panel-head-actions .secondary-action,
.admin-panel-head-actions .primary-action {
  min-height: 34px;
  padding: 0 14px;
  font-size: 12px;
}

.collection-list {
  display: grid;
}

.collection-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 6px;
  border-bottom: 1px solid rgba(226, 216, 202, 0.55);
}

.collection-row-indent {
  padding-left: 36px;
  opacity: 0.9;
}

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

.collection-row-main {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 3px;
}

.collection-row-image {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--ink-soft);
}

.collection-row-main strong {
  font-size: 14px;
}

.collection-row-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.collection-only-flag {
  color: var(--gold);
  font-weight: 700;
}

.collection-empty {
  color: var(--muted);
  text-align: center;
  padding: 24px 0;
}

.collection-delete-trigger {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(223, 63, 47, 0.35);
  border-radius: 8px;
  background: #fff;
  color: var(--red-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.collection-delete-trigger:hover {
  background: var(--red-soft);
}

.collection-delete-dialog {
  width: min(560px, calc(100vw - 32px));
}

.collection-delete-body {
  display: grid;
  gap: 14px;
  padding: 20px;
  max-height: calc(min(88vh, 900px) - 60px);
  overflow-y: auto;
}

.collection-delete-warning {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 13px;
  line-height: 1.5;
}

.collection-delete-products-label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.collection-delete-products {
  display: grid;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
}

.collection-delete-product {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 8px;
}

.collection-delete-product.is-only {
  background: var(--gold-soft);
}

.collection-delete-product img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--ink-soft);
}

.collection-delete-product-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.collection-only-badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.collection-delete-form {
  margin: 0;
}

.collection-delete-confirm {
  width: 100%;
  background: var(--red-dark);
}

.admin-products h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

.admin-products article {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.admin-products img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
}

.admin-products span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.stock-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.stock-badge.in-stock {
  color: var(--green);
  background: var(--green-soft);
}

.stock-badge.low-stock {
  color: var(--gold);
  background: var(--gold-soft);
}

.stock-badge.out-of-stock {
  color: var(--red);
  background: var(--red-soft);
}

.admin-products button {
  padding: 9px 12px;
  color: #fff;
  background: var(--red-dark);
}

.banner-editor > form:first-of-type {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
}

.banner-editor > form:first-of-type input,
.banner-editor > form:first-of-type button {
  min-height: 36px;
  font-size: 12px;
}

/* Bulk discount tier editor (add-product form + each inline product-edit form) */
.tier-editor {
  display: grid;
  gap: 8px;
}

.tier-editor-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tier-rows {
  display: grid;
  gap: 6px;
}

.tier-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px;
  align-items: center;
}

.tier-row input {
  min-height: 36px;
}

.tier-remove {
  min-height: 36px;
  width: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.product-edit-dialog-head .cart-close-button {
  background: var(--ink);
  color: var(--muted);
}

.product-edit-dialog-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dialog-save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.dialog-save-button:hover {
  background: var(--text);
  color: #fff;
}

.product-edit-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: min(88vh, 900px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(17, 17, 24, 0.28);
}

.product-edit-dialog::backdrop {
  background: rgba(17, 17, 24, 0.55);
}

.product-edit-dialog-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.product-edit-dialog-head h3 {
  margin: 0;
  font-size: 18px;
}

.product-edit-dialog .admin-form {
  max-height: calc(min(88vh, 900px) - 60px);
  overflow-y: auto;
  padding: 20px;
  box-shadow: none;
}

/* Admin: inquiries */
.inquiries-list {
  max-height: none;
}

.inquiries-list > article.inquiry-box {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 14px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--line) 84%, #fff);
  border-left: 4px solid var(--ink-soft);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(17, 17, 24, 0.05);
  overflow: hidden;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.inquiries-list > article.inquiry-box:hover {
  box-shadow: 0 12px 30px rgba(17, 17, 24, 0.08);
  transform: translateY(-1px);
}

.inquiries-list > .inquiry-box span {
  display: initial;
  margin-top: 0;
}

.inquiry-box-status-new {
  border-left-color: var(--blue);
}

.inquiry-box-status-pending {
  border-left-color: var(--gold);
}

.inquiry-box-status-contacted {
  border-left-color: #6b5ea8;
}

.inquiry-box-status-converted {
  border-left-color: var(--green);
}

.inquiry-box-status-closed {
  border-left-color: var(--muted);
}

.inquiry-box-bar {
  display: grid;
  gap: 8px;
  padding: 20px 18px 12px;
  cursor: pointer;
}

.inquiry-box-bar-row {
  min-width: 0;
}

.inquiry-box-label-row {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.inquiry-box-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.inquiry-box-bar .inquiry-box-avatar {
  width: 38px;
  height: 38px;
  font-size: 15px;
}

.inquiry-box-bar .inquiry-box-identity {
  min-width: 160px;
  flex: 0 1 auto;
}

.inquiry-box-bar-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.inquiry-box-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: end;
  gap: 8px;
  width: 100%;
  margin-left: auto;
  cursor: default;
}

.inquiry-box-total-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: max-content;
}

.inquiry-box-action-btn-danger {
  color: var(--danger, #c0392b);
  border-color: var(--danger, #c0392b);
}

.inquiry-box-action-btn-danger:hover {
  background: var(--danger, #c0392b);
  color: #fff;
}

.inquiry-box-bar-total {
  font-family: var(--font-display, inherit);
  font-size: 18px;
  color: var(--text);
  white-space: nowrap;
  padding-inline: 4px;
}

.inquiry-box-panel {
  display: grid;
  gap: 14px;
  padding: 8px 0 14px;
}

.inquiry-box-panel[hidden] {
  display: none;
}

.inquiry-box-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 18px;
  padding: 0 18px;
}

.inquiry-box-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.inquiry-box-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.inquiry-box-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f4d35e, #78c6a3);
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
}

.inquiry-box-identity {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1 1 auto;
}

.inquiry-box-kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.inquiry-box-name {
  font-size: 18px;
  line-height: 1.2;
}

.inquiry-box-sub {
  color: var(--muted);
  font-size: 13px;
}

.inquiry-box-id {
  min-width: 0;
}

.inquiry-box-id strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inquiry-box-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.inquiries-list > .inquiry-box .inquiry-box-meta-grid span,
.inquiries-list > .inquiry-box .inquiry-box-stat-row span {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.inquiry-box-meta-grid small,
.inquiry-box-stat-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.inquiry-box-meta-grid strong,
.inquiry-box-stat-row strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
}

.inquiry-box-side {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.inquiry-box-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding: 14px;
  border-radius: 8px;
  background: #f4f7f5;
  text-align: right;
}

.inquiry-box-total-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.inquiry-box-total-value {
  font-family: var(--font-display, inherit);
  font-size: 24px;
  color: var(--text);
}

.inquiry-box-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.inquiry-box-stat-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px;
}

.inquiry-box-stock-ok {
  border-color: color-mix(in srgb, var(--green) 30%, var(--line)) !important;
  background: var(--green-soft) !important;
}

.inquiry-box-stock-alert {
  border-color: color-mix(in srgb, var(--red) 32%, var(--line)) !important;
  background: var(--red-soft) !important;
}

.inquiry-stock-issues {
  margin: 0 18px;
  border: 1px solid rgba(223, 63, 47, 0.32);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(223, 63, 47, 0.04);
}

.inquiry-stock-issues-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(223, 63, 47, 0.2);
}

.inquiry-stock-issues-head h4 {
  margin: 0;
  color: var(--red-dark);
  font-size: 13px;
}

.inquiry-stock-issues-head > span {
  min-width: 26px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.inquiry-stock-issues-list {
  display: grid;
}

.inquiry-stock-issue {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, auto) auto;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(223, 63, 47, 0.14);
}

.inquiry-stock-issue:last-child {
  border-bottom: 0;
}

.inquiry-stock-issue-product {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.inquiry-stock-issue-product strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.inquiry-stock-issue-product span,
.inquiry-stock-issue-qty span {
  color: var(--muted);
  font-size: 11px;
}

.inquiry-stock-issue-reason {
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 800;
}

.inquiry-stock-issue-qty {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  white-space: nowrap;
}

.inquiry-stock-issue-qty strong {
  color: var(--text);
}

@media (max-width: 700px) {
  .inquiry-stock-issue {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
  }

  .inquiry-stock-issue-qty {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

.inquiry-box-note-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 24px;
  padding: 0 18px;
}

.inquiries-list > .inquiry-box .status-badge,
.inquiries-list > .inquiry-box .source-badge,
.inquiries-list > .inquiry-box .whatsapp-status,
.inquiries-list > .inquiry-box .status-note-badge,
.inquiries-list > .inquiry-box .pdf-version-note,
.inquiries-list > .inquiry-box .inquiry-box-note-muted {
  display: inline-flex;
  margin-top: 0;
}

.inquiry-box-note-muted {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.inquiry-breakdown {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
  gap: 14px;
  margin: 0 18px 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.inquiry-breakdown-lines {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.inquiry-lines-table-wrap {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.inquiry-lines-table {
  min-width: 760px;
  font-size: 12px;
}

.inquiry-lines-table th {
  padding: 10px 12px;
  background: #fbfaf7;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.inquiry-lines-table td {
  padding: 12px;
  vertical-align: top;
}

.inquiry-lines-table td:first-child {
  min-width: 220px;
  white-space: normal;
}

.inquiry-lines-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.inquiry-request-list {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--gold-soft);
  border-radius: 8px;
  background: #fffaf0;
}

.inquiry-request-list strong {
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
}

.inquiry-request-list p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.inquiry-breakdown-totals {
  align-self: start;
  display: grid;
  gap: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.inquiry-breakdown-totals .cart-summary-row {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.inquiry-breakdown-totals .cart-summary-row:last-child {
  border-bottom: 0;
}

.inquiry-breakdown-totals .cart-summary-total {
  margin-top: 4px;
  padding: 12px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
}

.inquiry-breakdown-totals .cart-summary-total span,
.inquiry-breakdown-totals .cart-summary-total strong {
  color: #fff;
}

.inquiry-box-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #fbfaf7;
}

.inquiry-box-action-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.inquiry-box-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.inquiries-list .inquiry-box-action-btn {
  color: var(--text);
  background: #fff;
}

.inquiry-box-action-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.inquiry-box-action-btn:hover {
  border-color: var(--text);
}

.inquiry-box-action-btn-primary {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.inquiries-list .inquiry-box-action-btn-primary {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.status-badge,
.whatsapp-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
  white-space: nowrap;
}

.status-badge.status-new {
  background: var(--blue-soft);
  color: var(--blue);
}

.status-badge.status-pending {
  background: var(--gold-soft);
  color: var(--gold);
}

.status-badge.status-contacted {
  background: rgba(107, 94, 168, 0.12);
  color: #6b5ea8;
}

.status-badge.status-converted {
  background: var(--green-soft);
  color: var(--green);
}

.status-badge.status-closed {
  background: var(--ink-soft);
  color: var(--muted);
}

.whatsapp-status.whatsapp-sent {
  background: var(--green-soft);
  color: var(--green);
}

.whatsapp-status.whatsapp-failed {
  background: var(--red-soft);
  color: var(--red);
}

.whatsapp-status.whatsapp-skipped {
  background: var(--ink-soft);
  color: var(--muted);
}

.inquiry-notes {
  margin: 0 18px;
  padding: 13px 14px;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: #fffaf0;
  color: var(--muted);
  font-size: 13px;
}

.inquiry-empty {
  color: var(--muted);
}

.admin-table-wrap {
  overflow-x: auto;
  margin: 10px 0;
}

.cart-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.cart-summary-table th,
.cart-summary-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  color: var(--text);
}

.inquiry-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.inquiry-status-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.inquiry-status-form.inquiry-box-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
}

.inquiry-status-form.inquiry-box-action-row select {
  flex: 0 1 150px;
  width: 150px;
}

.inquiry-status-form.inquiry-box-action-row input {
  flex: 1 1 180px;
  width: clamp(180px, 18vw, 240px);
  max-width: 240px;
}

.inquiry-status-form select,
.inquiry-status-form input {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  background: #fff;
}

.inquiry-status-form button {
  min-height: 36px;
  min-width: 76px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: var(--text);
  color: var(--card);
  font-weight: 700;
  cursor: pointer;
}

.inquiry-status-form button.inquiry-box-action-btn-danger {
  border: 1px solid var(--danger, #c0392b);
  background: #fff;
  color: var(--danger, #c0392b);
}

.inquiry-status-form button.inquiry-box-action-btn-danger:hover {
  background: var(--danger, #c0392b);
  color: #fff;
}

@media (max-width: 900px) {
  .inquiry-box-shell {
    grid-template-columns: 1fr;
  }

  .inquiry-box-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inquiry-breakdown {
    grid-template-columns: 1fr;
  }

  .inquiry-box-label-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .inquiry-box-bar-badges {
    grid-column: 1 / -1;
  }

  .inquiry-status-form.inquiry-box-action-row {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 560px) {
  .inquiry-box-shell,
  .inquiry-box-stat-row,
  .inquiry-box-note-row {
    padding-left: 12px;
    padding-right: 12px;
  }

  .inquiry-box-meta-grid,
  .inquiry-box-stat-row {
    grid-template-columns: 1fr;
  }

  .inquiry-notes,
  .inquiry-stock-issues,
  .inquiry-breakdown,
  .pdf-version-panel {
    margin-left: 12px;
    margin-right: 12px;
  }

  .inquiry-box-bar {
    padding: 14px 12px;
  }

  .inquiry-box-bar-total {
    align-self: center;
    font-size: 16px;
  }

  .inquiry-box-label-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .inquiry-box-total-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
  }

  .inquiry-box-person {
    align-items: center;
  }

  .inquiry-box-bar .inquiry-box-identity {
    min-width: 0;
  }

  .inquiry-box-name,
  .inquiry-box-sub {
    overflow-wrap: anywhere;
  }

  .inquiry-status-form.inquiry-box-action-row {
    width: 100%;
  }

  .inquiry-status-form.inquiry-box-action-row select,
  .inquiry-status-form.inquiry-box-action-row input {
    flex-basis: auto;
    width: 100%;
    max-width: none;
  }

  .inquiry-box-action-btn,
  .inquiry-status-form,
  .inquiry-status-form select,
  .inquiry-status-form input {
    width: 100%;
    max-width: none;
  }

  .inquiry-box-action-row {
    width: 100%;
  }
}

/* ── Cart drawer ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(17, 17, 24, 0.54);
  backdrop-filter: blur(3px);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  display: flex;
  flex-direction: column;
  width: min(460px, 100vw);
  background: #fbfaf7;
  box-shadow: -18px 0 44px rgba(17, 17, 24, 0.2);
  overflow: hidden;
  /* Stop scroll from chaining to the page behind it - on mobile Chrome,
     scroll that reaches the document edge is what makes the address bar
     animate in/out mid-interaction, which is what was causing the resize
     glitch (the dvh fix alone doesn't stop the chaining that triggers it). */
  overscroll-behavior: contain;
}

.cart-drawer[hidden],
.cart-overlay[hidden] {
  display: none;
}

.cart-drawer-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.cart-drawer-head h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1;
}

.cart-drawer-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.cart-close-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.cart-close-button:hover {
  background: var(--ink);
  color: var(--text);
}

.cart-drawer-body {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 16px 20px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  min-height: 0;
}

.cart-drawer-footer {
  display: grid;
  gap: 12px;
  padding: 14px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 -10px 24px rgba(17, 17, 24, 0.08);
}

.cart-drawer-footer[hidden] {
  display: none;
}

.cart-send-trigger {
  width: 100%;
}

.cart-footer-actions {
  display: grid;
  grid-template-columns: minmax(108px, 0.42fr) minmax(0, 1fr);
  gap: 10px;
}

.cart-clear-button {
  min-height: 42px;
  padding-inline: 12px;
  border-color: var(--red-soft);
  color: var(--red-dark);
  background: var(--red-soft);
}

.cart-clear-button:hover {
  border-color: rgba(223, 63, 47, 0.24);
  color: var(--red-dark);
  background: rgba(223, 63, 47, 0.16);
}

.cart-send-trigger[hidden] {
  display: none;
}

/* Send-inquiry form: its own stacked popup, independent of the cart
   drawer's scrollable area entirely (not just visually) - on mobile Chrome,
   the form's own text-input focus/scroll no longer has any chance of
   interacting with the drawer's scroll container underneath it. */
.cart-form-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(17, 15, 12, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cart-form-overlay[hidden] {
  display: none;
}

.cart-form-modal {
  background: #fbfaf7;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  width: min(440px, 100%);
  margin: auto;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.cart-form-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.cart-form-modal-head h2 {
  margin: 0;
  font-size: 20px;
}

.cart-form-modal .cart-form {
  padding: 18px 20px calc(20px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 640px) {
  .cart-form-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .cart-form-modal {
    width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 16px 16px 0 0;
    animation: cartFormPopIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  @media (prefers-reduced-motion: reduce) {
    .cart-form-modal {
      animation: none;
    }
  }
}

@keyframes cartFormPopIn {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cart-send-trigger.is-loading {
  animation: cartSendPulse 0.45s ease;
  pointer-events: none;
}

@keyframes cartSendPulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.95);
    opacity: 0.82;
  }
  100% {
    transform: scale(1);
  }
}

.cart-empty {
  color: var(--muted);
  text-align: center;
  padding: 24px 0;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-items[hidden] {
  display: none;
}

.cart-item-row {
  position: relative;
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  align-items: start;
  gap: 14px 16px;
  padding: 12px 12px 14px;
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(49, 39, 29, 0.07);
}

.cart-item-row img {
  width: 106px;
  height: 116px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--ink-soft);
  grid-row: span 2;
}

.cart-item-info {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding-right: 28px;
}

.cart-item-name {
  font-size: 15px;
  line-height: 1.25;
  color: var(--text);
}

.cart-item-code-line {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  min-height: 15px;
}

.cart-item-unit-price {
  color: var(--muted);
  font-weight: 700;
}

.cart-item-price-grid {
  display: grid;
  gap: 3px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.cart-item-price-grid strong {
  color: var(--gold);
  font-size: 14px;
}

.cart-item-controls {
  grid-column: 2;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.cart-item-stepper-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.cart-item-sets-note {
  font-size: 12px;
  color: var(--muted);
}

.qty-unit-label {
  padding: 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.tier-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cart-item-size-bar {
  display: inline-flex;
  gap: 6px;
  width: fit-content;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.cart-size-option {
  min-width: 36px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.cart-size-option:hover {
  background: var(--ink-soft);
}

.cart-size-option.active {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--text);
}

.cart-item-unpriced {
  grid-template-columns: 106px minmax(0, 1fr);
}

.unpriced-note {
  color: var(--muted);
  font-size: 12px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}

.qty-btn {
  min-height: 32px;
  width: 32px;
  border: 0;
  background: var(--ink-soft);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.qty-input {
  width: 44px;
  min-height: 32px;
  border: 0;
  text-align: center;
  padding: 0;
  color: var(--text);
  background: transparent;
  appearance: textfield;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.cart-item-total {
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
  color: var(--text);
  line-height: 1;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-item-sets {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.cart-item-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--red-soft);
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.cart-item-remove:hover {
  border-color: var(--line);
  color: var(--red);
  background: var(--red-soft);
}

.cart-summary {
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.cart-summary[hidden] {
  display: none;
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}

.cart-summary-row strong {
  color: var(--text);
}

.cart-summary-total {
  padding-top: 2px;
  border-top: 0;
  font-size: 16px;
}

.cart-summary-total strong {
  color: var(--gold);
  font-size: 20px;
}

.cart-form {
  display: grid;
  gap: 12px;
}

.cart-form[hidden] {
  display: none;
}

.optional-label {
  font-weight: 400;
  color: var(--muted, #756c61);
  font-size: 0.85em;
}

.cart-form.is-revealing {
  animation: cartFormReveal 0.35s ease;
}

@keyframes cartFormReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cart-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 700;
}

/* ── Trust section (Google / JustDial / IndiaMART badges) ── */
.trust-section {
  border-top: 1px solid rgba(226, 216, 202, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(215, 234, 223, 0.34));
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading.centered {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.55;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 16px;
  margin: 0 0 12px;
  border: 1px solid rgba(185, 128, 34, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.dark-cards article {
  padding: 26px;
  border: 1px solid rgba(226, 216, 202, 0.72);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.trust-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.platform-logo {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 18px;
  background: #fffaf1;
  font-size: 24px;
  font-weight: 800;
}

.platform-logo img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.google {
  color: var(--blue);
}

.justdial {
  color: #fb8720;
}

.indiamart {
  color: var(--red);
}

.verified {
  min-height: 25px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.dark-cards strong {
  display: block;
  color: var(--text);
  font-size: 24px;
  line-height: 1.05;
}

.dark-cards small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.rating {
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.rating b {
  color: var(--text);
}

.dark-cards p {
  color: var(--muted);
  line-height: 1.5;
}

.dark-cards ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 18px 0 24px;
  list-style: none;
  color: var(--text);
  font-weight: 700;
}

.dark-cards li::before {
  content: "";
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  font-size: 11px;
}

.dark-cards article > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--text);
  font-weight: 700;
}

.dark-cards article > a::after {
  content: "->";
}

@media (max-width: 640px) {
  .dark-cards article {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    min-width: 0;
  }

  .dark-cards .trust-card-top {
    flex: 0 0 auto;
    margin-bottom: 0;
  }

  .dark-cards .platform-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 17px;
  }

  .dark-cards .verified {
    display: none;
  }

  .dark-cards .trust-info {
    flex: 1 1 0;
    min-width: 0;
  }

  .dark-cards .trust-info strong,
  .dark-cards .trust-info small {
    overflow-wrap: break-word;
  }

  .dark-cards strong {
    font-size: 14px;
  }

  .dark-cards small {
    margin-top: 1px;
    font-size: 10px;
  }

  .dark-cards .rating,
  .dark-cards .trust-info > p:not(.rating) {
    display: none;
  }

  .dark-cards ul {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 8px;
    margin: 5px 0 0;
    font-size: 10.5px;
  }

  .dark-cards li::before {
    width: 12px;
    height: 12px;
    margin-right: 4px;
  }

  .dark-cards article > a {
    flex: 0 0 auto;
    width: auto;
    min-height: 34px;
    padding: 0 10px;
    font-size: 10.5px;
    margin-top: 0;
    white-space: nowrap;
  }

  .dark-cards article > a::after {
    content: "\203A";
  }

  .dark-cards article > a.brand-google {
    background: var(--blue);
  }

  .dark-cards article > a.brand-justdial {
    background: #fb8720;
  }

  .dark-cards article > a.brand-indiamart {
    background: var(--red);
  }
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
  padding-top: 0;
  border-top: 0;
  color: var(--muted);
  font-weight: 700;
}

.trust-badges span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

/* ── Footer ── */
:root {
  --footer-blue: #2f6fed;
  --footer-blue-soft: rgba(47, 111, 237, 0.12);
}

.contact-footer {
  display: grid;
  grid-template-columns: minmax(230px, 1.05fr) minmax(210px, 0.9fr) minmax(300px, 1.3fr) minmax(170px, 0.7fr);
  gap: 34px;
  width: 100%;
  margin: 56px 0 0;
  padding: 44px max(28px, calc((100vw - 1180px) / 2)) 48px;
  border-top: 1px solid rgba(47, 111, 237, 0.14);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(238, 245, 253, 0.98), rgba(228, 237, 251, 0.98)),
    var(--ink);
  color: #0f172a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.footer-section {
  min-width: 0;
}

.footer-heading {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
  text-align: left;
}

.footer-divider {
  height: 2px;
  margin: 0 0 22px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(47, 111, 237, 0) 0%,
    rgba(47, 111, 237, 0.55) 18%,
    rgba(47, 111, 237, 0.85) 50%,
    rgba(47, 111, 237, 0.55) 82%,
    rgba(47, 111, 237, 0) 100%
  );
}

.footer-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.footer-icon svg {
  width: 20px;
  height: 20px;
}

.footer-icon-briefcase {
  background: #fbe6c6;
  color: #b9741f;
}

.footer-icon-pin {
  width: auto;
  height: auto;
  color: var(--red);
}

.footer-icon-pin svg {
  width: 26px;
  height: 26px;
}

.footer-contact-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
}

.footer-about-text {
  margin: 3px 0 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.58;
}

.footer-contact-text a {
  color: #0f172a;
  font-weight: 800;
  white-space: nowrap;
}

.footer-contact-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.footer-contact-role {
  display: block;
  margin-bottom: 2px;
  color: var(--muted, #756c61);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-address {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

.footer-map-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100%, 420px);
  margin-bottom: 20px;
  padding: 14px 22px;
  border: 1.5px solid var(--footer-blue);
  border-radius: 999px;
  background: #fff;
  color: var(--footer-blue);
  font-weight: 800;
}

.footer-map-btn-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.footer-map-btn-divider {
  width: 1px;
  height: 22px;
  background: rgba(47, 111, 237, 0.25);
}

.footer-map-btn-arrow svg {
  width: 16px;
  height: 16px;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.footer-social-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 15px;
  color: #fff;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.14);
  transition: transform 0.15s ease;
}

.footer-social-icon:hover {
  transform: translateY(-2px);
}

.footer-social-icon svg {
  width: 24px;
  height: 24px;
}

.footer-social-icon.facebook {
  background: #1877f2;
}

.footer-social-icon.instagram {
  background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7);
}

.footer-social-icon.youtube {
  background: #ff0000;
}

.footer-social-icon.whatsapp {
  background: #25d366;
}

@media (max-width: 980px) {
  .contact-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 28px;
    padding-inline: 24px;
  }

  .contact-footer .footer-section:last-child {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .contact-footer {
    grid-template-columns: 1fr;
    gap: 28px;
    width: calc(100% - 28px);
    margin: 36px auto 0;
    padding: 34px 22px calc(132px + env(safe-area-inset-bottom, 0px));
    border: 1px solid rgba(47, 111, 237, 0.14);
    border-radius: 22px;
  }

  .footer-heading {
    font-size: 24px;
    text-align: center;
  }

  .footer-row {
    gap: 12px;
  }

  .footer-contact-text,
  .footer-about-text,
  .footer-address {
    font-size: 14px;
  }

  .footer-map-btn {
    width: 100%;
  }

  .footer-social {
    justify-content: center;
  }
}

/*
  Floating action buttons: two vertical stacks, mirrored on each side.
  Left (bottom-left): filter (bottom slot) + scroll-to-top (upper slot).
  Right (bottom-right): phone (bottom slot) + cart (upper slot).
  All four share the same circular size, warm surface, and shadow language.
*/
.floating-action {
  position: fixed;
  bottom: var(--floating-inset);
  z-index: 30;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(226, 216, 202, 0.92);
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.94);
  color: var(--gold);
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(49, 39, 29, 0.18);
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.floating-action:hover {
  transform: translateY(-2px);
}

.floating-action[hidden] {
  display: none;
}

body.filter-open .floating-action,
body.filter-open .filter-toggle-btn,
body:has(.cart-drawer:not([hidden])) .floating-action,
body:has(.cart-drawer:not([hidden])) .filter-toggle-btn {
  display: none;
}

.floating-action svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-action svg.cart-icon {
  width: 26px;
  height: 26px;
  fill: currentColor;
  stroke: none;
}

.floating-phone {
  right: 18px;
}

.floating-cart-button {
  right: 18px;
}

.floating-cart-button .cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  margin-left: 0;
}

.floating-scroll-top {
  left: 18px;
}

@keyframes slideTicker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 44;
    width: min(280px, 88vw);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
  }

  .admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 43;
    background: rgba(17, 17, 24, 0.44);
  }

  .admin-sidebar-overlay[hidden] {
    display: none;
  }

  .admin-menu-toggle {
    display: grid;
  }

  .admin-content {
    padding-top: 78px;
  }

  .site-header {
    top: 8px;
    grid-template-columns: 1fr auto;
    border-radius: 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    grid-column: unset;
    grid-row: unset;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    overflow-x: visible;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 16px;
  }

  .header-actions > .login-button {
    display: none;
  }

  .main-nav .main-nav-enquire {
    display: inline-flex;
    margin-top: 6px;
    width: 100%;
  }

  .collection-bar,
  .coll-filter-bar {
    top: 116px;
    border-radius: 18px;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: start;
  }

  .cat-section-head {
    display: grid;
    align-items: start;
  }

  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-strip div + div {
    border-left: 0;
  }

  .stats-strip div:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .stats-strip div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .admin-page {
    grid-template-columns: 1fr;
  }

  .admin-stats-grid,
  .admin-inline-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-strip,
  .product-grid,
  .dark-cards,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .settings-hero,
  .settings-page .admin-form {
    grid-template-columns: 1fr;
  }

  .settings-hero {
    padding: 20px;
  }

  .settings-logo-cluster {
    display: none;
  }

  .settings-card,
  .settings-card:nth-of-type(3),
  .settings-card:nth-of-type(6) {
    grid-column: 1;
  }

  .settings-save-row {
    position: static;
  }

  .settings-save-row .primary-action {
    width: 100%;
  }

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

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

  .product-grid.list-view .product-card {
    grid-template-columns: 92px minmax(0, 1fr) 42px;
    min-height: 112px;
  }

  .product-grid.list-view .product-image {
    min-height: 112px;
  }

  .product-grid.list-view .product-card-meta {
    padding: 12px 12px 8px;
  }

  .product-grid.list-view .product-card-meta h3 {
    font-size: 14px;
  }

  .product-grid.list-view .product-card-meta p,
  .product-grid.list-view .product-card-meta strong {
    font-size: 12px;
  }

  .product-grid.list-view .size-picker {
    grid-column: 2;
    width: auto;
    justify-content: flex-start;
    padding: 0 12px 12px;
    border-left: 0;
  }

  .product-grid.list-view .list-add-to-cart {
    grid-column: 3;
    grid-row: 1 / span 2;
    width: 40px;
    height: 46px;
  }

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

@media (max-width: 640px) {
  .price-tag {
    padding: 8px 13px 8px 11px;
    font-size: 12px;
  }

  .add-to-cart-fab {
    width: 38px;
    height: 42px;
  }

  .add-to-cart-fab svg {
    width: 19px;
    height: 19px;
  }

  .brand small {
    display: none;
  }

  .site-header {
    width: calc(100% - 20px);
    margin-top: 8px;
  }

  .header-actions {
    gap: 6px;
  }

  :root {
    --floating-inset: 14px;
    --floating-gap: 14px;
  }

  .floating-action {
    width: 50px;
    height: 50px;
  }

  .floating-phone,
  .floating-cart-button {
    right: 14px;
  }

  .floating-scroll-top {
    left: 14px;
  }

  .coll-hero {
    padding: 28px 0 18px;
  }

  .coll-hero-nav {
    margin-bottom: 14px;
  }

  .back-link {
    min-height: 40px;
    margin-bottom: 0;
    padding: 5px 14px 5px 6px;
    font-size: 12px;
  }

  .back-link-icon-wrap {
    width: 28px;
    height: 28px;
  }

  .coll-count {
    margin-bottom: 24px;
  }

  .view-toggle-bar {
    margin-bottom: 12px;
  }

  .collection-bar,
  .coll-filter-bar {
    top: 76px;
  }

  .home-title,
  .coll-title {
    font-size: 46px;
  }

  .home-hero {
    gap: 14px;
    padding: 18px 0 12px;
  }

  .home-hero-cta {
    gap: 12px;
    width: calc(100% - 40px);
    margin: 16px auto 0;
  }

  .home-hero-actions,
  .home-community-btn {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .home-hero-overlay {
    padding: 12px 14px;
  }

  .home-hero-slider,
  .home-hero-slider-anim.in-view {
    border-radius: 0;
  }

  .home-sub {
    font-size: 13px;
  }

  .home-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
    min-height: 58px;
    padding: 12px 14px;
    font-size: 14px;
    text-align: center;
  }

  .home-hero-actions .btn-primary,
  .home-hero-actions .btn-secondary {
    min-width: 0;
    width: 100%;
  }

  .home-community-btn {
    min-height: 54px;
    padding: 10px 16px;
    font-size: 13px;
  }

  .home-community-icon {
    width: 34px;
    height: 34px;
  }

  .home-community-icon svg {
    width: 21px;
    height: 21px;
  }

  .cat-section {
    padding-top: 14px;
  }

  .cat-section-head h2,
  .section-heading h2 {
    font-size: 38px;
  }

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

  .admin-form-grid label:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .stats-strip,
  .product-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .dark-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-products article {
    display: block;
  }

  .contact-footer {
    width: calc(100% - 28px);
    margin: 32px auto 0;
    padding: 34px 22px calc(132px + env(safe-area-inset-bottom, 0px));
    border: 1px solid rgba(47, 111, 237, 0.14);
    border-radius: 22px;
  }

  .admin-stats-grid,
  .admin-inline-stats,
  .admin-recent-row {
    grid-template-columns: 1fr;
  }

  .admin-content-head h1 {
    font-size: 28px;
  }

  .text-link {
    display: inline-block;
    margin-top: 12px;
  }

  .admin-products img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin-bottom: 10px;
  }

  .cart-drawer {
    width: 100%;
    max-width: 100vw;
    /* top+bottom:0 pins to the *layout* viewport, which jumps whenever the
       mobile browser's address bar animates in/out on scroll. Explicit
       dvh-based height tracks the *actual visible* viewport instead, so the
       panel (and its pinned footer) stays put through that animation. */
    bottom: auto;
    height: 100vh;
    height: 100dvh;
  }

  body.cart-open {
    overflow: hidden;
    touch-action: none;
  }

  body.cart-open .cart-drawer {
    touch-action: auto;
  }

  .cart-drawer-head {
    padding: 18px max(16px, env(safe-area-inset-right, 0px)) 18px max(16px, env(safe-area-inset-left, 0px));
  }

  .cart-drawer-body {
    padding: 14px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px));
  }

  .cart-drawer-footer {
    padding: 14px max(16px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  }

  .cart-item-row {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 10px 12px;
    padding: 12px;
  }

  .cart-item-row img {
    width: 72px;
    height: 86px;
    grid-column: 1;
    grid-row: 1;
  }

  .cart-item-info {
    grid-column: 2;
    grid-row: 1;
    padding-right: 28px;
  }

  .cart-item-controls {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
  }

  .cart-item-stepper-row {
    align-items: flex-start;
  }

  .cart-item-total {
    justify-self: end;
  }

  .cart-item-unpriced {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .cart-item-unpriced img {
    grid-row: 1;
  }

  .cart-item-unpriced .cart-item-info {
    grid-column: 2;
    grid-row: 1;
  }
}

/* ── Admin: Analytics page ── */
.analytics-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.analytics-count-badge {
  display: inline-flex;
  min-width: 26px;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 700;
  font-size: 12px;
}

.analytics-count-badge.analytics-count-zero {
  background: #fef2f2;
  color: #991b1b;
}

/* ── Admin: PDFs page tabs, source/status badges ── */
.pdf-tabs {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.admin-notice-recover {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--gold-soft, #f7e8cd);
  border: 1px solid var(--gold, #b98022);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 13px;
}

.pdf-tab {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.pdf-tab.active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.source-badge.source-admin {
  background: #eef2ff;
  color: #3730a3;
}

.source-badge.source-customer {
  background: #f1f5f9;
  color: #334155;
}

.status-note-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
}

.pdf-version-note {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.pdf-version-panel {
  display: grid;
  gap: 10px;
  margin: 14px 18px 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pdf-version-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pdf-version-panel-head h4 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
}

.pdf-version-panel-head span {
  display: inline-grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--ink-soft);
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.pdf-version-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pdf-version-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.pdf-version-row-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}

.pdf-version-row-main strong {
  color: var(--text);
  font-size: 13px;
}

.pdf-version-row .secondary-action {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 11px;
  font-size: 12px;
}

.pdf-row-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

/* ── Admin: requirement-PDF picker form ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.form-grid label input,
.form-grid label textarea {
  font: inherit;
  font-weight: 400;
  color: var(--text);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.form-grid-full {
  grid-column: 1 / -1;
}

.pdf-picker-panel {
  min-width: 0;
  padding: 22px;
}

.pdf-picker-head {
  align-items: center;
  margin-bottom: 14px;
}

.pdf-picker-count {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.pdf-picker-count strong {
  color: var(--text);
  font-size: 15px;
}

.pdf-picker-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.pdf-picker-toolbar input[type="search"] {
  width: 100%;
  min-width: 0;
  min-height: 42px;
}

.pdf-picker-select-all {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  white-space: nowrap;
}

.pdf-picker-native-check {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.pdf-picker-check {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.pdf-picker-check svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.pdf-picker-check path {
  opacity: 0;
}

.pdf-picker-native-check:checked + .pdf-picker-check {
  color: var(--green);
  background: var(--green-soft);
  transform: scale(1.06);
}

.pdf-picker-native-check:checked + .pdf-picker-check path {
  opacity: 1;
}

.pdf-picker-native-check:focus-visible + .pdf-picker-check {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.pdf-picker-group {
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.pdf-picker-group + .pdf-picker-group {
  margin-top: 18px;
}

.pdf-picker-group-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.pdf-picker-group-label strong {
  min-width: 26px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--ink-soft);
  color: var(--text);
  text-align: center;
}

.pdf-picker-list,
.pdf-picker-list-selected {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 560px;
  padding: 0;
  overflow-y: auto;
}

.pdf-picker-list-selected {
  max-height: none;
  min-height: 58px;
  padding: 8px;
  border: 1px dashed rgba(25, 125, 99, 0.35);
  border-radius: 8px;
  background: rgba(25, 125, 99, 0.04);
}

.pdf-picker-deselected-group[hidden] {
  display: none;
}

.pdf-picker-group-label-deselected {
  color: var(--red-dark);
}

.pdf-picker-list-deselected {
  max-height: none;
  padding: 8px;
  border: 1px dashed rgba(223, 63, 47, 0.32);
  border-radius: 8px;
  background: rgba(223, 63, 47, 0.04);
}

.pdf-picker-row {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.pdf-picker-row:last-child {
  border-bottom: 1px solid var(--line);
}

.pdf-picker-row.is-selected {
  border-color: var(--green);
  background: var(--green-soft);
}

.pdf-picker-row.is-deselected {
  border-color: rgba(223, 63, 47, 0.42);
  background: var(--red-soft);
}

.pdf-picker-row img {
  width: 64px;
  height: 64px;
  border-radius: 7px;
}

.pdf-picker-row-title {
  display: grid;
  position: relative;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-width: 0;
  cursor: pointer;
}

.pdf-picker-row-title strong {
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.pdf-picker-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.pdf-picker-row-meta strong {
  color: var(--text);
}

.pdf-picker-row-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(25, 125, 99, 0.22);
}

.pdf-picker-row-fields label {
  display: flex;
  flex: 1 1 90px;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.pdf-picker-row-fields input,
.pdf-picker-row-fields select {
  width: 100%;
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.pdf-picker-form > .filter-actions {
  position: sticky;
  bottom: 10px;
  z-index: 3;
  justify-content: flex-end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(17, 17, 24, 0.1);
}

@media (max-width: 900px) {
  .pdf-picker-list,
  .pdf-picker-list-selected,
  .pdf-picker-list-deselected {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .pdf-picker-panel {
    padding: 14px 12px;
    border-radius: 12px;
  }

  .pdf-picker-toolbar {
    position: static;
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .pdf-picker-select-all {
    width: 100%;
  }

  .pdf-picker-row {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 10px;
  }

  .pdf-picker-row img {
    width: 52px;
    height: 52px;
  }

  .pdf-picker-row-fields {
    grid-column: 1 / -1;
  }

  .pdf-picker-form > .filter-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pdf-picker-form > .filter-actions .primary-action,
  .pdf-picker-form > .filter-actions .secondary-action {
    width: 100%;
    justify-content: center;
  }
}

.inquiry-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 15, 12, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10000;
  animation: inquiry-modal-fade 0.2s ease;
}

.inquiry-modal-overlay[hidden] {
  display: none;
}

@keyframes inquiry-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes inquiry-modal-pop {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.inquiry-modal {
  position: relative;
  background: var(--surface, #fff);
  color: var(--text, #171411);
  border-radius: 18px;
  padding: 32px 28px 26px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  animation: inquiry-modal-pop 0.25s ease;
}

.inquiry-modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--muted, #756c61);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}

.inquiry-modal-x:hover {
  background: var(--line, #eee);
}

.inquiry-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e8f4ef;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inquiry-modal-icon svg {
  width: 28px;
  height: 28px;
  stroke: #197d63;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inquiry-modal h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.inquiry-modal p {
  margin: 0 0 22px;
  font-size: 13.5px;
  color: var(--muted, #756c61);
  line-height: 1.5;
}

.inquiry-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inquiry-modal-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.inquiry-modal-whatsapp:hover {
  filter: brightness(0.95);
}

.inquiry-modal-whatsapp svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.inquiry-modal-whatsapp[hidden],
.inquiry-modal-actions [hidden] {
  display: none;
}

.inquiry-modal-close-link {
  border: none;
  background: transparent;
  color: var(--muted, #756c61);
  font-size: 13px;
  padding: 6px;
  cursor: pointer;
  text-decoration: underline;
}


/* PDF Export Progress Modal */
.pdf-export-modal {
  position: relative !important;
  width: min(480px, 92vw) !important;
  max-width: 480px !important;
  padding: 24px 24px 28px !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  text-align: left !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22) !important;
}

.pdf-export-modal .inquiry-modal-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 8px !important;
  padding-right: 36px !important;
  position: relative !important;
}

.pdf-export-modal .inquiry-modal-head h3 {
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--text, #0f172a) !important;
  text-align: left !important;
}

.pdf-export-modal .inquiry-modal-close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  color: var(--muted, #64748b) !important;
  font-size: 20px !important;
  line-height: 1 !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

.pdf-export-modal .inquiry-modal-close:hover {
  background: var(--ink-soft, #f1f5f9) !important;
  color: var(--text, #0f172a) !important;
}

.pdf-export-modal .inquiry-modal-close svg {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  fill: none !important;
  display: block !important;
}

.pdf-export-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 0;
}

.pdf-export-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.pdf-export-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}

.pdf-export-status {
  color: var(--text);
}

.pdf-export-percentage {
  color: var(--green, #197d63);
  font-weight: 700;
  font-size: 14px;
}

.pdf-export-progress-track {
  width: 100%;
  height: 10px;
  background: var(--ink-soft, #f1f5f9);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line, #e2e8f0);
}

.pdf-export-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #197d63, #22c55e);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* Temporary Catalog Toolbar & View Switcher */
.temp-catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.temp-catalog-toolbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 640px) {
  .pdf-picker-select-all,
  .temp-catalog-toolbar-right {
    width: 100%;
  }

  .temp-catalog-toolbar-right {
    flex-direction: column;
    align-items: stretch;
  }

  .temp-catalog-toolbar-right .view-toggle-group,
  .temp-catalog-toolbar-right .secondary-action,
  .temp-catalog-toolbar-right .primary-action {
    width: 100%;
    justify-content: center;
  }

  .temp-catalog-toolbar-right .view-toggle-group {
    display: flex;
  }

  .temp-catalog-toolbar-right .view-toggle-btn {
    flex: 1;
    justify-content: center;
  }
}

.view-toggle-group {
  display: inline-flex;
  align-items: center;
  background: var(--ink-soft, #f1f5f9);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--line, #e2e8f0);
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--muted, #64748b);
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.view-toggle-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
}

.view-toggle-btn:hover {
  color: var(--text, #0f172a);
}

.view-toggle-btn.active {
  background: #fff;
  color: var(--text, #0f172a);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-weight: 700;
}

/* Grid View Layout */
.temp-catalog-product-list.view-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  max-height: none;
  overflow-y: visible;
}

.temp-catalog-product-list.view-grid .temp-catalog-row {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.temp-catalog-product-list.view-grid .temp-catalog-row:hover {
  border-color: var(--green, #197d63);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.temp-catalog-product-list.view-grid .temp-catalog-row.is-selected {
  border-color: var(--green, #197d63);
  background: rgba(25, 125, 99, 0.03);
}

.temp-catalog-product-list.view-grid .temp-catalog-row-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  overflow: hidden;
}

.temp-catalog-product-list.view-grid .temp-catalog-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.temp-catalog-product-list.view-grid .temp-catalog-check-wrapper {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  cursor: pointer;
}

.temp-catalog-product-list.view-grid .temp-catalog-check-wrapper .pdf-picker-check {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.temp-catalog-product-list.view-grid .temp-catalog-row-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Compact View Layout - Pure Images with Floating Checkboxes */
.temp-catalog-product-list.view-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  max-height: none;
  overflow-y: visible;
}

.temp-catalog-product-list.view-compact .temp-catalog-row {
  display: block;
  padding: 0;
  border: 2px solid var(--line, #e2e8f0);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1 / 1;
  position: relative;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.temp-catalog-product-list.view-compact .temp-catalog-row:hover {
  border-color: var(--green, #197d63);
}

.temp-catalog-product-list.view-compact .temp-catalog-row.is-selected {
  border-color: var(--green, #197d63);
  box-shadow: 0 0 0 2px rgba(25, 125, 99, 0.25);
}

.temp-catalog-product-list.view-compact .temp-catalog-row-media {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
}

.temp-catalog-product-list.view-compact .temp-catalog-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.temp-catalog-product-list.view-compact .temp-catalog-check-wrapper {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  cursor: pointer;
}

.temp-catalog-product-list.view-compact .temp-catalog-check-wrapper .pdf-picker-check {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.temp-catalog-product-list.view-compact .temp-catalog-row-body {
  display: none !important;
}

/* List View Layout - Detailed Horizontal Bars */
.temp-catalog-product-list.view-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: none;
  overflow-y: visible;
}

.temp-catalog-product-list.view-list .temp-catalog-row {
  display: block;
  padding: 0;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  background: #ffffff;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.temp-catalog-product-list.view-list .temp-catalog-row:hover {
  border-color: var(--green, #197d63);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.temp-catalog-product-list.view-list .temp-catalog-row.is-selected {
  border-color: var(--green, #197d63);
  background: rgba(25, 125, 99, 0.02);
}

.temp-catalog-row-label {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.temp-catalog-product-list.view-list .temp-catalog-row-label {
  display: flex !important;
  align-items: center;
  padding: 10px 16px;
  gap: 14px;
  width: 100%;
  cursor: pointer;
  user-select: none;
}

.temp-catalog-product-list.view-list .temp-catalog-row-media {
  display: flex;
  align-items: center;
  gap: 12px;
  position: static;
  width: auto;
  aspect-ratio: auto;
  flex-shrink: 0;
}

.temp-catalog-product-list.view-list .temp-catalog-row-media img {
  width: 68px;
  height: 68px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line, #e2e8f0);
  flex-shrink: 0;
}

.temp-catalog-product-list.view-list .temp-catalog-check-wrapper {
  position: static;
  top: auto;
  left: auto;
  z-index: auto;
}

.temp-catalog-product-list.view-list .temp-catalog-row-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
}

.temp-catalog-row-title-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.temp-catalog-product-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #0f172a);
}

.temp-catalog-code-badge {
  font-size: 11px;
  font-weight: 700;
  font-family: monospace;
  background: var(--ink-soft, #f1f5f9);
  color: var(--muted, #475569);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line, #cbd5e1);
}

.temp-catalog-row-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.catalog-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ink-soft, #f1f5f9);
  color: #334155;
  border: 1px solid #e2e8f0;
}

.catalog-tag.tag-collection {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

.catalog-tag.tag-category {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

.catalog-tag.tag-fabric {
  background: #fefce8;
  color: #854d0e;
  border-color: #fef08a;
}

.catalog-tag.tag-age {
  background: #faf5ff;
  color: #6b21a8;
  border-color: #e9d5ff;
}

.temp-catalog-row-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #64748b;
}

.temp-catalog-row-meta strong {
  color: #0f172a;
}

.temp-catalog-row-meta .meta-price {
  color: #16a34a;
}

/* Expanded Pills Filter Layout */
.pill-filter-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0 16px;
  padding: 14px 16px;
  background: var(--ink-soft, #f8fafc);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
}

.pill-filter-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pill-filter-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted, #64748b);
  min-width: 90px;
  letter-spacing: 0.04em;
}

.pill-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text, #334155);
  background: #ffffff;
  border: 1px solid var(--line, #cbd5e1);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.filter-pill:hover {
  border-color: var(--green, #197d63);
  color: var(--green, #197d63);
  background: rgba(25, 125, 99, 0.05);
}

.filter-pill.active {
  background: var(--green, #197d63);
  color: #ffffff;
  border-color: var(--green, #197d63);
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(25, 125, 99, 0.25);
}

/* Dedicated Selected Products Shelf */
.selected-products-shelf {
  margin: 18px 0 22px;
  padding: 16px 20px 20px;
  background: rgba(25, 125, 99, 0.05);
  border: 1.5px solid var(--green, #197d63);
  border-radius: 14px;
}

.selected-products-shelf[hidden] {
  display: none !important;
}

.selected-products-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.selected-products-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--green, #197d63);
  display: flex;
  align-items: center;
  gap: 8px;
}

.selected-products-subtitle {
  font-size: 12px;
  color: var(--muted, #64748b);
  display: block;
  margin-top: 2px;
}

.btn-clear-selected {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.catalog-section-head {
  margin: 20px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #0f172a);
  margin: 0;
}

/* PDF Modal Selected Products Preview */
.pdf-modal-count-badge {
  display: inline-block;
  background: var(--green-soft, rgba(25, 125, 99, 0.12));
  color: var(--green, #197d63);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 4px;
}

.pdf-modal-products-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 8px;
  max-height: 160px;
  overflow-y: auto;
  padding: 10px;
  background: var(--ink-soft, #f8fafc);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
  margin-top: 10px;
}

.pdf-modal-product-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid var(--line, #cbd5e1);
  border-radius: 8px;
  padding: 4px;
  overflow: hidden;
}

.pdf-modal-product-chip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}

.pdf-modal-product-code {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted, #64748b);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
  text-align: center;
}

/* View Selected Modal & Sharable Link Styles */
.share-link-box {
  background: var(--ink-soft, #f8fafc);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.share-link-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text, #0f172a);
}

.btn-share-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
  cursor: pointer;
}

.share-link-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.share-link-input-group input {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  border: 1px solid var(--line, #cbd5e1);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text, #0f172a);
}

.share-copied-toast {
  font-size: 12px;
  font-weight: 700;
  color: var(--green, #197d63);
}

.view-selected-modal {
  width: min(820px, 95vw) !important;
  max-width: 820px !important;
}

.manage-links-modal {
  width: min(920px, 95vw) !important;
  max-width: 920px !important;
}

.view-selected-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
  background: #fafafa;
}

.view-selected-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line, #cbd5e1);
  background: #ffffff;
}

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

.view-selected-card-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.view-selected-card-remove:hover {
  background: #df3f2f;
}

.view-selected-modal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line, #e2e8f0);
}



