/* ============================================================
   Shan Gas — Design System (Art Direction A: Precision Factory)
   Dark industrial appliance brand.
   Keeps Bootstrap grid/utilities; this file owns the visuals.
   ============================================================ */

/* ---- Tokens ---- */
:root {
  --blue: #0D6EFD;
  --blue-hover: #0a58ca;
  --red: #E11D20;
  --red-hover: #c21619;
  --amber: #F9A826;

  --success: #16a34a;
  --muted: #A0AABF;
  --muted-2: #828C9F;
  --inactive: #4A5568;

  --bg-deep: #0D1017;
  --bg-panel: #151921;
  --bg-charcoal: #1E232E;
  --bg-light-charcoal: #2A3140;

  --line: #2A3140;
  --line-soft: rgba(255, 255, 255, 0.06);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --maxw: 1240px;
  --gutter: 24px;

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.35);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-display: "Gilroy", "Segoe UI", system-ui, sans-serif;
  --font-body: "Gilroy", "Segoe UI", system-ui, sans-serif;
}

/* ---- Reset / base ---- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--muted);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(1100px 520px at 12% -8%, rgba(13, 110, 253, 0.14), transparent 60%),
    radial-gradient(900px 460px at 100% 0%, rgba(225, 29, 32, 0.10), transparent 55%),
    linear-gradient(180deg, var(--bg-deep), #0b0e14 60%);
  background-attachment: fixed;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint blueprint grid overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
  z-index: 0;
}

#toast-container { z-index: 99999; }

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

a { color: var(--blue); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--blue-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: #fff;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1rem; }

.container { max-width: var(--maxw); }
.container-wide { max-width: 1400px; }

::selection { background: var(--blue); color: #fff; }

/* ---- Layout helpers ---- */
.section { position: relative; z-index: 1; padding: 84px 0; }
.section-sm { padding: 54px 0; }
.section-tight { padding: 40px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--blue);
  display: inline-block;
}
.eyebrow.red { color: var(--red); }
.eyebrow.red::before { background: var(--red); }

.section-title {
  font-size: clamp(28px, 3.4vw, 44px);
  margin-bottom: 12px;
}
.section-lead {
  color: var(--muted);
  max-width: 620px;
  font-size: 17px;
}

.text-muted-2 { color: var(--muted-2) !important; }
.text-blue { color: var(--blue) !important; }
.text-red { color: var(--red) !important; }
.text-amber { color: var(--amber) !important; }

/* ---- Buttons ---- */
.btn {
  --b: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s;
  background: var(--b);
  color: #fff;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 12px 28px rgba(13, 110, 253, 0.35); }
.btn:active { transform: translateY(0); }

.btn-primary { --b: var(--blue); }
.btn-primary:hover { background: var(--blue-hover); }

.btn-red { --b: var(--red); }
.btn-red:hover { background: var(--red-hover); box-shadow: 0 12px 28px rgba(225, 29, 32, 0.35); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: #fff;
}
.btn-ghost:hover { border-color: var(--blue); color: #fff; box-shadow: none; background: rgba(13, 110, 253, 0.08); }

.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.btn[disabled], .btn.disabled { opacity: 0.5; pointer-events: none; }

/* ---- Panels / cards ---- */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card-surface {
  background: linear-gradient(180deg, var(--bg-charcoal), #181d27);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 16, 23, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(13, 16, 23, 0.94);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 88px;
  height: auto;
  padding: 10px 0;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  text-align: center;
  line-height: 1.1;
}
.brand,
.brand:hover,
.brand:focus {
  color: #fff;
  text-decoration: none !important;
}
.brand img {
  height: 64px;
  width: auto;
  max-width: min(240px, 56vw);
  object-fit: contain;
}
.brand .brand-mark {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--blue), #062a66);
  color: #fff; font-weight: 800;
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.35);
}
.brand .brand-tagline {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
  text-decoration: none !important;
  border-bottom: none;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: var(--muted-2);
  transition: -webkit-text-fill-color 0.25s var(--ease), background 0.25s var(--ease);
}
.brand:hover .brand-tagline {
  background: linear-gradient(90deg, var(--blue), var(--red), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-decoration: none !important;
}
.brand small { display: block; font-size: 11px; color: var(--muted-2); font-weight: 600; letter-spacing: 0.12em; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.main-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 10px;
  position: relative;
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(255, 255, 255, 0.04); }
.main-nav a.active::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--blue); border-radius: 2px;
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-icon-link {
  position: relative;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: #fff;
  border: 1px solid var(--line);
  background: var(--bg-charcoal);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.header-icon-link:hover { border-color: var(--blue); color: #fff; transform: translateY(-1px); }
.header-icon-link svg { width: 20px; height: 20px; }
.header-cart-badge {
  position: absolute;
  top: -7px; right: -7px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid var(--bg-deep);
}

.header-account { position: relative; }
.account-toggle {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-charcoal);
  color: #fff; cursor: pointer; font-weight: 600; font-size: 14px;
}
.account-toggle:hover { border-color: var(--blue); }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 200px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px;
  box-shadow: var(--shadow);
  display: none;
}
.account-menu.open { display: block; }
.account-menu a, .account-menu button.logout-btn {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 8px; color: var(--muted);
  font-weight: 600; font-size: 14px; background: none; border: none; cursor: pointer;
}
.account-menu a:hover, .account-menu button.logout-btn:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }

.nav-toggle { display: none; }

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto;
  width: min(86vw, 340px);
  background: var(--bg-panel);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  z-index: 1200;
  padding: 24px;
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { display: block; padding: 14px 8px; color: #fff; font-weight: 600; border-bottom: 1px solid var(--line-soft); }
.mobile-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
  opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 1150;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

/* ---- Footer ---- */
.site-footer {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, var(--bg-panel), #0e1118);
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
  margin-top: 40px;
}
.footer-col h5 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--muted); padding: 6px 0; font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-about { color: var(--muted); font-size: 15px; max-width: 340px; }
.footer-bottom {
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: var(--muted-2); font-size: 13px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line); color: var(--muted);
}
.footer-social a:hover { color: #fff; border-color: var(--blue); }

/* ---- Breadcrumb ---- */
.breadcrumb-bar {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  position: relative; z-index: 1;
}
.breadcrumb-bar a { color: var(--muted); }
.breadcrumb-bar a:hover { color: #fff; }
.breadcrumb-bar .sep { color: var(--inactive); margin: 0 8px; }
.breadcrumb-bar .current { color: #fff; font-weight: 600; }

/* ---- Page hero (inner pages) ---- */
.page-hero {
  position: relative; z-index: 1;
  padding: 54px 0 30px;
}
.page-hero h1 { font-size: clamp(30px, 4vw, 48px); }
.page-hero p { color: var(--muted); max-width: 560px; }

.category-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-charcoal);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.category-chip:hover {
  border-color: rgba(13, 110, 253, 0.55);
  color: #fff;
  background: rgba(13, 110, 253, 0.12);
}

/* ---- Shop page ---- */
.shop-hero {
  position: relative;
  z-index: 1;
  padding: 42px 0 8px;
}
.shop-hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 28px 40px;
  align-items: end;
}
.shop-hero__copy h1 {
  font-size: clamp(32px, 4.2vw, 52px);
  margin-bottom: 10px;
}
.shop-hero__copy p {
  margin: 0;
  max-width: 440px;
  color: var(--muted);
  font-size: 15px;
}
.shop-search {
  display: flex;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}
.shop-search__wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.shop-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}
.shop-search__input {
  width: 100%;
  background: rgba(21, 25, 33, 0.92);
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 12px;
  padding: 14px 14px 14px 42px;
  outline: none;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.shop-search__input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.18);
}
.shop-search__input::placeholder { color: var(--inactive); }

.shop-section {
  position: relative;
  z-index: 1;
  padding: 24px 0 64px;
}

.shop-cats {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  margin-bottom: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.shop-cats::-webkit-scrollbar { display: none; }
.shop-cat {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(30, 35, 46, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.shop-cat:hover {
  color: #fff;
  border-color: rgba(13, 110, 253, 0.45);
  transform: translateY(-1px);
}
.shop-cat.is-active {
  color: #fff;
  border-color: var(--blue);
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.28), rgba(225, 29, 32, 0.12));
  box-shadow: 0 8px 22px rgba(13, 110, 253, 0.18);
}

.shop-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.shop-filters__panel {
  position: sticky;
  top: 96px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(30, 35, 46, 0.55), rgba(21, 25, 33, 0.95));
  backdrop-filter: blur(8px);
}
.shop-filters__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.shop-filters__head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.shop-filters__toggle {
  border: 1px solid var(--line);
  background: var(--bg-charcoal);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}
.shop-filter-block { margin-bottom: 16px; }
.shop-filter-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
}
.shop-price-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}
.shop-price-sep {
  color: var(--inactive);
  font-weight: 700;
}
.shop-price-row .field input {
  padding: 11px 12px;
  text-align: center;
}

.shop-results { min-width: 0; }
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(21, 25, 33, 0.65);
}
.shop-toolbar__left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  min-width: 0;
}
.shop-count {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.shop-count strong {
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}
.shop-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.shop-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(13, 110, 253, 0.35);
  background: rgba(13, 110, 253, 0.12);
  color: #cfe0ff;
  font-size: 12px;
  font-weight: 600;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-chip--clear {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
  text-decoration: none;
}
.shop-chip--clear:hover {
  color: #fff;
  border-color: var(--red);
}
.shop-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.shop-sort label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-2);
  white-space: nowrap;
}
.shop-sort select {
  width: auto;
  min-width: 176px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 10px;
  padding: 10px 36px 10px 14px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23A0AABF' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  outline: none;
  font-size: 14px;
}
.shop-sort select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.16);
}
.shop-grid {
  animation: shopFadeUp 0.45s var(--ease) both;
}
@keyframes shopFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.shop-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
}
.shop-pagination {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}
.shop-pagination ul {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

@media (max-width: 991.98px) {
  .shop-hero__row {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .shop-filters__panel {
    position: static;
    padding: 14px 16px;
  }
  .shop-filters__body {
    display: none;
    padding-top: 8px;
  }
  .shop-filters.is-open .shop-filters__body {
    display: block;
  }
  .shop-filters__head { margin-bottom: 0; }
  .shop-filters.is-open .shop-filters__head { margin-bottom: 14px; }
  .shop-toolbar { align-items: flex-start; }
  .shop-sort { width: 100%; justify-content: space-between; }
  .shop-sort select { flex: 1; min-width: 0; }
}
@media (max-width: 575.98px) {
  .shop-hero { padding-top: 28px; }
  .shop-search { flex-direction: column; }
  .shop-search .btn { width: 100%; }
}

/* ---- Category grid ---- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.category-card {
  display: block;
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 110, 253, 0.5);
  box-shadow: var(--shadow);
}
.category-card__ic {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.2), rgba(13, 110, 253, 0.08));
  border: 1px solid rgba(13, 110, 253, 0.3);
  color: var(--blue);
  font-size: 36px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
  transition: all 0.3s ease;
}

.category-card:hover .category-card__ic {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.25);
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.3), rgba(13, 110, 253, 0.12));
}

.category-card__ic img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}
.category-card h3 {
  font-size: 22px;
  margin: 0 0 8px;
  color: #fff;
}
.category-card__meta {
  display: block;
  font-size: 14px;
  color: var(--muted-2);
  line-height: 1.45;
}
.category-card__cta {
  display: inline-block;
  margin-top: 6px;
  color: var(--blue);
  font-weight: 600;
}
.category-card:hover .category-card__cta { color: #6ea8ff; }

/* ---- Product grid + card ---- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr; /* 1 column on mobile */
  gap: 22px;
}

/* 2 columns on small tablets (576px and up) */
@media (min-width: 576px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

/* 3 columns on tablets (768px and up) */
@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* 4 columns on large screens (992px and up) */
@media (min-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }
}
.product-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-charcoal), #171c26);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 110, 253, 0.5);
  box-shadow: var(--shadow);
}
.product-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(13, 110, 253, 0.10), transparent 60%),
    var(--bg-deep);
  display: grid;
  place-items: center;
  overflow: hidden;
  text-decoration: none;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.4s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.05); }
.product-media .no-img {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: var(--line);
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.product-badge.blue { background: var(--blue); }
.product-badge.amber { background: var(--amber); color: #1a1300; }
.product-badge.green { background: var(--success); color: #fff; }
.product-badge.red { background: var(--red); color: #fff; }
.product-info {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.product-cat {
  font-size: 11px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.product-name {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-name:hover,
.product-name:focus {
  color: #fff;
  text-decoration: none;
}
.product-variant-name {
  font-size: 13px;
  color: var(--muted-2);
  font-weight: 600;
}
.product-attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.attr-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.2s;
}
.attr-dot:hover {
  transform: scale(1.2);
}
.attr-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 600;
}
.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.product-price .now {
  color: var(--blue);
  font-weight: 800;
  font-size: 18px;
}
.product-price .now small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-2);
  margin-right: 4px;
}
.product-price .was {
  color: var(--muted-2);
  text-decoration: line-through;
  font-size: 13px;
}
.product-price .old {
  color: var(--muted-2);
  text-decoration: line-through;
  font-size: 13px;
}
.product-actions {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}
.product-actions .ajax-add-form {
  margin: 0;
  display: flex;
  flex: 1 1 0;
  min-width: 0;
}
.product-actions .product-add-btn,
.product-actions > .btn {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  justify-content: center;
  text-align: center;
  padding: 9px 12px;
  white-space: nowrap;
}
.product-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-add-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.product-oos {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.02em;
  padding: 9px 12px;
  border: 1px solid rgba(225, 29, 32, 0.35);
  border-radius: 999px;
  background: rgba(225, 29, 32, 0.08);
}
.product-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.product-foot .btn { flex: 1; }

/* quick-add popover inside card */
.quick-add {
  margin-top: 4px;
}
.variant-mini {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-deep);
  color: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
}

/* ---- Forms ---- */
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--muted); margin-bottom: 7px; letter-spacing: 0.01em;
}
.field .help { font-size: 12px; color: var(--muted-2); margin-top: 5px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: var(--bg-deep);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.18);
}
.field input::placeholder, .field textarea::placeholder { color: var(--inactive); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23A0AABF' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field .errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--red); font-size: 13px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row input { width: auto; }
.checkbox-row label { margin: 0; color: var(--muted); font-weight: 500; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

/* ---- Pills / tags ---- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  background: var(--bg-charcoal); border: 1px solid var(--line); color: var(--muted);
}
.pill.active { background: rgba(13, 110, 253, 0.16); border-color: var(--blue); color: #fff; }
.pill.blue { background: rgba(13, 110, 253, 0.16); border-color: var(--blue); color: #cfe0ff; }
.pill.red { background: rgba(225, 29, 32, 0.16); border-color: var(--red); color: #ffd0d1; }

/* ---- Category strip ---- */
.cat-strip { 
  display: grid; 
  grid-template-columns: 1fr; /* 1 column on mobile */
  gap: 16px; 
}

/* 2 columns on tablets (768px and up) */
@media (min-width: 768px) {
  .cat-strip { 
    grid-template-columns: repeat(2, 1fr); 
  }
}

/* 3 columns on large screens (992px and up) */
@media (min-width: 992px) {
  .cat-strip { 
    grid-template-columns: repeat(3, 1fr); 
  }
}
.cat-tile {
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-charcoal), #161b24);
  border: 1px solid var(--line);
  color: #fff; font-weight: 700;
  overflow: hidden;
  text-decoration: none !important;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.cat-tile:hover,
.cat-tile:focus {
  transform: translateY(-3px);
  border-color: var(--blue);
  color: #fff;
  text-decoration: none !important;
}
.cat-tile > span {
  display: inline-block;
  text-decoration: none !important;
  transition: transform 0.22s var(--ease), color 0.22s var(--ease);
}
.cat-tile:hover > span:not(.cat-icon),
.cat-tile:focus > span:not(.cat-icon) {
  transform: scale(1.06);
  color: #fff;
  text-decoration: none !important;
}
.cat-tile .cat-icon { color: var(--blue); font-size: 22px; }
.cat-tile .cat-sub {
  font-weight: 500;
  color: var(--muted-2);
  font-size: 13px;
  text-decoration: none !important;
}
.cat-tile:hover .cat-sub,
.cat-tile:focus .cat-sub {
  color: #fff;
  text-decoration: none !important;
}

/* ---- Trust / feature row ---- */
.feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid var(--line);
}
.feature .ic {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(13, 110, 253, 0.14); color: var(--blue);
  margin-bottom: 16px; font-size: 22px;
}
.feature.red .ic { background: rgba(225, 29, 32, 0.14); color: var(--red); }
.feature.amber .ic { background: rgba(249, 168, 38, 0.14); color: var(--amber); }
.feature h4 { font-size: 18px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---- CTA band ---- */
.cta-band {
  position: relative; z-index: 1;
  border-radius: var(--radius-lg);
  padding: 54px;
  background:
    radial-gradient(700px 300px at 0% 0%, rgba(13, 110, 253, 0.35), transparent 60%),
    radial-gradient(700px 300px at 100% 100%, rgba(225, 29, 32, 0.30), transparent 60%),
    var(--bg-charcoal);
  border: 1px solid var(--line);
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(26px, 3vw, 38px); }

/* ---- Hero (custom slider) ---- */
.hero {
  position: relative; 
  z-index: 1;
  overflow: hidden;
  background: #000000;
}

.hero-track { 
  position: relative; 
  min-height: 800px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  pointer-events: none;
}

.hero-slide.active { 
  opacity: 1;
  visibility: visible;
  pointer-events: auto; 
  position: relative; 
}

/* Hero visual - full container */
.hero-visual {
  position: relative;
  width: 100%;
  height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background text overlay - behind product with gradient */
.hero-title-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  font-size: 160px;
  font-weight: 900;
  background: linear-gradient(90deg, 
    #0066ff 0%, 
    #7c3aed 20%, 
    #c026d3 40%, 
    #e11d48 60%, 
    #f97316 80%, 
    #eab308 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  pointer-events: none;
  font-family: var(--font-display);
  z-index: 1;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.hero-slide.active .hero-title-bg {
  opacity: 0.6;
  transform: translate(-50%, -50%) scale(1);
}

/* Product image - centered and large */
.hero-visual img { 
  max-width: 500px;
  max-height: 500px;
  width: auto;
  height: auto;
  object-fit: contain; 
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3));
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: scale(0.8) translateY(30px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

/* Image animation when slide is active */
.hero-slide.active .hero-visual img {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Bottom text animation */
.hero-bottom-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}

.hero-slide.active .hero-bottom-text {
  opacity: 1;
  transform: translateY(0);
}

/* Circular icon buttons */
.hero-icon-btn {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
}

.hero-icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
}

.hero-icon-btn.top-left {
  top: 20%;
  left: 15%;
}

/* Info box with minus icon and text */
.hero-info-box {
  position: absolute;
  bottom: 25%;
  right: 12%;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 3;
}

.hero-info-box .icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-info-box .icon-circle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
}

.hero-info-box .info-text {
  color: white;
  max-width: 180px;
}

.hero-info-box .info-text h5 {
  margin: 0 0 5px 0;
  font-size: 15px;
  font-weight: 600;
  color: white;
  line-height: 1.3;
}

.hero-info-box .info-text p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

/* Bottom text content */
.hero-bottom-text {
  position: absolute;
  bottom: 50px;
  left: 50px;
  text-align: left;
  max-width: 850px;
  padding: 0 30px;
  z-index: 3;
}

.hero-bottom-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.hero-bottom-text a {
  color: #fbbf24;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid #fbbf24;
}

.hero-bottom-text a:hover {
  color: #f59e0b;
  border-bottom-color: #f59e0b;
}

/* Navigation controls on right side */
.hero-controls {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

/* Arrow buttons */
.hero-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.1);
}

/* Vertical dots with line */
.hero-dots { 
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 20px 0;
}

/* Vertical connecting line */
.hero-dots::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: rgba(255, 255, 255, 0.3);
  z-index: 0;
}

.hero-dots button {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.4s ease;
  z-index: 1;
}

.hero-dots button.active { 
  background: white;
  border-color: white;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
  transform: scale(1.4);
}

.hero-dots button:hover:not(.active) {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .hero-track { min-height: 500px; }
  .hero-visual { height: 500px; }
  .hero-title-bg { font-size: 60px; }
  .hero-visual img { max-width: 300px; max-height: 300px; }
  
  .hero-icon-btn { width: 50px; height: 50px; font-size: 24px; }
  .hero-icon-btn.top-left { top: 15%; left: 8%; }
  
  .hero-info-box { bottom: 20%; right: 8%; gap: 10px; }
  .hero-info-box .icon-circle { width: 50px; height: 50px; font-size: 24px; }
  .hero-info-box .info-text { max-width: 140px; }
  .hero-info-box .info-text h5 { font-size: 13px; }
  .hero-info-box .info-text p { font-size: 11px; }
  
  .hero-bottom-text { bottom: 30px; padding: 0 20px; }
  .hero-bottom-text p { font-size: 13px; }
  
  .hero-controls { right: 20px; gap: 15px; }
  .hero-arrow { width: 40px; height: 40px; font-size: 16px; }
  .hero-dots { gap: 10px; }
  .hero-dots button { width: 12px; height: 12px; }
}

/* ---- Brand story ---- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.story-media {
  border-radius: var(--radius-lg);
  min-height: 380px;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(13, 110, 253, 0.22), transparent 55%),
    var(--bg-charcoal);
  border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden;
}
.story-media img { width: 80%; object-fit: contain; }

/* ---- Cart ---- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.cart-line {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
  margin-bottom: 14px;
}
.cart-line .thumb {
  width: 84px; height: 84px; border-radius: 12px; overflow: hidden;
  background: var(--bg-deep); display: grid; place-items: center; border: 1px solid var(--line);
}
.cart-line .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.cart-line .name { color: #fff; font-weight: 700; }
.cart-line .variant { color: var(--muted-2); font-size: 13px; }
.qty-stepper {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.qty-stepper button {
  width: 38px; height: 40px; background: var(--bg-charcoal); border: none; color: #fff;
  font-size: 18px; cursor: pointer; line-height: 1;
}
.qty-stepper button:hover { background: var(--line); }
.qty-stepper input {
  width: 46px; height: 40px; text-align: center; border: none;
  background: var(--bg-deep); color: #fff; outline: none; font-size: 15px;
}
.cart-summary {
  position: sticky; top: 96px;
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.summary-row { display: flex; justify-content: space-between; padding: 11px 0; color: var(--muted); border-bottom: 1px solid var(--line-soft); }
.summary-row.total { color: #fff; font-size: 18px; font-weight: 700; border: none; padding-top: 16px; }
.summary-row.total .cart-grand-total, .summary-row.total .cart-total-value { color: var(--blue); font-weight: 800; }

/* ---- Auth / account ---- */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.auth-aside {
  padding: 48px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(13, 110, 253, 0.3), transparent 60%),
    var(--bg-charcoal);
  display: flex; flex-direction: column; justify-content: center;
}
.auth-form-side { padding: 48px; background: var(--bg-panel); }
.account-grid { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.account-nav { background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; }
.account-nav a:hover, .account-nav a.active { background: rgba(13, 110, 253, 0.12); color: #fff; }
.address-card { background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.address-card.default { border-color: var(--blue); }

/* ---- Orders ---- */
.order-card { background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.order-card .on { font-family: var(--font-display); color: #fff; font-weight: 800; }
.order-meta { color: var(--muted-2); font-size: 14px; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 18px 26px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--line); border: 2px solid var(--bg-deep); }
.timeline li.done::before { background: var(--blue); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }

.status-pill { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: capitalize; }
.status-pending { background: rgba(249,168,38,0.16); color: var(--amber); }
.status-confirmed, .status-paid { background: rgba(13,110,253,0.16); color: #cfe0ff; }
.status-processing { background: rgba(160,170,191,0.16); color: var(--muted); }
.status-shipped { background: rgba(13,110,253,0.16); color: #cfe0ff; }
.status-delivered { background: rgba(22,163,74,0.16); color: #9be7b4; }
.status-cancelled, .status-refunded { background: rgba(225,29,32,0.16); color: #ffd0d1; }

/* ---- Empty state ---- */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .ic { font-size: 60px; color: var(--line); }
.empty-state h3 { color: #fff; margin-top: 16px; }

/* ---- Misc content (about/services/contact) ---- */
.prose { color: var(--muted); font-size: 16px; }
.prose h2, .prose h3 { color: #fff; margin-top: 28px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.info-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.info-item .ic { color: var(--blue); font-size: 20px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* toast (brand-aligned palette) */
#toast-container .toast {
  background: var(--bg-charcoal); border: 1px solid var(--line); border-left: 4px solid var(--blue);
}

/* ---- Responsive ---- */
.mobile-nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav-avatar {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(13, 110, 253, 0.16);
  color: var(--blue);
  border: 1px solid rgba(13, 110, 253, 0.35);
  flex-shrink: 0;
}
.mobile-nav-user strong {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}
.mobile-nav-user span {
  display: block;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mobile-nav-section {
  margin: 18px 8px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

@media (max-width: 991px) {
  .main-nav { display: none; }
  .header-desktop-only { display: none !important; }
  .header-inner { min-height: 86px; padding: 10px 0; }
  .brand img {
    height: 72px;
    max-width: min(240px, 62vw);
  }
  .brand .brand-mark { width: 64px; height: 64px; }
  .brand .brand-tagline {
    font-size: 10px;
    letter-spacing: 0.14em;
  }
  .nav-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--bg-charcoal); color: #fff; cursor: pointer;
  }
  .hero-slide { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 320px; order: -1; }
  .story-grid { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .account-grid { grid-template-columns: 1fr; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .form-row-2 { grid-template-columns: 1fr; }
  .form-card { padding: 20px; }
  .cta-band { padding: 34px 22px; }
}

/* ============================================================
   Enhancements — polish layer
   ============================================================ */

/* Softer section separators */
.section + .section {
  border-top: 1px solid var(--line-soft);
}

/* Trust ticker under hero */
.trust-ticker {
  position: relative;
  z-index: 1;
  margin: 32px 0;
  border-block: 1px solid var(--line-soft);
  background: rgba(21, 25, 33, 0.72);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.trust-ticker__track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  padding: 24px 0;
  animation: ticker 28s linear infinite;
}
.trust-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.trust-ticker__item::after {
  content: "///";
  margin-left: 32px;
  margin-right: 32px;
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.12em;
  font-style: italic;
  font-family: var(--font-display), Impact, sans-serif;
  transform: skewX(-12deg);
  display: inline-block;
  background: linear-gradient(135deg, var(--red) 0%, #ff4d4f 45%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.trust-ticker__item i,
.trust-ticker__item svg { color: var(--blue); font-size: 17px; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 640px) {
  .trust-ticker { margin: 24px 0; }
  .trust-ticker__track { padding: 20px 0; }
  .trust-ticker__item { font-size: 14px; }
  .trust-ticker__item::after {
    content: "///";
    margin-left: 22px;
    margin-right: 22px;
    font-size: 18px;
  }
}

/* Category tiles with image */
.cat-tile.has-img {
  min-height: 200px; /* Increased from 150px to 200px */
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
}

/* Even taller on large screens */
@media (min-width: 992px) {
  .cat-tile.has-img {
    min-height: 240px; /* 240px on desktop for better visual balance */
  }
}
.cat-tile.has-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(13, 16, 23, 0.92) 100%);
}
.cat-tile.has-img > * { position: relative; z-index: 1; }

/* Product card polish */
.product-card .product-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(13, 16, 23, 0.35));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.product-card:hover .product-media::after { opacity: 1; }
.product-price .now small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-2);
  margin-right: 2px;
}

/* Tabs + tables (PDP) */
.tab-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 18px 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: var(--font-display);
}
.tab-btn.active { color: #fff; border-bottom-color: var(--blue); }
.tab-btn:hover { color: #fff; }

.sg-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--muted);
  font-size: 14px;
}
.sg-table th,
.sg-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}
.sg-table th {
  color: var(--muted-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sg-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

.thumb-btn {
  width: 74px;
  height: 74px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s, transform 0.2s;
}
.thumb-btn:hover,
.thumb-btn.is-active {
  border-color: var(--blue);
  transform: translateY(-2px);
}
.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.size-pick.is-active {
  border-color: var(--blue);
  color: #fff;
  background: rgba(13, 110, 253, 0.18);
}
.color-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-charcoal);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.color-pick__swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--swatch, #888);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.color-pick.is-active {
  border-color: var(--blue);
  color: #fff;
  background: rgba(13, 110, 253, 0.14);
}
.color-pick.is-disabled,
.color-pick:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Sticky mobile buy bar */
.sticky-buy {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1100;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(13, 16, 23, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  gap: 12px;
  align-items: center;
}
.sticky-buy .price { color: #fff; font-weight: 800; font-size: 18px; line-height: 1.2; }
.sticky-buy .price small { display: block; color: var(--muted-2); font-size: 11px; font-weight: 600; }
@media (max-width: 991px) {
  .sticky-buy.is-visible { display: flex; }
  body.has-sticky-buy { padding-bottom: 84px; }
}

/* Filter panel mobile */
.filter-body { display: block; }
@media (max-width: 991px) {
  #filterPanel .filter-body { display: none; }
  #filterPanel.open .filter-body { display: block; margin-top: 12px; }
}

/* Payment / address selection */
.address-card.is-selected,
.pill.has-radio:has(input:checked) {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.16);
}

/* Checkout steps */
.checkout-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.checkout-steps span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 700;
}
.checkout-steps span.on {
  color: #fff;
  border-color: var(--blue);
  background: rgba(13, 110, 253, 0.12);
}
.checkout-steps span .n {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-charcoal);
  font-size: 11px;
}
.checkout-steps span.on .n { background: var(--blue); }

/* Header search */
.header-search {
  display: none;
  align-items: center;
  gap: 0;
  background: var(--bg-charcoal);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  min-width: 220px;
}
.header-search input {
  flex: 1;
  border: none;
  background: transparent;
  color: #fff;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  min-width: 0;
}
.header-search button {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  cursor: pointer;
  height: 40px;
}
.header-search button:hover { color: #fff; }
@media (min-width: 1200px) {
  .header-search { display: flex; }
}

/* Auth panel upgrade */
.auth-panel {
  max-width: 440px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  box-shadow: var(--shadow);
}
.auth-panel__top {
  padding: 28px 28px 18px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(13, 110, 253, 0.28), transparent 55%),
    var(--bg-charcoal);
  border-bottom: 1px solid var(--line-soft);
}
.auth-panel__body { padding: 28px; }

/* Cart empty / success pulse on badge */
@keyframes badgePop {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.header-cart-badge { animation: badgePop 0.35s var(--ease); }

/* Page hero accent line */
.page-hero h1 {
  position: relative;
  padding-bottom: 14px;
}
.page-hero h1::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 56px; height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--red));
}

/* Review stars more readable */
.stars { letter-spacing: 2px; color: var(--amber); font-size: 14px; }

.text-success { color: var(--success) !important; }
.text-white { color: #fff !important; }

/* Focus-visible for a11y */
.btn:focus-visible,
.header-icon-link:focus-visible,
.main-nav a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ── Product Detail Page ───────────────────────────────────── */
.pdp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.pdp-gallery { position: sticky; top: 110px; }

.pdp-main-img {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
}
.pdp-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pdp-main-img .product-badge { z-index: 3; }
.pdp-no-img {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.pdp-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.pdp-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 2px solid var(--line);
  background: var(--bg-charcoal);
  padding: 6px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.pdp-thumb:hover,
.pdp-thumb.is-active {
  border-color: var(--blue);
}
.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdp-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pdp-title {
  font-size: 30px;
  margin-bottom: 8px;
}

.pdp-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.pdp-price .now {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
}
.pdp-price .old {
  font-size: 18px;
  color: var(--muted-2);
  text-decoration: line-through;
}

.pdp-stock { margin: 8px 0 16px; }

.pdp-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 8px 0 16px;
  padding: 16px;
  background: var(--bg-charcoal);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
}

.pdp-cart-form {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
}
.pdp-qty {
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  overflow: hidden;
  flex-shrink: 0;
}
.pdp-qty button {
  width: 42px;
  height: 42px;
  background: var(--bg-charcoal);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}
.pdp-qty button:hover { background: var(--bg-light-charcoal); }
.pdp-qty input {
  width: 50px;
  height: 42px;
  text-align: center;
  background: var(--bg-deep);
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  outline: none;
}
.pdp-qty input::-webkit-outer-spin-button,
.pdp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pdp-add-btn {
  flex: 1;
  padding: 14px 28px;
  font-size: 16px;
}

.pdp-meta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pdp-meta-row {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.pdp-meta-label {
  font-weight: 700;
  color: var(--muted-2);
  min-width: 80px;
}
.pdp-meta-row a { color: var(--blue); }

.pdp-tabs {
  margin-top: 50px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.pdp-tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.pdp-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted-2);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 20px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  font-family: var(--font-body);
}
.pdp-tab-btn:hover { color: #fff; }
.pdp-tab-btn.is-active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.pdp-tab-panel {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Mobile */
@media (max-width: 767px) {
  .pdp-layout { grid-template-columns: 1fr; gap: 24px; }
  .pdp-gallery { position: static; }
  .pdp-price .now { font-size: 26px; }
  .pdp-cart-form { flex-direction: column; align-items: stretch; }
  .pdp-qty { justify-content: center; }
  .pdp-contact-btns { flex-direction: column; }
}

/* ── Contact for Price Buttons ─────────────────────────────── */
.contact-for-price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  padding: 10px 18px;
  background: rgba(13, 110, 253, 0.1);
  border: 1px solid rgba(13, 110, 253, 0.3);
  border-radius: 999px;
}

.pdp-contact-btns {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}
.pdp-contact-btns .btn-whatsapp,
.pdp-contact-btns .btn-call {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.18s var(--ease), box-shadow 0.2s;
  cursor: pointer;
}
.pdp-contact-btns .btn-whatsapp:hover,
.pdp-contact-btns .btn-call:hover {
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.btn-whatsapp:hover {
  background: #1ebe57;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  color: #fff;
}

.btn-call {
  background: var(--blue);
  color: #fff;
}
.btn-call:hover {
  background: var(--blue-hover);
  box-shadow: 0 8px 24px rgba(13, 110, 253, 0.35);
  color: #fff;
}

/* Small variants for product cards */
.product-contact-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.btn-whatsapp-sm,
.btn-call-sm {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s var(--ease), box-shadow 0.15s;
  cursor: pointer;
}
.btn-whatsapp-sm {
  background: rgba(37, 211, 102, 0.15);
  color: #25D366;
  border: 1px solid rgba(37, 211, 102, 0.3);
}
.btn-whatsapp-sm:hover {
  background: #25D366;
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-call-sm {
  background: rgba(13, 110, 253, 0.12);
  color: var(--blue);
  border: 1px solid rgba(13, 110, 253, 0.3);
}
.btn-call-sm:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}
  .pdp-title { font-size: 24px; }
}
