:root {
    --primary-color: #0a0a0a;
    --secondary-color: #141414;
    --surface-color: #1a1a1a;
    --surface-hover: #222222;
    --accent-color: #c9a227;
    --accent-light: #d4b43e;
    --accent-dark: #a8871e;
    --text-light: #f0e6d3;
    --text-muted: #8a8078;
    --text-dark: #e8ddd0;
    --border-color: rgba(201, 162, 39, 0.12);
    --gold-glow: rgba(201, 162, 39, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--primary-color);
    color: var(--text-light);
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
}

/* Site Logo */
.site-logo {
    display: inline-block;
    margin-bottom: -10px;
    transition: opacity 0.3s ease;
}

.site-logo img {
    max-width: 500px;
    width: 100%;
    height: auto;
}

.site-logo:hover {
    opacity: 0.85;
}

/* Products Section */
.products-section {
    padding-top: 50px;
    padding-bottom: 60px;
    flex: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.section-header .divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 1rem auto 0;
}

/* Products Toolbar */
.products-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.search-box {
    position: relative;
    max-width: 320px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-box input {
    padding-left: 40px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-light);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem var(--gold-glow);
    background: var(--surface-color);
    color: var(--text-light);
}

.sort-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-box label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.sort-box .form-select {
    min-width: 160px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background-color: var(--surface-color);
    color: var(--text-light);
}

.sort-box .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem var(--gold-glow);
    background-color: var(--surface-color);
    color: var(--text-light);
}

/* Product Card */
.product-card {
    background: var(--surface-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--gold-glow);
    border-color: rgba(201, 162, 39, 0.25);
}

.product-image-wrapper {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
}

.product-image-wrapper .product-carousel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.product-image-wrapper .carousel-inner,
.product-image-wrapper .carousel-item {
    height: 100%;
}

.product-image-wrapper .carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-wrapper .carousel-indicators {
    margin-bottom: 8px;
}

.product-image-wrapper .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.35);
    border: none;
    opacity: 1;
}

.product-image-wrapper .carousel-indicators .active {
    background-color: var(--accent-color);
}

/* Carousel arrow controls */
.product-image-wrapper .carousel-control-prev,
.product-image-wrapper .carousel-control-next {
    width: 36px;
    height: 36px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    opacity: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    border: 1px solid rgba(201, 162, 39, 0.2);
    transition: all 0.3s ease;
    z-index: 2;
}

.product-image-wrapper .carousel-control-prev {
    left: 10px;
}

.product-image-wrapper .carousel-control-next {
    right: 10px;
}

.product-card:hover .carousel-control-prev,
.product-card:hover .carousel-control-next {
    opacity: 1;
}

@media (hover: none) {
    .product-image-wrapper .carousel-control-prev,
    .product-image-wrapper .carousel-control-next {
        opacity: 1;
    }
}

.product-image-wrapper .carousel-control-prev:hover,
.product-image-wrapper .carousel-control-next:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    opacity: 1;
}

.product-image-wrapper .carousel-control-prev-icon,
.product-image-wrapper .carousel-control-next-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: #333;
}

.product-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-top: 1rem;
}

.product-price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* WhatsApp Button */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
    padding: 12px 20px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn svg {
    fill: #fff;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover svg {
    transform: scale(1.1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.empty-state h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: var(--text-light);
}

/* Footer */
footer {
    background: #000;
    color: var(--text-light);
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.footer-slogan {
    opacity: 0.6;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(201, 162, 39, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.35rem;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--gold-glow);
}

.footer-social-link .bi-facebook { color: inherit; }
.footer-social-link .bi-instagram { color: inherit; }
.footer-social-link .bi-whatsapp { color: inherit; }

.footer-contact {
    margin-bottom: 1.25rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    font-size: 0.95rem;
    opacity: 0.9;
    text-align: left;
}

.footer-contact-item span {
    max-width: 280px;
}

.footer-contact-item i {
    color: var(--accent-color);
    flex-shrink: 0;
}

.footer-contact-item a {
    color: var(--text-light);
    text-decoration: none;
}

.footer-contact-item a:hover {
    color: var(--accent-color);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

.footer-copyright {
    font-size: 0.85rem;
    opacity: 0.5;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .products-section {
        padding-top: 40px;
        padding-bottom: 50px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .site-logo img {
        max-width: 360px;
    }

    .footer-contact-item span {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .site-logo img {
        max-width: 300px;
    }
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--gold-glow);
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
    background: var(--accent-light);
}
