:root {
    /* Brand Colors */
    --patinep-yellow: #fcc425;
    --patinep-purple: #6666cc;
    --dark-bg: #111111;
    --dark-card: #1a1a1a;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --accent-red: #e74c3c;
    /* Sale/Action */

    /* Motochefe-inspired Structural Vars */
    --header-height: 80px;
    --container-width: 1280px;
    --border-radius: 4px;
    /* More squared/robust look */

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    /* Clean, bold */
    --font-body: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 85px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.5;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TOP BAR ===== */


/* ===== NAVBAR ===== */
.navbar {
    height: var(--header-height);
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.navbar .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand img {
    height: 50px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--patinep-yellow);
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-search {
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    font-size: 18px;
}

.btn-cta {
    background-color: var(--patinep-yellow);
    color: #000;
    padding: 10px 24px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: var(--border-radius);
    text-transform: uppercase;
    font-size: 13px;
    transition: transform 0.2s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(252, 196, 37, 0.4);
}

/* ===== HERO SLIDER ===== */
.hero {
    position: relative;
    height: 600px;
    background: #000;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 100%);
    padding: 60px;
    border-left: 5px solid var(--patinep-yellow);
    max-width: 600px;
    margin-left: 10%;
    /* Offset content */
    position: relative;
    z-index: 2;
}

.slide-tag {
    color: var(--patinep-yellow);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
    letter-spacing: 2px;
}

.slide h1 {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    margin-bottom: 20px;
    line-height: 1.1;
}

.slide p {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* ===== CATEGORY ICONS ===== */
.categories-bar {
    background: var(--dark-card);
    padding: 40px 0;
    border-bottom: 1px solid #333;
}

.cat-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    text-align: center;
}

.cat-item {
    text-decoration: none;
    color: var(--text-white);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cat-item:hover {
    transform: translateY(-5px);
}

.cat-icon {
    width: 80px;
    height: 80px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 15px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.cat-item:hover .cat-icon {
    border-color: var(--patinep-yellow);
    background: rgba(252, 196, 37, 0.1);
}

.cat-item span {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

/* ===== SHOWCASE HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title span {
    color: var(--patinep-yellow);
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* ===== PRODUCT GRID ===== */
.products-section {
    padding: 80px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--dark-card);
    border: 1px solid #333;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--patinep-purple);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--patinep-purple);
    color: white;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
    z-index: 10;
}

.product-image {
    height: 250px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    /* Placeholder icon size */
    overflow: hidden;
    cursor: pointer;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
    text-align: center;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.product-specs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-gray);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-price {
    margin-bottom: 20px;
}

.price-val {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--patinep-yellow);
}

.price-installment {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.btn-buy {
    display: block;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid var(--text-white);
    color: var(--text-white);
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s;
}

.product-card:hover .btn-buy {
    background: var(--text-white);
    color: #000;
}

/* ===== BANNER STRIP ===== */
.promo-strip {
    background: var(--patinep-purple);
    padding: 60px 0;
    text-align: center;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: left;
}

.promo-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.promo-icon {
    font-size: 40px;
    color: var(--patinep-yellow);
}

.promo-text h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* ===== FOOTER ===== */
footer {
    background: #0a0a0a;
    padding: 80px 0 20px;
    border-top: 5px solid var(--patinep-yellow);
}

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

.footer-col h3 {
    color: var(--text-white);
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    color: var(--text-gray);
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--patinep-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #222;
    color: #555;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .promo-grid {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .promo-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 500px;
    }

    .slide-content {
        margin: 0;
        width: 100%;
        max-width: none;
        background: rgba(0, 0, 0, 0.7);
        padding: 30px;
    }

    .slide h1 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cat-grid {
        flex-wrap: wrap;
        gap: 30px;
    }
}

/* ===== ZAP.JS MODAL OVERRIDE ===== */
/* Centering the modal */
div.box[class*="svelte-"] {
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
    z-index: 10001 !important;
    /* Above backdrop */
    width: 90% !important;
    max-width: 400px !important;
}

/* Hide the floating button when modal is open if desired, 
   but usually better to keep it or let JS handle state. 
   We will treat the modal as a standalone popup. */

/* Custom Backdrop for Zap Modal */
#zap-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    /* Behind modal, above everything else */
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#zap-backdrop.active {
    display: block;
    opacity: 1;
}