/* ── errege — Base Styles ─────────────────────────────── */

:root {
    --dark: #1A1614;
    --accent: #C8956C;
    --light: #F7F3ED;
    --muted: #9B8E7E;
    --bg: #FDFBF8;
    --border: #E8E2DA;
    --font: 'Outfit', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}


/* ── Navigation ──────────────────────────────────────── */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--dark);
    border-bottom: 1px solid rgba(247, 243, 237, 0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    color: var(--light);
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}
.nav-logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--light);
    opacity: 0.7;
    transition: opacity 0.2s;
}
.nav-link:hover {
    opacity: 1;
}

.nav-cart {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--accent);
    color: var(--dark);
    font-size: 10px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ── Layout ──────────────────────────────────────────── */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-dark {
    background: var(--dark);
    color: var(--light);
}

.section-light {
    background: var(--bg);
    color: var(--dark);
}


/* ── Hero Carousel ────────────────────────────────────── */

.hero-carousel {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(3px);
    transform: scale(1.05);
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 22, 20, 0.65);
    z-index: 1;
}

.hero-carousel .hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 80px 24px;
}

/* ── Hero (static fallback) ──────────────────────────── */

.hero {
    background: var(--dark);
    color: var(--light);
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
}

.hero-compact {
    min-height: auto;
    padding: 48px 24px;
}

.hero-content {
    max-width: 600px;
}

.hero-logo {
    margin: 0 auto 48px;
}

.hero-tagline {
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 48px;
}

.hero-cta {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--light);
    border: 1px solid var(--accent);
    padding: 14px 40px;
    transition: background 0.2s, color 0.2s;
}
.hero-cta:hover {
    background: var(--accent);
    color: var(--dark);
}


/* ── Section Headers ─────────────────────────────────── */

.section-header {
    margin-bottom: 48px;
}

.section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 15px;
    font-weight: 300;
    color: var(--muted);
    margin-top: 8px;
    max-width: 480px;
}


/* ── Product Grid ────────────────────────────────────── */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    display: block;
    transition: transform 0.2s;
}
.product-card:hover {
    transform: translateY(-2px);
}

.product-image {
    aspect-ratio: 3 / 4;
    background: var(--light);
    overflow: hidden;
    margin-bottom: 16px;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image-placeholder svg {
    opacity: 0.15;
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.product-price {
    font-size: 14px;
    font-weight: 300;
    color: var(--muted);
    white-space: nowrap;
}


/* ── Product Detail ──────────────────────────────────── */

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding: 64px 0;
}

.product-gallery {
    aspect-ratio: 3 / 4;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

.product-detail-name {
    font-size: 28px;
    font-weight: 600;
}

.product-detail-price {
    font-size: 20px;
    font-weight: 300;
    color: var(--muted);
}

.product-detail-description {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--dark);
    opacity: 0.8;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 16px 40px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
    background: var(--dark);
    color: var(--light);
    border: 1px solid var(--dark);
}
.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--dark);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}


/* ── Cart ────────────────────────────────────────────── */

.cart-empty {
    text-align: center;
    padding: 120px 24px;
}

.cart-empty-text {
    font-size: 15px;
    font-weight: 300;
    color: var(--muted);
    margin-bottom: 32px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    text-align: left;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--border);
}

.cart-table td {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 300;
    vertical-align: middle;
}

.cart-item-name {
    font-weight: 500;
}

.cart-item-remove {
    font-size: 12px;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s;
}
.cart-item-remove:hover {
    color: var(--accent);
}

.cart-summary {
    margin-top: 48px;
    display: flex;
    justify-content: flex-end;
}

.cart-summary-inner {
    width: 320px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 20px 0;
    border-top: 1px solid var(--dark);
    font-size: 16px;
    font-weight: 500;
}

.cart-total-amount {
    font-size: 20px;
    font-weight: 600;
}


/* ── Checkout ────────────────────────────────────────── */

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 64px;
    padding: 64px 0;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 300;
    color: var(--dark);
    background: var(--bg);
    border: 1px solid var(--border);
    outline: none;
    transition: border-color 0.2s;
}
.form-input:focus {
    border-color: var(--accent);
}

.form-input::placeholder {
    color: var(--muted);
    opacity: 0.5;
}


/* ── Brand Strip ─────────────────────────────────────── */

.brand-strip {
    background: var(--dark);
    color: var(--light);
    padding: 80px 24px;
    text-align: center;
}

.brand-strip-text {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.8;
}


/* ── Footer ──────────────────────────────────────────── */

.footer {
    background: var(--dark);
    border-top: 1px solid rgba(247, 243, 237, 0.06);
    padding: 48px 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    opacity: 0.5;
}

.footer-links {
    display: flex;
    gap: 32px;
}
.footer-links a {
    font-size: 13px;
    font-weight: 400;
    color: var(--light);
    opacity: 0.5;
    transition: opacity 0.2s;
}
.footer-links a:hover {
    opacity: 1;
}

.footer-copy {
    font-size: 11px;
    font-weight: 400;
    color: var(--light);
    opacity: 0.25;
    letter-spacing: 1px;
}


/* ── WhatsApp Button ─────────────────────────────────── */

.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    width: 52px;
    height: 52px;
    background: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.whatsapp-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}


/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
        padding: 60px 24px;
    }

    .hero-logo svg {
        width: 200px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 0;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 0;
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .section {
        padding: 48px 0;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .nav-inner {
        padding: 0 16px;
    }

    .container {
        padding: 0 16px;
    }
}
