/* WooCommerce Shop Styles */

/* Shop Hero */
.shop-hero {
    background: linear-gradient(135deg, var(--luxury-dark) 0%, var(--luxury-medium) 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top center, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
}

.shop-hero .hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.shop-hero .page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.shop-hero .page-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Shop Main Section */
.shop-main {
    padding: 80px 0;
    background-color: #fff;
    min-height: 600px;
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

/* Shop Sidebar */
.shop-sidebar {
    position: sticky;
    top: 100px;
}

.filters-wrapper {
    background: var(--luxury-light);
    padding: 40px 30px;
    border-radius: 4px;
}

.filters-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--luxury-dark);
    margin-bottom: 30px;
    text-align: center;
}

.filter-section {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-heading {
    font-size: 16px;
    font-weight: 600;
    color: var(--luxury-dark);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Price Filter */
.price-ranges {
    list-style: none;
}

.price-ranges li {
    margin-bottom: 12px;
}

.price-ranges a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 0;
}

.price-ranges a:hover {
    color: var(--luxury-gold);
    padding-left: 10px;
}

/* Category Filter */
.category-filter {
    list-style: none;
}

.category-filter li {
    margin-bottom: 12px;
}

.category-filter a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.category-filter a:hover {
    color: var(--luxury-gold);
}

.category-count {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.4);
}

/* Tag Filter */
.tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.filter-tag:hover {
    background: var(--luxury-gold);
    color: #fff;
    border-color: var(--luxury-gold);
}

/* Shop Controls */
.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.results-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.shop-sorting select {
    padding: 10px 40px 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    font-size: 14px;
    color: var(--luxury-dark);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    transition: all 0.3s ease;
}

.shop-sorting select:focus {
    outline: none;
    border-color: var(--luxury-gold);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    border-color: rgba(212, 175, 55, 0.2);
}

.product-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.product-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    padding: 15px;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--luxury-gold);
    color: var(--luxury-dark);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    border-radius: 2px;
}

/* Product Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.quick-view {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 15px 30px;
    border: 2px solid #fff;
    transition: all 0.3s ease;
}

/* Product Actions */
.product-actions {
    margin-top: 15px;
    padding: 0;
    background: none;
    transition: all 0.3s ease;
}

.product-actions .button,
.product-actions .added_to_cart {
    width: 100%;
    background: var(--luxury-gold);
    color: var(--luxury-dark);
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.product-actions .button:hover {
    background: var(--luxury-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

/* Product Info */
.product-info {
    padding: 25px;
    background: #fff;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-title a {
    color: var(--luxury-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--luxury-gold);
}

.product-category {
    display: inline-block;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.product-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--luxury-dark);
    margin-bottom: 20px;
}

.product-price del {
    color: #999;
    font-size: 16px;
    margin-right: 10px;
}

.product-price ins {
    text-decoration: none;
    color: var(--luxury-gold);
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.star-rating {
    color: var(--luxury-gold);
}

/* Pagination */
.shop-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.shop-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #ddd;
    color: var(--luxury-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.shop-pagination .page-numbers:hover,
.shop-pagination .page-numbers.current {
    background: var(--luxury-gold);
    color: #fff;
    border-color: var(--luxury-gold);
}

/* No Products */
.no-products {
    text-align: center;
    padding: 100px 0;
}

.no-products h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--luxury-dark);
    margin-bottom: 20px;
}

.no-products p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Shop Features Section */
.shop-features {
    padding: 80px 0;
    background: var(--luxury-light);
}

.shop-features .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.shop-features .feature-item {
    text-align: center;
}

.shop-features .feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--luxury-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-features .feature-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.shop-features h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--luxury-dark);
    margin-bottom: 10px;
}

.shop-features p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* WooCommerce Widget Overrides */
.widget_price_filter .price_slider_wrapper {
    margin: 20px 0;
}

.widget_price_filter .ui-slider {
    position: relative;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
}

.widget_price_filter .ui-slider-range {
    position: absolute;
    height: 100%;
    background: var(--luxury-gold);
    border-radius: 3px;
}

.widget_price_filter .ui-slider-handle {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--luxury-gold);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    top: -5px;
}

/* Touch-friendly Mobile Interactions */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .product-card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .product-card:active {
        transform: scale(0.98);
    }
    
    /* Make touch targets larger */
    .filter-tag {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding: 8px 16px;
    }
    
    .price-ranges a,
    .category-filter a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Ensure buttons are touch-friendly */
    .product-actions .button {
        min-height: 44px;
    }
}

/* Mobile Filter Toggle Active State */
.mobile-filter-toggle {
    display: none;
}

@media (max-width: 768px) {
    .mobile-filter-toggle {
        display: block;
    }
    
    .mobile-filter-toggle.active {
        background: var(--luxury-gold);
        color: var(--luxury-dark);
    }
}

/* Touch Active States */
.product-card.touch-active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Improved Mobile Product Card Shadows */
@media (max-width: 768px) {
    .product-card {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
        transition: all 0.2s cubic-bezier(.25,.8,.25,1);
    }
    
    .product-card:active {
        box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.24);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .shop-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .shop-sidebar {
        position: static;
        margin-bottom: 40px;
    }
    
    .filters-wrapper {
        padding: 30px 20px;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    
    .shop-features .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Shop Hero Mobile */
    .shop-hero {
        padding: 60px 0 40px;
    }
    
    .shop-hero .page-title {
        font-size: clamp(32px, 8vw, 48px);
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .shop-hero .page-subtitle {
        font-size: 16px;
        line-height: 1.5;
    }
    
    /* Main Section Mobile */
    .shop-main {
        padding: 40px 0;
    }
    
    /* Mobile Filter Toggle Button */
    .mobile-filter-toggle {
        display: block;
        width: 100%;
        padding: 15px 20px;
        background: var(--luxury-dark);
        color: #fff;
        border: none;
        border-radius: 4px;
        font-size: 16px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 30px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-filter-toggle:active {
        transform: scale(0.98);
    }
    
    /* Mobile Sidebar */
    .shop-sidebar {
        display: none;
        margin-bottom: 30px;
    }
    
    .shop-sidebar.active {
        display: block;
    }
    
    .filters-wrapper {
        border-radius: 8px;
        padding: 25px 20px;
    }
    
    .filters-title {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .filter-section {
        margin-bottom: 25px;
        padding-bottom: 25px;
    }
    
    .filter-heading {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    /* Mobile Products Grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Mobile Product Card */
    .product-card {
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .product-card:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    }
    
    .product-image {
        aspect-ratio: 1 / 1;
        padding: 0;
        position: relative;
    }
    
    .product-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 10px;
    }
    
    .product-card:hover .product-img {
        transform: none;
    }
    
    .sale-badge {
        top: 10px;
        left: 10px;
        padding: 6px 12px;
        font-size: 11px;
        border-radius: 2px;
    }
    
    /* Mobile Product Overlay */
    .product-overlay {
        display: none;
    }
    
    /* Mobile Product Actions */
    .product-actions {
        margin-top: 15px;
    }
    
    .product-actions .button {
        padding: 10px 15px;
        font-size: 12px;
        border-radius: 4px;
    }
    
    /* Mobile Product Info */
    .product-info {
        padding: 15px;
    }
    
    .product-title {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 6px;
    }
    
    .product-category {
        font-size: 10px;
        margin-bottom: 10px;
    }
    
    .product-price {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .product-price del {
        font-size: 14px;
        margin-right: 8px;
    }
    
    .product-rating {
        font-size: 12px;
    }
    
    /* Mobile Shop Controls */
    .shop-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        margin-bottom: 30px;
        padding-bottom: 15px;
    }
    
    .results-count {
        font-size: 13px;
        text-align: center;
    }
    
    .shop-sorting select {
        width: 100%;
        padding: 12px 40px 12px 15px;
        font-size: 16px;
    }
    
    /* Mobile Pagination */
    .shop-pagination {
        margin-top: 40px;
        gap: 5px;
    }
    
    .shop-pagination .page-numbers {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    /* Mobile Shop Features */
    .shop-features {
        padding: 50px 0;
    }
    
    .shop-features .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .shop-features .feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .shop-features .feature-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .shop-features h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .shop-features p {
        font-size: 13px;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    /* Container Padding */
    .container {
        padding: 0 15px;
    }
    
    /* Single Column Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Larger Product Cards for Single Column */
    .product-image {
        aspect-ratio: 4 / 3;
        padding: 0;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-title {
        font-size: 16px;
    }
    
    .product-price {
        font-size: 18px;
    }
    
    .product-actions .button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Filter Tags Mobile */
    .tag-filter {
        gap: 6px;
    }
    
    .filter-tag {
        padding: 5px 12px;
        font-size: 12px;
    }
}