/* css/style.css */

/* =========================================
   GLOBAL STYLES & VARIABLES
   ========================================= */
:root {
    /* Colors - Light Theme Pivot */
    --primary: #00e5ff;
    /* Cyan */
    --primary-hover: #00b8cc;
    --secondary: #9c27b0;
    /* Purple */
    --background: #ffffff;
    /* White */
    --surface: #f8f9fa;
    /* Light gray */
    --surface-hover: #e9ecef;
    --text: #333333;
    /* Dark text */
    --text-secondary: #666666;
    --border: #e0e0e0;

    /* Spacing */
    --container-width: 1400px;
    --header-height: 80px;

    /* Effects */
    --glow: 0 0 10px rgba(0, 0, 0, 0.1);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-logo: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
    background-color: var(--background);
    color: var(--text);
    font-family: var(--font-main);
    scroll-behavior: smooth;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    /* Push footer down */
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* =========================================
   NAVBAR STYLES
   ========================================= */
/* =========================================
   HEADER & NAVBAR STYLES
   ========================================= */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* --- Top Bar --- */
.header-top {
    border-bottom: 1px solid #eee;
    background: #fff;
    padding: 15px 0;
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* Logo "AbisCorp" with blocks */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.logo-main {
    display: flex;
    gap: 2px;
}

.logo-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--secondary);
    /* Purple */
    color: white;
    font-weight: 800;
    font-size: 14px;
    border-radius: 3px;
    font-family: 'Outfit', sans-serif;
}

.logo-letter.primary {
    background-color: var(--primary);
    /* Cyan/Blue */
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    border: 2px solid var(--secondary);
    border-radius: 4px;
    /* overflow: hidden; Removed to allow dropdown to show */
}

.search-category {
    background: #f8f9fa;
    border: none;
    padding: 10px 15px;
    font-size: 0.9rem;
    color: #555;
    border-right: 1px solid #ddd;
    outline: none;
    cursor: pointer;
}

.search-input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    font-size: 0.95rem;
    outline: none;
}

.search-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 10px 25px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #7b1fa2;
}

/* Search Dropdown Styles */
.search-bar {
    position: relative;
    /* Ensure relative positioning for absolute dropdown */
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    transition: background 0.1s;
    background: white;
    /* Ensure visible background */
}

.search-item:hover {
    background: #f5f5f5;
}

.search-item img {
    width: 50px !important;
    /* Force small size */
    height: 50px !important;
    object-fit: contain;
    margin-right: 15px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #eee;
    padding: 2px;
}

.search-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-name {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 3px;
    line-height: 1.2;
    color: #333;
}

.search-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary);
}

/* Header Actions (Support, Account, Cart) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.support-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
}

.support-icon {
    font-size: 1.8rem;
}

.support-text span {
    display: block;
    font-size: 0.75rem;
    color: #888;
}

.support-text strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
}

.action-icon {
    font-size: 1.5rem;
}

.action-text {
    display: flex;
    flex-direction: column;
}

.action-label {
    font-size: 0.75rem;
    color: #888;
}

.action-value {
    font-size: 0.95rem;
    font-weight: 700;
}

/* Cart Badge specifically */
.cart-icon-wrapper {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--secondary);
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* --- Bottom Nav Bar --- */
.header-bottom {
    border-bottom: 1px solid #eee;
    background: #fff;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    gap: 20px;
    /* Add gap for spacing */
}

/* Category Dropdown */
.category-wrapper {
    position: relative;
    height: 100%;
}

.category-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--secondary);
    cursor: pointer;
    height: 100%;
    padding-right: 20px;
    border-right: 1px solid #eee;
}

.category-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    border-top: 3px solid var(--secondary);
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1100;
}

.category-wrapper:hover .category-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.category-menu li {
    border-bottom: 1px solid #f5f5f5;
}

.category-menu li a {
    display: block;
    padding: 12px 20px;
    color: #444;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    text-transform: uppercase;
}

.category-menu li a:hover {
    background: #f9f9f9;
    color: var(--secondary);
    padding-left: 25px;
}

.main-nav {
    display: flex;
    gap: 30px;
    height: 100%;
    flex: 1;
    /* Take available space */
    justify-content: center;
    /* Center the links */
}

.nav-link {
    display: flex;
    align-items: center;
    height: 100%;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    position: relative;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--secondary);
}

.nav-link.active {
    color: var(--secondary);
    border-bottom: 2px solid var(--secondary);
}

/* Offers Badge */
.offers-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #333;
}

.offers-badge {
    background: #ff3d00;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
}


/* --- Mobile Responsiveness --- */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 968px) {
    .header-top {
        padding: 10px 0;
    }

    .search-bar {
        display: none;
        /* Hide for now on small screens or move to new row */
    }

    .support-info,
    .action-label,
    .action-value {
        display: none;
    }

    .action-item {
        gap: 0;
    }

    .header-bottom {
        display: none;
        /* Hide second row on mobile for simplicity or create mobile menu */
    }

    .mobile-toggle {
        display: block;
    }

    /* Simplified Mobile Header */
    .header-container {
        gap: 15px;
    }
}

/* =========================================
   HOME HERO STYLES
   ========================================= */
.home-hero {
    position: relative;
    width: 100%;
    height: 700px;
    background: linear-gradient(135deg, #e0e0e0 0%, #a0aec0 50%, #4a5568 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 40%, rgba(88, 77, 102, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    width: 100%;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.text-content {
    animation: fadeIn 0.8s ease-out;
}

.tagline {
    color: #00bcd4;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.title-main {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 0.9;
    color: white;
    margin-bottom: 25px;
    text-transform: uppercase;
    opacity: 0.9;
    letter-spacing: -2px;
}

/* Cleaner Electric Text Effect */
.purple-text {
    background: linear-gradient(90deg, #d500f9 0%, #ff4081 25%, #fff 50%, #ff4081 75%, #d500f9 100%);
    background-size: 200% auto;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    animation: shine 4s linear infinite;
    text-shadow: 0 0 40px rgba(213, 0, 249, 0.3);
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.description {
    color: #4a5568;
    max-width: 550px;
    line-height: 1.7;
    margin-bottom: 40px;
    font-size: 1.15rem;
    font-weight: 500;
}

.buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: #000;
    color: #fff;
    font-weight: 700;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: transparent;
    color: #333;
    border: 2px solid #333;
    font-weight: 700;
    padding: 18px 40px;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: #222;
}

.btn-secondary:hover {
    background: #333;
    color: white;
}

.visual-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 500px;
}

.glass-card {
    position: relative;
    width: 600px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, transparent 70%);
    z-index: 0;
    animation: pulse-glow 3s infinite alternate;
}

.carousel-image {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 550px;
    height: auto;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.4));
    transition: opacity 0.5s ease-in-out, transform 0.5s ease;
    animation: float 6s ease-in-out infinite;
}

.card-info {
    position: absolute;
    bottom: -20px;
    right: 0;
    z-index: 3;
    text-align: right;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.card-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    color: #111;
    letter-spacing: -1px;
}

.card-status {
    color: #d500f9;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes pulse-glow {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

@media (max-width: 968px) {
    .home-hero {
        flex-direction: column;
        padding: 60px 20px;
        text-align: center;
        justify-content: center;
        height: auto;
        min-height: 100vh;
        /* Use min-height */
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        width: 100%;
    }

    .text-content {
        order: 1;
        /* Text first */
    }

    .tagline {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .title-main {
        font-size: 2.5rem;
        line-height: 1.1;
        word-wrap: break-word;
        /* Prevent overflow */
    }

    .buttons {
        justify-content: center;
        flex-direction: column;
        /* Stack buttons on very small screens */
        gap: 15px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        /* Full width buttons */
    }

    .visual-content {
        width: 100%;
        height: auto;
        min-height: 300px;
        order: 2;
        /* Image second */
        display: flex;
        justify-content: center;
        overflow: hidden;
        /* Safety */
    }

    .glass-card {
        width: 100%;
        max-width: 350px;
        /* Limit width on mobile */
        height: auto;
        aspect-ratio: 1/1;
        /* Keep it square-ish */
    }

    .carousel-image {
        max-width: 100%;
        /* Ensure image fits */
        height: auto;
    }

    .card-info {
        padding: 10px 15px;
        bottom: 0;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .hero-overlay {
        /* Ensure overlay covers everything */
    }
}


/* =========================================
   FEATURED PRODUCTS & PRODUCT CARD
   ========================================= */
.product-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #111;
    font-weight: 800;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.image-container {
    height: 200px;
    position: relative;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-weight: bold;
    font-size: 1.5rem;
    background: linear-gradient(45deg, #f3f3f3 25%, #fff 25%, #fff 50%, #f3f3f3 50%, #f3f3f3 75%, #fff 75%, #fff 100%);
    background-size: 20px 20px;
}

.product-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rating {
    color: #ffc107;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 15px;
}

.add-button {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    font-weight: 600;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all 0.2s;
    cursor: pointer;
}

.add-button:hover {
    background: var(--secondary);
    color: white;
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services-section {
    padding: 80px 0;
    background-color: var(--surface);
}

.services-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--background);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s, border-color 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

.service-title {
    color: var(--text);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-section {
    padding: 100px 0;
    background-color: var(--background);
}

.about-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-label {
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.about-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    line-height: 1.2;
}

.about-paragraph {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.about-btn {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary);
    font-weight: 600;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
    transition: all 0.2s;
}

.about-btn:hover {
    color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.about-image-placeholder {
    width: 100%;
    height: 400px;
    background: #151515;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.tech-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.about-image-placeholder span {
    z-index: 2;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-secondary);
    letter-spacing: 4px;
}

@media (max-width: 868px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-placeholder {
        height: 300px;
        order: -1;
    }
}

/* =========================================
   FOOTER STYLES
   ========================================= */
.footer {
    background-color: white;
    color: #333;
    border-top: 1px solid #eee;
}

.trust-strip {
    display: flex;
    justify-content: space-around;
    padding: 40px 20px;
    border-bottom: 1px solid #eee;
    max-width: var(--container-width);
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trust-icon {
    font-size: 2.5rem;
    color: var(--secondary);
}

.trust-item h4 {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: #000;
}

.trust-item p {
    font-size: 0.85rem;
    color: #666;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-column h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #000;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column ul li a {
    font-size: 0.9rem;
    color: #555;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: var(--secondary);
}

.book-reclamaciones {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    border: 2px solid var(--secondary);
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-flex;
    cursor: pointer;
}

.book-icon {
    font-size: 2rem;
}

.book-reclamaciones div {
    display: flex;
    flex-direction: column;
}

.book-reclamaciones strong {
    font-size: 0.8rem;
    line-height: 1.2;
}

.book-reclamaciones small {
    font-size: 0.7rem;
    color: var(--secondary);
    font-weight: 700;
}

.bottom-bar {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: #888;
}

.payment-methods {
    display: flex;
    gap: 10px;
}

.pay-icon {
    width: 40px;
    height: 25px;
    border-radius: 4px;
    color: white;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

@media (max-width: 768px) {
    .trust-strip {
        flex-direction: column;
        align-items: flex-start;
    }

    .bottom-bar {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================
   PRODUCTS PAGE STYLES (Sidebar & Grid)
   ========================================= */
.products-layout {
    display: flex;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 50px 20px 60px 20px;
    gap: 40px;
}

.products-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.products-main {
    flex: 1;
}

/* Sidebar Sections */
.filter-group {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text);
    text-transform: uppercase;
}

/* Checkbox Style List */
.filter-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
}

.filter-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.filter-item:hover {
    color: var(--secondary);
}

/* Price Range specific if needed, for now just checkboxes as per screenshot usually */

/* Specific to Categories in Sidebar */
.category-tree ul {
    margin-left: 15px;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Product Grid Adjustments for this layout */
.products-main .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.products-main .section-title-wrapper {
    text-align: left;
    /* Align title left in this layout */
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.products-main .section-title {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.sort-options {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
}

.sort-options select {
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 4px;
    color: #333;
}

@media (max-width: 968px) {
    .products-layout {
        flex-direction: column;
    }

    .products-sidebar {
        width: 100%;
        border-bottom: 1px solid #eee;
        margin-bottom: 30px;
    }

    .products-main .section-title-wrapper {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* --- Brands Page Styles --- */
.brands-hero {
    position: relative;
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    /* Overlay darker */
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.6);
    margin-bottom: 20px;
}

.brands-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.brands-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.brands-title {
    font-size: 4rem;
    font-weight: 900;
    color: #c026d3;
    /* Fuchsia/Purple */
    font-style: italic;
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.1);
}

.brands-tagline {
    background-color: #a21CAF;
    /* Purple button color */
    color: white;
    padding: 8px 30px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-top: 10px;
}

.brands-number {
    margin-top: 20px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    position: relative;
}

.brands-number::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background: white;
    vertical-align: middle;
    margin-right: 10px;
}

/* Breadcrumb */
.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb-container a {
    color: #999;
    text-decoration: none;
}

.breadcrumb-container .separator {
    margin: 0 5px;
}

.breadcrumb-container .current {
    color: #333;
    font-weight: 600;
}

/* Brands Grid */
.brands-section {
    max-width: 1200px;
    margin: 40px auto 80px auto;
    padding: 0 20px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border: 1px solid #ddd;
}

.brand-item {
    height: 120px;
    border: 1px solid #eee;
    /* Inner borders */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: -1px 0 0 -1px;
    /* Collapse borders */
}

.brand-item:hover {
    z-index: 10;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
    background-color: #fff;
    border-color: transparent;
}

.brand-item img {
    max-width: 100%;
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    display: block;
    /* Hidden by onerror if fails */
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.brand-text {
    display: none;
    /* Hidden by default if img exists */
    font-weight: 700;
    color: #ccc;
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
}

.brand-item:hover .brand-text {
    color: #333;
}

/* Responsive */
@media (max-width: 900px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brands-title {
        font-size: 3rem;
    }
}

/* --- Contact Page Styles --- */
.contact-page-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.contact-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* Info takes less space than form */
    gap: 60px;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.1;
    color: #000;
}

.contact-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 0.95rem;
    color: #333;
}

.contact-address {
    margin-bottom: 10px;
    line-height: 1.6;
}

.contact-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #333;
    align-self: flex-start;
}

.contact-link.phone {
    border-bottom: none;
    font-weight: 800;
    margin-top: 5px;
}

.contact-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    border-radius: 50%;
    color: #555;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: background 0.3s;
}

.social-icon:hover {
    background: var(--secondary);
    color: white;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background-color: #f5f5f5;
    /* Light gray background */
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

.contact-submit-btn {
    background-color: #000;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    align-self: flex-start;
    text-transform: uppercase;
    margin-top: 10px;
}

.contact-submit-btn:hover {
    background-color: #333;
}

/* Map Section */
.contact-map-section {
    width: 100%;
    margin-top: 60px;
}

.contact-map-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (max-width: 900px) {
    .contact-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* --- Login Dropdown Styles --- */
.account-dropdown-wrapper {
    position: relative;
    z-index: 10000;
}

.login-dropdown {
    display: none;
    /* Hidden by default */
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 15px;
    width: 380px;
    background: white;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 30px;
    z-index: 10001;
    border-top: 3px solid #f3f3f3;
    /* Subtle top border */
}

.login-dropdown.active {
    display: block;
}

/* Arrow indicator */
.login-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 60px;
    /* Align with user icon roughly */
    width: 20px;
    height: 20px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.form-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
}

.form-group input:focus {
    border-color: var(--secondary);
    outline: none;
}

.login-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.login-submit-btn {
    background-color: #A944C3;
    /* Purple matching design */
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
}

.login-submit-btn:hover {
    background-color: #8e37a5;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
}

.login-footer {
    display: flex;
    justify-content: flex-start;
    /* Left aligned as per image */
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    font-size: 0.95rem;
    color: #333;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.create-account-link {
    color: #A944C3;
    text-decoration: none;
    font-weight: 600;
}

.create-account-link:hover {
    text-decoration: underline;
}

.login-dropdown {
    width: 300px;
    right: -50px;
    /* Adjust for mobile if needed */
}
}

/* --- Registration Page Styles --- */
.register-page-container {
    width: 100%;
    min-height: calc(100vh - 200px);
    /* Fill remaining height (header+footer approx) */
    background-color: #f9f9f9;
    /* Light background for the page section */
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Vertical Center */
}

.register-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    /* Force centering if flex fails */
}

.register-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-align: center;
    color: #333;
}

.register-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.register-subtitle a {
    color: #A944C3;
    font-weight: 700;
    text-decoration: none;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.register-form select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    background-color: white;
    width: 100%;
}

.register-form select:focus {
    border-color: var(--secondary);
    outline: none;
}

.register-submit-btn {
    background-color: #A944C3;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 10px;
    width: 100%;
}

.register-submit-btn:hover {
    background-color: #8e37a5;
}

/* --- User Dashboard Dropdown --- */
/* --- User Dashboard Dropdown --- */
.user-dashboard-dropdown {
    width: 300px;
    /* Slightly wider */
    padding: 0;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-header {
    padding: 15px 20px;
    border-bottom: 3px solid var(--secondary);
    /* Thicker accent line */
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #f7f7f7;
}

.user-icon-small {
    color: #555;
    /* Neutral icon color */
    font-size: 1.4rem;
}

.user-name-display {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.1rem;
}

.dashboard-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: white;
}

.dashboard-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.dashboard-menu li:last-child {
    border-bottom: none;
}

.dashboard-menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    text-decoration: none;
    color: #444;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

/* Specific styling for the first item "Información" if active/hovered */
.dashboard-menu li a:hover {
    background-color: #fcebf7;
    /* Very light purple hover */
    color: var(--secondary);
    padding-left: 25px;
    /* Slide effect */
}

.dash-icon {
    font-size: 1.2rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.dashboard-menu li a:hover .dash-icon {
    opacity: 1;
}

/* "Ver mi cuenta" badge style */
.dash-link-extra {
    font-size: 0.75rem;
    border: 1px solid #ccc;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: auto;
    margin-right: 10px;
    background-color: white;
    color: #666;
}

.dashboard-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    text-align: center;
    background-color: white;
}

.logout-link {
    color: #e74c3c;
    /* Red color for logout */
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.logout-link:hover {
    transform: translateX(5px);
    /* Move right on hover */
}

.logout-link span {
    font-size: 1.2rem;
    background: var(--primary);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* =========================================
   Cart Drawer Styles
   ========================================= */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 9998;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    /* Hidden off-screen */
    width: 380px;
    height: 100vh;
    background: white;
    z-index: 9999;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.close-drawer {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
}

.drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 80px;
    /* Extra space to avoid overlap with floating buttons */
}

/* Individual Item Stats */
.drawer-item {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
    /* Space for Remove X */
}

.remove-item-btn {
    position: absolute;
    left: -5px;
    top: 0;
    background: #FF4444;
    /* Red circle */
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-img {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.qty-selector {
    display: flex;
    background: #f0f0f0;
    border-radius: 4px;
    padding: 2px;
}

.qty-btn {
    background: none;
    border: none;
    width: 25px;
    height: 25px;
    font-weight: bold;
    cursor: pointer;
    color: #555;
}

.qty-val {
    width: 30px;
    text-align: center;
    line-height: 25px;
    font-size: 0.9rem;
    font-weight: 600;
}

.item-price {
    font-weight: 700;
    color: var(--secondary);
    /* Purple */
    font-size: 1rem;
}


/* Footer Buttons */
.drawer-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: white;
}

.subtotal-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.subtotal-amount {
    color: var(--secondary);
}

.view-cart-btn,
.checkout-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: background 0.2s;
}

.view-cart-btn {
    background-color: #f3e5f5;
    /* Light purple */
    color: var(--secondary);
}

.view-cart-btn:hover {
    background-color: #e1bee7;
}

.checkout-btn {
    background-color: var(--secondary);
    /* Purple Main */
    color: white;
    margin-bottom: 0;
}

.checkout-btn:hover {
    background-color: #6a1b9a;
}

/* Responsive Drawer */
@media (max-width: 480px) {
    .cart-drawer {
        width: 85%;
    }
}

/* =========================================
   Cart Page Styles (New)
   ========================================= */
.cart-page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

.cart-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.cart-items-section {
    flex: 2;
}

.cart-totals-section {
    flex: 1;
}

/* Table Styles */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart-table th {
    text-align: left;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    color: #444;
}

.cart-table td {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.product-col {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-col img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.product-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.4;
}

.qty-selector-sm {
    display: inline-flex;
    background: #f0f0f0;
    border-radius: 4px;
    padding: 2px;
}

.qty-selector-sm button {
    border: none;
    background: none;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-weight: bold;
}

.qty-selector-sm span {
    width: 25px;
    text-align: center;
    line-height: 25px;
    font-size: 0.9rem;
}

.remove-icon {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
}

.remove-icon:hover {
    color: #ff4444;
}

/* Coupon & Actions */
.cart-actions-row {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.coupon-section {
    display: flex;
    gap: 10px;
}

.coupon-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
}

.btn-outline {
    background: white;
    border: 1px solid #333;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
}

.btn-disabled {
    background: #f0f0f0;
    border: none;
    color: #aaa;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: not-allowed;
    font-weight: 600;
}

/* Cart Totals Box */
.cart-totals-box {
    border: 2px solid var(--secondary);
    /* Purple Border */
    border-radius: 8px;
    padding: 25px;
    background: white;
}

.cart-totals-box h2 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    text-transform: uppercase;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
}

.shipping-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.shipping-details {
    text-align: right;
    width: 60%;
}

.shipping-details p {
    margin: 0;
    font-weight: 500;
}

.shipping-details small {
    color: #888;
    display: block;
    margin: 5px 0;
    font-size: 0.8rem;
    line-height: 1.3;
}

.calc-shipping-link {
    color: #333;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}

.final-total {
    border-top: 1px solid #eee;
    padding-top: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

.btn-checkout {
    display: block;
    width: 100%;
    background: #a855f7;
    /* Lighter Purple */
    color: white;
    text-align: center;
    padding: 15px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: background 0.3s;
}

.btn-checkout:hover {
    background: #9333ea;
}

.btn-whatsapp-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #25D366;
    /* WhatsApp Green */
    color: white;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-whatsapp-cart:hover {
    background: #1ebc57;
}

/* Responsive Cart */
@media (max-width: 768px) {
    .cart-grid {
        flex-direction: column;
    }

    .cart-actions-row {
        flex-direction: column;
        gap: 15px;
    }

    .coupon-section {
        width: 100%;
    }

    .coupon-input {
        flex: 1;
    }
}

/* Empty Cart State */
.empty-cart-container {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.empty-msg-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.empty-msg-subtext {
    color: #777;
    margin-bottom: 30px;
    font-size: 1rem;
}

.btn-shop-black {
    display: inline-block;
    background-color: black;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    /* Pill shape */
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: transform 0.2s, background-color 0.2s;
}

/* =========================================
   Checkout Page Styles
   ========================================= */
.checkout-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.coupon-alert {
    background-color: #f7f7f7;
    border-top: 3px solid var(--secondary);
    padding: 15px 20px;
    margin-bottom: 30px;
    color: #555;
    font-size: 0.95rem;
}

.coupon-alert a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.coupon-alert a:hover {
    text-decoration: underline;
}

.checkout-grid {
    display: flex;
    gap: 40px;
}

.billing-details {
    max-width: 600px;
    width: 100%;
}

.order-summary-wrapper {
    flex: 1;
}

.section-heading {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.form-row-2 {
    display: flex;
    gap: 20px;
}

.form-row-2 .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #444;
}

.form-group .required {
    color: red;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    outline: none;
}

/* Checkbox specific */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
}

/* Order Summary Box */
.order-box {
    border: 2px solid var(--secondary);
    border-radius: 8px;
    padding: 30px;
    background: white;
}

.order-box h3 {
    margin-top: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.order-table th {
    text-align: left;
    padding: 15px 0;
    color: #333;
}

.order-table td {
    padding: 15px 0;
    color: #555;
    border-bottom: 1px solid #eee;
}

.order-table tr:last-child td {
    border-bottom: none;
}

.item-name {
    font-size: 0.9rem;
    color: #555;
}

.item-qty {
    font-weight: 700;
    color: #333;
    margin-left: 5px;
}

.subtotal-row th,
.shipping-row th {
    font-weight: 600;
}

.total-row th,
.total-row td {
    font-size: 1.2rem;
    font-weight: 800;
    color: #333;
    border-top: 2px solid #eee;
    padding-top: 20px;
}

.payment-method {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.payment-header {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.payment-content {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

.place-order-btn {
    width: 100%;
    background-color: #9c27b0;
    /* Match screenshot purple */
    color: white;
    padding: 15px;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 1rem;
    transition: background 0.3s;
}

.place-order-btn:hover {
    background-color: #7b1fa2;
}

.privacy-text {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 15px;
    line-height: 1.4;
}

.terms-check {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .checkout-grid {
        flex-direction: column;
    }
}

/* Deals Page Styles */
.deals-hero {
    position: relative;
    width: 100%;
    height: 400px;
    background: url('../img/images/deals_banner.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.deals-overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.deals-pretitle {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.deals-main-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ff3333;
    text-transform: uppercase;
    margin: 0 0 20px;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.deals-badge {
    display: inline-block;
    background-color: #D32F2F;
    color: white;
    padding: 10px 30px;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.deals-section-title {
    text-align: left;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .deals-main-title {
        font-size: 2rem;
    }

    .deals-hero {
        height: 300px;
    }
}

/* Product Detail Page New Styles */
.product-detail-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px;
}

.breadcrumbs a {
    color: #333;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #9c27b0;
}

.product-main-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image-container {
    position: relative;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    /* Fixed height for main image area */
}

.main-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.zoom-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #777;
    font-size: 1.2rem;
    cursor: pointer;
}

.thumbnail-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    opacity: 0.6;
    transition: all 0.2s;
}

.thumb-item.active,
.thumb-item:hover {
    border-color: #9c27b0;
    opacity: 1;
}

.thumb-item img {
    max-width: 100%;
    max-height: 100%;
}

.product-info-col {
    display: flex;
    flex-direction: column;
}

.product-category-label {
    text-transform: uppercase;
    color: #777;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.product-title-large {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 15px;
    line-height: 1.2;
}

.rating-stock-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.rating-stars {
    color: #ddd;
    /* Light gray for empty */
}

.stock-badge {
    border: 1px solid #28a745;
    color: #28a745;
    padding: 2px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.product-price-large {
    color: #9c27b0;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.payment-info-box {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
}

.payment-info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.payment-info-box li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #0d47a1;
}

.btn-whatsapp-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25d366;
    color: white;
    font-weight: 700;
    text-decoration: none;
    padding: 12px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    transition: background 0.2s;
}

.btn-whatsapp-full:hover {
    background: #1ebc57;
    color: white;
}

.cart-actions-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    height: 50px;
}

.qty-selector-large {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    width: 120px;
}

.qty-selector-large button {
    width: 35px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
}

.qty-selector-large input {
    width: 100%;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    -moz-appearance: textfield;
}

.btn-add-cart-large {
    flex: 1;
    background: #9c27b0;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-add-cart-large:hover {
    background: #7b1fa2;
}

.wishlist-link button {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.share-row {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    gap: 15px;
    align-items: center;
}

.specs-container {
    margin-top: 40px;
    background: #fdfdfd;
    padding: 20px;
    border-top: 1px solid #eee;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th {
    text-align: left;
    width: 30%;
    color: #888;
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.specs-table td {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #333;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #333;
}

@media (max-width: 768px) {
    .product-main-grid {
        grid-template-columns: 1fr;
    }

    .cart-actions-row {
        flex-direction: column;
        height: auto;
    }

    .btn-add-cart-large {
        padding: 15px;
    }

    .qty-selector-large {
        width: 100%;
        height: 50px;
    }
}

/* Shared Product Grid Styles */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.product-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    margin-bottom: 20px;
    height: 180px;
    /* Constraints image height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    text-align: center;
}

.product-category {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.3;
}

.product-title a {
    color: #333;
    text-decoration: none;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #9c27b0;
    margin-top: auto;
}

/* =========================================
   COOKIE BANNER
   ========================================= */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    /* Dark background */
    color: #fff;
    padding: 20px;
    z-index: 10000;
    display: none;
    /* Hidden by default, JS will show it */
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-text p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e2e8f0;
    margin: 0;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.cookie-btn-accept {
    background-color: var(--primary);
    color: #000;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-btn-accept:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================
   MOBILE MENU DRAWER
   ========================================= */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 9998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 9999;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu.open {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
    font-weight: 700;
}

.close-mobile-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #777;
    cursor: pointer;
}

.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.mobile-search-container {
    margin-bottom: 25px;
}

/* Force display flex on mobile search bar specifically */
.mobile-search-bar {
    display: flex !important;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.mobile-nav-section {
    margin-bottom: 25px;
}

.mobile-nav-section h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 10px;
    font-weight: 700;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.mobile-nav-list li {
    border-bottom: 1px solid #f9f9f9;
}

.mobile-nav-list li a {
    display: block;
    padding: 10px 0;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
}

.mobile-nav-list li a:hover {
    color: var(--secondary);
    padding-left: 5px;
    transition: all 0.2s;
}