/* Noir Essence — premium storefront. All brand colors come from :root variables
   rendered dynamically from Website Settings (see SettingService::themeCss()). */

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--page-background);
}

h1, h2, h3, h4, h5, .font-heading {
    font-family: var(--font-heading);
}

a { color: var(--link-color); text-decoration: none; }
a:hover { color: var(--link-hover); }

/* ---------- Announcement bar ---------- */
.announcement-bar {
    background: linear-gradient(90deg, var(--brand-secondary), #e6c85a, var(--brand-secondary));
    color: #151515;
    font-size: .82rem;
    letter-spacing: .04em;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--header-background);
    color: var(--header-text);
}
.site-header .nav-link, .site-header .header-icon {
    color: var(--header-text);
}
.site-header .nav-link:hover, .site-header .header-icon:hover {
    color: var(--brand-secondary);
}
.header-icon { position: relative; font-size: 1.25rem; }
.header-icon .count-badge {
    position: absolute; top: -8px; right: -10px;
    background: var(--brand-secondary); color: #151515;
    font-size: .65rem; min-width: 18px; height: 18px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}
.site-logo img { max-height: 52px; }
.site-logo .logo-text {
    font-family: var(--font-heading); font-size: 1.6rem; letter-spacing: .12em;
    color: var(--header-text); text-transform: uppercase;
}
.site-logo .logo-text span { color: var(--brand-secondary); }
.search-box input { border-radius: 0; }
.search-box .btn { border-radius: 0; }

/* ---------- Buttons ---------- */
.btn-gold,
.btn-brand,
.btn-primary {
    background: var(--button-background, #c9a227) !important;
    color: var(--button-text, #151515) !important;
    border: 1px solid var(--button-background, #c9a227) !important;
    border-radius: 0;
    text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; font-weight: 600;
    padding: .7rem 1.8rem;
}
.btn-gold:hover, .btn-gold:focus,
.btn-brand:hover, .btn-brand:focus,
.btn-primary:hover, .btn-primary:focus {
    filter: brightness(1.08);
    color: var(--button-text, #151515) !important;
    background: var(--button-background, #c9a227) !important;
    border-color: var(--button-background, #c9a227) !important;
}
.btn-gold:disabled, .btn-brand:disabled, .btn-primary:disabled,
.btn-gold.disabled, .btn-brand.disabled, .btn-primary.disabled {
    opacity: .55; filter: none;
}
.btn-outline-gold,
.btn-outline-primary {
    background: transparent !important;
    color: var(--brand-secondary, #c9a227) !important;
    border: 2px solid var(--brand-secondary, #c9a227) !important;
    border-radius: 0;
    text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; font-weight: 600;
    padding: .7rem 1.8rem;
}
.btn-outline-gold:hover, .btn-outline-gold:focus,
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background: var(--brand-secondary, #c9a227) !important;
    color: #151515 !important;
}
.btn-dark-lux {
    background: var(--brand-primary, #151515) !important;
    color: #fff !important;
    border: 1px solid var(--brand-primary, #151515) !important;
    border-radius: 0;
    text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; font-weight: 600;
    padding: .7rem 1.8rem;
}
.btn-dark-lux:hover, .btn-dark-lux:focus {
    color: var(--brand-secondary, #c9a227) !important;
    background: var(--brand-primary, #151515) !important;
}
.btn-sm.btn-gold, .btn-sm.btn-brand, .btn-sm.btn-primary,
.btn-sm.btn-outline-gold, .btn-sm.btn-outline-primary, .btn-sm.btn-dark-lux {
    padding: .4rem 1rem; font-size: .75rem;
}
.btn-outline-secondary, .btn-outline-danger, .btn-outline-dark, .btn-outline-warning {
    border-width: 2px; font-weight: 600;
}
.btn-secondary {
    background: #4a4a4a !important; border-color: #4a4a4a !important; color: #fff !important;
}
.btn-secondary:hover { background: #333 !important; border-color: #333 !important; color: #fff !important; }

/* ---------- Hero ---------- */
.hero-slide { min-height: 62vh; background-size: cover; background-position: center; position: relative; }
.hero-slide::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(10,10,10,.72) 0%, rgba(10,10,10,.25) 60%, rgba(10,10,10,.05) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; }
.hero-content .eyebrow { color: var(--brand-secondary); letter-spacing: .28em; text-transform: uppercase; font-size: .78rem; }
.hero-content h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 600; }
.carousel-indicators [data-bs-target] { background-color: var(--brand-secondary); }

/* ---------- Section headings ---------- */
.section-heading { text-align: center; margin-bottom: 2.5rem; }
.section-heading .eyebrow { color: var(--brand-secondary); letter-spacing: .3em; text-transform: uppercase; font-size: .75rem; }
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: .5rem 0; }
.section-heading .rule { width: 64px; height: 2px; background: var(--brand-secondary); margin: 0 auto; }

/* ---------- Product cards ---------- */
.product-card {
    background: var(--card-background); border: 1px solid var(--border-color);
    transition: transform .25s ease, box-shadow .25s ease; height: 100%;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.10); }
.product-card .card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 1/1; background: #f7f4ee; }
.product-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .card-img-wrap img { transform: scale(1.06); }
.discount-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: var(--brand-secondary); color: #151515;
    font-size: .72rem; font-weight: 600; padding: .25rem .6rem; letter-spacing: .05em;
}
.wishlist-btn {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    background: rgba(255,255,255,.92); border: none; border-radius: 50%;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
}
.wishlist-btn.active, .wishlist-btn.active i { color: #c0392b; }
.product-card .card-body { padding: 1rem 1.1rem 1.25rem; text-align: center; }
.product-card .brand-name { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); }
.product-card .product-name { font-family: var(--font-heading); font-size: 1.08rem; margin: .35rem 0; }
.product-card .product-name a { color: var(--text-primary); }
.price { font-weight: 600; font-size: 1.05rem; }
.price .old-price { color: var(--text-muted); text-decoration: line-through; font-weight: 400; font-size: .88rem; margin-right: .4rem; }
.stars { color: var(--brand-secondary); font-size: .8rem; letter-spacing: .1em; }
.quick-add {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
    background: rgba(21,21,21,.92); color: #fff; border: none; width: 100%;
    padding: .65rem; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem;
    transform: translateY(100%); transition: transform .25s ease;
}
.product-card:hover .quick-add { transform: translateY(0); }
.quick-add:hover { background: var(--brand-secondary); color: #151515; }

/* ---------- Category tiles ---------- */
.category-tile { position: relative; overflow: hidden; display: block; aspect-ratio: 4/3; }
.category-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.category-tile:hover img { transform: scale(1.07); }
.category-tile .tile-label {
    position: absolute; inset: auto 0 0 0; padding: 2.2rem 1rem .9rem;
    background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff;
    font-family: var(--font-heading); font-size: 1.25rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-background); color: var(--footer-text); }
.site-footer a { color: var(--footer-text); opacity: .82; }
.site-footer a:hover { color: var(--brand-secondary); opacity: 1; }
.site-footer h5 { color: #fff; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
    position: fixed; bottom: 22px; right: 22px; z-index: 1050;
    width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
    box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }

/* ---------- Product page ---------- */
.variant-pill { border: 1px solid var(--border-color); padding: .55rem 1rem; cursor: pointer; border-radius: 0; background: #fff; }
.variant-pill.selected { border-color: var(--brand-secondary); background: #fdf9ef; box-shadow: 0 0 0 1px var(--brand-secondary); }
.variant-pill.out { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.note-pyramid li { margin-bottom: .6rem; }
.thumb-img { cursor: pointer; border: 2px solid transparent; }
.thumb-img.active { border-color: var(--brand-secondary); }

/* ---------- Misc ---------- */
.breadcrumb { font-size: .85rem; }
.breadcrumb a { color: var(--text-muted); }
.card { border-radius: 0; }
.form-control, .form-select { border-radius: 0; }
.form-control:focus, .form-select:focus { border-color: var(--brand-secondary); box-shadow: 0 0 0 .2rem rgba(201,162,39,.15); }
.table thead th { text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; }
.alert { border-radius: 0; }
.page-hero { background: #141414; color: #fff; padding: 3.5rem 0; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.badge-status { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: .4em .8em; }
.checkout-step { display: flex; align-items: center; gap: .6rem; }
.checkout-step .step-num {
    width: 30px; height: 30px; border-radius: 50%; background: var(--brand-secondary);
    color: #151515; font-weight: 600; display: inline-flex; align-items: center; justify-content: center;
}
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.empty-state i { font-size: 3.5rem; margin-bottom: 1rem; display: block; }
@media (max-width: 767px) {
    .hero-slide { min-height: 52vh; }
    .quick-add { transform: none; position: static; margin-top: .5rem; }
}
