/* ==========================================================================
   EmbDesignTube - "Royal Silk" theme
   Deep plum-indigo canvas, gold thread accents, serif display type.
   ========================================================================== */

:root {
  /* Canvas */
  --bg: #14101f;
  --bg-alt: #1a1528;
  --surface: #1e1830;
  --surface-2: #262038;
  --surface-3: #2f2745;

  /* Thread accents */
  --gold: #d4af37;
  --gold-soft: #e8c86a;
  --gold-dim: rgba(212, 175, 55, 0.18);
  --rose: #e8b4b8;
  --plum: #6d3f7a;
  --emerald: #3fa87e;
  --ruby: #c2415a;

  /* Type */
  --text: #f3eefa;
  --text-muted: #a99fb8;
  --text-dim: #7e7490;

  --border: rgba(212, 175, 55, 0.16);
  --border-strong: rgba(212, 175, 55, 0.34);
  --border-cool: rgba(255, 255, 255, 0.07);

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 26px 64px rgba(0, 0, 0, 0.55);
  --glow: 0 0 0 1px var(--border-strong), 0 18px 46px rgba(109, 63, 122, 0.35);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 1320px;

  /* Compatibility with older inline references */
  --border-color: var(--border);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 8% -8%, rgba(109, 63, 122, 0.34), transparent 62%),
    radial-gradient(900px 560px at 96% 4%, rgba(212, 175, 55, 0.11), transparent 58%);
  background-repeat: no-repeat;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display { font-family: var(--font-display); font-weight: 700; line-height: 1.18; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }

::selection { background: var(--gold); color: #1b1428; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: var(--plum); }

/* Shared shell ---------------------------------------------------------- */
.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 26px;
  width: 100%;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.thread-rule {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: 0;
}

/* ==========================  TOP BAR  ================================== */
.top-bar {
  background: #0e0a17;
  border-bottom: 1px solid var(--border-cool);
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 8px 0;
}

.top-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.top-bar-left { display: flex; gap: 22px; align-items: center; }
.top-bar-right { display: flex; gap: 18px; align-items: center; }
.top-bar a { transition: color 0.2s; }
.top-bar a:hover { color: var(--gold-soft); }

.currency-select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
}
.currency-select:focus { outline: none; border-color: var(--gold); }

/* ==========================  HEADER  =================================== */
.main-header {
  /* Solid rather than blurred: a backdrop-filter on a sticky element forces a
     full-page recomposite on every scroll frame. */
  background: #171223;
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 900;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.brand-logo { display: flex; align-items: center; gap: 14px; }

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(150deg, var(--gold), #a8801f);
  color: #1a1327;
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.3);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}
.brand-title span { color: var(--gold); }

.brand-subtitle {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Search */
.header-search { flex: 1; max-width: 620px; position: relative; }

.search-form {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 4px 4px 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-form:focus-within {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.09);
}

.search-cat-dropdown {
  background: transparent;
  border: none;
  border-right: 1px solid var(--border-cool);
  padding: 0 14px 0 10px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  max-width: 160px;
}
.search-cat-dropdown:focus { outline: none; }
.search-cat-dropdown option { background: var(--surface-2); color: var(--text); }

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 11px 16px;
  font-size: 14px;
  color: var(--text);
}
.search-input::placeholder { color: var(--text-dim); }
.search-input:focus { outline: none; }

.search-btn {
  width: 42px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(150deg, var(--gold), #a8801f);
  color: #1a1327;
  font-size: 15px;
  display: grid;
  place-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.search-btn:hover { transform: scale(1.05); box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35); }

.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: 1200;
  max-height: 440px;
  overflow-y: auto;
}
.search-suggestions.active { opacity: 1; visibility: visible; transform: translateY(0); }

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-cool);
  font-size: 13.5px;
  transition: background 0.15s;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--surface-2); }

.suggestion-thumb {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; }

.action-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 62px;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.action-btn i { font-size: 18px; color: var(--text); }
.action-btn:hover { background: var(--surface-2); color: var(--gold-soft); }
.action-btn:hover i { color: var(--gold); }

.badge-count {
  position: absolute;
  top: 2px;
  right: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ruby);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ==========================  NAV  ====================================== */
.main-nav {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 850;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
}

.nav-links { display: flex; list-style: none; gap: 2px; }
.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--gold-soft); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* Mega menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 740px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.22s ease;
  z-index: 1000;
}
.nav-item:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.mega-cat-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.mega-cat-item:hover { background: var(--surface-2); color: var(--gold-soft); }
.mega-cat-item img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
}

/* ==========================  HERO  ===================================== */
.hero-section {
  max-width: var(--max);
  margin: 34px auto 10px;
  padding: 0 26px;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
  /* Slides stack in one grid cell, so the slider grows to fit the tallest
     copy block instead of clipping it at a fixed height. */
  display: grid;
}

.hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  transition: opacity 0.7s ease, visibility 0s linear 0.7s;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  transition: opacity 0.7s ease, visibility 0s linear 0s;
}

.hero-copy { padding: 56px 12px 56px 58px; position: relative; z-index: 3; }

.hero-art {
  position: relative;
  height: 100%;
  min-height: 460px;
  background-size: cover;
  background-position: center;
}
.hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--surface) 2%, rgba(30, 24, 48, 0.75) 32%, rgba(30, 24, 48, 0.12) 100%);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.09);
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 700;
  line-height: 1.1;
  margin: 20px 0 16px;
  color: var(--text);
}
.hero-title em { font-style: italic; color: var(--gold); }

.hero-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 28px;
}

.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(150deg, var(--gold), #a8801f);
  color: #1a1327;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(212, 175, 55, 0.32); }

.hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}
.hero-btn-ghost:hover { background: var(--surface-2); border-color: var(--gold); }

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--border-cool);
}
.hero-stat-num { font-family: var(--font-display); font-size: 24px; color: var(--gold); }
.hero-stat-lbl { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }

.slider-controls {
  position: absolute;
  bottom: 26px;
  left: 58px;
  display: flex;
  gap: 9px;
  z-index: 5;
}
.dot-btn {
  width: 9px;
  height: 9px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.25s;
}
.dot-btn.active { width: 30px; background: var(--gold); }

/* ==========================  FEATURES  ================================= */
.features-bar {
  max-width: var(--max);
  margin: 34px auto;
  padding: 0 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.22s, border-color 0.22s;
}
.feature-box:hover { transform: translateY(-3px); border-color: var(--border-strong); }

.feature-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-size: 17px;
}

.feature-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.feature-desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }

/* ==========================  SECTIONS  ================================= */
.section-container {
  max-width: var(--max);
  margin: 56px auto;
  padding: 0 26px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 26px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title i { font-size: 20px; color: var(--gold); }
.section-sub { font-size: 13.5px; color: var(--text-dim); margin-top: 6px; }

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-soft);
  white-space: nowrap;
  transition: gap 0.2s;
}
.section-link:hover { gap: 13px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

/* ==========================  CATEGORY CARDS  =========================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.cat-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--glow);
}

.cat-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-cool);
}

.cat-body { padding: 14px 12px; text-align: center; }
.cat-name { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.cat-count { font-size: 11.5px; color: var(--gold); letter-spacing: 0.06em; }

/* ==========================  PRODUCT CARDS  ============================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--glow);
}

.product-img-wrapper {
  position: relative;
  background: #fdfbf7;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img { transform: scale(1.06); }

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--ruby);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  z-index: 2;
}
.product-badge.gold { background: linear-gradient(150deg, var(--gold), #a8801f); color: #1a1327; }

.format-tags {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  z-index: 2;
}

.fmt-tag {
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(20, 16, 31, 0.82);
  border: 1px solid var(--gold-dim);
  color: var(--gold-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.25s ease;
  z-index: 3;
}
.product-card:hover .card-actions { opacity: 1; transform: translateX(0); }

.btn-icon {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(20, 16, 31, 0.88);
  color: var(--text);
  font-size: 13px;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-icon:hover { background: var(--gold); color: #1a1327; border-color: var(--gold); }

.product-content { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }

.product-sku {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 7px;
}

.product-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.42;
  color: var(--text);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.product-card:hover .product-title { color: var(--gold-soft); }

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 11.5px;
  color: var(--text-dim);
  padding: 9px 0;
  border-top: 1px solid var(--border-cool);
  border-bottom: 1px solid var(--border-cool);
  margin-bottom: 14px;
}
.product-specs i { color: var(--gold); margin-right: 4px; }

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.product-price {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--gold);
}
.product-price small {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: line-through;
}

.btn-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(150deg, var(--gold), #a8801f);
  color: #1a1327;
  font-size: 12.5px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-cart:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(212, 175, 55, 0.3); }

/* ==========================  FLASH SALE  =============================== */
.flash-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  padding: 28px 34px;
  margin-bottom: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(120deg, rgba(194, 65, 90, 0.28), rgba(109, 63, 122, 0.34)),
    var(--surface);
  position: relative;
  overflow: hidden;
}
.flash-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.05) 0 2px, transparent 2px 12px);
  pointer-events: none;
}

.flash-title { font-family: var(--font-display); font-size: 28px; margin-top: 6px; color: var(--text); }
.flash-desc { font-size: 13.5px; color: var(--text-muted); margin-top: 6px; }

.flash-timer { display: flex; gap: 12px; position: relative; }

.timer-unit {
  min-width: 74px;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  background: rgba(14, 10, 23, 0.66);
  border: 1px solid var(--border);
  text-align: center;
}
.timer-num { font-family: var(--font-display); font-size: 27px; font-weight: 700; color: var(--gold); line-height: 1; }
.timer-lbl { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-top: 6px; }

/* ==========================  MACHINE STRIP  ============================ */
.machine-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.machine-chip {
  padding: 20px 12px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border-cool);
  transition: border-color 0.2s, transform 0.2s;
}
.machine-chip:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.machine-chip i { font-size: 24px; color: var(--gold); }
.machine-chip div { font-size: 12.5px; font-weight: 600; color: var(--text-muted); margin-top: 9px; }

/* ==========================  CATALOG  ================================== */
.breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.breadcrumb a { color: var(--gold-soft); }
.breadcrumb a:hover { text-decoration: underline; }

.catalog-layout {
  max-width: var(--max);
  margin: 12px auto 60px;
  padding: 0 26px;
  display: grid;
  grid-template-columns: 288px 1fr;
  gap: 28px;
  align-items: start;
}

.filter-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 100px;
}

.filter-toggle { display: none; }

.filter-group { padding: 18px 0; border-bottom: 1px solid var(--border-cool); }
.filter-group:last-child { border-bottom: none; padding-bottom: 0; }

.filter-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 13px;
}

.filter-options { display: flex; flex-direction: column; gap: 9px; max-height: 260px; overflow-y: auto; }

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s;
}
.filter-checkbox:hover { color: var(--gold-soft); }
.filter-checkbox input { accent-color: var(--gold); width: 15px; height: 15px; cursor: pointer; }

.range-inputs { display: flex; align-items: center; gap: 9px; }

.range-input {
  width: 100%;
  padding: 9px 11px;
  background: var(--bg-alt);
  border: 1px solid var(--border-cool);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text);
}
.range-input:focus { outline: none; border-color: var(--gold); }

.btn-filter-apply {
  width: 100%;
  margin-top: 18px;
  padding: 12px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(150deg, var(--gold), #a8801f);
  color: #1a1327;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.2s;
}
.btn-filter-apply:hover { transform: translateY(-2px); }

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 22px;
  margin-bottom: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13.5px;
  color: var(--text-muted);
}
.catalog-toolbar strong { color: var(--gold); }

.sort-select {
  padding: 9px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border-cool);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}
.sort-select:focus { outline: none; border-color: var(--gold); }
.sort-select option { background: var(--surface-2); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.page-btn:hover { border-color: var(--gold); color: var(--gold-soft); }
.page-btn.active {
  background: linear-gradient(150deg, var(--gold), #a8801f);
  border-color: transparent;
  color: #1a1327;
}
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-dim); }
.empty-state i { font-size: 44px; color: var(--surface-3); margin-bottom: 14px; }
.empty-state h4 { font-family: var(--font-display); font-size: 21px; color: var(--text); margin-bottom: 6px; }

/* ==========================  PRODUCT PAGE  ============================= */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 46px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.product-gallery {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fdfbf7;
  border: 1px solid var(--border);
}

/* Catalogue shots are line art on paper, so fit the whole design inside the
   frame rather than cropping it. */
.product-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 22px;
}

.product-detail-title {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.18;
  color: var(--text);
  margin: 10px 0 18px;
}

.price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }

.price-now { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--gold); }
.price-was { font-size: 16px; color: var(--text-dim); text-decoration: line-through; }

.price-off {
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(194, 65, 90, 0.16);
  border: 1px solid rgba(194, 65, 90, 0.4);
  color: #ef8ba0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.spec-table { border-top: 1px solid var(--border-cool); margin-bottom: 26px; }

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--border-cool);
  font-size: 13.5px;
}
.spec-row span:first-child { color: var(--text-dim); display: flex; align-items: center; gap: 9px; }
.spec-row span:first-child i { color: var(--gold); width: 16px; }
.spec-row span:last-child { font-weight: 600; color: var(--text); text-align: right; }

.buy-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: 22px; }

.btn-primary-lg, .btn-secondary-lg {
  flex: 1;
  min-width: 190px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary-lg { background: linear-gradient(150deg, var(--gold), #a8801f); color: #1a1327; }
.btn-primary-lg:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(212, 175, 55, 0.32); }

.btn-secondary-lg {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-secondary-lg:hover { background: var(--surface-2); border-color: var(--gold); }

.product-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--gold-dim);
  font-size: 12.5px;
  color: var(--text-muted);
}
.product-trust-row i { color: var(--gold); margin-right: 7px; }

.format-download-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border-cool);
}
.format-download-box h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 13px;
}

.fmt-download {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  margin: 0 7px 7px 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.2s;
}
.fmt-download:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-2px); }

/* ==========================  CART & ACCOUNT  =========================== */
.page-title {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.page-title i { font-size: 26px; color: var(--gold); }

.cart-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 26px;
  align-items: start;
}

.cart-line {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-cool);
}
.cart-line:last-child { border-bottom: none; }

.cart-line-img {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fdfbf7;
}

.cart-line-title { font-size: 14.5px; font-weight: 600; color: var(--text); }
.cart-line-meta { font-size: 12px; color: var(--text-dim); margin: 4px 0 8px; }

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  font-size: 13.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-cool);
}
.summary-row.total {
  border-bottom: none;
  padding-top: 18px;
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--text);
}
.summary-row.total span:last-child { color: var(--gold); }

.promo-row { display: flex; gap: 8px; margin: 14px 0 18px; }

.promo-input {
  flex: 1;
  padding: 11px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border-cool);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
}
.promo-input:focus { outline: none; border-color: var(--gold); }

.btn-promo {
  padding: 0 20px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 700;
}
.btn-promo:hover { background: var(--surface-2); }

.account-layout {
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: 26px;
  align-items: start;
}

.account-side {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
}

.avatar-ring {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: #1a1327;
  background: linear-gradient(150deg, var(--gold), #a8801f);
}

.account-tab {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px 15px;
  margin-top: 7px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: left;
  transition: all 0.2s;
}
.account-tab:hover { background: var(--surface-2); color: var(--text); }
.account-tab.active {
  background: rgba(212, 175, 55, 0.09);
  border-color: var(--gold-dim);
  color: var(--gold-soft);
}

.download-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px;
  margin-bottom: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-cool);
  border-radius: var(--radius);
}
.download-row:hover { border-color: var(--border-strong); }

/* ==========================  CART DRAWER  ============================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 5, 14, 0.74);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 1400;
}
.cart-drawer-overlay.active { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: -430px;
  width: 420px;
  height: 100%;
  background: var(--bg-alt);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1500;
}
.cart-drawer.active { right: 0; }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid var(--border);
}
.cart-header-title { font-family: var(--font-display); font-size: 20px; color: var(--text); }
.cart-header button { background: none; border: none; font-size: 18px; color: var(--text-dim); }
.cart-header button:hover { color: var(--gold); }

.cart-body { flex: 1; overflow-y: auto; padding: 18px 22px; }

.cart-item {
  display: flex;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-cool);
}

.cart-item-img {
  width: 62px;
  height: 62px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fdfbf7;
}

.cart-item-details { flex: 1; min-width: 0; }
.cart-item-title { font-size: 13px; font-weight: 600; color: var(--text); display: block; }
.cart-item-title:hover { color: var(--gold-soft); }
.cart-item-sku { font-size: 11px; color: var(--text-dim); margin: 3px 0 5px; }
.cart-item-price { font-size: 14px; font-weight: 700; color: var(--gold); }

.cart-remove { background: none; border: none; color: var(--text-dim); font-size: 13px; }
.cart-remove:hover { color: var(--ruby); }

.cart-footer { padding: 20px 22px; border-top: 1px solid var(--border); }

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--text-muted);
}
.cart-total-row span:last-child { font-family: var(--font-display); font-size: 22px; color: var(--gold); }

.btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(150deg, var(--gold), #a8801f);
  color: #1a1327;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-checkout:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(212, 175, 55, 0.3); }
.btn-checkout:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ==========================  MODALS  =================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 5, 14, 0.82);
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
  z-index: 1600;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s;
}
.modal-overlay.active .modal-card { transform: translateY(0) scale(1); }

.modal-card.narrow { max-width: 480px; }

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  z-index: 5;
}
.modal-close:hover { background: var(--ruby); color: #fff; border-color: transparent; }

.modal-head { padding: 26px 26px 0; }
.modal-title { font-family: var(--font-display); font-size: 24px; color: var(--text); }
.modal-body { padding: 22px 26px 26px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 15px;
  background: var(--bg-alt);
  border: 1px solid var(--border-cool);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field select option { background: var(--surface-2); }

.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 20px; }

.pay-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--border-cool);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}
.pay-option:has(input:checked) { border-color: var(--gold); background: rgba(212, 175, 55, 0.07); color: var(--text); }
.pay-option input { accent-color: var(--gold); }

/* Quick view */
.qv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding: 26px; }
.qv-img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); background: #fdfbf7; }
.qv-title { font-family: var(--font-display); font-size: 23px; color: var(--text); margin: 7px 0 12px; }
.qv-price { font-family: var(--font-display); font-size: 27px; color: var(--gold); margin-bottom: 18px; }
.qv-specs {
  background: var(--surface-2);
  border: 1px solid var(--border-cool);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 18px;
}
.qv-spec-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
  font-size: 12.5px;
  border-bottom: 1px solid var(--border-cool);
}
.qv-spec-line:last-child { border-bottom: none; }
.qv-spec-line span:first-child { color: var(--text-dim); }
.qv-spec-line span:last-child { font-weight: 600; color: var(--text); }
.qv-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 22px; }

/* ==========================  ADMIN  ==================================== */
.admin-bar {
  background: #0e0a17;
  border-bottom: 1px solid var(--border);
  padding: 9px 0;
  font-size: 12.5px;
  color: var(--gold-soft);
}

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 19px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
}
.stat-num { font-family: var(--font-display); font-size: 27px; color: var(--text); line-height: 1.1; }
.stat-lbl { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-top: 3px; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table thead th {
  text-align: left;
  padding: 13px 14px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table tbody td { padding: 13px 14px; border-bottom: 1px solid var(--border-cool); color: var(--text-muted); }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
}
.table-wrap { overflow-x: auto; }

.btn-sm {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 12px;
}
.btn-sm:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm.danger:hover { border-color: var(--ruby); color: var(--ruby); }

/* ==========================  FOOTER  =================================== */
.main-footer {
  background: #0e0a17;
  border-top: 1px solid var(--border);
  margin-top: 70px;
  padding: 56px 0 0;
  color: var(--text-muted);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 26px 44px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
}

.footer-brand { font-family: var(--font-display); font-size: 24px; color: var(--text); margin-bottom: 13px; }
.footer-brand span { color: var(--gold); }
.footer-about { font-size: 13px; line-height: 1.7; color: var(--text-dim); margin-bottom: 20px; }

.footer-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--text-dim); transition: color 0.2s, padding-left 0.2s; }
.footer-links a:hover { color: var(--gold-soft); padding-left: 5px; }

.social-row { display: flex; gap: 10px; }
.social-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 15px;
  transition: all 0.2s;
}
.social-btn:hover { background: var(--gold); color: #1a1327; border-color: var(--gold); }

.newsletter-row { display: flex; gap: 8px; }
.newsletter-row input {
  flex: 1;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border-cool);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
}
.newsletter-row input:focus { outline: none; border-color: var(--gold); }
.newsletter-row button {
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(150deg, var(--gold), #a8801f);
  color: #1a1327;
  font-size: 13px;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid var(--border-cool);
  padding: 20px 26px;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-dim);
}
.pay-icons { display: flex; gap: 18px; }

/* ==========================  TOASTS  =================================== */
.toast-container {
  position: fixed;
  top: 22px;
  right: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}

.toast {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 280px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 13.5px;
  color: var(--text);
  animation: slideIn 0.3s ease;
}
.toast.success { border-left-color: var(--emerald); }
.toast.success i { color: var(--emerald); }
.toast.warning { border-left-color: var(--ruby); }
.toast.warning i { color: var(--ruby); }
.toast i { color: var(--gold); font-size: 16px; }

@keyframes slideIn {
  from { transform: translateX(110%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================  RESPONSIVE  =============================== */
@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .machine-strip { grid-template-columns: repeat(3, 1fr); }
  .hero-title { font-size: 42px; }
}

@media (max-width: 1024px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .features-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .cart-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail-layout { grid-template-columns: 1fr; gap: 30px; }
  .hero-slide { grid-template-columns: 1fr; }
  .hero-art { position: absolute; inset: 0; min-height: 0; }
  .hero-slider { min-height: 0; }
  .hero-art::after { background: linear-gradient(180deg, rgba(20, 16, 31, 0.72), rgba(20, 16, 31, 0.92)); }
  .hero-copy { position: relative; z-index: 3; padding: 46px 34px; }
}

@media (max-width: 768px) {
  .shell, .top-bar-inner, .header-inner, .section-container,
  .features-bar, .hero-section, .catalog-layout, .breadcrumb,
  .footer-inner, .footer-bottom { padding-left: 14px; padding-right: 14px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .features-bar { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .machine-strip { grid-template-columns: repeat(2, 1fr); }
  .qv-grid { grid-template-columns: 1fr; padding: 20px; }
  .pay-options { grid-template-columns: 1fr; }
  .cart-drawer { width: 100%; right: -100%; }

  /* Top bar keeps to one compact line */
  .top-bar { font-size: 11px; }
  .top-bar-left { gap: 12px; white-space: nowrap; overflow: hidden; }
  .top-bar-left > *:not(:first-child) { display: none; }
  .top-bar-right { gap: 10px; flex-shrink: 0; }

  /* Header: logo + actions, search on its own row */
  .main-header { padding: 12px 0; }
  .header-inner { gap: 12px; flex-wrap: wrap; }
  .brand-subtitle { display: none; }
  .brand-title { font-size: 20px; }
  .brand-icon { width: 40px; height: 40px; font-size: 17px; }
  .header-search { order: 3; flex: 1 0 100%; max-width: none; }
  .search-cat-dropdown { display: none; }
  .action-btn { min-width: 54px; padding: 6px 4px; }

  /* Nav scrolls sideways */
  .nav-inner { padding: 0; }
  .nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding: 0 10px;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-link { padding: 12px 13px; font-size: 13px; white-space: nowrap; }
  .mega-menu { display: none; }

  /* Hero */
  .hero-section { margin: 18px auto 0; }
  .hero-copy { padding: 36px 22px 76px; }
  .hero-title { font-size: 30px; }
  .hero-subtitle { font-size: 14px; margin-bottom: 22px; }
  .hero-stats { gap: 22px; margin-top: 26px; }
  .hero-stat-num { font-size: 20px; }
  .slider-controls { left: 22px; bottom: 22px; }

  /* Sections */
  .section-container { margin: 38px auto; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-title { font-size: 23px; }
  .page-title { font-size: 27px; }
  .product-detail-layout { padding: 18px; }
  .product-detail-title { font-size: 25px; }
  .price-now { font-size: 32px; }
  .product-trust-row { grid-template-columns: 1fr; }
  .buy-actions { flex-direction: column; }
  .btn-primary-lg, .btn-secondary-lg { width: 100%; flex: none; }

  /* Flash sale */
  .flash-banner { padding: 22px; }
  .flash-title { font-size: 21px; }
  .timer-unit { min-width: 62px; padding: 10px 6px; }
  .timer-num { font-size: 21px; }

  /* Filters collapse behind a toggle */
  .filter-sidebar { padding: 16px; }
  .filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 15px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-2);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
  }
  .filter-body { display: none; }
  .filters-open .filter-body { display: block; margin-top: 14px; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .machine-strip { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 26px; }
  .product-price-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-cart { width: 100%; }
  .product-price { font-size: 18px; }
  .stat-grid { grid-template-columns: 1fr; }
}
