/* 
    ZANAM — Storefront Design System v4.0
    Premium Artisan Brand | Mobile-First
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;900&display=swap');

/* ═══════════ CSS VARIABLES ═══════════ */
:root {
    --accent-gold:      #D4AF37;
    --accent-gold-dark: #B8860B;
    --dark-text:        #0B0B0B;
    --light-text:       #666666;
    --muted-text:       #999999;
    --primary-bg:       #F9F8F5;
    --white:            #FFFFFF;
    --border-light:     rgba(0,0,0,0.06);
    --shadow-soft:      0 8px 30px rgba(0,0,0,0.06);
    --shadow-premium:   0 24px 60px rgba(0,0,0,0.10);
    --transition:       all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
    --radius-sm:        6px;
    --radius-md:        12px;
    --radius-lg:        20px;
}

/* ═══════════ RESET ═══════════ */
*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-bg);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .brand-font {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ═══════════ SCROLLBAR ═══════════ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--primary-bg); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-gold); }

/* ═══════════ LAYOUT ═══════════ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ═══════════ BUTTONS ═══════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 36px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-gold {
    background: var(--accent-gold);
    color: #000;
    box-shadow: 0 8px 24px rgba(212,175,55,0.25);
}
.btn-gold:hover {
    background: var(--accent-gold-dark);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(212,175,55,0.35);
}

.btn-dark { background: #111; color: #fff; }
.btn-dark:hover { background: #333; transform: translateY(-3px); }

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--accent-gold);
    color: var(--accent-gold);
}
.btn-outline:hover {
    background: var(--accent-gold);
    color: #000;
    transform: translateY(-3px);
}

/* ═══════════ HEADER (base — overridden by includes/header.php inline styles) ═══════════ */
#main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 500;
    padding: 0;
    transition: var(--transition);
}

/* ═══════════ PRODUCT GRID ═══════════ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* Legacy product card (old pages) */
.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}
.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1.05;
    background: #f5f5f5;
}
.product-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23,1,0.32,1);
}
.product-card:hover .product-image img { transform: scale(1.08); }

.card-actions {
    position: absolute;
    top: 14px; right: 14px;
    display: flex; flex-direction: column; gap: 8px;
    opacity: 0; transform: translateX(10px);
    transition: var(--transition);
    z-index: 5;
}
.product-card:hover .card-actions { opacity: 1; transform: translateX(0); }

.action-btn {
    width: 36px; height: 36px;
    background: #fff; color: var(--dark-text);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.88rem;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.action-btn:hover { background: var(--accent-gold); color: #000; }
.action-btn.whatsapp:hover { background: #25D366; color: #fff; }

.product-info { padding: 20px 18px; }
.product-name {
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin-bottom: 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-price {
    color: var(--accent-gold);
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 14px;
}
.buy-btn-sm {
    display: block; width: 100%;
    padding: 11px;
    background: #111; color: #fff;
    font-size: 0.72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: var(--transition);
}
.buy-btn-sm:hover { background: var(--accent-gold); color: #000; }

/* ═══════════ SECTION TITLES ═══════════ */
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.section-title p {
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* ═══════════ ANIMATIONS ═══════════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeInUp 0.8s cubic-bezier(0.23,1,0.32,1) both; }

/* ═══════════ FOOTER ═══════════ */
footer {
    background: #0B0B0B;
    color: rgba(255,255,255,0.55);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-gold);
    letter-spacing: 6px;
    margin-bottom: 16px;
}

.footer-col h4 {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #fff;
    margin-bottom: 24px;
}

.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
    transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--accent-gold); }

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.footer-social a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.95rem;
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #000;
    transform: translateY(-3px);
}

.footer-newsletter {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding-bottom: 12px;
    margin-bottom: 24px;
}
.footer-newsletter input {
    flex: 1;
    background: transparent; border: none;
    color: #fff; outline: none;
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.25); }
.footer-newsletter button {
    background: transparent; border: none;
    color: var(--accent-gold);
    font-weight: 800; font-size: 0.7rem;
    letter-spacing: 1px; text-transform: uppercase;
    cursor: pointer;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p { font-size: 0.72rem; letter-spacing: 1px; }

/* ═══════════ FLOATING WHATSAPP ═══════════ */
.floating-wa {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 56px; height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 28px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition);
}
.floating-wa:hover {
    transform: scale(1.12) translateY(-4px);
    box-shadow: 0 16px 40px rgba(37,211,102,0.5);
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .footer-grid  { grid-template-columns: 1fr; gap: 32px; }
    .container    { padding: 0 4%; }

    .footer-col:not(:first-child) { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 28px; }
    .footer-bottom { justify-content: center; text-align: center; }

    .floating-wa { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .product-grid { gap: 10px; }
    .product-info { padding: 12px 10px; }
    .product-name { font-size: 0.88rem; }
    .product-price { font-size: 0.92rem; }
}
