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

/* Root Variables */
:root {
    --primary-color: #4CAF50;
    --hover-color: #388E3C;
    --text-color: #333;
    --muted-color: #777;
    --background-color: #f9f9f9;
    --accent-color: #e74c3c;
    --success-color: #4CAF50;
}

/* Main Container */
.w-90 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Main Title */
.main-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
}

/* Shared Styles */
.product-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    width: 100%;
    text-transform: uppercase;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background: var(--hover-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-purchase {
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    width: 100%;
    text-transform: uppercase;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.btn-purchase:hover {
    background: var(--hover-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.bonus-offer {
    background: #fff3e0;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    margin: 10px 0;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 500;
}

.features-list li::before {
    content: "✔";
    color: var(--success-color);
    margin-right: 8px;
    font-size: 1rem;
}

.review-card {
    background: white;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-3px);
}

.review-card .stars {
    color: #f5c518;
    font-size: 1rem;
    margin-bottom: 8px;
}

.review-card p {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.5;
}

.review-card .reviewer {
    font-size: 0.85rem;
    color: var(--muted-color);
    font-style: italic;
    margin-top: 8px;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
}

.notification.success {
    background: var(--primary-color);
}

.notification.error {
    background: var(--accent-color);
}

.notification.info {
    background: #3498db;
}

        /* Sticky Cart Bar */
        .sticky-cart-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background-color: #fff;
            border-top: 1px solid #ddd;
            padding: 10px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 900; /* Below floating-cart (1000) and whatsapp-float (1000) */
            box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
            box-sizing: border-box;
        }

        .sticky-cart-bar button {
            flex: 1;
            margin: 0 5px;
            padding: 12px 10px;
            font-size: 0.9rem;
            color: var(--primary-color);
            background-color: var(--secondary-color);
            border: none;
            border-radius: 3px;
            cursor: pointer;
            text-align: center;
            transition: background-color 0.3s ease;
        }

        .sticky-cart-bar button:hover {
            background-color: #e0e0e0;
        }

        .sticky-cart-bar button:first-child {
            margin-left: 0;
        }

        .sticky-cart-bar button:last-child {
            margin-right: 0;
        }

        .mobile-content {
            display: none;
        }
        
        .desktop-content {
            display: block;
        }

/* Desktop Styles */
@media (min-width: 601px) {
    .w-90 {
        padding: 40px 20px;
    }

    .main-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

    .side-by-side-desktop {
        display: flex;
        gap: 40px;
        align-items: flex-start;
        justify-content: center;
    }

    .carousel-container {
        flex: 1;
        max-width: 600px;
    }

    .carousel-inner img {
        border-radius: 15px;
        object-fit: cover;
        height: 500px;
        width: 100%;
    }

    .carousel-item:hover img {
        transform: scale(1.02);
    }

    .carousel-control-prev,
    .carousel-control-next {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        top: 50%;
        transform: translateY(-50%);
    }

    .carousel-indicators button {
        background: var(--muted-color);
        border-radius: 50%;
        width: 10px;
        height: 10px;
        margin: 0 5px;
    }

    .carousel-indicators .active {
        background: var(--primary-color);
    }

    .product-details {
        flex: 1;
        max-width: 500px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .align-desktop {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: row;
        gap: 20px;
    }

    .variant-card-desktop {
        background: white;
        border-radius: 15px;
        padding: 20px;
        width: 200px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .variant-card-desktop:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }

    .variant-card-desktop.selected {
        border: 2px solid var(--primary-color);
        background: #f8f9fa;
    }

    .product-selection {
        position: relative;
        margin-bottom: 15px;
    }

    .selection-visual {
        position: relative;
    }

    .variant-card-desktop:hover .product-image {
        transform: scale(1.05);
    }

    .selection-badge {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .badge-text {
        background: var(--primary-color);
        color: white;
        padding: 6px 12px;
        border-radius: 12px;
        font-size: 0.85rem;
        font-weight: 600;
    }

    .variant-header {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-color);
        margin-bottom: 10px;
        font-family: 'Roboto', sans-serif;
    }

    .variant-price {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .current-price {
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--accent-color);
    }

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

    .features-reviews {
        display: flex;
        gap: 40px;
        margin-top: 40px;
    }

    .short-description {
        flex: 1;
        background: var(--background-color);
        padding: 20px;
        border-radius: 10px;
    }

    .short-description h3 {
        font-size: 1.8rem;
        font-weight: 600;
        margin-bottom: 20px;
        font-family: 'Roboto', sans-serif;
    }

    .reviews {
        flex: 1;
    }

    .reviews h3 {
        font-size: 1.8rem;
        font-weight: 600;
        margin-bottom: 20px;
        font-family: 'Roboto', sans-serif;
    }

    .review-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Mobile Styles */
@media (max-width: 600px) {
    .w-90 {
        padding: 15px;
    }

    .main-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .mobile-content {
        padding: 10px;
    }

    .mobile-content h1 {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 20px;
        color: var(--text-color);
        font-family: 'Playfair Display', serif;
    }   

    .product-side-by-side {
        flex-direction: column;
        gap: 15px;
    }

    .carousel-inner img {
        border-radius: 10px;
        object-fit: cover;
        height: 300px;
        width: 100%;
    }

    .carousel-control-prev,
    .carousel-control-next {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 50%;
        width: 30px;
        height: 30px;
        top: 50%;
        transform: translateY(-50%);
    }

    .carousel-indicators button {
        background: var(--muted-color);
        border-radius: 50%;
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }

    .carousel-indicators .active {
        background: var(--primary-color);
    }

    .product-variants {
        display: flex;
        flex-direction: row;
        gap: 15px;
        margin: 15px 0;
    }

    .variant-card {
        background: white;
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
        text-align: center;
    }

    .variant-card:hover {
        transform: translateY(-3px);
    }

    .variant-card.selected {
        border: 2px solid var(--primary-color);
        background: #f8f9fa;
    }

    .product-selection {
        margin-bottom: 10px;
    }

    .selection-visual {
        position: relative;
    }

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

    .selection-badge {
        position: absolute;
        top: 8px;
        right: 8px;
    }

    .badge-text {
        background: var(--primary-color);
        color: white;
        padding: 5px 10px;
        border-radius: 12px;
        font-size: 0.8rem;
        font-weight: 500;
    }

    .variant-header {
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--text-color);
        margin-bottom: 8px;
        font-family: 'Roboto', sans-serif;
    }

    .variant-price {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .current-price {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--accent-color);
    }

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

    .short-description {
        padding: 15px;
        background: var(--background-color);
        border-radius: 10px;
        margin: 15px 0;
    }

    .reviews {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin: 15px 0;
    }

    .transform-130 {
        transform: translateY(0) !important;
    }
    .mobile-content {
        display: block;
    }

    .desktop-content {
        display: none;
    }
}