﻿#homeSlider {
    width: 100%;
    margin: 0 auto;
}

.carousel-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

:root {
    --primary-gold: #D4AF37;
    --secondary-gold: #F4E37D;
    --light-gold: #FFF8DC;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --shadow-medium: rgba(212, 175, 55, 0.2);
    --gradient-gold: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.products-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.section-badge {
    display: inline-block;
    background: var(--gradient-gold);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

    .section-title:after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background: var(--gradient-gold);
        border-radius: 2px;
    }

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 3rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    animation: fadeIn 0.6s ease-out;
}

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    }

.product-image-container {
    position: relative;
    overflow: hidden;
    height: auto;
    text-align: center;
}

.product-main-image {
    width: auto;
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.4s ease;
}

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

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

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-gold);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-content {
    padding: 25px;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.product-details {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-image-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--light-gold);
    transition: all 0.3s ease;
}

    .detail-image-wrapper:hover {
        border-color: var(--primary-gold);
        transform: scale(1.1);
    }

.detail-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.btn-corporate {
    background: var(--gradient-gold);
    border: none;
    color: white;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-medium);
}

    .btn-corporate:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px var(--shadow-medium);
        color: white;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .products-section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }
}

html {
    scroll-behavior: smooth;
}

.btn-corporate:focus,
.product-card:focus {
    outline: 3px solid var(--secondary-gold);
    outline-offset: 2px;
}

main {
    display: block;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.modal-carousel-image {
    max-height: 90vh;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
}

.product-card {
    cursor: pointer;
}

:root {
    --bs-modal-backdrop-bg: #000000;
    --bs-modal-backdrop-opacity: 0.7;
}

#productModal .modal-content {
    background-color: transparent;
    border: none;
}

#productModal .modal-header {
    color: white;
    border-bottom: none;
    justify-content: center;
    position: relative;
}

    #productModal .modal-header .btn-close {
        filter: invert(1) grayscale(100%);
        opacity: 1;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

#modalCarousel .carousel-control-prev,
#modalCarousel .carousel-control-next {
    background-color: transparent;
    border: none;
}

.theme-search-input {
    border-color: #ced4da;
    border-radius: 0.25rem 0 0 0.25rem;
    padding: 0.75rem 1rem;
    box-shadow: none;
    transition: all 0.3s ease;
}

    .theme-search-input:focus {
        border-color: #CCAC0D;
        box-shadow: 0 0 0 0.25rem rgba(204, 172, 13, 0.25);
    }

.theme-search-button {
    background-color: #CCAC0D;
    color: white;
    border-color: #CCAC0D;
    border-radius: 0 0.25rem 0.25rem 0;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
}

    .theme-search-button:hover {
        background-color: #a3880a;
        border-color: #997f0a;
        color: white;
    }

    .theme-search-button:active,
    .theme-search-button:focus {
        background-color: #a3880a !important;
        border-color: #997f0a !important;
        color: white !important;
        box-shadow: 0 0 0 0.25rem rgba(204, 172, 13, 0.5) !important;
    }

    .theme-search-button i {
        margin-right: 0.5rem;
    }