/*
 * zafue — dark + brown theme layer.
 * This file will not be overwritten by theme updates.
 */

:root {
  --zf-tan: 201, 154, 107;
  --zf-tan-2: 226, 189, 146;
  --zf-brown: 138, 94, 59;
}

/* ── Type ─────────────────────────────────────────────── */
h1, h2, h3, .sa-section-title, .sa-hero-title { letter-spacing: -0.025em; }
.sa-hero-title { line-height: 1.02; }

/* Highlighted *words* in titles: tan gradient */
.hl-accent .mk {
  background: linear-gradient(100deg, rgb(var(--zf-tan-2)), rgb(var(--zf-tan)) 45%, #9C6A42);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Announcement + navbar ────────────────────────────── */
.sa-announcement, .sa-header > div:first-child:not(.sa-navbar) {
  background: linear-gradient(90deg, #1a120c, #2a1b11 50%, #1a120c) !important;
  border-bottom: 1px solid rgba(var(--zf-tan), .18);
}
.sa-navbar {
  background: rgba(10, 9, 8, .78) !important;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.sa-navbar-logo img { border-radius: 11px; box-shadow: 0 0 0 1px rgba(var(--zf-tan), .3), 0 0 22px -4px rgba(var(--zf-tan), .45); }

/* ── Buttons ──────────────────────────────────────────── */
.sa-btn--primary.sa-btn--solid,
.sa-add-to-cart {
  background: linear-gradient(180deg, rgb(var(--zf-tan-2)), rgb(var(--zf-tan))) !important;
  color: #140E09 !important;
  box-shadow: 0 8px 24px -10px rgba(var(--zf-tan), .55), inset 0 1px 0 rgba(255, 255, 255, .35);
  font-weight: 600;
  transition: transform var(--dur) ease, box-shadow var(--dur) ease;
}
.sa-btn--primary.sa-btn--solid:hover,
.sa-add-to-cart:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -10px rgba(var(--zf-tan), .7), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.sa-btn--secondary { background: rgba(255, 255, 255, .03); }
.sa-btn--secondary:hover { border-color: rgba(var(--zf-tan), .5) !important; background: rgba(var(--zf-tan), .06) !important; }

/* ── Hero ─────────────────────────────────────────────── */
.sa-hero .hero-bg-glow {
  background:
    radial-gradient(600px 320px at 22% 30%, rgba(var(--zf-tan), .16), transparent 70%),
    radial-gradient(520px 300px at 85% 20%, rgba(var(--zf-brown), .22), transparent 70%) !important;
}
.sa-hero-eyebrow { border-color: rgba(var(--zf-tan), .28) !important; background: rgba(var(--zf-tan), .08) !important; color: rgb(var(--zf-tan-2)) !important; font-weight: 600; }
.sa-hero-eyebrow::before {
  content: ""; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: #6BCB8B;
  box-shadow: 0 0 0 3px rgba(107, 203, 139, .18), 0 0 10px #6BCB8B; animation: zf-pulse 2s infinite;
}
@keyframes zf-pulse { 50% { opacity: .45; } }

/* Showcase stack (hero media fallback): first product large and in front */
.zf-showcase { position: relative; height: 440px; width: 100%; }
.zf-shot {
  position: absolute; display: block; overflow: hidden; border-radius: 20px; background: #000; isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85);
  transition: transform .4s ease;
}
.zf-shot-bg { position: absolute; inset: -20px; z-index: -1; background-size: cover; background-position: center; filter: blur(20px) saturate(1.3) brightness(.55); }
.zf-shot img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
.zf-cap {
  position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: rgba(10, 9, 8, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .08); padding: 8px 12px; border-radius: 12px;
  font-size: 12.5px; font-weight: 600; color: #F5F0E8;
}
.zf-cap span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zf-cap b { color: rgb(var(--zf-tan-2)); font-family: var(--ff-heading); font-weight: 700; white-space: nowrap; }
.zf-tag, .sa-products-items > .sa-products-item:first-child:not(:has(.sa-product-card-stock .text-error)) .sa-product-card-media::after {
  position: absolute; left: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; font: 700 11px/1.2 var(--ff-body); letter-spacing: .06em; text-transform: uppercase;
  color: #140E09; background: linear-gradient(180deg, rgb(var(--zf-tan-2)), rgb(var(--zf-tan)));
  box-shadow: 0 6px 18px -6px rgba(var(--zf-tan), .7), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.zf-shot-1 { width: 54%; aspect-ratio: 4 / 5; left: 6%; top: 10px; transform: rotate(-3deg); z-index: 3; border-color: rgba(var(--zf-tan), .45); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9), 0 0 40px -12px rgba(var(--zf-tan), .45); }
.zf-shot-2 { width: 46%; aspect-ratio: 16 / 10; right: 0; top: 24px; transform: rotate(3deg); z-index: 2; }
.zf-shot-3 { width: 46%; aspect-ratio: 16 / 10; right: 3%; bottom: 14px; transform: rotate(-1.5deg); z-index: 1; }
.zf-shot-2 .zf-cap, .zf-shot-3 .zf-cap { left: 22%; }
.zf-showcase:hover .zf-shot-1 { transform: rotate(-2deg) translateY(-6px); }
.zf-showcase:hover .zf-shot-2 { transform: rotate(4deg) translateX(6px); }
.zf-showcase:hover .zf-shot-3 { transform: rotate(-1deg) translateY(4px); }
@media (max-width: 1023px) { .zf-showcase { height: 400px; max-width: 560px; margin: 0 auto; } }
@media (max-width: 620px) { .zf-showcase { height: 300px; } }

/* "New stock" tag on the first in-stock product in the shop grid */
.sa-products-items > .sa-products-item:first-child:not(:has(.sa-product-card-stock .text-error)) .sa-product-card-media::after { content: "New stock"; }

/* Hero chips (payment methods) */
.sa-hero .rounded-badge.border i { color: rgb(var(--zf-tan)) !important; }

/* ── Section headers ──────────────────────────────────── */
.sa-section-eyebrow { letter-spacing: .16em; text-transform: uppercase; font-size: 11.5px !important; }

/* ── Product cards ────────────────────────────────────── */
.sa-product-card { transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease !important; }
.sa-product-card:hover {
  border-color: rgba(var(--zf-tan), .45) !important;
  box-shadow: 0 0 0 1px rgba(var(--zf-tan), .15), 0 24px 50px -24px rgba(var(--zf-tan), .4) !important;
  transform: translateY(-3px);
}
.sa-product-card-media { background: #000; isolation: isolate; }
.zf-media-bg {
  position: absolute; inset: -24px; z-index: -1; background-size: cover; background-position: center;
  filter: blur(24px) saturate(1.3) brightness(.55);
}
.sa-product-card-media img { position: relative; }
.sa-product-card-title { font-weight: 700 !important; font-family: var(--ff-heading); letter-spacing: -0.01em; }
.sa-product-card-price { font-family: var(--ff-heading); font-weight: 800 !important; font-size: 1.05rem !important; }
.sa-product-card-stock .text-success,
.sa-product-card-stock .text-error {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
}
.sa-product-card-stock .text-success::before,
.sa-product-card-stock .text-error::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* ── Product page ─────────────────────────────────────── */
.sa-product-gallery img { border-radius: var(--radius-card); }
.sa-product-form .sa-add-to-cart { min-height: 48px; }

/* ── Reviews / feedback ───────────────────────────────── */
.sa-feedback-card { transition: border-color .2s ease; }
.sa-feedback-card:hover { border-color: rgba(var(--zf-tan), .35) !important; }
.sa-feedbacks .fa-star, .sa-feedback-card .fa-star { color: rgb(var(--zf-tan)) !important; }

/* ── Footer ───────────────────────────────────────────── */
.sa-footer { background: #0F0D0B; }
.sa-footer-link:hover { color: rgb(var(--zf-tan-2)) !important; }

/* Selection + scrollbar */
::selection { background: rgba(var(--zf-tan), .35); color: #fff; }
html { scrollbar-color: rgba(var(--zf-tan), .4) #0A0908; }

/* Sold-out products: faded and moved after in-stock ones */
.sa-products-items > .sa-products-item:has(.sa-product-card-stock .text-error) { order: 1; }
.sa-product-card:has(.sa-product-card-stock .text-error) { opacity: .55; }
.sa-product-card:has(.sa-product-card-stock .text-error) img { filter: grayscale(.7); }
.sa-product-card:has(.sa-product-card-stock .text-error):hover { opacity: .8; }

/* Review cards: compact stars so the verified badge fits */
.sa-feedback-card [aria-label*="out of 5"] svg { width: 14px !important; height: 14px !important; }
