/**
 * Archive, Shop & Category Page Styles for Okoboji Theme
 * Extracted from main.css - Contains styles specific to shop, archive, and category pages
 */

/* ================================================
 * ARCHIVE PAGE STYLES
 * ================================================ */

/* Archive body class removed - all pages use beige background from common.css */

/* Hero Section Styles */
.archive-hero-desktop {
    height: 70vh;
}

.archive-hero-mobile {
    height: 100vh;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Controls Bar - no solid background, inherit from body */
.controls-bar {
    /* background-color removed - inherit beige background */
}

.controls-glass {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Enhanced Controls Bar Styling */
.shop-controls-hidden {
    transition: all 0.3s ease-in-out;
}

/* Price Range Slider Styling */
#price-range {
    background: linear-gradient(to right, #3b82f6 0%, #60a5fa 100%);
    outline: none;
}

#price-range::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1d4ed8;
    cursor: pointer;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
}

#price-range::-webkit-slider-thumb:hover {
    background: #1e40af;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.4);
    transform: scale(1.1);
}

#price-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1d4ed8;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
}

#price-range::-moz-range-thumb:hover {
    background: #1e40af;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.4);
    transform: scale(1.1);
}

/* Price tooltip styling */
#price-tooltip {
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

#price-range:hover + #price-tooltip {
    opacity: 1;
}

/* Clear All Filters Button Styling */
#clear-filters-btn {
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
    transition: all 0.3s ease;
}

#clear-filters-btn:hover {
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

/* Controls Bar Responsive Improvements */
@media (max-width: 768px) {
    .shop-controls-hidden .flex {
        gap: 1rem;
    }
    
    .shop-controls-hidden select {
        min-width: 150px;
    }
    
    #clear-filters-btn {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }
}

/* Loading state for product grid */
.product-grid-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.product-grid-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 10;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Sticky Controls Animation */
.controls-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    animation: slideDown 0.5s ease-out;
    background-color: transparent !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Price Range Slider Styles */
.price-range::-webkit-slider-runnable-track {
    background: rgba(0, 0, 0, 0.3);
    height: 8px;
    border-radius: 4px;
}

.price-range::-moz-range-track {
    background: rgba(0, 0, 0, 0.3);
    height: 8px;
    border-radius: 4px;
}

.price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4A5568;
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.price-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4A5568;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Price Tooltip */
.price-tooltip {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    background: #6b7280;
    color: white;
    font-size: 12px;
    border-radius: 4px;
    padding: 4px 8px;
    pointer-events: none;
    transform: translateX(-50%);
}

.price-range-container:hover .price-tooltip,
.price-range:active ~ .price-tooltip {
    opacity: 1;
    visibility: visible;
}

/* View Button Styles */
.view-btn svg {
    color: #6B7280;
    transition: color 0.2s;
}

.view-btn.active svg {
    color: #2D3748;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.star-icon {
    width: 16px;
    height: 16px;
}

.star-filled {
    color: #F59E0B;
}

.star-empty {
    color: #D1D5DB;
}

.enquiry-btn {
    margin-top: 16px;
    width: 100%;
    background: #10B981;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.enquiry-btn:hover {
    background: #059669;
    color: white;
}

.enquiry-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

/* Responsive Adjustments */
@media (max-width: 1023px) {
    .controls-sticky {
        position: relative !important;
        animation: none !important;
    }
    
    .archive-hero-desktop {
        display: none;
    }
}

@media (min-width: 1024px) {
    .archive-hero-mobile {
        display: none;
    }
}

/* ================================================
 * SHOP PAGE STYLES
 * ================================================ */

/* Shop Page Slider Styles */
.shop-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shop-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.shop-slide.active {
    opacity: 1;
    transform: scale(1);
}

.shop-slide:not(.active) {
    transform: scale(1.05);
}

/* Shop Controls Bar Styles */
.shop-controls-bar {
    width: 100%;
    z-index: 30;
    padding: 1rem 0;
    /* background-color removed - inherit beige background */
}

.shop-controls-content {
    margin: 0 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(16px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
    .shop-controls-content {
        margin: 0 2rem;
    }
}

/* Sticky Controls Bar */
.shop-controls-bar.shop-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    animation: shop-slideDown 0.5s ease-out;
    background-color: transparent !important;
}

@keyframes shop-slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shop Price Range Slider */
.shop-price-range {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    appearance: none;
    outline: none;
    cursor: pointer;
}

.shop-price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4A5568;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.shop-price-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: #2D3748;
}

.shop-price-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4A5568;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.shop-price-range::-moz-range-thumb:hover {
    transform: scale(1.1);
    background: #2D3748;
}

.shop-price-range::-webkit-slider-runnable-track {
    background: rgba(0, 0, 0, 0.3);
    height: 8px;
    border-radius: 4px;
}

.shop-price-range::-moz-range-track {
    background: rgba(0, 0, 0, 0.3);
    height: 8px;
    border-radius: 4px;
}

/* Shop Price Tooltip */
.shop-price-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #6b7280;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    margin-bottom: 8px;
}

.shop-price-range-container:hover .shop-price-tooltip,
.shop-price-range:focus + .shop-price-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Shop View Toggle Buttons */
.shop-view-btn {
    padding: 8px;
    border-radius: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6B7280;
}

.shop-view-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #374151;
}

.shop-view-btn.shop-active {
    background: rgba(255, 255, 255, 0.7);
    color: #2D3748;
}

.shop-view-btn svg {
    width: 24px;
    height: 24px;
    transition: fill 0.2s ease;
}

/* Shop Category Select */
.shop-category-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    color: #374151;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

@media (min-width: 768px) {
    .shop-category-select {
        width: 192px;
    }
}

.shop-category-select:focus {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Shop Checkboxes */
.shop-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.shop-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid #D1D5DB;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shop-checkbox:checked {
    background: #6b7280;
    border-color: #6b7280;
}

.shop-checkbox:focus {
    outline: 2px solid #6b7280;
    outline-offset: 2px;
}

.shop-checkbox-label {
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

/* Responsive Adjustments for Shop */
@media (max-width: 768px) {
    .shop-controls-content > div {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .shop-controls-content > div > div {
        width: 100%;
    }
    
    .shop-checkbox-group {
        justify-content: flex-start;
        gap: 1rem;
    }
}

/* Shop View Button Active State */
.shop-view-btn.shop-active svg {
    fill: #2D3748;
}

/* Price Range Tooltip */
.shop-price-tooltip {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

#shop-price-range-container:hover .shop-price-tooltip,
#shop-price-range:active ~ .shop-price-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Custom Range Slider Styles */
input[type="range"]::-webkit-slider-runnable-track {
    background: rgba(0, 0, 0, 0.3);
    height: 8px;
    border-radius: 4px;
}

input[type="range"]::-moz-range-track {
    background: rgba(0, 0, 0, 0.3);
    height: 8px;
    border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4A5568;
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4A5568;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}