/* Shop Page Styles for Bombay Royals
   Extends the main styles.css with shop-specific components */

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 80%;
    max-width: 600px;
    position: relative;
}

.search-form {
    display: flex;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 18px;
    border: none;
    border-radius: 4px 0 0 4px;
    background-color: #fff;
    color: #333;
}

.search-btn {
    padding: 15px 25px;
    background-color: #294936;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #1a2f23;
}

.close-search {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Shop Banner */
.shop-banner {
    background-color: #f8f5f1;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 20px;
}

.shop-banner-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    margin-bottom: 15px;
    color: #333;
}

.shop-banner-content p {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Shop Layout */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Shop Sidebar */
.shop-sidebar {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-header {
    display: none;
}

.filter-section {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.filter-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 10px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.filter-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-right: 10px;
}

.filter-checkbox:hover .checkmark {
    border-color: #999;
}

.filter-checkbox input:checked ~ .checkmark {
    background-color: #333;
    border-color: #333;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.filter-checkbox input:checked ~ .checkmark:after {
    display: block;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-label {
    font-size: 14px;
    color: #333;
}

.filter-count {
    margin-left: auto;
    font-size: 12px;
    color: #999;
}

/* Price Range Slider */
.price-slider {
    padding: 10px 0;
}

.price-range {
    position: relative;
    width: 100%;
}

.range-slider {
    position: relative;
    width: 100%;
    height: 5px;
    margin: 10px 0 30px;
}

.range-slider input {
    position: absolute;
    width: 100%;
    height: 5px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.range-slider input::-webkit-slider-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
    margin-top: -6px;
    z-index: 2;
    position: relative;
}

.range-slider input::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
    pointer-events: auto;
    border: none;
    z-index: 2;
    position: relative;
}

.range-slider::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 5px;
    background: #ddd;
    top: 0;
    left: 0;
    border-radius: 3px;
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: -20px;
}

.range-value-min, .range-value-max {
    font-size: 14px;
    color: #666;
}

/* Color Filters */
.color-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-filter {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}

.color-filter:hover {
    transform: scale(1.1);
}

.color-filter.active::after {
    content: "";
    position: absolute;
    width: 36px;
    height: 36px;
    border: 2px solid #333;
    border-radius: 50%;
    top: -3px;
    left: -3px;
}

/* Size Filters */
.size-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.size-filter:hover {
    border-color: #999;
}

.size-filter.active {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.filter-buttons .btn {
    flex: 1;
    padding: 10px;
    font-size: 14px;
}

/* Shop Products Section */
.shop-products {
    width: 100%;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.shop-results {
    font-size: 14px;
    color: #666;
}

.shop-results span {
    font-weight: 600;
    color: #333;
}

.shop-sorting {
    display: flex;
    align-items: center;
}

.shop-sorting label {
    font-size: 14px;
    margin-right: 10px;
    color: #666;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Product Card */
.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tag {
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
}

.tag.new {
    background-color: #333;
    color: #fff;
}

.tag.sale {
    background-color: #e74c3c;
    color: #fff;
}

.product-actions {
    position: absolute;
    right: 10px;
    top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s, transform 0.3s;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s, transform 0.2s;
}

.action-btn:hover {
    background-color: #333;
    color: #fff;
    transform: scale(1.1);
}

.product-details {
    padding: 15px;
}

.product-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.product-title a:hover {
    color: #666;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 8px;
    font-weight: 400;
}

.sale-price {
    color: #e74c3c;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 5px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.page-link:hover {
    background-color: #f5f5f5;
}

.page-link.active {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.page-dots {
    margin: 0 5px;
    color: #999;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .shop-layout {
        grid-template-columns: 240px 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .mobile-filter-toggle {
        display: block;
        margin-bottom: 20px;
    }
    
    .filter-toggle-btn {
        width: 100%;
        padding: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    .shop-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1000;
        border-radius: 0;
        transform: translateX(-100%);
        transition: transform 0.3s;
        padding-top: 60px;
    }
    
    .shop-sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        padding: 15px 25px;
        background-color: #fff;
        border-bottom: 1px solid #eee;
    }
    
    .close-filters {
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
    }
    
    .featured-card {
        flex: 0 0 calc(100% - 20px);
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-view-content {
        flex-direction: column;
    }
    
    .quick-view-image {
        max-width: 100%;
    }
    
    .shop-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .shop-sorting {
        width: 100%;
    }
    
    .sort-select {
        flex: 1;
    }
}

/* Quick View Modal */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.quick-view-content {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
}

.quick-view-image {
    flex: 1;
    max-width: 50%;
}

.quick-view-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-view-details {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.quick-view-details h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.quick-view-details .price {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.quick-view-options {
    margin-bottom: 30px;
}

.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.size-options {
    display: flex;
    gap: 10px;
}

.size-option {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: none;
    cursor: pointer;
    transition: all 0.2s;
}

.size-option:hover {
    border-color: #999;
}

.size-option.active {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.quantity-selector {
    display: flex;
    align-items: center;
    width: fit-content;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.quantity-input {
    width: 40px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 14px;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quick-view-actions {
    display: flex;
    gap: 15px;
}

.quick-view-actions .btn {
    flex: 1;
    padding: 12px;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: #fff;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.product-grid.loading {
    position: relative;
    min-height: 200px;
}

.product-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid var(--border-color);
    border-top-color: var(--brunswick-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Cart Count Animation */
.cart-count.pulse {
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
} 