/* ============================================================
   Storefront design system
   Brand colors come from CSS variables injected by the layout
   (configurable in Admin → Settings → General).
   ============================================================ */

:root {
  --brand-primary: #111111;
  --brand-accent: #b45309;
  --surface: #ffffff;
  --surface-alt: #f6f5f3;
  --ink: #18181b;
  --muted: #71717a;
  --line: #e4e4e7;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--surface);
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
a { color: var(--brand-primary); }
.page-title { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; }
.section { padding: 56px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; gap: 16px; }
.section-title { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.section-link { white-space: nowrap; font-size: .95rem; text-decoration: none; border-bottom: 1px solid currentColor; }
.min-vh-60 { min-height: 60vh; }

/* ---------- buttons ---------- */
.btn-brand {
  background: var(--brand-primary); color: #fff; border: 1px solid var(--brand-primary);
  border-radius: 2px; padding: .6rem 1.5rem; font-weight: 600; letter-spacing: .02em;
  transition: opacity .15s ease, transform .1s ease;
}
.btn-brand:hover, .btn-brand:focus { background: var(--brand-primary); color: #fff; opacity: .88; }
.btn-outline-light { border-radius: 2px; }
.btn { border-radius: 2px; }

/* ---------- announcement + header ---------- */
.announcement-bar {
  background: var(--brand-primary); color: #fff; font-size: .82rem;
  padding: 7px 16px; letter-spacing: .04em;
}
.site-header { background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.navbar { padding: .8rem 0; }
.navbar-brand { gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-primary); color: #fff; font-family: var(--serif);
  font-size: 1.2rem; border-radius: 2px; flex-shrink: 0;
}
.brand-logo { height: 38px; width: auto; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.nav-link { color: var(--ink); font-size: .95rem; letter-spacing: .03em; padding: .5rem .9rem; }
.nav-link:hover { color: var(--brand-accent); }
.header-actions a { color: var(--ink); font-size: 1.15rem; text-decoration: none; }
.header-actions a:hover { color: var(--brand-accent); }
.icon-link-item { position: relative; }
.cart-badge {
  position: absolute; top: -7px; right: -9px; background: var(--brand-accent); color: #fff;
  border-radius: 50%; font-size: .62rem; min-width: 17px; height: 17px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 3px;
}
.search-form input { border-radius: 20px; min-width: 190px; border: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(255,255,255,.14), transparent 60%),
    radial-gradient(800px 400px at 5% 110%, rgba(255,255,255,.08), transparent 55%),
    var(--brand-primary);
  color: #fff; padding: 40px 0;
}
.hero-eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; opacity: .8; }
.hero-title { font-family: var(--serif); font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 700; line-height: 1.05; margin-bottom: 1.2rem; }
.hero-sub { font-size: 1.08rem; opacity: .88; max-width: 520px; margin-bottom: 2rem; }
.hero-art { max-height: 430px; margin-left: auto; display: block; opacity: .95; }

/* ---------- categories ---------- */
.category-card {
  display: block; text-decoration: none; color: var(--ink); position: relative;
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--surface-alt);
  transition: transform .15s ease, box-shadow .15s ease;
}
.category-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.08); color: var(--ink); }
.category-card img { width: 100%; height: 150px; object-fit: cover; }
.category-placeholder { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: #c9c5bd; }
.category-label { display: block; padding: 12px 14px; font-weight: 600; font-size: .95rem; }

/* ---------- product cards ---------- */
.product-card { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; height: 100%; transition: box-shadow .15s ease, transform .15s ease; }
.product-card:hover { box-shadow: 0 14px 30px rgba(0,0,0,.08); transform: translateY(-2px); }
.product-media { display: block; position: relative; background: var(--surface-alt); aspect-ratio: 3/3.6; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-media-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: #cfcbc3; }
.product-media-placeholder.large { aspect-ratio: 3/3.6; border: 1px solid var(--line); border-radius: 4px; }
.product-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; }
.badge-sale { background: var(--brand-accent); color: #fff; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 2px; }
.badge-out { background: #3f3f46; color: #fff; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 2px; }
.badge-out.big { position: absolute; top: 16px; right: 16px; }
.badge-discount { background: #fef3c7; color: #92400e; font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 2px; margin-left: 8px; }
.product-info { padding: 14px 14px 16px; }
.product-category { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); text-decoration: none; }
.product-name { display: block; font-weight: 600; text-decoration: none; color: var(--ink); margin: 4px 0 6px; font-size: .98rem; }
.product-name:hover { color: var(--brand-accent); }
.product-price { font-weight: 700; }
.price-sale { color: var(--brand-accent); }
.price-old { text-decoration: line-through; color: var(--muted); font-weight: 400; font-size: .88rem; margin-left: 8px; }

/* ---------- brand strip / usp ---------- */
.brand-strip { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.usp-box { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 22px 10px; display: flex; flex-direction: column; gap: 8px; font-size: 1.5rem; color: var(--brand-primary); }
.usp-box small { font-size: .78rem; color: var(--muted); }

/* ---------- blog cards ---------- */
.post-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; text-decoration: none; color: var(--ink); height: 100%; transition: box-shadow .15s ease, transform .15s ease; }
.post-card:hover { box-shadow: 0 14px 30px rgba(0,0,0,.08); transform: translateY(-2px); color: var(--ink); }
.post-card img { width: 100%; height: 190px; object-fit: cover; }
.post-card-placeholder { height: 190px; background: var(--surface-alt); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: #cfcbc3; }
.post-card-body { padding: 16px 18px 18px; }
.post-cat { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--brand-accent); font-weight: 700; text-decoration: none; }
.post-title { font-family: var(--serif); font-size: 1.12rem; margin: 8px 0 6px; line-height: 1.35; }
.post-excerpt { color: var(--muted); font-size: .9rem; margin: 0; }
.post-read { display: inline-block; margin-top: 12px; font-size: .85rem; font-weight: 600; color: var(--brand-primary); }
.small-card img { height: 120px; }
.small-card .post-title { font-size: .95rem; }
.blog-cat-pill { text-decoration: none; color: var(--ink); border: 1px solid var(--line); padding: 6px 16px; border-radius: 20px; font-size: .88rem; background: #fff; }
.blog-cat-pill.active, .blog-cat-pill:hover { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }

/* ---------- newsletter ---------- */
.newsletter-section { background: var(--brand-primary); color: #fff; }
.newsletter-section .section-title { color: #fff; }
.newsletter-section p { opacity: .85; }
.newsletter-msg { display: block; margin-top: 8px; min-height: 1.2em; }
.newsletter-form .newsletter-msg { font-size: .78rem; }

/* ---------- footer ---------- */
.site-footer { background: #101012; color: #d4d4d8; }
.footer-brand { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; margin-bottom: 10px; }
.footer-about { font-size: .9rem; color: #a1a1aa; }
.footer-heading { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #a1a1aa; text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.social-links { display: flex; gap: 12px; margin-top: 14px; }
.social-links a { color: #d4d4d8; font-size: 1.15rem; text-decoration: none; }
.social-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #27272a; color: #71717a; font-size: .85rem; }
.footer-contact { color: #71717a; }

/* ---------- filters ---------- */
.filter-panel { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 20px; position: sticky; top: 84px; }
.filter-heading { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; }
.filter-links { display: flex; flex-direction: column; gap: 7px; }
.filter-links a { text-decoration: none; color: var(--ink); font-size: .93rem; }
.filter-links a.active, .filter-links a:hover { color: var(--brand-accent); font-weight: 600; }
.size-chip { position: relative; cursor: pointer; }
.size-chip input { position: absolute; opacity: 0; }
.size-chip {
  border: 1px solid var(--line); padding: 6px 0; width: 46px; text-align: center;
  font-size: .85rem; border-radius: 2px; user-select: none; margin-bottom: 0;
}
.size-chip.big { width: 52px; padding: 9px 0; }
.size-chip:has(input:checked) { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.color-chip { position: relative; cursor: pointer; margin-bottom: 0; }
.color-chip input { position: absolute; opacity: 0; }
.color-chip span { display: inline-block; border: 1px solid var(--line); padding: 7px 14px; border-radius: 2px; font-size: .85rem; }
.color-chip:has(input:checked) span { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state i { font-size: 2.6rem; display: block; margin-bottom: 14px; }
.empty-state.small-state { padding: 34px 20px; }

/* ---------- product detail ---------- */
.gallery-main { position: relative; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--surface-alt); }
.gallery-main img { width: 100%; }
.gallery-thumbs .thumb { border: 2px solid transparent; border-radius: 3px; padding: 0; background: none; width: 74px; height: 88px; overflow: hidden; cursor: pointer; }
.gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs .thumb.active { border-color: var(--brand-primary); }
.product-detail-title { font-family: var(--serif); font-size: 2rem; font-weight: 600; margin-bottom: .4rem; }
.product-detail-price { font-size: 1.5rem; font-weight: 700; }
.variant-label { font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.qty-picker { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 2px; }
.qty-picker input { width: 56px; text-align: center; border: 0; font-weight: 600; padding: .55rem 0; }
.qty-picker input::-webkit-outer-spin-button, .qty-picker input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-btn { border: 0; background: none; font-size: 1.15rem; padding: .45rem .85rem; cursor: pointer; color: var(--ink); }
.qty-btn:hover { color: var(--brand-accent); }
.product-description { margin-top: 26px; }
.product-description .accordion-button { font-family: var(--serif); font-weight: 600; }

/* ---------- cart / checkout ---------- */
.cart-lines { border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.cart-line { display: grid; grid-template-columns: 84px 1fr 92px 100px 30px; gap: 14px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line-img img, .cart-line-img .product-media-placeholder { width: 84px; height: 100px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); }
.cart-line-name { font-weight: 600; text-decoration: none; color: var(--ink); }
.cart-line-total { font-weight: 700; text-align: right; }
.cart-line-remove { border: 0; background: none; color: var(--muted); cursor: pointer; }
.cart-line-remove:hover { color: #dc2626; }
.summary-card { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 22px; position: sticky; top: 84px; }
.summary-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: .95rem; color: #3f3f46; }
.summary-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.summary-item { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: .93rem; }
.coupon-applied { background: var(--surface-alt); border: 1px dashed var(--line); padding: 8px 12px; border-radius: 3px; font-size: .9rem; }
.checkout-card { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 24px; }
.payment-option { display: block; border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; transition: border-color .12s ease; }
.payment-option:hover { border-color: var(--brand-primary); }
.payment-option:has(input:checked) { border-color: var(--brand-primary); background: #fafaf9; box-shadow: 0 0 0 1px var(--brand-primary); }
.payment-option input { margin-right: 10px; }
.success-icon { width: 74px; height: 74px; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 2.2rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }

/* ---------- account ---------- */
.account-nav { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 20px; position: sticky; top: 84px; }
.account-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.4rem; }
.account-link { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 3px; text-decoration: none; color: var(--ink); font-size: .94rem; width: 100%; border: 0; background: none; text-align: left; }
.account-link:hover, .account-link.active { background: var(--surface-alt); color: var(--brand-accent); }
.stat-mini { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 16px; display: flex; flex-direction: column; gap: 4px; font-size: .82rem; color: var(--muted); }
.stat-mini-num { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); font-weight: 700; }
.order-status { text-transform: capitalize; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-processing { background: #dbeafe; color: #1d4ed8; }
.status-shipped { background: #e0e7ff; color: #4338ca; }
.status-delivered { background: #dcfce7; color: #15803d; }
.status-cancelled { background: #fee2e2; color: #b91c1c; }
.status-refunded { background: #f3e8ff; color: #7e22ce; }
.auth-card { border: 1px solid var(--line); border-radius: 6px; }
.auth-brand { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-decoration: none; }

/* ---------- blog article ---------- */
.article-title { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.18; }
.article-excerpt { font-size: 1.12rem; color: #52525b; line-height: 1.6; }
.article-hero img { border-radius: 6px; width: 100%; }
.article-content { font-size: 1.02rem; line-height: 1.75; color: #27272a; }
.article-content h2 { font-family: var(--serif); font-size: 1.5rem; margin: 2rem 0 .9rem; font-weight: 600; }
.article-content h3 { font-family: var(--serif); font-size: 1.2rem; margin: 1.6rem 0 .7rem; font-weight: 600; }
.article-content blockquote { border-left: 3px solid var(--brand-accent); padding: 6px 20px; margin: 1.4rem 0; background: var(--surface-alt); border-radius: 0 4px 4px 0; font-style: italic; }
.article-content ul, .article-content ol { padding-left: 1.4rem; margin-bottom: 1.1rem; }
.article-content img { max-width: 100%; border-radius: 4px; }
.related-box { background: var(--surface-alt); border: 1px solid var(--line); border-radius: 4px; padding: 18px 22px; }
.tag-pill { text-decoration: none; color: var(--ink); background: var(--surface-alt); border: 1px solid var(--line); border-radius: 20px; padding: 5px 14px; font-size: .84rem; }
.tag-pill:hover { background: var(--brand-primary); color: #fff; }
.comment { background: var(--surface-alt); border-radius: 4px; padding: 12px 16px; }
.social-caption { background: #fffbeb; border: 1px solid #fde68a; border-radius: 4px; padding: 10px 14px; }

/* ---------- misc ---------- */
.error-404 { font-family: var(--serif); font-size: 6rem; font-weight: 700; color: var(--line); line-height: 1; }
.breadcrumb { --bs-breadcrumb-divider: '›'; }

@media (max-width: 767px) {
  .cart-line { grid-template-columns: 64px 1fr 30px; grid-template-areas: "img info remove" "img qty total"; }
  .cart-line-img { grid-area: img; }
  .cart-line-img img, .cart-line-img .product-media-placeholder { width: 64px; height: 78px; }
  .cart-line-info { grid-area: info; }
  .cart-line-qty { grid-area: qty; }
  .cart-line-total { grid-area: total; text-align: left; }
  .cart-line-remove { grid-area: remove; justify-self: end; }
  .filter-panel { position: static; }
  .summary-card { position: static; }
}
