/* Product Page Styles */

/* Product Filters */
.product-filters {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid var(--light-gray);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 24px;
    border: 2px solid var(--light-gray);
    background: white;
    color: var(--text-dark);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 500;
    font-size: 14px;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary-black);
    color: white;
    border-color: var(--primary-black);
    transform: translateY(-2px);
}

.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-controls label {
    font-weight: 500;
    color: var(--text-dark);
}

.sort-controls select {
    padding: 8px 16px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    background: white;
    color: var(--text-dark);
    font-size: 14px;
    cursor: pointer;
}

.view-controls {
    display: flex;
    gap: 8px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--light-gray);
    background: white;
    color: var(--text-dark);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover,
.view-btn.active {
    background: var(--accent-gold);
    color: white;
    border-color: var(--accent-gold);
}

/* Products Section */
.products-section {
    padding: 60px 0 100px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="dots" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23e9ecef" opacity="0.3"/></pattern></defs><rect width="200" height="200" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
}

.products-grid.list-view .product-image {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
}

.products-grid.list-view .product-info {
    flex: 1;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition-smooth);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-gold);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.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;
    gap: 16px;
    opacity: 0;
    transition: var(--transition-smooth);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn,
.wishlist-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-view-btn {
    background: var(--accent-gold);
    color: white;
}

.quick-view-btn:hover {
    background: white;
    color: var(--accent-gold);
    transform: scale(1.05);
}

.wishlist-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.wishlist-btn:hover {
    background: white;
    color: var(--accent-gold);
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge:not(.new) {
    background: var(--accent-gold);
    color: white;
}

.product-badge.new {
    background: #e74c3c;
    color: white;
}

.product-info {
    padding: 24px;
}

.product-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 12px;
    font-family: var(--font-display);
}

.product-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.product-specs {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.product-specs span {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-specs i {
    color: var(--accent-gold);
}

.product-price {
    margin-bottom: 20px;
}

.price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-black);
    font-family: var(--font-display);
}

.price-unit {
    font-size: 14px;
    color: var(--text-light);
    margin-left: 4px;
}

.product-actions {
    display: flex;
    gap: 12px;
}

.product-actions .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin-top: 60px;
}

.load-more-btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 500;
}

/* Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition-smooth);
    z-index: 10;
}

.modal-close:hover {
    background: var(--accent-gold);
    transform: scale(1.1);
}

.modal-body {
    padding: 40px;
}

/* Product Detail in Modal */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.product-detail-gallery {
    position: relative;
}

.main-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    position: relative;
}

.main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.thumbnail-images {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--accent-gold);
    transform: scale(1.05);
}

.product-detail-info h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 16px;
    font-family: var(--font-display);
    line-height: 1.2;
}

.product-detail-category {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: inline-block;
    padding: 6px 12px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 20px;
}

.product-detail-description {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 32px;
}

.product-detail-features {
    margin-bottom: 32px;
}

.product-detail-features h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-detail-features h4::before {
    content: '✨';
    font-size: 16px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--text-dark);
    font-size: 15px;
}

.features-list li i {
    color: var(--accent-gold);
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.product-detail-specs {
    background: var(--light-gray);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.product-detail-specs h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 16px;
}

.spec-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.spec-label {
    font-weight: 500;
    color: var(--text-dark);
}

.spec-value {
    color: var(--text-light);
}

.product-detail-price-section {
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0.1) 100%);
    border-radius: 16px;
    border: 2px solid rgba(212, 175, 55, 0.2);
}

.price-info {
    text-align: center;
}

.price-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.product-detail-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 8px;
    font-family: var(--font-display);
    line-height: 1;
}

.price-note {
    font-size: 12px;
    color: var(--text-light);
    font-style: italic;
}

.product-detail-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.product-detail-actions .btn {
    flex: 1;
    min-width: 140px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.btn-outline {
    background: transparent;
    color: var(--primary-black);
    border: 2px solid var(--light-gray);
}

.btn-outline:hover {
    background: var(--light-gray);
    border-color: var(--medium-gray);
    transform: translateY(-2px);
}

.product-detail-info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-gold);
}

.info-card i {
    width: 40px;
    height: 40px;
    background: var(--accent-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.info-card h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 4px;
}

.info-card p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .sort-controls {
        justify-content: center;
    }
    
    .view-controls {
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .products-grid.list-view .product-card {
        flex-direction: column;
    }
    
    .products-grid.list-view .product-image {
        width: 100%;
        height: 250px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .main-image img {
        height: 300px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .product-detail-info h2 {
        font-size: 1.8rem;
    }
    
    .product-detail-price {
        font-size: 2rem;
    }
    
    .product-detail-actions {
        flex-direction: column;
    }
    
    .product-detail-actions .btn {
        min-width: auto;
    }
    
    .spec-list {
        grid-template-columns: 1fr;
    }
    
    .product-detail-info-cards {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .filter-tabs {
        gap: 4px;
    }
    
    .filter-tab {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-title {
        font-size: 18px;
    }
    
    .price {
        font-size: 20px;
    }
    
    .product-detail-info h2 {
        font-size: 1.5rem;
    }
    
    .product-detail-price {
        font-size: 1.5rem;
    }
}
