/* ========================================
   JATO RC - PRODUCT PAGE STYLES
   ======================================== */

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e293b;
    background: #f8fafc;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    color: #0C2955;
    text-decoration: none;
}

/* ========== HEADER ========== */
header {
    background: #0C2955;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.trust-bar {
    background: linear-gradient(90deg, #0a1f3f, #1e3a8a);
    color: #cbd5e1;
    text-align: center;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.header-nav {
    display: flex;
    gap: 2rem;
}

.header-nav a {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
    color: white;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.breadcrumb a {
    color: #64748b;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #0C2955;
}

.breadcrumb span {
    color: #1e293b;
    font-weight: 600;
}

/* ========== PRODUCT GRID ========== */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 1rem 0 3rem;
}

/* Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
    align-self: start;
}

.main-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    border: 1px solid #e2e8f0;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.3s;
}

.main-image-wrapper:hover img {
    transform: scale(1.03);
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #94a3b8;
    font-weight: 500;
}

.gallery-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.thumbnail-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.thumb {
    flex: 1;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    background: white;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #94a3b8;
}

.thumb:hover {
    border-color: #94a3b8;
}

.thumb.active {
    border-color: #0C2955;
    box-shadow: 0 0 0 3px rgba(12, 41, 85, 0.15);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== PRODUCT INFO ========== */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-tag {
    display: inline-block;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    width: fit-content;
    margin-bottom: 0.8rem;
}

.product-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #0C2955;
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

/* Rating */
.rating-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.stars {
    color: #f59e0b;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.rating-count {
    color: #64748b;
    font-size: 0.85rem;
}

.sold-count {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Price */
.price-block {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}

.price-old {
    font-size: 1rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.price-current {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: #0C2955;
}

.discount-tag {
    background: #fef2f2;
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #fecaca;
}

.installment-info {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.3rem;
}

.pix-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #0C2955;
    margin-bottom: 1.5rem;
}

.pix-tag {
    background: #dcfce7;
    color: #16a34a;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Shipping */
.shipping-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.shipping-info div {
    display: flex;
    flex-direction: column;
}

.shipping-info span {
    font-size: 0.8rem;
    color: #64748b;
}

/* Quantity */
.quantity-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.quantity-section label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #475569;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.quantity-control button {
    background: #f1f5f9;
    border: none;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: background 0.2s;
}

.quantity-control button:hover {
    background: #e2e8f0;
}

.quantity-control input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0C2955;
    background: white;
    outline: none;
}

/* CTA Buttons */
.btn-buy-now {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #0C2955, #1e40af);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(12, 41, 85, 0.3);
    margin-bottom: 0.75rem;
}

.btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 41, 85, 0.4);
}

.btn-buy-now:active {
    transform: translateY(0);
}

.btn-whatsapp {
    width: 100%;
    padding: 14px 24px;
    background: white;
    color: #25d366;
    border: 2px solid #25d366;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-bottom: 1.5rem;
}

.btn-whatsapp:hover {
    background: #25d366;
    color: white;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 1rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    text-align: center;
}

.badge-item i {
    color: #0C2955;
}

.badge-item span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}

/* Benefits */
.benefits-section h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0C2955;
    margin-bottom: 1rem;
}

.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.95rem;
    color: #374151;
}

.benefits-list li i {
    color: #16a34a;
    flex-shrink: 0;
}

/* ========== DESCRIPTION TABS ========== */
.description-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.desc-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.desc-tab {
    background: none;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.desc-tab:hover {
    color: #475569;
}

.desc-tab.active {
    color: #0C2955;
    border-bottom-color: #0C2955;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    color: #0C2955;
    margin-bottom: 1rem;
}

.tab-content p {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.tab-content a {
    color: #0C2955;
    text-decoration: underline;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr:nth-child(even) {
    background: #f8fafc;
}

.specs-table td {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    border-bottom: 1px solid #f1f5f9;
}

.specs-table td:first-child {
    width: 40%;
    color: #64748b;
}

/* ========== REVIEWS ========== */
.reviews-section {
    margin-bottom: 4rem;
}

.reviews-section .section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    color: #0C2955;
    margin-bottom: 2rem;
}

.reviews-summary {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.review-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.score-big {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #0C2955;
    line-height: 1;
}

.score-label {
    font-size: 0.85rem;
    color: #94a3b8;
}

.review-bars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: #64748b;
}

.bar-row span:first-child {
    width: 30px;
    text-align: right;
    font-weight: 600;
}

.bar-row span:last-child {
    width: 30px;
    font-weight: 500;
}

.bar {
    flex: 1;
    height: 8px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #eab308);
    border-radius: 10px;
}

/* Review Cards */
.reviews-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.review-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

.review-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0C2955, #1e40af);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.review-header strong {
    display: block;
    font-size: 0.95rem;
    color: #1e293b;
}

.review-date {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
}

.review-stars {
    color: #f59e0b;
    margin-left: auto;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.review-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #16a34a;
    margin-bottom: 0.6rem;
}

.review-card p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
}

/* ========== FOOTER ========== */
footer {
    background: #0a1a35;
    color: #cbd5e1;
    padding-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-col h4 {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.footer-col p {
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #1e3a5f;
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    color: #64748b;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-gallery {
        position: static;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .price-current {
        font-size: 2rem;
    }

    .header-nav {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .reviews-summary {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .reviews-list {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .trust-bar {
        font-size: 0.65rem;
        padding: 0.35rem 0.5rem;
    }

    .desc-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .trust-badges {
        gap: 0.5rem;
    }

    .badge-item span {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .header-nav {
        gap: 0.8rem;
    }

    .header-nav a {
        font-size: 0.8rem;
    }

    .thumbnail-row {
        gap: 0.5rem;
    }
}