/* ============================================
   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: 40px;
    padding-bottom: 25px;
    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;
}

/* ============================================
   PRODUCTS GRID — 7 PER LINE
   ============================================ */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(7, 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;
}

.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;
}

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

.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);
}

@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;
    }
}

/* ============================================
   RESPONSIVE — MOBILE (600-768px)
   ============================================ */
@media (max-width: 767px) {
    .shop-page {
        padding: 20px 12px 40px;
    }
    
    .shop-breadcrumb {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .shop-header {
        margin-bottom: 25px;
        padding-bottom: 18px;
    }
    
    .shop-title {
        font-size: 18px;
        letter-spacing: 3px;
    }
    
    .shop-title::after {
        width: 50px;
    }
    
    .shop-count {
        font-size: 12px;
    }
    
    .shop-grid {
        grid-template-columns: repeat(2.5, 1fr);
        gap: 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }
    
    .shop-grid::-webkit-scrollbar {
        display: none;
    }
    
    .shop-grid .product-card {
        scroll-snap-align: start;
    }
    
    .shop-grid .product-info {
        padding: 8px 6px 10px;
    }
    
    .shop-grid .product-info h3 {
        font-size: 10px;
        min-height: 24px;
    }
    
    .shop-grid .product-info .price {
        font-size: 11px;
    }
    
    .shop-grid .wishlist-heart {
        width: 24px;
        height: 24px;
        top: 6px;
        right: 6px;
        opacity: 1;
    }
    
    .shop-grid .wishlist-heart svg {
        width: 12px;
        height: 12px;
    }
    
    .shop-empty {
        padding: 50px 20px;
    }
    
    .shop-empty-icon {
        font-size: 55px;
    }
    
    .shop-empty h3 {
        font-size: 18px;
    }
    
    .shop-empty p {
        font-size: 13px;
    }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (< 480px)
   ============================================ */
@media (max-width: 480px) {
    .shop-title {
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .shop-grid {
        grid-template-columns: repeat(2.5, 1fr);
        gap: 8px;
    }
    
    .shop-grid .product-info h3 {
        font-size: 9px;
    }
    
    .shop-grid .product-info .price {
        font-size: 10px;
    }
}