/* ===== Page Hero ===== */
.page-hero {
    background: var(--gradient-primary);
    padding: 80px 20px;
    text-align: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: 10px;
    position: relative;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    position: relative;
}

/* ===== Shop Section ===== */
.shop-section {
    padding: 60px 0;
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* ===== Sidebar ===== */
.shop-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light);
}

.filter-header h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-header h3 i {
    color: var(--primary);
}

.filter-close {
    display: none;
    font-size: 1.3rem;
    color: var(--gray);
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    margin-bottom: 15px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.filter-option:hover {
    color: var(--primary);
}

.filter-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.filter-icon {
    font-size: 1.1rem;
    min-width: 24px;
    text-align: center;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===== Shop Main ===== */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.shop-results {
    color: var(--gray);
    font-size: 0.95rem;
}

.shop-results span {
    font-weight: 600;
    color: var(--dark);
}

.shop-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-toggle {
    display: none;
    padding: 10px 20px;
    background: var(--light);
    border-radius: var(--radius-md);
    font-weight: 500;
    gap: 8px;
}

.sort-select {
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--light);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    background: var(--white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B6B6B' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        max-width: 90%;
        height: 100vh;
        z-index: 2000;
        border-radius: 0;
        overflow-y: auto;
        transition: var(--transition);
    }

    .shop-sidebar.active {
        left: 0;
    }

    .filter-close {
        display: block;
    }

    .filter-toggle {
        display: flex;
    }
}

/* ===== No Products State ===== */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.no-products i {
    font-size: 4rem;
    color: var(--gray-light);
    margin-bottom: 20px;
}

.no-products p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 25px;
}

/* ===== Loading Skeleton ===== */
.skeleton {
    background: linear-gradient(90deg,
            var(--light) 25%,
            rgba(255, 255, 255, 0.5) 50%,
            var(--light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

.skeleton-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.skeleton-image {
    height: 280px;
    background: linear-gradient(90deg,
            #f0f0f0 25%,
            #e0e0e0 50%,
            #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-info {
    padding: 20px;
}

.skeleton-text {
    height: 14px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-title {
    height: 24px;
    width: 80%;
    margin-bottom: 15px;
}

.skeleton-price {
    height: 28px;
    width: 40%;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ===== Enhanced Product Card Animations ===== */
.product-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(201, 169, 110, 0.25);
}

/* ===== Active Filters Tags ===== */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--light);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--dark);
    transition: var(--transition);
}

.filter-tag:hover {
    background: var(--secondary);
}

.filter-tag .remove-filter {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.7rem;
    transition: var(--transition);
}

.filter-tag .remove-filter:hover {
    background: #e74c3c;
    color: white;
}

.clear-all-filters {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.clear-all-filters:hover {
    color: var(--primary-dark);
}

/* ===== Wishlist Heart Button ===== */
.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-light);
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
}

.wishlist-btn:hover,
.wishlist-btn.active {
    color: #e74c3c;
    transform: scale(1.1);
}

.wishlist-btn.active i {
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.2);
    }
}

/* ===== Stock Badge ===== */
.stock-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 5;
}

.stock-badge.in-stock {
    background: #d4edda;
    color: #155724;
}

.stock-badge.low-stock {
    background: #fff3cd;
    color: #856404;
}

.stock-badge.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

/* ===== Quick View Modal ===== */
.quick-view-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    animation: fadeIn 0.3s ease;
}

.quick-view-overlay.active {
    display: flex;
}

.quick-view-modal {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== View Mode Toggle ===== */
.view-mode {
    display: flex;
    gap: 5px;
    background: var(--light);
    padding: 5px;
    border-radius: var(--radius-md);
}

.view-mode button {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--gray);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.view-mode button.active,
.view-mode button:hover {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* ===== List View ===== */
.products-grid.list-view {
    grid-template-columns: 1fr;
    gap: 20px;
}

.products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
}

.products-grid.list-view .product-image {
    height: 200px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.products-grid.list-view .product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .products-grid.list-view .product-card {
        grid-template-columns: 1fr;
    }

    .products-grid.list-view .product-image {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
}