/* Nasma Luxe 3D Admin + Storefront CSS */
:root {
    --emerald: #061D15;
    --emerald-2: #0B281E;
    --gold: #E5B869;
    --gold-2: #D4A359;
    --cream: #FAF6F0;
    --cream-2: #F0EAE0;
}

/* ===== 3D Card Tilt ===== */
.n3d-card {
    background: linear-gradient(145deg, rgba(11,40,30,0.95), rgba(6,29,21,0.95));
    border: 1px solid rgba(229,184,105,0.25);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
}
.n3d-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(229,184,105,0.15);
}
.n3d-glow {
    box-shadow: 0 0 40px rgba(229,184,105,0.12), inset 0 0 20px rgba(229,184,105,0.05);
}

/* ===== Best Sellers Slider (Hero ke neeche) ===== */
.bestsellers-slider-section {
    background: #FAF6F0;
    overflow: hidden;
}
.hero-product-slider-wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0 20px 0;
}
.hero-product-slider-wrapper::-webkit-scrollbar {
    display: none;
}
.hero-product-track {
    display: flex;
    gap: 24px;
    padding-bottom: 10px;
}
/* Desktop: 2 Cards side-by-side */
.slider-product-item {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
    box-sizing: border-box;
}
/* Mobile: 1 Card per slide */
@media (max-width: 768px) {
    .slider-product-item {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}
.btn-slider-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #061D15;
    background: transparent;
    color: #061D15;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-slider-arrow:hover {
    background: #061D15;
    color: #E5B869;
}

/* ===== Product Card 3D (2x2 grid) — STRICT INLINE OVERRIDE ===== */
.product-grid-2col {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
    align-items: stretch !important;
    width: 100% !important;
}
.product-grid-2col .product-card-3d {
    background: #ffffff !important;
    border: 1px solid rgba(212, 163, 89, 0.3) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    text-align: center !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important;
    cursor: pointer !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 480px !important;
    overflow: hidden !important;
}
.product-grid-2col .product-card-3d img {
    width: 100% !important;
    max-width: 220px !important;
    height: 260px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
}
.product-grid-2col .product-card-3d .card-img-box {
    height: 260px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 15px !important;
}
.product-grid-2col .product-card-3d .card-stars {
    color: #d4a359 !important;
    font-size: 0.9rem !important;
    margin-bottom: 6px !important;
}
.product-grid-2col .product-card-3d .card-stars .review-count {
    color: #666 !important;
    font-size: 0.8rem !important;
    margin-left: 4px !important;
}
.product-grid-2col .product-card-3d .card-name {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.25rem !important;
    color: #061D15 !important;
    margin-bottom: 10px !important;
    line-height: 1.3 !important;
}
.product-grid-2col .product-card-3d .card-price {
    margin-bottom: 15px !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #d4a359 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}
.product-grid-2col .product-card-3d .card-price .old-price {
    color: #888 !important;
    text-decoration: line-through !important;
    font-size: 0.95rem !important;
    margin-right: 8px !important;
}
.product-grid-2col .product-card-3d .card-actions {
    display: flex !important;
    gap: 10px !important;
    justify-content: center !important;
    margin-top: auto !important;
}
.product-grid-2col .product-card-3d .card-actions button,
.product-grid-2col .product-card-3d .card-actions a {
    flex: 1 !important;
    padding: 10px 12px !important;
    border-radius: 30px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border: 1.5px solid #d4a359 !important;
    background: transparent !important;
    color: #061D15 !important;
    text-decoration: none !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
}
.product-grid-2col .product-card-3d .card-actions .btn-buy {
    background: #e5b869 !important;
    border: none !important;
    color: #061D15 !important;
    font-weight: 700 !important;
}
.product-grid-2col .product-card-3d .card-actions .btn-buy:hover {
    background: #d4a359 !important;
    color: #061D15 !important;
}
.product-grid-2col .product-card-3d .card-actions .btn-cart:hover {
    background: #e5b869 !important;
    color: #061D15 !important;
}

/* Mobile: 2 columns with enlarged images */
@media (max-width: 768px) {
    .product-grid-2col {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
    .product-grid-2col .product-card-3d {
        padding: 16px 12px !important;
        min-height: auto !important;
    }
    .product-grid-2col .product-card-3d img {
        max-width: 100% !important;
        height: 240px !important;
        object-fit: contain !important;
    }
    .product-grid-2col .product-card-3d .card-img-box {
        height: 240px !important;
    }
    .product-grid-2col .product-card-3d .card-name {
        font-size: 1.05rem !important;
    }
    .product-grid-2col .product-card-3d .card-price {
        font-size: 1.05rem !important;
    }
}
@media (max-width: 480px) {
    .product-grid-2col {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .product-grid-2col .product-card-3d img {
        max-width: 100% !important;
        height: 200px !important;
        object-fit: contain !important;
    }
    .product-grid-2col .product-card-3d .card-img-box {
        height: 200px !important;
    }
}

/* ===== Auto-Sliding Gallery (product page) ===== */
.gallery-slider {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 1;
    background: #0B281E;
}
.gallery-slider .gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
}
.gallery-slider .gallery-slide.active {
    opacity: 1;
}
.gallery-slider .gallery-pause:hover .gallery-slide.active {
    opacity: 0.5;
}
.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}
.gallery-thumbs .thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s, transform 0.3s;
}
.gallery-thumbs .thumb:hover {
    transform: scale(1.1);
}
.gallery-thumbs .thumb.active {
    border-color: var(--gold);
}

/* ===== 3D Tilt Utility ===== */
.tilt {
    transition: transform 0.15s ease-out;
}