/* ============================================
   SHOP PAGE - LABEES BY AL AMEEN
   ============================================ */

/* ============================================
   PAGE CONTAINER
   ============================================ */
.shop-page {
    max-width: 1500px;
    margin: 0 auto;
    padding: 30px 25px 60px;
    min-height: 60vh;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.shop-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #888;
    margin-bottom: 25px;
    padding: 8px 0;
    flex-wrap: wrap;
}

.shop-breadcrumb a {
    color: #0f2219;
    text-decoration: none;
    transition: color 0.2s;
}

.shop-breadcrumb a:hover {
    color: #d4af37;
}

.shop-breadcrumb span {
    color: #bbb;
}

.shop-breadcrumb #breadcrumbCategory {
    color: #b8860b;
    font-weight: 600;
}

/* ============================================
   SHOP HEADER
   ============================================ */
.shop-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 22px;
    border-bottom: 2px solid #e8e4dc;
}

.shop-title {
    font-size: 32px;
    color: #0f2219;
    letter-spacing: 5px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 12px 0;
    position: relative;
    padding-bottom: 15px;
}

.shop-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 2px;
    background: #d4af37;
}

.shop-count {
    font-size: 14px;
    color: #888;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ============================================
   ✅ SUB-CATEGORY FILTER CHIPS
   ============================================ */
.shop-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 25px;
    padding: 0 5px;
}

.filter-chip {
    background: #ffffff;
    color: #0f2219;
    border: 1.5px solid #e8e4dc;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.filter-chip:hover {
    border-color: #d4af37;
    color: #b8860b;
    transform: translateY(-2px);
}

.filter-chip.active {
    background: #0f2219;
    color: #d4af37;
    border-color: #0f2219;
    box-shadow: 0 4px 12px rgba(15, 34, 25, 0.2);
}

/* ============================================
   PRODUCTS GRID — 6 PER LINE (Desktop)
   ============================================ */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-bottom: 40px;
}

/* ============================================
   PRODUCT CARD — SAME AS HOMEPAGE
   ============================================ */
.shop-grid .product-card {
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.shop-grid .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.shop-grid .product-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    background-color: #f7f7f7;
    position: relative;
    overflow: hidden;
}

.shop-grid .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.shop-grid .product-main-img {
    transition: opacity 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ✅ Video hover */
.shop-grid .product-hover-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.shop-grid .product-img:hover .product-hover-video {
    opacity: 1;
    visibility: visible;
}

/* ✅ Second image hover (agar video nahi hai) */
.shop-grid .product-hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.shop-grid .product-img:hover .product-hover-img {
    opacity: 1;
    visibility: visible;
}

/* ✅ Main image tabhi gayab ho jab video ya 2nd image ho */
.shop-grid .product-img:hover .product-main-img {
    opacity: 0;
}

/* ✅ Safe fallback — agar na video hai na 2nd image */
.shop-grid .product-card.no-hover-content:hover .product-main-img {
    opacity: 1 !important;
}

/* ✅ Mobile: touch pe 2nd image */
.shop-grid .product-img.show-hover-img .product-hover-img {
    opacity: 1;
    visibility: visible;
}

.shop-grid .product-img.show-hover-img .product-main-img {
    opacity: 0;
}

/* ✅ Mobile: touch pe video */
.shop-grid .product-img.show-video .product-hover-video {
    opacity: 1;
    visibility: visible;
}

.shop-grid .product-img.show-video .product-main-img {
    opacity: 0;
}

.shop-grid .product-img.show-video .product-hover-img {
    opacity: 0;
    visibility: hidden;
}

.shop-grid .product-info {
    padding: 10px 8px 12px;
    text-align: center;
}

.shop-grid .product-info h3 {
    font-size: 11px;
    color: #2c3531;
    margin: 0 0 5px 0;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 28px;
}

.shop-grid .product-info .price {
    font-size: 12px;
    font-weight: 600;
    color: #0f2219;
    margin: 0;
    letter-spacing: 0.3px;
}

/* ============================================
   WISHLIST HEART
   ============================================ */
.shop-grid .wishlist-heart {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 3;
    padding: 0;
    opacity: 0;
}

.shop-grid .product-card:hover .wishlist-heart {
    opacity: 1;
}

.shop-grid .wishlist-heart svg {
    width: 14px;
    height: 14px;
    color: #0f2219;
}

.shop-grid .wishlist-heart.active {
    opacity: 1;
}

.shop-grid .wishlist-heart.active svg {
    fill: #e74c3c;
    stroke: #e74c3c;
}

/* ============================================
   SOLD OUT BADGE
   ============================================ */
.shop-grid .sold-out-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(231, 76, 60, 0.95);
    color: #fff;
    padding: 6px 15px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    border-radius: 4px;
    z-index: 5;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    white-space: nowrap;
}

.shop-grid .product-card.is-sold-out .product-img img {
    filter: grayscale(70%) brightness(0.7);
}

/* ============================================
   LOADING
   ============================================ */
.shop-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #888;
}

.shop-loading .loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top-color: #d4af37;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   EMPTY STATE
   ============================================ */
.shop-empty {
    text-align: center;
    padding: 80px 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.shop-empty-icon {
    font-size: 70px;
    margin-bottom: 20px;
    line-height: 1;
}

.shop-empty h3 {
    font-size: 22px;
    color: #0f2219;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.shop-empty p {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.shop-back-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #0f2219;
    color: #d4af37;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.shop-back-btn:hover {
    background: #d4af37;
    color: #0f2219;
    transform: translateY(-2px);
}

/* ============================================
   LARGE LAPTOP (1280px) — 5 per line
   ============================================ */
@media (max-width: 1280px) {
    .shop-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 14px;
    }
}

/* ============================================
   RESPONSIVE — TABLET (768-1024px)
   ============================================ */
@media (max-width: 1024px) {
    .shop-page {
        padding: 25px 20px 50px;
    }
    
    .shop-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    
    .shop-title {
        font-size: 26px;
        letter-spacing: 4px;
    }
    
    .shop-grid .product-info h3 {
        font-size: 11px;
    }
}

/* ============================================
   MOBILE — 2 GRID (All Products, No Slider)
   ============================================ */
@media (max-width: 767px) {
    
    .shop-page {
        padding: 20px 10px 40px;
    }
    
    .shop-breadcrumb {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .shop-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .shop-title {
        font-size: 18px;
        letter-spacing: 3px;
    }
    
    .shop-title::after {
        width: 50px;
    }
    
    .shop-count {
        font-size: 12px;
    }
    
    /* ✅ Filter chips — mobile horizontal scroll */
    .shop-filters {
        gap: 6px;
        margin-bottom: 18px;
        padding: 0 8px 5px 8px;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .shop-filters::-webkit-scrollbar {
        display: none;
    }
    
    .filter-chip {
        padding: 7px 14px;
        font-size: 12px;
        flex-shrink: 0;
    }
    
    /* ✅ Mobile — GRID 2 per row */
    .shop-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        scroll-snap-type: none !important;
        padding: 0 !important;
        margin-bottom: 30px;
        flex-wrap: unset !important;
    }
    
    .shop-grid .product-card {
        flex: unset !important;
        min-width: unset !important;
        max-width: unset !important;
        width: auto !important;
        scroll-snap-align: none !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
    }
    
    .shop-grid .product-img {
        aspect-ratio: 3 / 4.4 !important;
    }
    
    .shop-grid .product-info {
        padding: 8px 6px 10px;
    }
    
    .shop-grid .product-info h3 {
        font-size: 11px;
        min-height: 28px;
    }
    
    .shop-grid .product-info .price {
        font-size: 12px;
    }
    
    .shop-grid .wishlist-heart {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
        opacity: 1;
    }
    
    .shop-grid .wishlist-heart svg {
        width: 16px;
        height: 16px;
    }
    
    .shop-empty {
        padding: 50px 20px;
    }
    
    .shop-empty-icon {
        font-size: 55px;
    }
    
    .shop-empty h3 {
        font-size: 18px;
    }
    
    .shop-empty p {
        font-size: 13px;
    }
}

/* ============================================
   SMALL MOBILE (< 480px) — GRID 2 per row
   ============================================ */
@media (max-width: 480px) {
    
    .shop-title {
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .shop-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 0 !important;
        overflow-x: visible !important;
    }
    
    .shop-grid .product-card {
        flex: unset !important;
        min-width: unset !important;
        max-width: unset !important;
        width: auto !important;
    }
    
    .shop-grid .product-info h3 {
        font-size: 10px;
        min-height: 26px;
    }
    
    .shop-grid .product-info .price {
        font-size: 11px;
    }
    
    .filter-chip {
        padding: 6px 12px;
        font-size: 11px;
    }
}