:root {
    /* Color Palette - Premium Boutique */
    --primary: #cda87a;
    /* Soft Gold/Beige */
    --primary-hover: #b89163;
    --background: #fafafa;
    --surface: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --border: #eaeaea;
    --whatsapp: #25D366;
    --whatsapp-hover: #128C7E;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* =========================================================================
   HEADER
   ========================================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.logo i {
    color: var(--primary);
}

/* Cart Toggle Button (Explicit Text) */
.cart-toggle-explicit {
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.cart-toggle-explicit:hover {
    background: var(--text-main);
    color: white;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    /* Rojo para llamar la atención */
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--surface);
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
    margin-top: 70px;
    height: 60vh;
    min-height: 400px;
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1490481651871-ab68de25d43d?q=80&w=2070');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
}

.hero-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px;
    display: block;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 450px;
    opacity: 0.9;
    font-weight: 300;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

/* =========================================================================
   HOW IT WORKS BANNER (INSTRUCTIONAL UX)
   ========================================================================= */
.how-it-works-banner {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 30px 0;
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--background);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
}

.step-icon.whatsapp-color {
    background: rgba(37, 211, 102, 0.1);
    color: var(--whatsapp);
}

.step p {
    font-size: 0.9rem;
    line-height: 1.3;
    color: var(--text-muted);
}

.step p strong {
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.05rem;
}

.step-arrow {
    color: var(--border);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .step-arrow {
        display: none;
    }
}

/* =========================================================================
   CATALOG MAIN
   ========================================================================= */
.catalog-section {
    padding: 60px 24px;
}

/* Filters */
.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 10px;
}

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

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.filter-btn.active {
    background: var(--text-main);
    color: white;
    border-color: var(--text-main);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border);
    transform: translateY(-4px);
}

.product-img-wrapper {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #f0f0f0;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 6px;
    display: block;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.product-price {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
}

.btn-add-explicit {
    background: var(--text-main);
    color: white;
    border: none;
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-add-explicit:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* =========================================================================
   CART DRAWER
   ========================================================================= */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--surface);
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--text-main);
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.empty-cart-message {
    text-align: center;
    color: var(--text-muted);
    margin-top: 40px;
}

.empty-cart-message i {
    font-size: 3rem;
    opacity: 0.2;
    margin-bottom: 16px;
}

.cart-item {
    display: flex;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.cart-item-img {
    width: 70px;
    height: 90px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: auto;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--background);
    border-radius: 20px;
    padding: 4px 12px;
}

.qty-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-muted);
}

.qty-btn:hover {
    color: var(--text-main);
}

.qty {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.btn-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-remove:hover {
    text-decoration: underline;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
}

.btn-whatsapp {
    width: 100%;
    padding: 16px;
    background: var(--whatsapp);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* =========================================================================
   FLOATING CHECKOUT BUTTON (INTUITIVE UX)
   ========================================================================= */
.floating-checkout {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    /* Hidden by default */
    width: calc(100% - 48px);
    max-width: 400px;
    background: var(--text-main);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 99;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.3s;
}

.floating-checkout.visible {
    transform: translateX(-50%) translateY(0);
    animation: bounce 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes bounce {
    0% {
        transform: translateX(-50%) translateY(150%);
    }

    70% {
        transform: translateX(-50%) translateY(-10px);
    }

    100% {
        transform: translateX(-50%) translateY(0);
    }
}

.floating-checkout:hover {
    background: var(--primary);
}

.floating-checkout-left,
.floating-checkout-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-checkout-right i {
    font-size: 0.9rem;
}

/* =========================================================================
   TOAST NOTIFICATIONS
   ========================================================================= */
.toast-container {
    position: fixed;
    bottom: 100px;
    /* Moved up to not overlap with floating button */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--text-main);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    animation: toastIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.toast i {
    color: var(--whatsapp);
}

@keyframes toastIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.toast.hiding {
    animation: toastOut 0.3s forwards;
}

@keyframes toastOut {
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Footer Banner */
.footer-demo-banner {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    margin-top: 40px;
    color: var(--text-muted);
}

.footer-demo-banner a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.footer-demo-banner a:hover {
    text-decoration: underline;
}