/* ============================================================
   JOEREA — Core Brand Stylesheet
   Theme: warm cream + ink, minimal quiet-luxury home & lifestyle brand
   "Minimal by choice. Meaning by design."
   ============================================================ */

:root {
  --ax-black: #f4efe4;        /* Page background — warm cream */
  --ax-black-soft: #ece2d0;   /* Deeper cream — alt sections */
  --ax-panel: #fffdf9;        /* Card / panel background */
  --ax-border: #e4d9c6;       /* Hairline border, warm */
  --ax-silver: #4a4033;       /* Secondary text (medium ink) */
  --ax-silver-dim: #8d8171;   /* Muted / tertiary text */
  --ax-chrome-1: #4a3c2c;     /* Accent — deep bronze, used for price/tags */
  --ax-chrome-2: #6b5843;
  --ax-chrome-3: #2c2318;
  --ax-white: #211c16;        /* Primary ink text, strongest emphasis */
  --ax-accent: #2c2318;
  --ax-danger: #a8453f;
  --radius: 4px;
  --shadow-lg: 0 20px 50px rgba(33, 28, 22, 0.14);
  --shadow-sm: 0 2px 14px rgba(33, 28, 22, 0.08);
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ax-black);
  color: var(--ax-white);
  font-family: var(--font-body);
  font-weight: 400;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Wordmark (fallback text logo, no image) ---------- */
.gold-text {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ax-white);
}

.brand-logo-img { height: 22px; width: auto; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 239, 228, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ax-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  order: -1;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ax-white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.brand .tagline {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--ax-silver-dim);
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 4px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 12.5px;
  letter-spacing: 0.3px;
  color: var(--ax-silver);
  transition: color 0.2s ease;
  font-weight: 500;
  white-space: nowrap;
}

.main-nav a:hover { color: var(--ax-white); }

.header-icons { display: flex; align-items: center; gap: 22px; }
.header-icons a {
  color: var(--ax-silver);
  display: flex;
  align-items: center;
}
.header-icons a:hover { color: var(--ax-white); }
.icon-svg { width: 19px; height: 19px; display: block; }
.cart-link { position: relative; }

.currency-switcher { display: flex; align-items: center; }
.currency-select {
  background: transparent;
  border: 1px solid var(--ax-silver-dim, #666);
  color: var(--ax-silver);
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
}
.currency-select:hover { color: var(--ax-white); border-color: var(--ax-silver); }
.currency-select option { color: #111; }

.cart-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  background: var(--ax-accent);
  color: var(--ax-black);
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: var(--font-body);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--ax-white);
  color: var(--ax-black);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline {
  background: transparent;
  color: var(--ax-white);
  border: 1px solid var(--ax-white);
}
.btn-outline:hover { background: var(--ax-white); color: var(--ax-black); }

.btn-block { width: 100%; text-align: center; }

/* ---------- Forms / Auth cards ---------- */
.auth-wrap {
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: var(--ax-black);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--ax-panel);
  border: 1px solid var(--ax-border);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 6px;
  font-weight: 600;
}

.auth-card .sub {
  color: var(--ax-silver-dim);
  font-size: 14px;
  margin-bottom: 28px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ax-silver-dim);
  margin-bottom: 8px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  background: var(--ax-panel);
  border: 1px solid var(--ax-border);
  border-radius: 6px;
  color: var(--ax-white);
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color 0.15s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--ax-silver);
}

.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

.form-error {
  color: var(--ax-danger);
  font-size: 12px;
  margin-top: 6px;
}

.alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 20px;
}
.alert-success { background: rgba(76, 130, 90, 0.12); border: 1px solid rgba(76,130,90,0.35); color: #3f6b4a; }
.alert-error { background: rgba(168, 69, 63, 0.1); border: 1px solid rgba(168,69,63,0.35); color: var(--ax-danger); }

.auth-footer-link {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--ax-silver-dim);
}
.auth-footer-link a { color: var(--ax-white); font-weight: 600; text-decoration: underline; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ax-silver-dim);
  font-size: 11px;
  text-transform: uppercase;
  margin: 22px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ax-border);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ax-white);
  border-top: 1px solid var(--ax-border);
  padding: 64px 0 24px;
  margin-top: 80px;
  color: #cbc0ac;
}
.site-footer .brand-logo-img { filter: invert(1) brightness(1.8); }
.site-footer h4 { color: #f2ede2; }
.site-footer a { color: #cbc0ac; }
.site-footer a:hover { color: #ffffff; }
.site-footer .form-control { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); color: #f2ede2; }
.site-footer .btn-outline { border-color: rgba(255,255,255,0.5); color: #f2ede2; }
.site-footer .btn-outline:hover { background: #f2ede2; color: var(--ax-white); }
.site-footer .footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  font-size: 12px;
  color: #8f8570;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-header .container { height: 68px; }
  .brand-logo-img { height: 18px; }

  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ax-black);
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    padding: 12px 0 40px;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px;
  }
  .main-nav a {
    display: block;
    padding: 16px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--ax-border);
  }
  body.nav-open { overflow: hidden; }

  .header-icons { gap: 16px; }
  .form-row { flex-direction: column; gap: 0; }
}

/* ============================================================
   SHOP / PRODUCT GRID
   ============================================================ */
.page-title { font-family: var(--font-display); font-size: 36px; margin: 48px 0 4px; font-weight: 600; }
.page-sub { color: var(--ax-silver-dim); font-size: 14px; margin-bottom: 32px; }

.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding-bottom: 80px; }
.shop-filters { align-self: start; position: sticky; top: 104px; }
.filter-block { margin-bottom: 22px; }
.filter-block label { display:block; font-size:11px; text-transform:uppercase; letter-spacing:1px; color:var(--ax-silver-dim); margin-bottom:8px; font-weight:600; }
.shop-toolbar { display:flex; justify-content:flex-end; margin-bottom:20px; }
.sort-form select { max-width: 220px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }

.product-card { display:block; background:var(--ax-panel); border:1px solid var(--ax-border); border-radius: var(--radius); overflow:hidden; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.product-card-img { position:relative; aspect-ratio: 1 / 1; background: var(--ax-black-soft); overflow:hidden; }
.product-card-img img { width:100%; height:100%; object-fit:cover; }
.img-placeholder { width:100%; height:100%; background: linear-gradient(135deg, #ece2d0, #e0d3ba); }
.product-tag { position:absolute; top:10px; left:10px; background: var(--ax-white); color:var(--ax-black); font-size:10px; text-transform:uppercase; letter-spacing:1px; padding:4px 10px; border-radius:999px; }
.wishlist-btn { position:absolute; top:8px; right:8px; width:32px; height:32px; border-radius:50%; border:none; background:rgba(255,253,249,0.85); color:var(--ax-white); font-size:16px; cursor:pointer; }
.wishlist-btn:hover, .wishlist-btn.active { color: var(--ax-chrome-1); }
.product-card-body { padding: 18px; }
.product-card-body h3 { font-size:15px; margin:0 0 6px; font-weight:600; font-family: var(--font-display); }
.product-card-desc { font-size:12px; color:var(--ax-silver-dim); margin:0 0 12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.product-card-footer { display:flex; justify-content:space-between; align-items:center; }
.product-price { font-weight:700; color:var(--ax-chrome-1); }
.product-rating { font-size:12px; color:var(--ax-silver-dim); }

.empty-state { text-align:center; padding:80px 20px; color:var(--ax-silver-dim); }
.pagination { display:flex; gap:8px; justify-content:center; margin-top:40px; }
.page-link { width:36px; height:36px; display:flex; align-items:center; justify-content:center; border:1px solid var(--ax-border); border-radius:6px; font-size:13px; color:var(--ax-silver); }
.page-link.active { background:var(--ax-white); color:var(--ax-black); border-color:var(--ax-white); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--ax-silver-dim); padding:20px 0 0; flex-wrap:wrap; }
.breadcrumb a { color:var(--ax-silver-dim); }
.breadcrumb a:hover { color:var(--ax-white); text-decoration:underline; }
.breadcrumb .current { color:var(--ax-silver); }

/* ---------- Product Detail ---------- */
.product-detail { display:grid; grid-template-columns: 1fr 1fr; gap:56px; padding: 24px 0 40px; }
.product-gallery { position: sticky; top: 104px; align-self: start; }
.gallery-main { position:relative; aspect-ratio: 1/1; background: var(--ax-black-soft); border-radius:var(--radius); overflow:hidden; border:1px solid var(--ax-border); }
.gallery-main img { width:100%; height:100%; object-fit:cover; transition: opacity 0.2s ease; }

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.gallery-thumb {
  width: 64px;
  height: 64px;
  min-width: 64px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--ax-border);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.gallery-thumb:hover { border-color: var(--ax-silver); opacity: 0.9; }
.gallery-thumb.active { border-color: var(--ax-chrome-1); opacity: 1; }

.wishlist-btn-lg {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  font-size: 19px;
  background: rgba(255,253,249,0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ax-white);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wishlist-btn-lg.active { color: var(--ax-chrome-1); }

.product-info h1 { font-family: var(--font-display); font-size:34px; margin:0 0 10px; font-weight:600; line-height:1.2; }
.rating-line { color: var(--ax-silver-dim); font-size:13px; margin-bottom:14px; }
.product-info .product-price { font-size:26px; margin-bottom:16px; }
.product-lead { color:var(--ax-silver); margin-bottom:24px; line-height:1.6; }

.option-group { margin-bottom:22px; }
.option-group label { display:block; font-size:11px; text-transform:uppercase; letter-spacing:1px; color:var(--ax-silver-dim); margin-bottom:10px; font-weight:600; }
.option-value { text-transform:none; letter-spacing:0; color:var(--ax-white); font-weight:600; }
.swatches { display:flex; gap:12px; flex-wrap:wrap; }
.swatch { width:34px; height:34px; border-radius:50%; border:2px solid var(--ax-border); cursor:pointer; box-shadow: 0 0 0 1px var(--ax-panel) inset; }
.swatch.active { border-color: var(--ax-chrome-1); box-shadow: 0 0 0 2px var(--ax-panel), 0 0 0 4px var(--ax-chrome-1); }
.size-options { display:flex; gap:8px; flex-wrap:wrap; }
.size-btn { padding:10px 16px; min-width:44px; min-height:40px; border:1px solid var(--ax-border); border-radius:6px; background:transparent; color:var(--ax-silver); cursor:pointer; font-size:13px; }
.size-btn.active { background:var(--ax-white); color:var(--ax-black); border-color:var(--ax-white); }
.stock-note { font-size:12px; color:var(--ax-danger); min-height:16px; margin-bottom:10px; }

.qty-stepper { display:inline-flex; align-items:center; border:1px solid var(--ax-border); border-radius:8px; overflow:hidden; }
.qty-stepper button { width:40px; height:40px; border:none; background:var(--ax-panel); color:var(--ax-white); font-size:17px; cursor:pointer; }
.qty-stepper button:hover { background:var(--ax-black-soft); }
.qty-stepper input { width:48px; height:40px; text-align:center; border:none; border-left:1px solid var(--ax-border); border-right:1px solid var(--ax-border); background:var(--ax-panel); color:var(--ax-white); font-size:14px; }

.product-meta-list p { font-size:12px; color:var(--ax-silver-dim); margin:6px 0; }
.product-description { margin-top:28px; border-top:1px solid var(--ax-border); padding-top:20px; line-height:1.7; color:var(--ax-silver); }

.reviews-section, .related-section { padding: 40px 0; border-top:1px solid var(--ax-border); }
.reviews-section h2, .related-section h2 { font-family:var(--font-display); font-size:24px; margin-bottom:20px; font-weight:600; }
.review-card { padding:16px 0; border-bottom:1px solid var(--ax-border); }
.review-header { display:flex; justify-content:space-between; margin-bottom:6px; }
.review-stars { color:var(--ax-chrome-1); }
.review-title { font-weight:600; margin:4px 0; }

/* ---------- Cart ---------- */
.cart-page { padding: 40px 0 80px; }
.cart-layout { display:grid; grid-template-columns: 1fr 340px; gap:40px; align-items:start; }
.cart-item { display:grid; grid-template-columns: 80px 1fr auto auto; gap:16px; align-items:center; padding:18px 0; border-bottom:1px solid var(--ax-border); }
.cart-item img { width:80px; height:80px; object-fit:cover; border-radius:8px; background: var(--ax-black-soft); }
.cart-item-name { font-weight:600; margin-bottom:4px; }
.cart-item-meta { font-size:12px; color:var(--ax-silver-dim); }
.qty-control { display:flex; align-items:center; gap:8px; }
.qty-control button { width:28px; height:28px; border-radius:6px; border:1px solid var(--ax-border); background:transparent; color:var(--ax-white); cursor:pointer; }
.qty-control input { width:44px; text-align:center; background:var(--ax-panel); border:1px solid var(--ax-border); border-radius:6px; color:var(--ax-white); padding:4px; }
.remove-link { font-size:12px; color:var(--ax-silver-dim); cursor:pointer; }
.remove-link:hover { color:var(--ax-danger); }

.cart-summary { background:var(--ax-panel); border:1px solid var(--ax-border); border-radius:var(--radius); padding:28px; position:sticky; top:104px; }
.cart-summary h3 { font-family:var(--font-display); font-size:19px; margin:0 0 20px; font-weight:600; }
.summary-row { display:flex; justify-content:space-between; font-size:14px; padding:8px 0; color:var(--ax-silver); }
.summary-row.total { border-top:1px solid var(--ax-border); margin-top:8px; padding-top:16px; font-weight:700; font-size:18px; color:var(--ax-white); }
.coupon-row { display:flex; gap:8px; margin:16px 0; }

/* ---------- Checkout ---------- */
.checkout-layout { display:grid; grid-template-columns: 1fr 380px; gap:48px; padding:40px 0 80px; align-items:start; }
.checkout-section { background:var(--ax-panel); border:1px solid var(--ax-border); border-radius:var(--radius); padding:28px; margin-bottom:24px; }
.checkout-section h3 { font-family:var(--font-display); font-size:18px; margin:0 0 20px; font-weight:600; }
.order-summary-item { display:flex; justify-content:space-between; font-size:13px; padding:8px 0; color:var(--ax-silver); border-bottom: 1px solid var(--ax-border); }

/* ---------- Homepage ---------- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1691 / 930;
  overflow: hidden;
  color: #f4efe4;
}
.hero-img { width:100%; height:100%; object-fit:cover; display:block; }
.hero > div { position:absolute; left:6%; top:63%; }
.hero h1 { font-family: var(--font-display); font-size: 52px; margin: 0 0 8px; font-weight: 600; line-height: 1.15; color: #f8f4ea; }
.hero p.tagline { color: rgba(244,239,228,0.75); letter-spacing:3px; text-transform:uppercase; font-size:12px; margin-bottom:30px; }
.hero-cta { display:flex; gap:16px; }
.hero-cta .btn-primary { background: #f8f4ea; color: var(--ax-chrome-3); }
.hero-cta .btn-outline { border-color: rgba(244,239,228,0.6); color: #f8f4ea; }
.hero-cta .btn-outline:hover { background: rgba(244,239,228,0.12); color:#fff; }

@media (max-width: 640px) {
  .hero { aspect-ratio: auto; height: 66vh; min-height: 380px; max-height: 520px; }
  .hero-img { object-position: 24% 38%; }
  .hero > div { top: auto; bottom: 12%; left: 6%; right: 6%; }
  .hero-cta { flex-direction: column; gap: 10px; }
  .hero-cta .btn { padding: 13px 22px; font-size: 11px; text-align: center; }
}

@media (max-width: 380px) {
  .hero { height: 58vh; min-height: 340px; }
}

.section { padding: 80px 0; }
.section-header { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:36px; }
.section-header h2 { font-family:var(--font-display); font-size:30px; margin:0; font-weight:600; }
.section-header a { font-size:13px; color:var(--ax-silver-dim); }
.testimonials { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap:24px; }
.testimonial-card { background:var(--ax-panel); border:1px solid var(--ax-border); border-radius:var(--radius); padding:28px; }
.testimonial-card .stars { color:var(--ax-chrome-1); margin-bottom:10px; }
.newsletter-band { background: var(--ax-black-soft); border-top:1px solid var(--ax-border); border-bottom:1px solid var(--ax-border); padding:70px 0; text-align:center; }
.newsletter-band form { display:flex; gap:10px; max-width:420px; margin:24px auto 0; }
.insta-gallery { display:grid; grid-template-columns: repeat(6, 1fr); gap:8px; }
.insta-gallery a { aspect-ratio:1/1; overflow:hidden; border-radius:6px; }
.insta-gallery img { width:100%; height:100%; object-fit:cover; transition: transform 0.3s ease; }
.insta-gallery a:hover img { transform: scale(1.08); }

.category-gallery { display:grid; grid-template-columns: repeat(6, 1fr); gap:8px; }
.category-tile { position:relative; aspect-ratio:1/1; overflow:hidden; border-radius:6px; display:block; }
.category-tile img { width:100%; height:100%; object-fit:cover; transition: transform 0.3s ease; }
.category-tile:hover img { transform: scale(1.08); }
.category-tile-label {
  position:absolute; left:0; right:0; bottom:0;
  padding:20px 10px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0) 100%);
  color:#fff;
  font-family:var(--font-display);
  font-size:15px;
  font-weight:600;
  text-align:center;
  letter-spacing:0.3px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* ---------- Account dashboard ---------- */
.account-layout { display:grid; grid-template-columns: 220px 1fr; gap:40px; padding: 40px 0 80px; }
.account-nav { display:flex; flex-direction:column; gap:4px; }
.account-nav a { padding:12px 16px; border-radius:8px; font-size:14px; color:var(--ax-silver); }
.account-nav a:hover, .account-nav a.active { background:var(--ax-black-soft); color:var(--ax-white); }
.account-card { background:var(--ax-panel); border:1px solid var(--ax-border); border-radius:var(--radius); padding:28px; margin-bottom:20px; }
.order-row { display:flex; justify-content:space-between; align-items:center; padding:16px 0; border-bottom:1px solid var(--ax-border); font-size:14px; }
.status-pill { padding:4px 12px; border-radius:999px; font-size:11px; text-transform:uppercase; letter-spacing:0.5px; }
.status-pending, .status-processing { background:rgba(184,142,42,0.15); color:#8a6a1f; }
.status-paid, .status-shipped { background:rgba(59,110,180,0.13); color:#3a5f8f; }
.status-delivered { background:rgba(76,130,90,0.15); color:#3f6b4a; }
.status-cancelled, .status-failed, .status-refunded { background:rgba(168,69,63,0.13); color:var(--ax-danger); }

@media (max-width: 900px) {
  .shop-layout, .checkout-layout, .account-layout, .cart-layout { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .insta-gallery { grid-template-columns: repeat(3, 1fr); }
  .category-gallery { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cart-summary { position: static; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding: 48px 0; }
  .page-title { font-size: 28px; margin: 32px 0 4px; }
  .section-header h2 { font-size: 24px; }
  .product-grid { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .product-card-body { padding: 12px; }
  .testimonials { grid-template-columns: 1fr; }
  .insta-gallery { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .category-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category-tile-label { font-size: 13px; padding: 16px 8px 10px; }
  .category-gallery { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .newsletter-band { padding: 48px 0; }
  .newsletter-band form { flex-direction: column; }

  .cart-item {
    grid-template-columns: 64px 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 10px;
  }
  .cart-item img { grid-column: 1; grid-row: 1 / 3; width: 64px; height: 64px; }
  .cart-item > div:first-of-type { grid-column: 2 / 4; grid-row: 1; }
  .qty-control { grid-column: 2; grid-row: 2; }
  .qty-control button { width: 32px; height: 32px; }
  .cart-item-price { grid-column: 3; grid-row: 2; justify-self: end; align-self: center; font-weight: 600; }

  .swatch { width: 38px; height: 38px; }
  .size-btn { padding: 10px 14px; min-width: 44px; text-align: center; }

  .product-gallery { position: static; }
  .breadcrumb { display: none; }
  .product-detail { padding: 12px 0 20px; }
  .product-info h1 { font-size: 26px; }
  .product-page.container { padding-bottom: 88px; }
}

/* ---------- Toasts ---------- */
#toastRoot {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 0 16px;
  pointer-events: none;
}
.toast {
  background: var(--ax-white);
  color: var(--ax-black);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: 90vw;
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast-error { background: var(--ax-danger); color: #fff; }

/* ---------- Mobile sticky add-to-cart bar ---------- */
.mobile-buy-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: rgba(244, 239, 228, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--ax-border);
  padding: 12px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -6px 20px rgba(33,28,22,0.08);
}
.mobile-buy-price { font-size: 17px; font-weight: 700; font-family: var(--font-display); }
.mobile-buy-bar .btn { padding: 12px 26px; font-size: 11px; }

@media (max-width: 768px) {
  .mobile-buy-bar { display: flex; }
}

/* ============================================================
   ADMIN DASHBOARD  (kept on the original dark onyx/gold theme,
   scoped locally so it doesn't inherit the storefront's light theme)
   ============================================================ */
.admin-body {
  --ax-black: #0d0d0d;
  --ax-black-soft: #161616;
  --ax-panel: #1c1c1c;
  --ax-border: #2e2e2e;
  --ax-silver: #e6e1d8;
  --ax-silver-dim: #9a9691;
  --ax-chrome-1: #d4af37;
  --ax-chrome-2: #e8c766;
  --ax-chrome-3: #a8842a;
  --ax-white: #ffffff;
  --ax-accent: #d4af37;
  --ax-danger: #e63946;
  display: flex;
  min-height:100vh;
  background: var(--ax-black);
  color: var(--ax-white);
}
.admin-sidebar { width:230px; background:#050505; border-right:1px solid var(--ax-border); padding:24px 0; flex-shrink:0; }
.admin-sidebar .brand-mini { padding:0 24px 24px; }
.admin-sidebar nav a { display:block; padding:12px 24px; color:var(--ax-silver); font-size:14px; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background:var(--ax-panel); color:#fff; border-left:2px solid var(--ax-chrome-1); }
.admin-main { flex:1; padding: 32px 40px; max-width: 1200px; }
.admin-topbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:28px; }
.admin-topbar h1 { font-family:var(--font-display); text-transform:uppercase; letter-spacing:1px; font-size:24px; margin:0; }

.stat-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap:20px; margin-bottom:32px; }
.stat-card { background:var(--ax-panel); border:1px solid var(--ax-border); border-radius:var(--radius); padding:22px; }
.stat-card .stat-label { font-size:11px; text-transform:uppercase; letter-spacing:1px; color:var(--ax-silver-dim); }
.stat-card .stat-value { font-size:28px; font-weight:700; margin-top:8px; }

.admin-table { width:100%; border-collapse:collapse; background:var(--ax-panel); border:1px solid var(--ax-border); border-radius:var(--radius); overflow:hidden; }
.admin-table th, .admin-table td { padding:12px 16px; text-align:left; font-size:13px; border-bottom:1px solid var(--ax-border); }
.admin-table th { color:var(--ax-silver-dim); text-transform:uppercase; font-size:11px; letter-spacing:0.5px; }
.admin-table tr:last-child td { border-bottom:none; }
.admin-table a.edit-link { color:var(--ax-chrome-1); font-size:12px; }
.admin-card { background:var(--ax-panel); border:1px solid var(--ax-border); border-radius:var(--radius); padding:28px; margin-bottom:24px; }
.btn-sm { padding:8px 16px; font-size:11px; }
.btn-danger { background:transparent; border:1px solid var(--ax-danger); color:var(--ax-danger); }
.btn-danger:hover { background:var(--ax-danger); color:#fff; }