/* Shop Styles - Premium Design */
:root {
    --shop-primary: #1d1d1f;
    /* Apple-style black */
    --shop-secondary: #0066cc;
    /* Clean link blue */
    --shop-text-dark: #1d1d1f;
    --shop-text-gray: #86868b;
    /* Apple-style gray */
    --shop-bg-light: #f5f5f7;
    --shop-card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04);
    --shop-transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #fff;
}

/* --- Layout Wrappers --- */
.page-header {
    background: #fff;
    padding: 120px 0 60px;
    text-align: left;
    position: relative;
    border-bottom: none;
}

.page-header h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #1d1d1f;
    margin-bottom: 1rem;
    letter-spacing: -0.05em;
    line-height: 1;
}

.page-header p {
    font-size: 1.5rem;
    color: #86868b;
    font-weight: 500;
    max-width: 600px;
    line-height: 1.3;
}

.shop-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    background: transparent;
    position: relative;
    z-index: 10;
}

.section-padding {
    padding: 20px 0;
}

/* Breadcrumb styling */
.back-link-wrapper {
    margin-bottom: 30px;
    padding-top: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--shop-text-gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    background: #fff;
    border-radius: 100px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: var(--shop-transition);
}

.back-link:hover {
    color: var(--shop-text-dark);
    transform: translateX(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

/* --- Product Grid & Cards --- */
.products-filter-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 4rem;
    gap: 1rem;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 100px;
    background: #f5f5f7;
    border: none;
    color: #1d1d1f;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--shop-transition);
}

.filter-btn.active {
    background: #1d1d1f;
    color: #fff;
}

.filter-btn:not(.active):hover {
    background: #e8e8ed;
}

.filter-count {
    display: none;
    /* Keep it ultra-clean */
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background: #fff;
    border-radius: 28px;
    padding: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--shop-transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shop-card-shadow);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.08);
}

height: 380px;
position: relative;
background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
/* Explicit light gradient */
border-radius: 20px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
transition: var(--shop-transition);
}

[data-theme="dark"] .product-media {
    background: linear-gradient(135deg, #2c3e50 0%, #000000 100%);
    /* Dark gradient for dark mode if needed, but user asked for light */
}

/* Force light if user requested "light color" specifically for this box always? */
/* Let's stick to the light gradient for now as default, and maybe the dark mode override is what they saw and disliked? */
/* Actually, the user said "product box has dark color have light color", implying they see dark and want light. */
/* If they are in dark mode, they might be seeing a dark background. */
/* I will Comment out the dark mode override to force light always if that's what they mean. */
/* But wait, "product box" might be the card itself? */
/* The card itself has "background: #fff" in line 128. */
/* The image area is the dark part in the screenshot. */
/* So I will force the image area to be light. */

.product-media {
    height: 380px;
    position: relative;
    background: #f5f5f7;
    /* Keep original light gray */
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--shop-transition);
}

.product-card:hover .product-media {
    background: #f0f0f2;
}

.product-model-viewer {
    width: 100%;
    height: 120%;
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #1d1d1f;
    z-index: 10;
    letter-spacing: -0.01em;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-info {
    padding: 24px 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex-grow: 1;
}

.product-category {
    display: block;
    font-size: 0.8rem;
    color: var(--shop-text-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1d1d1f;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.product-footer {
    padding: 0 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.btn-view-product {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: #f1f1f3;
    color: #1d1d1f;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 100px;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-view-product:hover {
    background: #1d1d1f;
    color: #fff;
    transform: scale(1.02);
}

.btn-view-product i {
    display: none;
    /* Cleaner without the arrow */
}

/* --- Product Detail Page --- */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 1rem;
}

.detail-gallery {
    background: #f8fafc;
    border-radius: 32px;
    height: 432px;
    position: sticky;
    top: 40px;
    overflow: hidden;
    border: 0px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Custom radial gradient for model background */
.detail-gallery::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, #ffffff 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.detail-info {
    padding-top: 0;
}

.detail-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #f1f5f9;
    color: var(--shop-text-dark);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--shop-text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}



.detail-price-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.detail-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--shop-text-dark);
}

.detail-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
}

.detail-stars i {
    color: #fbbf24;
}

.detail-description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.detail-features {
    margin-bottom: 2.5rem;
    padding: 0;
    background: transparent;
    border: none;
}

.detail-features h3 {
    font-size: 0.85rem;
    color: var(--shop-text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #475569;
    font-weight: 500;
    font-size: 0.95rem;
}

.features-list i {
    color: #3b82f6;
    font-size: 0.85rem;
}

.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-add-cart {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--shop-text-dark);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--shop-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-add-cart:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.detail-features {
    margin-bottom: 2.5rem;
    padding: 0;
    background: transparent;
    border: none;
}

.btn-contact-sales {
    width: 100%;
    padding: 1rem 2rem;
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--shop-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-contact-sales:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.ar-qr-code {
    background: linear-gradient(145deg, #f8fafc, #fff);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.03);
}

.qr-icon {
    font-size: 3rem;
    color: var(--shop-text-dark);
    background: #fff;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .detail-gallery {
        height: 500px;
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .detail-title {
        font-size: 2.5rem;
    }

    .detail-price {
        font-size: 2.5rem;
    }

    .detail-actions {
        grid-template-columns: 1fr;
    }

    .shop-container {
        padding: 0 24px;
    }
}