/* Shop Page Styles */
.shop-main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.shop-main-area {
    display: flex;
    flex-direction: column;
}

.shop-hero {
    padding: 1.5rem 0;
    background: #fff;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.shop-hero .hero-content {
    margin: 0 auto;
}

.shop-hero .hero-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-family: "Cinzel", serif;
    font-weight: 600;
}

.shop-hero .hero-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
    font-family: "Open Sans", sans-serif;
}

.shop-hero .breadcrumb a {
    color: #03c6fb;
    text-decoration: none;
    font-weight: 500;
}

.shop-hero .breadcrumb a:hover {
    text-decoration: underline;
}

.shop-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    font-family: "Cinzel", serif;
    text-align: center;
}

.shop-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    text-align: center;
    font-family: "Open Sans", sans-serif;
}

.shop-breadcrumb {
    text-align: center;
    font-size: 0.9rem;
    color: #999;
}

.shop-breadcrumb a {
    color: #03c6fb;
    text-decoration: none;
}

.shop-breadcrumb a:hover {
    text-decoration: underline;
}

.shop-content {
    padding: 3rem 0;
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Filters Sidebar Animation - Faster */
.filters-sidebar {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    margin-top: 0;
    overflow-y: auto;
    /* Faster, subtle animation */
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.filters-sidebar.fade-in {
    opacity: 1;
    transform: translateX(0);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.filters-header .header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-filter-close {
    display: none;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
    transition: all 0.2s ease;
    z-index: 10;
}
}

.mobile-filter-close:hover {
    background: #e9ecef;
    color: #333;
    transform: scale(1.05);
}

.filters-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    font-family: "Open Sans", sans-serif;
}

.clear-filters {
    background: none;
    border: none;
    color: #03c6fb;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    font-family: "Open Sans", sans-serif;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
}

.filter-option input[type="checkbox"] {
    margin-right: 0.75rem;
    accent-color: #03c6fb;
}

.count {
    color: #999;
    font-size: 0.8rem;
    margin-left: auto;
}

/* Price Range */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.price-separator {
    color: #999;
}

.slider {
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    accent-color: #03c6fb;
}

/* Color Options - Updated with all product colors */
.color-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.color-option {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.color-option:hover {
    transform: scale(1.1);
    border-color: #03c6fb;
}

.color-option input {
    display: none;
}

.color-option input:checked + .color-swatch {
    border-color: #000;
    transform: scale(1.2);
}

.color-swatch {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

.color-swatch.split-three {
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
}

/* Size Options */
.size-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.size-option {
    cursor: pointer;
}

.size-option input {
    display: none;
}

.size-label {
    display: block;
    padding: 0.75rem;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.size-option:hover .size-label {
    border-color: #03c6fb;
    background-color: #03c6fb;
    color: white;
}

.size-option input:checked + .size-label {
    background-color: #000000;
    color: white;
    border-color: #000000;
}

/* Rating Options */
.rating-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rating-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
}

.rating-option input {
    margin-right: 0.75rem;
    accent-color: #03c6fb;
}

.rating-stars {
    color: #ffd700;
    margin-right: 0.5rem;
}

/* Products Section Animation - Faster */
.products-section {
    flex: 1;
    /* Faster, subtle animation */
    opacity: 1;
    transform: translateX(15px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.products-section.fade-in {
    opacity: 1;
    transform: translateX(0);
}

/* Search Results Bar */
.search-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #03c6fb 0%, #0284c7 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(3, 198, 251, 0.3);
}

.search-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-text {
    font-size: 1rem;
    font-weight: 500;
}

.search-text strong {
    font-weight: 700;
    color: #fff;
}

.results-count {
    font-size: 0.9rem;
    opacity: 0.9;
}

.search-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-to-shop, .clear-search {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
}

.back-to-shop:hover, .clear-search:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.clear-search {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .search-results-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .search-info {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .search-actions {
        justify-content: center;
        width: 100%;
    }
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem; /* Match filters padding */
    background: white;
    border-radius: 15px; /* Match filters border radius */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); /* Match filters shadow */
    margin-left: 0;
    margin-top: 0;
    height: fit-content;
}

.results-count {
    color: #666;
    font-size: 0.9rem;
}

.toolbar-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-filter-toggle {
    display: none;
    background: #03c6fb;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.mobile-filter-toggle:hover {
    background: #02a8d4;
}

.mobile-filter-toggle i {
    margin-right: 0.5rem;
}

#sortSelect,
.sort-select {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 150px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.shop-product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    /* Faster, more subtle fade-in animation */
    opacity: 0;
    transform: translateY(10px);
}

/* Quick fade-in for product cards */
.shop-product-card.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-image-container {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    -ms-interpolation-mode: bicubic;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.shop-product-card:hover .product-image {
    transform: scale(1.1);
}

.product-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 5;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.new {
    background: #16A34A;
    color: white;
}

.badge.bestseller {
    background: #03c6fb;
    color: white;
}

.badge.sale {
    background: #DC2626;
    color: white;
}

.product-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: none; /* Hide the white circle buttons */
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    z-index: 5;
}

.shop-product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.action-btn:hover {
    background: #03c6fb;
    color: white;
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1rem 1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.shop-product-card:hover .product-overlay {
    opacity: 1;
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.75rem;
    background: #03c6fb;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-to-cart-btn:hover {
    background: #029ad1;
    transform: translateY(-2px);
}

.product-details {
    padding: 1rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-family: "Open Sans", sans-serif;
}

.product-category {
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-rating .stars {
    color: #ffd700;
    font-size: 0.9rem;
}

.rating-count {
    color: #666;
    font-size: 0.8rem;
}

.product-price {
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #03c6fb;
}

.original-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 0.5rem;
}



/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-btn {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: #03c6fb;
    color: white;
    border-color: #03c6fb;
}

.page-btn.active {
    background: #03c6fb;
    color: white;
    border-color: #03c6fb;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    padding: 0.75rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .shop-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filters-sidebar {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        z-index: 1000;
        transition: left 0.3s ease;
        max-height: none;
        background: white;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .filters-sidebar.active {
        left: 0;
    }
    
    .mobile-filter-close {
        display: block;
    }
    
    .mobile-filter-toggle {
        display: block;
    }
    
    .shop-toolbar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        align-items: center;
        justify-content: space-between;
    }
    
    .toolbar-actions {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .results-info {
        order: -1;
        flex: 1;
        min-width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .shop-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image-container {
        height: 200px;
    }
}