:root {
    --primary: #1a1a1a;
    --primary-light: #333333;
    --secondary: #fdfbf7;
    --accent: #c6a664; /* Richer gold */
    --accent-dark: #a68a4f;
    --text: #2c2c2c;
    --text-light: #757575;
    --success: #1b4332;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.12);
    --border: #ececec;
    --gradient: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
}

/* Header & Promo */
.top-promo {
    background: var(--primary);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
}

.countdown {
    display: inline-flex;
    gap: 15px;
    margin-left: 20px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
}

.header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Marcellus', serif;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--primary);
}

.nav-icons {
    display: flex;
    gap: 20px;
    font-size: 1.2rem;
}

/* Hero Section */
.product-hero {
    padding: 60px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-container {
    position: relative;
    width: 100%;
}

.carousel-main {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    border-radius: 8px;
    /* Removed border and shadow */
}

.carousel-main::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    min-width: 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.carousel-item img {
    max-width: 100%;
    max-height: 450px; /* Limit height on desktop */
    width: auto;
    object-fit: contain;
    margin: 0 auto;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--primary);
}

.carousel-arrow:hover {
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

.thumbnail-grid {
    display: flex;
    gap: 8px;
    justify-content: flex-start; /* Start from left for horizontal scroll */
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.thumbnail-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Webkit */
}

.thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    /* Removed border */
    transition: all 0.3s ease;
    opacity: 0.6;
}

.thumbnail.active {
    border-color: var(--primary);
}

.thumbnail img {
    width: 100%;
    display: block;
}

/* Product Info */
.product-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.badge-sold {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
}

.rating {
    color: #ffb703;
    font-size: 0.9rem;
}

.price-container {
    margin-bottom: 20px;
}

.price-main {
    margin-bottom: 10px;
}

.price-original {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 2px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-current {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
}

.discount-badge {
    background: #e63946;
    color: var(--white);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.pix-discount {
    font-size: 0.85rem;
    color: #2d6a4f;
    margin-bottom: 5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.installments {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.color-selection {
    margin-bottom: 25px;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.color-label {
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
}

.swatches-grid {
    display: flex;
    gap: 15px;
}

.swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 0 0 1px var(--border);
    transition: all 0.3s ease;
}

.swatch-item.active .swatch {
    box-shadow: 0 0 0 2px var(--primary);
    transform: scale(1.1);
}

.swatch-item span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
}

.swatch-item.active span {
    color: var(--primary);
}

.bg-preto { background-color: #000000; }
.bg-azul { background-color: #1e3a8a; }
.bg-marrom { background-color: #78350f; }
.bg-verde { background-color: #065f46; }

.cta-button {
    display: block;
    width: 100%;
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.shipping-info {
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.shipping-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    margin-bottom: 15px;
}

.shipping-input {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* Safety for very narrow screens */
}

.shipping-input input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    outline: none;
}

.shipping-input button {
    padding: 0 20px;
    background: var(--white);
    border: 1px solid var(--primary);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

/* Trust Badges Section */
.trust-badges {
    background: var(--secondary);
    padding: 40px 0;
    margin: 40px 0;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.badge-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.badge-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Description Section */
.product-description {
    padding: 60px 0;
}

.description-content {
    max-width: 800px;
    margin: 0 auto;
}

.description-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 40px 0;
    border-radius: 12px;
    /* Removed shadow */
    display: block;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: center;
}

.description-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.features-list {
    margin: 40px 0;
}

.feature-item {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-item i {
    color: var(--success);
    margin-top: 5px;
}

.feature-title {
    font-weight: 700;
    color: var(--primary);
}

/* Technical Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
}

.specs-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.specs-table td:first-child {
    font-weight: 700;
    width: 40%;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.payment-icon {
    height: 30px;
    filter: grayscale(1) brightness(2);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.85rem;
    color: #666;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-image-container img {
    /* Floating removed for lateral movement stability */
}

.product-gallery, .product-info {
    animation: fadeIn 0.8s ease-out forwards;
}

.trust-badges .badge-item {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.trust-badges .badge-item:nth-child(1) { animation-delay: 0.2s; }
.trust-badges .badge-item:nth-child(2) { animation-delay: 0.4s; }
.trust-badges .badge-item:nth-child(3) { animation-delay: 0.6s; }

/* Refined Elements */
.cta-button {
    background: var(--gradient);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.cta-button:hover::after {
    left: 100%;
}

.pix-price {
    border: 1px dashed var(--success);
    background: #f8fffb;
}

.main-image {
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.thumbnail {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.thumbnail:hover, .thumbnail.active {
    opacity: 1;
    transform: translateY(-2px);
    border-color: var(--accent);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 15px auto 0;
}

.specs-table tr:hover {
    background-color: var(--secondary);
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.testimonials-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.testimonials-header-flex .section-title {
    margin-bottom: 0;
    text-align: left;
}

.testimonials-header-flex .section-title::after {
    margin: 15px 0 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: var(--white);
    padding: 25px;
    border-radius: 4px;
    border: 1px solid var(--border);
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    border-color: var(--accent);
    transform: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.testimonial-header {
    margin-bottom: 15px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #1a73e8;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.testimonial-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
}

.testimonial-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.testimonial-stars {
    color: #ffb703;
    font-size: 0.75rem;
    margin-bottom: 10px;
}

.testimonial-text {
    font-style: normal;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-images {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.testimonial-images.multi {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.testimonial-image-wrapper {
    position: relative;
    cursor: zoom-in;
    overflow: hidden;
    border-radius: 4px;
}

.testimonial-image-wrapper img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.testimonial-image-wrapper:hover img {
    transform: scale(1.1);
}

.zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--white);
    font-size: 1.2rem;
}

.testimonial-image-wrapper:hover .zoom-overlay {
    opacity: 1;
}

/* Modal Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

/* Mobile Responsive Refinements */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: 100%;
        width: 100%;
        margin: 0 auto;
        gap: 30px;
    }

    .product-info {
        width: 100%;
        margin: 0 auto;
        padding: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .payment-methods {
        justify-content: center;
    }
    
    .testimonials-header-flex {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }
    
    .testimonials-header-flex .section-title {
        text-align: center;
    }
    
    .testimonials-header-flex .section-title::after {
        margin: 15px auto 0;
    }
}

@media (max-width: 768px) {
    .carousel-main {
        max-height: 380px; /* Restrict height to prevent layout break */
    }

    .carousel-item img {
        width: 100%;
        height: 100%;
        max-height: 380px;
        object-fit: contain; /* Ensure image fits without breaking width */
    }
    
    .description-image {
        max-width: 90%;
        margin: 20px auto;
    }

    .top-promo {
        font-size: 0.75rem;
        flex-direction: column;
        gap: 5px;
        padding: 10px;
    }
    
    .countdown {
        margin-left: 0;
    }
    
    .product-info h1 {
        font-size: 1.8rem;
    }
    
    .price-current {
        font-size: 2rem;
    }
    
    .badges-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .cta-button {
        padding: 15px;
        font-size: 1rem;
    }
    
    .product-info {
        text-align: left;
    }

    .product-meta {
        justify-content: flex-start;
    }

    .swatches-grid {
        justify-content: flex-start;
    }

    .shipping-header {
        justify-content: flex-start;
    }

    .shipping-input {
        display: flex;
        gap: 8px;
        width: 100%;
    }

    .shipping-input input {
        min-width: 0; /* Allow input to shrink */
    }

    .shipping-input button {
        white-space: nowrap;
        padding: 0 15px;
    }

    .price-container {
        display: block;
    }

    .price-current {
        margin-right: 15px;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }
    
    .nav-icons {
        gap: 15px;
    }
    
    .carousel-main {
        max-height: 320px; /* Even more restrictive for small phones */
    }

    .carousel-item img {
        max-height: 320px;
    }
    
    .thumbnail {
        width: 45px;
        height: 45px;
    }

    .color-selection {
        padding: 10px;
    }

    .swatches-grid {
        gap: 8px;
    }

    .swatch {
        width: 28px;
        height: 28px;
    }
    
    .testimonial-card {
        padding: 15px;
    }

    .specs-table td {
        padding: 10px 5px;
        font-size: 0.85rem;
    }

    .shipping-input {
        flex-direction: column;
    }

    .shipping-input button {
        padding: 12px;
        width: 100%;
    }

    .container {
        padding: 0 15px;
        width: 100%;
        margin: 0 auto;
    }

    .product-info, .shipping-info, .color-selection {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Testimonial Enhancements */
.testimonial-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    padding: 15px 40px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.testimonial-card.hidden {
    display: none;
}
