﻿body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
}

/* ================= NAVBAR ================= */

.store-navbar {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 12px 0;
}

.store-logo {
    font-size: 28px;
    font-weight: bold;
    color: #ff4081;
    text-decoration: none;
}

    .store-logo:hover {
        color: #ff4081;
    }

.store-nav-link {
    color: #333;
    font-weight: 500;
    margin-right: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.2s;
}

    .store-nav-link:hover {
        color: #ff4081;
    }

/* ================= HERO (READY FOR LATER) ================= */

.hero-section {
    background: linear-gradient(to right, #ffe4ec, #fff);
    padding: 80px 0;
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    color: #666;
    margin-top: 15px;
    margin-bottom: 25px;
}

/* ================= CATEGORY CARD ================= */

.category-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    height: 220px;
}

    .category-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: 0.3s;
    }

    .category-card:hover img {
        transform: scale(1.08);
    }

    .category-card .overlay {
        position: absolute;
        bottom: 0;
        width: 100%;
        padding: 12px;
        color: #fff;
        font-weight: 600;
        background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    }

/* ================= PRODUCT CARD ================= */

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    height: 100%;
}

    .product-card:hover {
        transform: translateY(-5px);
    }

/* IMAGE */
.product-image {
    height: 230px;
    overflow: hidden;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: 0.3s;
    }

.product-card:hover img {
    transform: scale(1.05);
}

/* TITLE */
.product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* PRODUCT GALLERY */

/* MAIN IMAGE */
.product-main-wrapper {
    overflow: hidden;
    border-radius: 12px;
}

/* THUMBNAILS */
.product-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

    .product-thumb:hover {
        transform: scale(1.05);
    }

    /* ACTIVE THUMB */
    .product-thumb.active {
        border: 2px solid #ff4081;
    }

.active-thumb {
    border-color: #ff4081;
}
/* MAIN IMAGE ANIMATION */
.product-main-image {
    height: 450px;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

    .image-modal img {
        max-width: 90%;
        max-height: 90%;
        border-radius: 10px;
    }

/* PRICE */
.price-section {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
}

.new-price {
    font-weight: bold;
    color: #ff4081;
}

.quantity-input {
    max-width: 120px;
}

/* BUTTON */
.btn-view {
    display: block;
    text-align: center;
    padding: 6px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    transition: 0.2s;
}

    .btn-view:hover {
        background: #ff4081;
    }

/* BADGE */
.badge-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4081;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 5px;
}

/* OUT OF STOCK */
.out-of-stock {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.color-btn {
    border: 1px solid #ddd;
    background: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    transition: 0.2s;
}

    .color-btn:hover {
        border-color: #ff4081;
        color: #ff4081;
    }

    /* SELECTED STATE */
    .color-btn.active {
        background: #ff4081;
        color: #fff;
        border-color: #ff4081;
    }

    .color-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        text-decoration: line-through;
    }

/* ================= FOOTER ================= */

.store-footer {
    background-color: #222;
    color: #fff;
    padding: 50px 0;
}

    .store-footer a {
        color: #ccc;
        text-decoration: none;
    }

        .store-footer a:hover {
            color: #fff;
        }

/* ================= UTILITIES ================= */

.text-pink {
    color: #ff4081;
}

.sale-section {
    padding: 80px 0;
}

.sale-box {
    background: linear-gradient(135deg,#ff4081,#ff6fa5);
    color: white;
    text-align: center;
    padding: 70px 30px;
    border-radius: 20px;
}

.newsletter-section {
    padding: 80px 0;
    background: #fff;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .newsletter-form input {
        width: 350px;
        max-width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 8px;
    }

    .newsletter-form button {
        background: #ff4081;
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 8px;
    }

.new-arrival-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    transition: 0.3s;
}

    .new-arrival-card:hover {
        transform: translateY(-5px);
    }

.new-arrival-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px; /* FIXED HEIGHT */
    overflow: hidden;
}

.new-arrival-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* KEY FIX */
    display: block;
}

.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #28a745;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 20px;
    z-index: 2;
}

/* MOBILE CART */

.cart-mobile-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.cart-mobile-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.cart-summary {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.text-pink {
    color: #ff4081;
}

@media (max-width: 767px) {

    .cart-summary h4 {
        font-size: 22px;
        text-align: center;
    }

    .cart-mobile-card h6 {
        font-size: 16px;
    }
}

.checkout-summary {
    position: sticky;
    top: 100px;
}