* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pastel-pink: #FFD6E8;
    --pastel-blue: #C7CEEA;
    --pastel-purple: #E5D4EF;
    --pastel-mint: #C9F4E7;
    --pastel-peach: #FFE5D9;
    --pastel-yellow: #FFF4DC;
    --dark-text: #5A4A6A;
    --light-bg: #FFF9FB;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--pastel-pink) 0%, var(--pastel-blue) 50%, var(--pastel-purple) 100%);
    min-height: 100vh;
    color: var(--dark-text);
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, #FF6B9D, #C084FC);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #FF6B9D;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    text-align: center;
    padding: 60px 20px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 20px;
    color: white;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

/* ===================================
   FILTERS
   =================================== */

.filters-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
}

.filter-dropdown {
    position: relative;
    display: inline-block;
}

.filter-btn {
    background: white;
    border: 2px solid var(--pastel-purple);
    padding: 12px 25px;
    border-radius: 15px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
    color: var(--dark-text);
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.filter-btn:hover {
    background: var(--pastel-purple);
    transform: translateY(-2px);
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    z-index: 1000;
    margin-top: 10px;
    padding: 10px 0;
}

.dropdown-content.active {
    display: block;
}

.dropdown-content a {
    color: var(--dark-text);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background: var(--pastel-pink);
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu.active .submenu-content {
    display: block;
}

.submenu-trigger {
    font-weight: 600;
}

.submenu-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    padding: 10px 0;
    margin-left: 5px;
}

/* ===================================
   PRODUCTS GRID
   =================================== */

.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
}

.product-image.cover {
    object-fit: cover;
}

.product-image.contain {
    object-fit: contain;
    background-color: #f9f9f9; 
}

.product-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--dark-text);
    height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
}

.product-price {
    font-size: 24px;
    color: #FF6B9D;
    font-weight: bold;
}

/* ===================================
   MODAL
   =================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 25px;
    padding: 40px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--pastel-pink);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--dark-text);
}

.close-btn:hover {
    background: #FF6B9D;
    color: white;
    transform: rotate(90deg);
}

.div-image {
    display: flex;
    justify-content: center;
    max-height: 450px;
}

.modal-image {
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 20px;
    background: #f5f5f5;
}

.modal-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.modal-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #666;
    white-space: pre-line;
}

.modal-price {
    font-size: 36px;
    color: #FF6B9D;
    font-weight: bold;
    margin-bottom: 25px;
}

/* ===================================
   PRICE CONTAINER
   =================================== */

.price-container {
    display: flex;
    align-content: center;
    justify-content: space-between;
    gap: 20px;
}

.main-price {
    font-size: 48px;
    color: #FF6B9D;
    font-weight: bold;
    flex-shrink: 0;
    margin-bottom: 25px;
}

.pack-prices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
}

.pack-price {
    font-size: 16px;
    color: #666;
    background: var(--pastel-yellow);
    padding: 8px 15px;
    border-radius: 10px;
    font-weight: 500;
}

.savings-badge {
    font-size: 18px;
    color: white;
    background: linear-gradient(135deg, #10b981, #059669);
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: bold;
    text-align: center;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    margin-bottom: 10px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===================================
   VARIANT SELECTOR
   =================================== */

.variant-selector {
    margin-bottom: 25px;
    width: 40%;
}

.variant-selector label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-text);
}

.variant-selector select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--pastel-purple);
    border-radius: 12px;
    font-size: 16px;
    background: white;
    color: var(--dark-text);
    cursor: pointer;
    transition: all 0.3s;
}

.variant-selector select:hover {
    border-color: #FF6B9D;
}

.variant-selector select:focus {
    outline: none;
    border-color: #FF6B9D;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

/* ===================================
   COLOR SELECTOR
   =================================== */

.color-selector {
    margin-top: 15px;
}

.color-selector h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.color-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border-color: var(--dark-text);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

/* ===================================
   SOCIAL BUTTONS
   =================================== */

.social-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 500;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 28px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.social-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.instagram-btn {
    background: linear-gradient(135deg, #E1306C, #C13584, #833AB4);
}

.mercado-btn {
    background: #fee501;
}

/* ===================================
   FOOTER & SHIPPING CALCULATOR
   =================================== */

.shipping-footer {
    background: linear-gradient(135deg, rgba(255, 214, 232, 0.95), rgba(199, 206, 234, 0.95));
    backdrop-filter: blur(10px);
    padding: 20px 20px 30px;
}

.footer-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.shipping-menu {
    display: none;
}

.shipping-footer h2 {
    font-size: 32px;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.footer-subtitle {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}

.shipping-calculator {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto 20px;
}

.shipping-calculator input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--pastel-purple);
    border-radius: 15px;
    font-size: 18px;
    background: white;
    color: var(--dark-text);
    transition: all 0.3s;
}

.shipping-calculator input:focus {
    outline: none;
    border-color: #FF6B9D;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.calc-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #FF6B9D, #C084FC);
    border: none;
    border-radius: 15px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.shipping-result {
    min-height: 60px;
    margin-bottom: 30px;
}

.result-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card h3 {
    color: #FF6B9D;
    font-size: 24px;
    margin-bottom: 10px;
}

.result-card p {
    color: #666;
    margin: 5px 0;
}

.error-message {
    color: #FF6B9D;
    font-weight: 500;
}

.footer-info {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid rgba(90, 74, 106, 0.2);
}

.footer-info p {
    color: var(--dark-text);
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-links a {
    color: var(--dark-text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #FF6B9D;
}

/* ===================================
   MEDIA QUERIES - DESKTOP
   =================================== */

@media (min-width: 769px) {
    .dropdown-submenu:hover .submenu-content {
        display: block;
    }
}

/* ===================================
   MEDIA QUERIES - MOBILE
   =================================== */

@media (max-width: 768px) {
    /* Header & Navigation */
    .logo {
        font-size: 18px;
    }

    #navMenu {
        display: block;
    }

    #navMenu ul {
        margin-bottom: 5%;
    }

    nav ul {
        gap: 10px;
        font-size: 12px;
    }

    /* Hero */
    .hero {
        padding: 10px 20px 20px;
    }

    .hero h1 {
        font-size: 29px;
    }

    .hero p {
        font-size: 16px;
    }

    /* Filters */
    #categoryBtn {
        padding: 8px 13px;
        font-size: 12px;
    }

    .dropdown-content {
        font-size: small;
        min-width: 110px;
    }

    .submenu-content {
        position: static;
        box-shadow: none;
        margin-left: 20px;
        border-left: 2px solid var(--pastel-purple);
        margin-top: 5px;
    }

    .dropdown-submenu:hover .submenu-content {
        display: none;
    }

    .dropdown-submenu.active .submenu-content {
        display: block;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .product-image {
        max-height: 150px;
    }

    .product-name {
        font-size: small;
        margin-bottom: 0;
    }

    /* Modal */
    .modal {
        padding: 0;
        align-items: center;
    }

    .modal-content {
        padding: 20px;
        max-width: 95%;
        width: 95%;
        max-height: 95vh;
        margin: auto;
        overflow-y: auto;
    }

    .close-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: 10px;
        right: 10px;
    }

    .div-image {
        max-height: 300px;
    }

    .modal-image {
        height: auto;
        object-fit: contain;
        max-height: 400px;
    }

    .modal-title {
        font-size: 22px;
        margin-top: 10px;
    }

    .modal-description {
        font-size: 14px;
    }

    /* Price Container */
    .price-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }

    .main-price {
        font-size: 28px;
        margin-top: 5%;
    }

    .pack-price {
        font-size: 14px;
        padding: 6px 12px;
    }

    .savings-badge {
        font-size: 14px;
        padding: 8px 15px;
    }

    /* Variant Selector */
    .variant-selector label,
    .variant-selector select {
        font-size: small;
    }

    .variant-selector select {
        padding: 5px;
    }

    /* Color Selector */
    .color-selector h3 {
        font-size: 14px !important;
    }

    .color-option {
        width: 20px;
        height: 20px;
    }

    /* Social Buttons */
    .social-buttons {
        bottom: 20px;
        right: 20px;
    }

    .social-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    /* Footer */
    .shipping-footer {
        padding: 5px 20px 30px;
        margin-top: 0;
    }

    .shipping-footer h2 {
        font-size: 24px;
    }

    .shipping-calculator {
        flex-direction: column;
    }

    .shipping-menu {
        display: none;
    }
}