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

:root {
    /* Color Palette - Modern HSL */
    --primary: hsl(3, 85%, 52%); /* Vibrant Alternativa Red */
    --primary-glow: hsla(3, 85%, 52%, 0.4);
    --secondary: hsl(142, 69%, 45%); /* WhatsApp Green */
    --accent: hsl(45, 100%, 51%); /* Gold */
    
    /* Dark Surface System */
    --bg-dark: hsl(222, 47%, 7%);
    --surface: hsl(222, 47%, 11%);
    --surface-hover: hsl(222, 47%, 15%);
    --surface-glass: hsla(222, 47%, 11%, 0.7);
    
    /* Text */
    --text-main: hsl(210, 40%, 98%);
    --text-muted: hsl(215, 25%, 70%);
    --text-dim: hsl(215, 15%, 50%);
    
    /* Glass & Borders */
    --border-glass: hsla(0, 0%, 100%, 0.08);
    --border-highlight: hsla(0, 0%, 100%, 0.15);
    --glass-blur: 15px;
    
    /* Misc */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow-soft: 0 10px 30px -10px rgba(0,0,0,0.5);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 90px; /* More space for the new floating nav */
}

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Premium Header --- */
header {
    background: var(--surface-glass);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 0;
    transition: var(--transition);
}

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

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    transition: var(--transition);
}

.brand-logo:hover {
    opacity: 1;
}

.logo span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.logo span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-glow);
    z-index: -1;
}

.header-contact .btn-whatsapp {
    display: none;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 8px 15px var(--primary-glow);
}

.header-contact .btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px var(--primary-glow);
}

@media (min-width: 768px) {
    .header-contact .btn-whatsapp { display: flex; }
}

/* --- Hero Section --- */
.hero {
    padding: 4rem 0 2rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Enhanced Search Bar --- */
.search-box {
    margin: 2rem 0;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border-glass);
    color: #fff;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.search-box::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 1.5rem;
    color: var(--text-dim);
    font-size: 1.2rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface-hover);
    box-shadow: 0 0 20px rgba(225, 38, 28, 0.15);
}

/* --- Category Filters --- */
.filters-container {
    padding: 0.5rem 0 2rem;
    display: flex;
    overflow-x: auto;
    gap: 0.6rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    mask-image: linear-gradient(to right, black 85%, transparent);
}

.filters-container::-webkit-scrollbar { display: none; }

.filter-btn {
    flex: 0 0 auto;
    padding: 0.7rem 1.4rem;
    border-radius: 100px;
    background: var(--surface);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-btn:hover {
    background: var(--surface-hover);
    border-color: var(--border-highlight);
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 10px 25px var(--primary-glow);
}

/* --- Product Cards (Modern Grid) --- */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 0 0.5rem;
}

@media (min-width: 576px) {
    .product-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 1.5rem; 
    }
}

@media (min-width: 992px) {
    .product-grid { 
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
        gap: 2rem; 
        padding: 0;
    }
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-highlight);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    background: #fff;
    position: relative;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

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

.product-info {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.product-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
    line-height: 1.3;
}

.product-desc-short {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}

.card-actions {
    margin-top: auto;
    display: flex;
    gap: 0.6rem;
}

.btn-add-cart {
    flex: 1;
    padding: 0.8rem;
    border-radius: var(--radius-md);
    background: hsla(0, 0%, 100%, 0.05);
    border: 1px solid var(--border-glass);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-cart:hover {
    background: hsla(0, 0%, 100%, 0.1);
}

.btn-add-cart.added {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.btn-wa-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border-radius: var(--radius-md);
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}

.btn-wa-icon:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* --- Floating Mobile Navigation --- */
.mobile-nav {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: hsla(222, 47%, 15%, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-highlight);
    border-radius: 100px;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

@media (min-width: 768px) {
    .mobile-nav { display: none; }
}

.nav-item {
    text-align: center;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.nav-item i { font-size: 1.3rem; margin-bottom: 2px; }
.nav-item.active { color: var(--primary); }

.cart-indicator { position: relative; }
.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: #fff;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark);
}

/* --- Interest Sheet (Cart) --- */
.bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-radius: 32px 32px 0 0;
    box-shadow: 0 -20px 50px rgba(0,0,0,0.8);
    z-index: 2000;
    max-height: 85vh;
    transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-glass);
}

.bottom-sheet.open { bottom: 0; }

.sheet-handle {
    width: 60px;
    height: 6px;
    background: var(--border-highlight);
    border-radius: 3px;
    margin: 1.2rem auto;
}

.sheet-header { padding: 0 2rem 1.5rem; }
.sheet-header h3 { font-size: 1.5rem; }

.sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-glass);
}

.cart-item-img {
    width: 70px;
    height: 50px;
    background: #fff;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 700; font-size: 0.95rem; }
.cart-item-remove { color: var(--text-dim); cursor: pointer; border: none; background: none; font-size: 1.1rem; }

.sheet-footer { padding: 2rem; }

@media (min-width: 768px) {
    .bottom-sheet {
        position: fixed;
        right: -450px;
        top: 20px;
        bottom: 20px;
        left: auto;
        width: 400px;
        border-radius: var(--radius-lg);
        max-height: calc(100vh - 40px);
        margin-right: 20px;
        transition: right 0.5s ease;
    }
    .bottom-sheet.open { right: 0; }
    .sheet-handle { display: none; }
}

/* --- Lightbox / Product Details --- */
.lightbox {
    position: fixed;
    inset: 0;
    background: hsla(222, 47%, 3%, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.lightbox:not(.hidden) { opacity: 1; pointer-events: auto; }

.lightbox-content {
    background: var(--surface);
    width: 100%;
    max-width: 900px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-highlight);
    display: grid;
}

@media (min-width: 768px) {
    .lightbox-content { grid-template-columns: 1.2fr 1fr; }
}

.lightbox-img-box {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-img-box img { max-width: 100%; max-height: 500px; object-fit: contain; }
.lightbox-info { padding: 2.5rem; }
.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    border: 1px solid var(--border-glass);
}

/* --- Footer --- */
footer {
    padding: 5rem 0 7rem;
    border-top: 1px solid var(--border-glass);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.footer-text { color: var(--text-dim); margin-top: 0.5rem; }
.footer-credit a { color: var(--primary); text-decoration: none; font-weight: 700; }

/* --- Special Badges --- */
.badge-factory {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: var(--accent);
    color: #000;
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 5;
}

/* --- Animations --- */
[data-aos] {
    transition-duration: 0.8s !important;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.product-card {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
