/* Shop Page Specific Styles */
.shop-wrapper {
    background-color: #f8f9fc;
    min-height: 100vh;
}

/* Fix the top gap issue */
.shop-wrapper .full-width-container {
    padding: 20px 5% !important; /* Force override of the 80px padding */
}

.shop-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start; /* Ensure sidebar and main start at the same top line */
}

/* Sidebar Styling - Perfectly Aligned */
.shop-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.filter-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid #edf2f7;
}

.filter-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-filter-list {
    list-style: none;
}

.category-filter-item {
    padding: 10px 12px;
    margin: 4px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #4a5568;
    border-radius: 8px;
}

.category-filter-item:hover {
    background: #f7fafc;
    color: var(--primary-purple);
}

/* WOW Active Indication */
.category-filter-item.active {
    background: var(--primary-purple) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(123, 47, 247, 0.3);
}

.category-count {
    background: #edf2f7;
    color: #718096;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
}

.category-filter-item.active .category-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* Main Shop Content */
.shop-main {
    flex: 1;
    min-width: 0;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid #edf2f7;
}

.shop-results-count {
    font-size: 13px;
    color: #718096;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.view-toggle {
    display: flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
}

.view-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.2s;
    font-size: 14px;
}

.view-btn.active {
    background: #fff;
    color: var(--primary-purple);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.shop-sorting select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    font-size: 13px;
    color: #4a5568;
    background: #fff;
    cursor: pointer;
    font-weight: 500;
}

/* WOW Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Stunning Product Card */
.product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(123, 47, 247, 0.12);
    border-color: var(--primary-purple);
}

.product-card-img {
    height: 180px;
    width: 100%;
    background: linear-gradient(135deg, #fbfbfc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    position: relative;
}

.product-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.08));
}

.product-card:hover .product-card-img img {
    transform: scale(1.08) rotate(2deg);
}

.product-card-content {
    padding: 10px; /* Reduced from 15px */
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-category {
    font-size: 10px;
    color: var(--primary-purple);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.product-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 4px; /* Reduced from 8px */
    line-height: 1.4;
    height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px; /* Reduced from 8px */
    border-top: 1px solid #f1f5f9;
}

.card-current-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
}

.card-old-price {
    font-size: 12px;
    text-decoration: line-through;
    color: #a0aec0;
}

.btn-card {
    margin-top: 10px; /* Reduced from 15px */
    background: var(--purple-gradient);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(123, 47, 247, 0.3);
}

/* Featured Badge */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--purple-gradient);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(123, 47, 247, 0.3);
    letter-spacing: 1px;
}

/* List View Overrides - WOW Edition */
.product-grid.list-view {
    grid-template-columns: 1fr;
    gap: 20px;
}

.product-grid.list-view .product-card {
    flex-direction: row;
    height: 240px;
    align-items: center;
}

.product-grid.list-view .product-card-img {
    width: 300px;
    height: 100%;
    padding: 30px;
    border-right: 1px solid #edf2f7;
    background: linear-gradient(135deg, #fbfbfc 0%, #f1f5f9 100%);
}

.product-grid.list-view .product-card-content {
    padding: 40px;
    justify-content: center;
    flex: 1;
}

.product-grid.list-view .product-card-title {
    font-size: 22px;
    height: auto;
    margin-bottom: 20px;
    -webkit-line-clamp: 1;
}

.product-grid.list-view .product-card-price {
    border-top: none;
    padding-top: 0;
    margin-bottom: 25px;
}

.product-grid.list-view .card-current-price {
    font-size: 28px;
}

.product-grid.list-view .btn-card {
    width: fit-content;
    padding: 12px 40px;
    margin-top: 0;
}

/* Stunning Page Title Section (Breadcrumb Hero) */
.shop-page-title {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1562654501-a0ccc0fc3fb1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 80px 5%;
    text-align: center;
    color: #fff;
    margin-bottom: 0;
}

.shop-page-title h1 {
    font-size: 42px;
    font-weight: 800;
    color: #fff !important;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.breadcrumb-custom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.breadcrumb-custom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: 0.3s;
}

.breadcrumb-custom a:hover {
    color: #fff;
}

.breadcrumb-custom span {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-custom .current {
    color: var(--primary-purple);
    font-weight: 700;
    background: #fff;
    padding: 2px 12px;
    border-radius: 20px;
}

/* Responsive */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .shop-sidebar {
        display: none;
    }
    .shop-container {
        flex-direction: column;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-page-title {
        padding: 60px 5%;
    }
    .shop-page-title h1 {
        font-size: 32px;
    }
    .shop-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .shop-page-title h1 {
        font-size: 24px;
    }
    .product-grid.list-view .product-card {
        flex-direction: column;
        height: auto;
    }
    .product-grid.list-view .product-card-img {
        width: 100%;
        height: 200px;
    }
}
