/*
Theme Name: Alhaja Gold
Theme URI: https://alhajagold.com
Author: XAD
Author URI: https://xadsites.com
Description: Joyería en Oro 18K — tema premium WooCommerce para Alhaja Gold. Español primero, USD/COP, listo para afiliados (XAD Affiliates).
Version: 1.0.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: alhaja-gold
*/

/* ============ Tokens ============ */
:root {
	--noir: #0D0B09;
	--coal: #171310;
	--ivory: #FAF7F1;
	--paper: #FFFFFF;
	--ink: #1E1B17;
	--muted: #7A7267;
	--gold: #C9A227;
	--gold-soft: #E4C878;
	--champagne: #F5EBD3;
	--line: #E9E1D2;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow-soft: 0 10px 30px -18px rgba(20, 15, 5, .35);
	--font-display: "Cormorant Garamond", Georgia, serif;
	--font-body: "Archivo", system-ui, -apple-system, sans-serif;
	--gutter: clamp(18px, 4vw, 48px);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0; background: var(--ivory); color: var(--ink);
	font-family: var(--font-body); font-size: 16px; line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
.container { max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--dark { background: var(--noir); color: var(--champagne); }
.section--dark h2, .section--dark h3 { color: var(--champagne); }
.eyebrow { display: inline-block; letter-spacing: .22em; text-transform: uppercase; font-size: .72rem; font-weight: 600; color: var(--gold); margin-bottom: 12px; }
.section__title { font-size: clamp(1.9rem, 4vw, 3rem); }
.section__sub { color: var(--muted); max-width: 640px; }
.section--dark .section__sub { color: rgba(245, 235, 211, .75); }
.section__head { margin-bottom: clamp(26px, 4vw, 44px); }
.section__head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: .95rem;
	border: 1px solid transparent; cursor: pointer; transition: all .18s ease;
	font-family: var(--font-body); letter-spacing: .02em;
}
.btn--gold { background: var(--gold); color: var(--noir); }
.btn--gold:hover { background: var(--gold-soft); color: var(--noir); transform: translateY(-2px); }
.btn--noir { background: var(--noir); color: var(--champagne); }
.btn--noir:hover { background: var(--coal); color: var(--gold-soft); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.section--dark .btn--ghost { color: var(--champagne); border-color: rgba(245,235,211,.5); }
.section--dark .btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============ Announce bar ============ */
.announce {
	background: var(--noir); color: var(--gold-soft);
	font-size: .78rem; letter-spacing: .06em; text-align: center;
	padding: 8px var(--gutter);
}

/* ============ Header ============ */
.site-header {
	position: sticky; top: 0; z-index: 500;
	background: rgba(250, 247, 241, .92); backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(20,15,5,.25); }
.header-bar {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	gap: 18px; padding: 14px var(--gutter); max-width: 1440px; margin-inline: auto;
}
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: center; }
.brand__mark { width: 46px; height: 46px; object-fit: contain; }
.brand__name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--ink); letter-spacing: .04em; line-height: 1.1; }
.brand__name em { display: block; font-style: normal; font-size: .62rem; font-family: var(--font-body); letter-spacing: .34em; color: var(--gold); text-transform: uppercase; }
/* When a full logo image is uploaded it carries the wordmark itself — show it larger, no text. */
.brand--logo-only .brand__mark { width: auto; height: 54px; max-width: 240px; }
.primary-nav ul { display: flex; gap: clamp(20px, 2.6vw, 40px); list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--ink); font-weight: 500; font-size: .95rem; display: inline-flex; align-items: center; gap: 5px; }
.primary-nav a:hover { color: var(--gold); }
.primary-nav--right { justify-self: end; display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.icon-btn {
	width: 42px; height: 42px; display: grid; place-items: center;
	background: transparent; border: 0; cursor: pointer; color: var(--ink);
	border-radius: 50%; transition: background .15s ease, color .15s ease; position: relative;
}
.icon-btn:hover { background: var(--champagne); color: var(--gold); }
.cart-count {
	position: absolute; top: 2px; inset-inline-end: 0;
	background: var(--gold); color: var(--noir); font-size: .64rem; font-weight: 700;
	min-width: 17px; height: 17px; border-radius: 999px; display: grid; place-items: center; padding-inline: 4px;
}
/* Currency pills */
.cur-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.cur-switch a { padding: 7px 13px; font-size: .78rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.cur-switch a.is-active { background: var(--noir); color: var(--gold-soft); }
.menu-toggle { display: none; }

/* Mega menu */
.has-mega { position: static; }
.mega {
	position: absolute; inset-inline: 0; top: 100%;
	background: var(--paper); border-top: 1px solid var(--line);
	box-shadow: 0 30px 60px -30px rgba(20,15,5,.35);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	z-index: 600;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega__inner { max-width: 1280px; margin-inline: auto; padding: 30px var(--gutter); display: grid; grid-template-columns: 1fr 250px; gap: 34px; }
.mega__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.mega__cat { display: flex; flex-direction: column; gap: 8px; text-align: center; padding: 10px; border-radius: var(--radius-sm); border: 1px solid transparent; transition: all .15s ease; }
.mega__cat:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.mega__thumb { aspect-ratio: 1; border-radius: 10px; background: var(--champagne) center/cover no-repeat; }
.mega__label { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1rem; }
.mega__count { font-size: .74rem; color: var(--muted); }
.mega__aside { border-inline-start: 1px solid var(--line); padding-inline-start: 30px; display: flex; flex-direction: column; gap: 12px; }
.mega__aside h4 { margin: 0; font-size: 1.25rem; }
.mega__aside p { color: var(--muted); font-size: .88rem; margin: 0; }
@media (max-width: 1100px) { .mega { display: none; } .nav-caret { display: none; } }

/* Mobile drawer + search overlay */
.drawer-backdrop, .search-overlay { position: fixed; inset: 0; z-index: 800; }
.drawer-backdrop { background: rgba(13,11,9,.5); opacity: 0; visibility: hidden; transition: opacity .2s ease; }
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.mobile-drawer {
	position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(340px, 86vw);
	background: var(--ivory); z-index: 900; padding: 18px 22px 30px; overflow-y: auto;
	transform: translateX(-105%); transition: transform .24s ease;
}
[dir="rtl"] .mobile-drawer { transform: translateX(105%); }
.mobile-drawer.is-open { transform: none; }
.mobile-drawer__head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 14px; }
.mobile-drawer nav a { display: block; padding: 13px 4px; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.drawer-cats { margin-top: 16px; }
.drawer-cats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.drawer-cat { text-align: center; font-size: .78rem; color: var(--ink); }
.drawer-cat span { display: block; aspect-ratio: 1; border-radius: 10px; background: var(--champagne) center/cover no-repeat; margin-bottom: 6px; }
.search-overlay { background: rgba(13,11,9,.94); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .2s ease; }
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-overlay form { width: min(680px, 90vw); display: flex; gap: 10px; }
.search-overlay input[type="search"] { flex: 1; padding: 16px 22px; border-radius: 999px; border: 0; font-size: 1.05rem; }
.search-close { position: absolute; top: 24px; inset-inline-end: 28px; color: var(--champagne); }

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; background: var(--noir); }
.hero__track { display: flex; transition: transform .5s ease; }
.hero__slide { position: relative; flex: 0 0 100%; min-height: clamp(480px, 72vh, 720px); display: grid; align-items: center; }
.hero__slide img.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(13,11,9,.82) 10%, rgba(13,11,9,.35) 55%, rgba(13,11,9,.15)); }
.hero__inner { position: relative; z-index: 2; padding: 40px var(--gutter); max-width: 1280px; margin-inline: auto; width: 100%; }
.hero__eyebrow { color: var(--gold-soft); letter-spacing: .26em; text-transform: uppercase; font-size: .74rem; font-weight: 600; }
.hero__title { color: #fff; font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 12px 0 14px; max-width: 640px; }
.hero__text { color: rgba(250,247,241,.85); max-width: 520px; margin-bottom: 26px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__dots { position: absolute; bottom: 22px; inset-inline: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hero__dots button { width: 26px; height: 4px; border-radius: 99px; border: 0; background: rgba(255,255,255,.35); cursor: pointer; transition: background .2s ease; }
.hero__dots button[aria-current] { background: var(--gold); }

/* ============ Trust bar ============ */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-block: 26px; }
.trust__item { display: flex; align-items: center; gap: 12px; }
.trust__item svg { color: var(--gold); flex: 0 0 auto; }
.trust__item strong { display: block; font-size: .92rem; color: var(--ink); }
.trust__item em { font-style: normal; font-size: .78rem; color: var(--muted); }
@media (max-width: 860px) { .trust__grid { grid-template-columns: repeat(2, 1fr); } }

/* ============ Category tiles ============ */
.cats__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cat-tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; display: block; background: var(--coal); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(13,11,9,.85)); }
.cat-tile__name { position: absolute; bottom: 14px; inset-inline: 14px; z-index: 2; color: #fff; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.cat-tile__count { position: absolute; bottom: 0; inset-inline: 14px; z-index: 2; color: var(--gold-soft); font-size: .74rem; padding-bottom: 2px; opacity: .9; }
@media (max-width: 1000px) { .cats__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .cats__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ============ Product cards (shared) ============ */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod-card {
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease;
}
.prod-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-4px); }
.prod-card__img { aspect-ratio: 1; background: var(--champagne); overflow: hidden; position: relative; }
.prod-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.prod-card:hover .prod-card__img img { transform: scale(1.05); }
.prod-card__badge { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--gold); color: var(--noir); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.prod-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-card__title { font-family: var(--font-body); font-size: .92rem; font-weight: 500; color: var(--ink); line-height: 1.45; margin: 0; }
.prod-card__title a { color: inherit; }
.prod-card__title a:hover { color: var(--gold); }
.prod-card__price { color: var(--gold); font-weight: 700; font-size: 1.02rem; margin-top: auto; }
.prod-card__btn { margin-top: 10px; }
.prod-card__btn .btn { width: 100%; padding: 11px; font-size: .85rem; }
@media (max-width: 1000px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* Carousel (new arrivals) */
.carousel { position: relative; }
.carousel__track {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 22px) / 4);
	gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; padding-bottom: 4px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { scroll-snap-align: start; }
.carousel__nav {
	position: absolute; top: 38%; width: 44px; height: 44px; border-radius: 50%;
	background: var(--paper); border: 1px solid var(--line); color: var(--ink);
	display: grid; place-items: center; cursor: pointer; z-index: 5; font-size: 1.3rem;
	transition: all .15s ease; box-shadow: var(--shadow-soft);
}
.carousel__nav:hover { background: var(--gold); border-color: var(--gold); color: var(--noir); }
.carousel__nav--prev { inset-inline-start: -12px; }
.carousel__nav--next { inset-inline-end: -12px; }
@media (max-width: 1000px) { .carousel__track { grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px; } }
@media (max-width: 700px) { .carousel__track { grid-auto-columns: calc((100% - 12px) / 2); gap: 12px; } }

/* ============ Fabrication band ============ */
.fab { position: relative; overflow: hidden; }
.fab__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.fab__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--coal); }
.fab__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .fab__inner { grid-template-columns: 1fr; } }

/* ============ Affiliate band ============ */
.aff-band { background: linear-gradient(115deg, var(--noir), #241c10); color: var(--champagne); border-block: 1px solid rgba(201,162,39,.35); }
.aff-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 26px; flex-wrap: wrap; padding-block: clamp(36px, 5vw, 60px); }
.aff-band h2 { color: var(--champagne); margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.aff-band p { margin: 0; color: rgba(245,235,211,.8); max-width: 540px; }

/* ============ Testimonials ============ */
.testi__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi__card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.testi__stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 12px; }
.testi__text { color: var(--ink); font-style: italic; }
.testi__name { margin-top: 14px; font-weight: 700; font-size: .88rem; color: var(--muted); }
@media (max-width: 860px) { .testi__grid { grid-template-columns: 1fr; } }

/* ============ Instagram strip ============ */
.insta__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.insta__grid a { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--champagne); display: block; }
.insta__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.insta__grid a:hover img { transform: scale(1.07); }
@media (max-width: 860px) { .insta__grid { grid-template-columns: repeat(3, 1fr); } }

/* ============ Newsletter ============ */
.newsletter { background: var(--noir); color: var(--champagne); text-align: center; }
.newsletter h2 { color: var(--champagne); }
.newsletter__form { display: flex; gap: 10px; max-width: 520px; margin: 26px auto 0; }
.newsletter__form input[type="email"] { flex: 1; padding: 15px 22px; border-radius: 999px; border: 1px solid rgba(245,235,211,.3); background: rgba(255,255,255,.06); color: #fff; font-size: .95rem; }
.newsletter__form input::placeholder { color: rgba(245,235,211,.5); }
@media (max-width: 560px) { .newsletter__form { flex-direction: column; } }

/* ============ Footer ============ */
.site-footer { background: var(--coal); color: rgba(245,235,211,.75); font-size: .9rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 34px; padding-block: clamp(44px, 6vw, 70px); }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer__brand img { width: 44px; height: 44px; object-fit: contain; filter: brightness(0) invert(1); opacity: .92; }
.footer__brand span { font-family: var(--font-display); font-size: 1.3rem; color: var(--champagne); font-weight: 700; }
.site-footer h4 { color: var(--gold-soft); font-family: var(--font-body); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(245,235,211,.75); }
.site-footer a:hover { color: var(--gold-soft); }
.footer__socials { display: flex; gap: 10px; margin-top: 16px; }
.footer__socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(245,235,211,.25); display: grid; place-items: center; color: rgba(245,235,211,.85); transition: all .15s ease; }
.footer__socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--noir); }
.footer__bottom { border-top: 1px solid rgba(245,235,211,.12); padding-block: 18px; text-align: center; font-size: .8rem; color: rgba(245,235,211,.5); }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ============ WooCommerce ============ */
.shop-hero { background: var(--noir); color: var(--champagne); text-align: center; padding: clamp(36px, 6vw, 64px) var(--gutter); margin-bottom: 34px; position: relative; overflow: hidden; }
.shop-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 200px at 50% 120%, rgba(201,162,39,.22), transparent); }
.shop-hero__eyebrow { color: var(--gold); letter-spacing: .2em; text-transform: uppercase; font-size: .72rem; font-weight: 700; }
.shop-hero__title { color: var(--champagne); font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 8px 0 6px; }
.shop-hero__sub { color: rgba(245,235,211,.7); max-width: 620px; margin-inline: auto; position: relative; z-index: 1; }
.alhg-woo.container { max-width: 1280px; padding-block: 0 clamp(40px, 6vw, 72px); }

.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 22px !important; margin: 0 0 10px !important; padding: 0 !important; }
.woocommerce ul.products li.product { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; text-align: start; transition: box-shadow .2s ease, transform .2s ease; }
.woocommerce ul.products li.product:hover { box-shadow: var(--shadow-soft); transform: translateY(-4px); }
.woocommerce ul.products li.product a img { aspect-ratio: 1; object-fit: cover; margin: 0 !important; width: 100%; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--font-body); font-size: .92rem !important; font-weight: 500;
	color: var(--ink); padding: 16px 18px 4px !important; line-height: 1.4; min-height: 2.7em;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.woocommerce ul.products li.product .price { color: var(--gold) !important; font-weight: 700 !important; font-size: 1.05rem !important; padding: 6px 18px 0 !important; margin: 0 !important; margin-top: auto !important; }
.woocommerce ul.products li.product .button { margin: 12px 18px 18px !important; }
.woocommerce .woocommerce-result-count { color: var(--muted); }
.woocommerce .woocommerce-ordering select { border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; background: #fff; color: var(--ink); }
.woocommerce nav.woocommerce-pagination { margin-top: 34px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0 3px; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { border-radius: 999px; padding: 10px 16px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.woocommerce nav.woocommerce-pagination ul li span.current, .woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--noir); color: var(--gold-soft); border-color: var(--noir); }

/* Buttons — kill purple */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce ul.products li.product .button, .wc-block-components-button, .wp-element-button {
	background: var(--noir) !important; color: var(--champagne) !important; border: 0 !important;
	border-radius: 999px !important; font-weight: 600 !important; padding: 12px 26px !important;
	transition: all .15s ease !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce ul.products li.product .button:hover, .woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
	background: var(--gold) !important; color: var(--noir) !important; transform: translateY(-2px);
}
.woocommerce div.product form.cart .single_add_to_cart_button { background: var(--gold) !important; color: var(--noir) !important; font-size: 1rem !important; }
.woocommerce div.product form.cart .single_add_to_cart_button:hover { background: var(--noir) !important; color: var(--gold-soft) !important; }

/* Single product */
.woocommerce div.product { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(28px, 4vw, 60px); align-items: start; max-width: 1280px; margin-inline: auto; }
.woocommerce div.product > * { min-width: 0; }
.woocommerce div.product div.images { margin: 0 !important; }
.woocommerce div.product div.images img { border-radius: var(--radius); border: 1px solid var(--line); }
.woocommerce div.product .summary { margin: 0 !important; }
.woocommerce div.product .product_title { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.woocommerce div.product p.price { color: var(--gold) !important; font-size: 1.7rem; font-weight: 700; }
.alhg-specs { margin: 18px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; font-size: .9rem; }
.alhg-specs div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 16px; }
.alhg-specs div:nth-child(odd) { background: var(--champagne); }
.alhg-specs b { color: var(--ink); font-weight: 600; }
.alhg-specs span { color: var(--muted); }
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; margin-top: 44px !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0 !important; margin: 0 0 22px !important; border-bottom: 1px solid var(--line); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: transparent !important; border: 0 !important; border-radius: 0; margin: 0 18px 0 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--muted) !important; font-weight: 600; padding: 12px 2px !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink) !important; box-shadow: inset 0 -2px 0 var(--gold); }
.woocommerce div.product .related.products, .woocommerce div.product .upsells.products { grid-column: 1 / -1; margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .woocommerce div.product { grid-template-columns: 1fr; } .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px !important; } }

/* Quantity stepper */
.woocommerce .quantity { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.woocommerce .quantity input.qty { border: 0 !important; width: 54px !important; height: 46px !important; text-align: center; background: transparent; -moz-appearance: textfield; }
.woocommerce .quantity input.qty::-webkit-inner-spin-button, .woocommerce .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; }
.alhg-qty-btn { width: 42px; border: 0; background: var(--champagne); color: var(--ink); font-size: 1.25rem; cursor: pointer; transition: background .15s ease; }
.alhg-qty-btn:hover { background: var(--gold); }

/* Shop pre-footer */
.shop-prefooter { background: var(--paper); border-block: 1px solid var(--line); }
.shop-prefooter__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 30px; }
.shop-feat { text-align: center; }
.shop-feat svg { color: var(--gold); margin-bottom: 8px; }
.shop-feat strong { display: block; color: var(--ink); font-size: .92rem; }
.shop-feat em { font-style: normal; color: var(--muted); font-size: .8rem; }
@media (max-width: 700px) { .shop-prefooter__grid { grid-template-columns: repeat(2, 1fr); } }
.shop-cta { background: linear-gradient(115deg, var(--noir), #241c10); color: var(--champagne); text-align: center; padding: clamp(34px, 5vw, 56px) var(--gutter); }
.shop-cta h2 { color: var(--champagne); margin: 0 0 18px; font-size: clamp(1.5rem, 3vw, 2.1rem); }

/* Back to top */
.fab-top {
	position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 700;
	width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--noir); color: var(--gold-soft); display: grid; place-items: center;
	opacity: 0; visibility: hidden; transition: all .25s ease; box-shadow: var(--shadow-soft);
}
.fab-top.is-visible { opacity: 1; visibility: visible; }
.fab-top:hover { background: var(--gold); color: var(--noir); }

/* ============ Mobile header/hero ============ */
@media (max-width: 1100px) {
	.header-bar { grid-template-columns: auto 1fr auto; }
	.primary-nav--left { display: none; }
	.menu-toggle { display: grid; }
	.brand { justify-self: start; }
	.brand__name { font-size: 1.15rem; }
	.brand__mark { width: 38px; height: 38px; }
	.brand--logo-only .brand__mark { width: auto; height: 42px; max-width: 170px; }
	.primary-nav--right .nav-links { display: none; }
}
@media (max-width: 860px) {
	.hero__slide { min-height: 86vh; }
	.hero__scrim { background: linear-gradient(180deg, rgba(13,11,9,.35), rgba(13,11,9,.2) 40%, rgba(13,11,9,.88)); }
	.hero__inner { align-self: end; padding-bottom: 56px; }
	.hero__title { font-size: clamp(2.2rem, 10vw, 3rem); }
	.hero__cta { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
	.hero__cta .btn { width: 100%; padding: 15px 10px; }
	.cur-switch { transform: scale(.92); }
}
