/* Global CSS variables defining the futuristic Neon Purple & Neon Cyan design system */
:root {
    --primary: #bc3df2; /* Neon Purple / Violet */
    --primary-dark: #8619b0; /* Darker Purple */
    --primary-glow: rgba(188, 61, 242, 0.4);
    
    --accent: #00f0ff; /* Neon Cyber Cyan */
    --accent-dark: #00b8cc; /* Darker Cyan */
    --accent-glow: rgba(0, 240, 255, 0.4);
    
    --bg-darker: #06040d; /* Matte Black Tech Void */
    --bg-dark: #0c0919; /* Midnight Deep Violet */
    --bg-card: #130f26; /* Dark Tech Card background */
    --border-color: #1e183a; /* Circuit Board Borders */
    
    --text-white: #ffffff;
    --text-light: #e5e7eb;
    --text-gray: #9ca3af;
    --text-muted: #4b5563;
    
    --success: #10b981; /* Magic Emerald */
    --danger: #ef4444; /* Blood Red */
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
}

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

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================
   LANDING OVERLAY (HOME)
   ========================================== */
.landing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, rgba(18, 13, 43, 0.7) 0%, rgba(11, 7, 30, 0.95) 100%);
    overflow: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

/* Side Floating Logos styled as glowing digital holograms */
.landing-side-logo {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 250px;
    height: 250px;
    background: url('logo_disfrazate_tech.jpg') no-repeat center center / contain;
    opacity: 0.18;
    filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.5));
    pointer-events: none;
    z-index: 0;
    transition: opacity var(--transition-normal);
}

.landing-side-logo.left-logo {
    left: 8%;
    animation: floatLeftLogo 6s ease-in-out infinite alternate;
}

.landing-side-logo.right-logo {
    right: 8%;
    animation: floatRightLogo 6s ease-in-out infinite alternate;
}

@keyframes floatLeftLogo {
    0% { transform: translateY(-50%) rotate(0deg) scale(1); }
    100% { transform: translateY(-53%) rotate(-3deg) scale(1.05); }
}

@keyframes floatRightLogo {
    0% { transform: translateY(-50%) rotate(0deg) scale(1); }
    100% { transform: translateY(-47%) rotate(3deg) scale(1.05); }
}

@media (max-width: 1024px) {
    .landing-side-logo {
        display: none; /* Hide on smaller screens or mobile to prevent overlap with the central card */
    }
}

.landing-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.landing-bg-glow {
    position: absolute;
    width: 150%;
    height: 150%;
    z-index: 0;
    background: radial-gradient(circle at 30% 30%, rgba(109, 40, 217, 0.25) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    filter: blur(80px);
    animation: pulseGlow 15s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

.landing-content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 550px;
    text-align: center;
}

.landing-card {
    background: rgba(28, 21, 67, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.25);
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    transform: translateY(0);
    transition: transform var(--transition-normal);
}

.magic-icon {
    color: var(--accent);
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.animate-pulse {
    animation: floatIcon 3s ease-in-out infinite alternate;
}

@keyframes floatIcon {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-10px) scale(1.05); }
}

.landing-title {
    font-family: var(--font-header);
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--text-white) 30%, var(--primary) 70%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    text-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.landing-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.landing-card .divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-color), var(--primary), var(--border-color), transparent);
    margin: 25px auto;
    width: 80%;
}

.visitor-counter-box {
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.counter-label {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 2px;
}

/* Flip digit visual counters */
.flip-counter {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.flip-digit {
    background: #080414;
    border: 2px solid var(--border-color);
    color: var(--text-white);
    font-family: var(--font-header);
    font-size: 2.2rem;
    font-weight: 900;
    padding: 8px 16px;
    border-radius: 10px;
    box-shadow: inset 0 -15px 15px rgba(28, 21, 67, 0.4),
                0 4px 10px rgba(0, 0, 0, 0.5);
    min-width: 50px;
    position: relative;
}

.flip-digit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    padding: 16px 36px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-header);
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px var(--primary-glow);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-glow-purple {
    position: relative;
}

.btn-glow-purple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    box-shadow: 0 0 15px var(--primary);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-glow-purple:hover::before {
    opacity: 0.6;
}

.landing-footer-text {
    margin-top: 25px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================
   MAIN HEADER
   ========================================== */
.main-header {
    background-color: var(--bg-dark);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-area .logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-magic {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: var(--text-white);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.logo-text h1 {
    font-family: var(--font-header);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--text-white);
    line-height: 1;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
}

/* Search Bar styling */
.search-area {
    display: flex;
    flex: 1;
    max-width: 500px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-area:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.search-area input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 20px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.search-area input::placeholder {
    color: var(--text-muted);
}

.search-area button {
    background: transparent;
    border: none;
    color: var(--text-gray);
    padding: 0 20px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color var(--transition-fast);
}

.search-area button:hover {
    color: var(--primary);
}

/* Actions in header */
.actions-area {
    display: flex;
    align-items: center;
    gap: 25px;
}

.cart-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.cart-trigger:hover {
    opacity: 0.85;
}

.cart-icon-wrapper {
    position: relative;
    background: var(--bg-card);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    font-size: 1.2rem;
    color: var(--accent);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: var(--text-white);
    font-size: 0.7rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.action-text {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-links {
    display: flex;
    gap: 10px;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.admin-btn:hover {
    background: var(--primary);
    color: var(--text-white);
}

.sales-btn {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent);
}

.sales-btn:hover {
    background: var(--accent);
    color: var(--bg-darker);
}

/* ==========================================
   NAVIGATION MENU
   ========================================== */
.main-nav {
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.nav-link {
    padding: 10px 18px;
    border-radius: 8px;
    font-family: var(--font-header);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-gray);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    background: rgba(139, 92, 246, 0.15);
    color: var(--text-white);
}

.nav-link.active {
    border-bottom: 2px solid var(--primary);
    border-radius: 8px 8px 0 0;
}

.text-accent {
    color: var(--accent) !important;
}

.contact-link {
    color: #f43f5e;
}
.contact-link:hover {
    background: rgba(244, 63, 94, 0.15) !important;
    color: #fff !important;
}

.catalog-link {
    color: #3b82f6;
}
.catalog-link:hover {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #fff !important;
}

/* ==========================================
   DELIVERY MARQUEE BAR
   ========================================== */
.delivery-bar {
    background-color: #0b071e;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    height: 38px;
}

.delivery-badge {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: 0 15px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    border-right: 2px solid var(--border-color);
    font-family: var(--font-header);
    letter-spacing: 0.5px;
    z-index: 10;
}

.delivery-marquee {
    flex: 1;
    color: var(--text-light);
    font-weight: 600;
}

.delivery-marquee span {
    margin-right: 40px;
}

.delivery-marquee .separator {
    color: var(--accent);
    font-weight: bold;
}

/* ==========================================
   HERO BANNER SLIDESHOW (CAROUSEL)
   ========================================== */
.hero-slider-section {
    margin: 30px 0;
}

.slider-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    height: 380px;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform var(--transition-normal);
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 80px;
    background-size: cover;
    background-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(11, 7, 30, 0.9) 0%, rgba(11, 7, 30, 0.4) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.slide-tag {
    background: var(--accent);
    color: var(--bg-darker);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide-content h2 {
    font-family: var(--font-header);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text-white);
    margin-top: 15px;
    line-height: 1.1;
}

.slide-content p {
    color: var(--text-gray);
    margin: 15px 0 25px 0;
    font-size: 1.05rem;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--primary);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Background image presets for demo slides */
.bg-slide-1 {
    background-image: url('https://images.unsplash.com/photo-1513151233558-d860c5398176?q=80&w=1200&auto=format&fit=crop');
}
.bg-slide-2 {
    background-image: url('https://images.unsplash.com/photo-1549465220-1a8b9238cd48?q=80&w=1200&auto=format&fit=crop');
}
.bg-slide-3 {
    background-image: url('https://images.unsplash.com/photo-1514894780887-121968d00567?q=80&w=1200&auto=format&fit=crop');
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(18, 13, 43, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.slider-arrow:hover {
    background: var(--primary);
    color: var(--text-white);
}

.arrow-prev { left: 20px; }
.arrow-next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background var(--transition-fast), width var(--transition-fast);
}

.slider-dots .dot.active {
    background: var(--primary);
    width: 25px;
    border-radius: 5px;
}

/* ==========================================
   PRODUCTS GRID & CONTROLS
   ========================================== */
.products-section {
    margin-top: 40px;
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title {
    font-family: var(--font-header);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--text-white);
}

.controls-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.controls-area select {
    background: var(--bg-card);
    color: var(--text-white);
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    font-weight: 600;
}

/* Responsive grid layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

/* Premium Product Card Styles */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 10px 25px rgba(11, 7, 30, 0.6),
                0 0 15px rgba(139, 92, 246, 0.15);
}

.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: var(--bg-dark);
    overflow: hidden;
}

.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.mini-logo-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(11, 7, 30, 0.7);
    color: var(--accent);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.1);
}

.product-info-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rebaja-badge {
    align-self: flex-start;
    background: var(--danger);
    color: var(--text-white);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.brand-title {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 4px;
}

.product-title {
    font-family: var(--font-header);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6rem;
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.8rem;
}

.stars {
    color: #eab308;
}

.rating-score {
    color: var(--text-gray);
    font-weight: bold;
}

.rating-reviews {
    color: var(--text-muted);
}

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

.main-price {
    font-family: var(--font-header);
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--text-white);
}

.old-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    font-size: 0.8rem;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
}

.savings-badge {
    color: var(--success);
    font-weight: bold;
}

.action-container {
    margin-top: auto;
}

.form-group-qty-flavor {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.qty-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-row label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-gray);
}

.product-qty {
    width: 60px;
    background: var(--bg-dark);
    color: var(--text-white);
    border: 1px solid var(--border-color);
    padding: 5px 8px;
    border-radius: 4px;
    outline: none;
    font-weight: bold;
    text-align: center;
}

.product-flavor, .product-size {
    width: 100%;
    background: var(--bg-dark);
    color: var(--text-white);
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 4px;
    outline: none;
    font-size: 0.8rem;
}

.fb-blue-btn {
    width: 100%;
    background: var(--primary);
    color: var(--text-white);
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background var(--transition-fast);
}

.fb-blue-btn:hover {
    background: var(--primary-dark);
}

/* ==========================================
   PAGINATION CONTROLS
   ========================================== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.btn-page {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.btn-page:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-page:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-info {
    font-weight: 700;
    color: var(--text-gray);
}

/* ==========================================
   VISUAL CATALOG SECTION (PDF/EXCEL VIEWERS)
   ========================================== */
.visual-catalog-section {
    margin: 50px 0;
}

.catalog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.catalog-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.catalog-info h2 {
    font-family: var(--font-header);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 12px;
}

.catalog-info p {
    color: var(--text-gray);
    margin-bottom: 25px;
}

.catalog-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn-catalog {
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-catalog:hover {
    transform: translateY(-2px);
}

.excel-btn {
    background-color: #16a34a; /* Excel Green */
    color: var(--text-white);
}
.excel-btn:hover {
    background-color: #15803d;
}

.pdf-btn {
    background-color: var(--primary);
    color: var(--text-white);
}
.pdf-btn:hover {
    background-color: var(--primary-dark);
}

.catalog-preview-box {
    margin-top: 30px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-darker);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.preview-header {
    background: var(--bg-dark);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.preview-header h3 {
    font-family: var(--font-header);
    font-size: 1rem;
    font-weight: 700;
}

.btn-close-preview {
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 1.1rem;
}

.preview-iframe-wrapper {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-pdf-mock {
    text-align: center;
    padding: 40px;
}

.catalog-pdf-mock h3 {
    margin-top: 15px;
    font-size: 1.2rem;
    color: var(--text-white);
}

.catalog-pdf-mock p {
    color: var(--text-gray);
    margin: 5px 0 15px 0;
}

.mock-badge {
    display: inline-block;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

/* ==========================================
   MODAL DIALOG LAYOUT SYSTEM
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 4, 20, 0.85);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(1);
    transition: transform var(--transition-normal);
}

.modal-overlay.hidden .modal-card {
    transform: scale(0.9);
}

.cart-modal-card {
    max-width: 600px;
}

.modal-header {
    background: var(--bg-dark);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-family: var(--font-header);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text-white);
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 1.3rem;
    transition: color var(--transition-fast);
}

.btn-close-modal:hover {
    color: var(--danger);
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
}

/* Cart Body Modals */
.cart-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: calc(90vh - 80px);
}

.cart-items-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    min-height: 120px;
    max-height: 250px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.cart-item-info h4 {
    font-family: var(--font-header);
    font-size: 0.95rem;
    color: var(--text-white);
}

.cart-item-info p {
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: 2px;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    transition: color var(--transition-fast);
}

.cart-item-remove:hover {
    color: var(--danger);
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
    font-weight: bold;
}

.cart-totals {
    padding: 20px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--text-gray);
}

.total-highlight {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-white);
    border-top: 1px dashed var(--border-color);
    margin-top: 10px;
    padding-top: 10px;
}

/* Checkout Form elements */
.checkout-form {
    padding: 20px;
    overflow-y: auto;
    max-height: 350px;
}

.checkout-form h3 {
    font-family: var(--font-header);
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.checkout-form label {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--text-gray);
}

.checkout-form input, .checkout-form select {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 10px 15px;
    border-radius: 8px;
    outline: none;
    font-size: 0.9rem;
    width: 100%;
}

.checkout-form input:focus, .checkout-form select:focus {
    border-color: var(--primary);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.75rem !important;
    color: var(--text-gray);
    margin-bottom: 20px;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
    margin-top: 3px;
}

.btn-checkout {
    width: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--bg-darker);
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-header);
    font-weight: 900;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.restricted-hours-notice {
    color: var(--danger);
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    margin-top: 12px;
}

/* Custom Pack Modals */
.custom-pack-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    text-align: center;
}

.custom-pack-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.pack-option-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 10px;
}

.pack-option-row span {
    font-weight: bold;
    font-size: 0.9rem;
}

.qty-counter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-counter .qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card);
    color: var(--text-white);
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.qty-counter .qty-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.qty-counter input {
    width: 35px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-weight: bold;
    font-size: 1rem;
}

.custom-pack-summary {
    background: var(--bg-dark);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    border: 1px solid var(--border-color);
}

.custom-pack-summary strong {
    color: var(--accent);
}

.btn-block {
    width: 100%;
}

/* Contact Modal classes */
.contact-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-methods p {
    margin-bottom: 12px;
}

.contact-methods i {
    width: 24px;
}

.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

.contact-form-wrapper {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form-wrapper h3 {
    font-family: var(--font-header);
    font-size: 1.05rem;
    color: var(--accent);
}

.contact-form-wrapper input, .contact-form-wrapper textarea {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 8px 12px;
    border-radius: 6px;
    outline: none;
    font-size: 0.85rem;
}

/* Admin Dashboard Specific Styles */
.pedidos-container {
    padding: 40px 0;
    min-height: 70vh;
}

.pedidos-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.pedidos-table th, .pedidos-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.pedidos-table th {
    background: var(--bg-dark);
    font-family: var(--font-header);
    color: var(--accent);
    font-weight: 800;
}

.pedidos-table td {
    color: var(--text-light);
}

.pedidos-table tr:hover {
    background: rgba(139, 92, 246, 0.05);
}

.btn-despachar {
    background: var(--success);
    color: var(--text-white);
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity var(--transition-fast);
}

.btn-despachar:hover {
    opacity: 0.9;
}

/* Statistics Grid for Sales Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border-bottom: 4px solid var(--primary);
}

.stat-card:nth-child(even) {
    border-bottom-color: var(--accent);
}

.stat-card h3 {
    font-size: 0.8rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-card .value {
    font-family: var(--font-header);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-white);
}

.login-error-msg {
    color: var(--danger);
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

/* ==========================================
   FOOTER STYLE
   ========================================== */
.main-footer {
    background: #080414;
    border-top: 2px solid var(--border-color);
    padding: 60px 0 20px 0;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.col-brand h2 {
    font-family: var(--font-header);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--text-white);
    margin-bottom: 15px;
}

.col-brand p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    background: var(--bg-card);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.social-icons a:hover {
    background: var(--primary);
    color: var(--text-white);
}

.footer-col h3 {
    font-family: var(--font-header);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-white);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-col p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-col p i {
    color: var(--accent);
    margin-right: 8px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================
   FLOATING BUTTONS
   ========================================== */
.whatsapp-btn-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9998;
    transition: transform var(--transition-fast);
}

.whatsapp-btn-float:hover {
    transform: scale(1.1);
}

.audio-container {
    display: none;
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES (MOBILE-FIRST)
   ========================================== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .slide-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-area {
        max-width: 100%;
        margin: 10px 0;
        order: 3;
    }
    
    .actions-area {
        justify-content: space-between;
        width: 100%;
    }
    
    .hero-slider-section {
        margin: 15px 0;
    }
    
    .slider-wrapper {
        height: 280px;
    }
    
    .slide {
        padding: 0 30px;
    }
    
    .slide-content h2 {
        font-size: 1.8rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
        margin: 10px 0 15px 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .product-title {
        font-size: 0.95rem;
        height: 2.4rem;
    }
    
    .main-price {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .landing-title {
        font-size: 2.6rem;
    }
    .landing-card {
        padding: 30px 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .modal-card {
        width: 95%;
    }
    .flip-digit {
        font-size: 1.7rem;
        padding: 6px 12px;
        min-width: 40px;
    }
}
