/* ===== PRODUCTS PAGE SPECIFIC STYLES ===== */

/* Hero Section */
.products-hero {
    background: linear-gradient(rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.9)), url('../images/hero/product-hero.jpeg');
    background-size: cover;
    background-position: center;
    padding: 180px 0 100px;
    position: relative;
    text-align: center;
    margin-top: 70px;
    overflow: hidden;
}

.products-hero .hero-content {
    position: relative;
    z-index: 3;
}

.products-hero .hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.products-hero .hero-subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #cccccc;
    line-height: 1.6;
}

.hero-breadcrumb {
    font-size: 1rem;
    color: #aaaaaa;
}

.hero-breadcrumb a {
    color: #D4AF37;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-breadcrumb a:hover {
    color: #FFD700;
    text-decoration: underline;
}

.hero-breadcrumb span {
    color: #ffffff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.2), transparent 70%);
    z-index: 1;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -100px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 100px;
    left: -50px;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: -50px;
    right: 20%;
}

/* Categories Section */
.categories-section {
    padding: 100px 0 70px;
    background: #0a0a0a;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.category-card {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.category-card.active {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.1);
}

.category-card.active .category-icon {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #000;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #D4AF37;
    transition: all 0.3s ease;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.product-count {
    color: #aaaaaa;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Filter Section */
.filter-section {
    padding: 30px 0;
    background: #111111;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #D4AF37;
    font-size: 1.2rem;
}

#productSearch {
    width: 100%;
    padding: 15px 20px 15px 50px;
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

#productSearch:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.filter-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    color: #cccccc;
    font-size: 0.9rem;
    white-space: nowrap;
}

.filter-group label i {
    margin-right: 5px;
    color: #D4AF37;
}

.filter-group select {
    padding: 10px 15px;
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    min-width: 180px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #D4AF37;
}

.active-filters {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#activeFilterText {
    color: #cccccc;
    font-size: 0.9rem;
    flex: 1;
}

.btn-clear {
    background: transparent;
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
}

/* Products Grid Section */
.products-grid-section {
    padding: 80px 0 100px;
    background: #0a0a0a;
    min-height: 600px;
}

.products-container {
    position: relative;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.products-grid.filtering {
    opacity: 0.5;
}

.product-card {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #D4AF37, #B8860b);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-image {
    height: 200px;
    background: rgba(40, 40, 40, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    font-size: 4rem;
}

.product-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: #D4AF37;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    align-self: flex-start;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #ffffff;
    line-height: 1.3;
}

.product-description {
    color: #aaaaaa;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #D4AF37;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-rating i {
    color: #FFD700;
    font-size: 0.9rem;
}

.product-rating span {
    color: #888888;
    font-size: 0.85rem;
    margin-left: 5px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-detail {
    flex: 1;
    background: transparent;
    color: #D4AF37;
    border: 2px solid #D4AF37;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-detail:hover {
    background: rgba(212, 175, 55, 0.1);
}

.btn-buy {
    flex: 1;
    background: linear-gradient(135deg, #D4AF37, #B8860b);
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 60px 0;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(212, 175, 55, 0.1);
    border-top: 5px solid #D4AF37;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    color: #aaaaaa;
    font-size: 1.1rem;
}

/* No Products Message */
.no-products {
    text-align: center;
    padding: 80px 0;
}

.no-products i {
    font-size: 4rem;
    color: #555555;
    margin-bottom: 20px;
    display: block;
}

.no-products h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.no-products p {
    color: #aaaaaa;
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Featured Products */
.featured-products {
    padding: 100px 0;
    background: #111111;
    position: relative;
}

.featured-products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

.featured-header {
    text-align: center;
    margin-bottom: 60px;
}

.featured-slider {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.featured-slider-container {
    display: flex;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(25, 25, 25, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.featured-slide {
    min-width: 100%;
    display: flex;
    padding: 40px;
    gap: 40px;
    transition: transform 0.5s ease;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.featured-image {
    flex: 0 0 200px;
    height: 200px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #D4AF37;
}

.featured-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.featured-content p {
    color: #aaaaaa;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.featured-price {
    font-size: 2rem;
    font-weight: 800;
    color: #D4AF37;
    margin-bottom: 15px;
}

.featured-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-rating i {
    color: #FFD700;
    font-size: 1.2rem;
}

.featured-rating span {
    color: #888888;
    font-size: 0.9rem;
    margin-left: 10px;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.slider-btn {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    color: #D4AF37;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #D4AF37;
    transform: scale(1.2);
}

/* Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    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(5px);
}

.modal-container {
    position: relative;
    background: #0a0a0a;
    border-radius: 20px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    color: #D4AF37;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: rotate(90deg);
}

.modal-content {
    padding: 50px;
}

/* Warranty Section */
.warranty-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(184, 134, 11, 0.02));
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.warranty-content {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.warranty-icon {
    flex: 0 0 150px;
    height: 150px;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #000;
}

.warranty-text {
    flex: 1;
}

.warranty-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.warranty-text p {
    color: #cccccc;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.warranty-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.warranty-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(40, 40, 40, 0.6);
    border-radius: 8px;
    border-left: 3px solid #D4AF37;
}

.warranty-feature i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.warranty-feature span {
    color: #dddddd;
    font-size: 0.95rem;
}

/* Shipping Section */
.shipping-section {
    padding: 100px 0;
    background: #0a0a0a;
}

.shipping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.shipping-card {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.shipping-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.shipping-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #D4AF37, #FFD700, #D4AF37);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.shipping-card:hover::before {
    transform: scaleX(1);
}

.shipping-icon {
    width: 80px;
    height: 80px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: #D4AF37;
}

.shipping-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.shipping-card p {
    color: #aaaaaa;
    line-height: 1.6;
    margin-bottom: 25px;
}

.shipping-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: #D4AF37;
    padding: 10px 20px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50px;
    display: inline-block;
}

.support-link, .guide-link {
    display: inline-block;
    color: #D4AF37;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 25px;
    border: 2px solid #D4AF37;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.support-link:hover, .guide-link:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
}

/* CTA Section */
.products-cta {
    padding: 100px 0;
    background: linear-gradient(rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.9)), url('../images/hero/product-hero.jpeg');
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
}

.products-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.2), transparent 70%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.products-cta h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.products-cta p {
    font-size: 1.3rem;
    color: #cccccc;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.btn-gold-large {
    background: linear-gradient(135deg, #D4AF37, #B8860b);
    color: #000;
    padding: 20px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    border: 2px solid transparent;
}

.btn-gold-large:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.6);
    color: #000;
}

.btn-outline-large {
    background: transparent;
    color: #D4AF37;
    padding: 20px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    border: 2px solid #D4AF37;
    transition: all 0.3s ease;
}

.btn-outline-large:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-8px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .featured-slide {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .featured-image {
        flex: 0 0 150px;
        height: 150px;
        margin: 0 auto;
    }
}

@media (max-width: 992px) {
    .products-hero .hero-title {
        font-size: 2.8rem;
    }
    
    .warranty-content {
        flex-direction: column;
        text-align: center;
    }
    
    .warranty-icon {
        flex: 0 0 120px;
        height: 120px;
        font-size: 3rem;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .filter-options {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .products-hero {
        padding: 150px 0 80px;
    }
    
    .products-hero .hero-title {
        font-size: 2.2rem;
    }
    
    .products-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-slide {
        padding: 30px 20px;
    }
    
    .featured-content h3 {
        font-size: 1.6rem;
    }
    
    .featured-price {
        font-size: 1.5rem;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .products-cta h2 {
        font-size: 2.2rem;
    }
    
    .products-cta p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-gold-large, .btn-outline-large {
        width: 100%;
        max-width: 400px;
        justify-content: center;
        padding: 18px 30px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-options {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group select {
        min-width: 100%;
    }
    
    .featured-image {
        width: 120px;
        height: 120px;
        font-size: 3.5rem;
    }
    
    .shipping-grid {
        grid-template-columns: 1fr;
    }
}