/* RUPAYNA E-commerce Styles */
/* Premium, Clinical, Minimal */

:root {
    --color-gold: #D4AF37;
    --color-gold-light: #fdf5e6;
    --color-black: #000000;
    --color-dark-gray: #1a1a1a;
    --color-light-gray: #f9f9f9;
    --color-white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

/* --- Layout Wrappers --- */
.shop-container {
    padding-top: 100px;
    /* Space for fixed header */
    min-height: 100vh;
}

/* --- Shop Hero --- */
.shop-hero {
    height: 40vh;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), url('../assets/images/gallery_1.png');
    /* Fallback image */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.shop-hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.shop-hero-content p {
    color: #666;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* --- Filter Bar --- */
.filter-bar {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
    position: sticky;
    top: 80px;
    /* Below navbar */
    z-index: 90;
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.filter-group {
    display: flex;
    gap: 2rem;
}

.filter-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    padding-bottom: 0.2rem;
    position: relative;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    color: var(--color-black);
    font-weight: 500;
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-gold);
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Product Card --- */
.product-card {
    background: white;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    position: relative;
    padding: 1rem;
    border-radius: 4px;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.04);
}

.product-image-wrapper {
    position: relative;
    background: #fafafa;
    padding-top: 120%;
    /* 4:5 Aspect Ratio */
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Product photos shouldn't get cropped */
    padding: 2rem;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
    /* Subtle zoom */
}

.card-details {
    text-align: center;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--color-black);
}

.card-benefit {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.8rem;
    min-height: 1.2em;
}

.card-price {
    font-weight: 500;
    color: var(--color-gold);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.btn-view {
    display: inline-block;
    border-bottom: 1px solid var(--color-black);
    padding-bottom: 2px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-black);
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(10px);
}

.product-card:hover .btn-view {
    opacity: 1;
    transform: translateY(0);
}

/* --- Product Details Page --- */
.details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1300px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.details-gallery {
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px;
    /* Fixed height for premium feel */
}

.details-gallery img {
    max-height: 80%;
    max-width: 80%;
    object-fit: contain;
}

.details-info {
    padding: 2rem 0;
}

.product-tag {
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.details-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.details-price {
    font-size: 1.5rem;
    color: var(--color-black);
    margin-bottom: 2rem;
    display: block;
}

.details-desc {
    color: #555;
    line-height: 1.8;
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.details-actions {
    margin-bottom: 4rem;
}

.btn-add-cart {
    background: var(--color-black);
    color: white;
    width: 100%;
    padding: 1.2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-cart:hover {
    background: var(--color-gold);
    color: black;
}

.info-accordions {
    border-top: 1px solid #eee;
}

.accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem 0;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.accordion-content {
    color: #666;
    padding-bottom: 1.5rem;
    line-height: 1.6;
    display: block;
    /* Simplified for now */
}

/* --- Cart & Checkout Common --- */
.page-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    background: #fafafa;
}

.summary-box {
    background: #fafafa;
    padding: 2rem;
    border-radius: 4px;
}

/* --- Responsive --- */
@media (max-width: 968px) {

    .details-container,
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .shop-hero {
        height: 35vh;
    }

    .shop-hero-content h1 {
        font-size: 2.5rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 2rem;
        padding: 3rem 1.5rem;
    }

    .filter-container {
        padding: 0 1.5rem;
    }

    .filter-group {
        gap: 1.5rem;
    }

    .details-gallery {
        height: 400px;
    }

    .details-title {
        font-size: 2rem;
    }

    .details-price {
        font-size: 1.3rem;
    }

    .cart-item {
        padding: 1.5rem 0;
    }
}

@media (max-width: 640px) {
    .shop-container {
        padding-top: 80px;
    }

    .shop-hero {
        height: 30vh;
        min-height: 250px;
    }

    .shop-hero-content h1 {
        font-size: 2rem;
    }

    .shop-hero-content p {
        font-size: 0.8rem;
    }

    .filter-bar {
        top: 60px;
        padding: 1rem 0;
    }

    .filter-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .filter-group {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .filter-btn {
        font-size: 0.85rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .product-card {
        padding: 0.75rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-benefit {
        font-size: 0.8rem;
    }

    .card-price {
        font-size: 1rem;
    }

    .btn-view {
        opacity: 1;
        transform: translateY(0);
    }

    .details-container {
        padding: 2rem 1rem;
    }

    .details-gallery {
        height: 300px;
    }

    .details-info {
        padding: 1rem 0;
    }

    .details-title {
        font-size: 1.75rem;
    }

    .details-price {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .details-desc {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .btn-add-cart {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .cart-layout {
        padding: 0 1rem 3rem;
    }

    .cart-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem 0;
    }

    .cart-item img {
        width: 100%;
        height: 200px;
    }

    .summary-box {
        padding: 1.5rem;
    }

    .accordion-header {
        padding: 1.25rem 0;
        font-size: 0.95rem;
    }

    .accordion-content {
        font-size: 0.9rem;
        padding-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .shop-hero-content h1 {
        font-size: 1.75rem;
    }

    .product-grid {
        padding: 1.5rem 0.75rem;
    }

    .details-title {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 1.75rem;
    }
}