/* style.css - Antiquário Clean Minimalist Theme */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Courier+Prime:wght@400;700&display=swap');

/* --- Resets & Variables --- */
:root {
    --bg-dark: #ebebeb;            /* Fundo cinza claro padrão ML */
    --bg-card: #ffffff;            /* Card branco puro */
    --bg-input: #ffffff;           /* Input branco */
    --border-color: #e6e6e6;        /* Bordas finas leves */
    --color-gold: #3483fa;         /* Azul Mercado Livre/Pago */
    --color-gold-hover: #2968c8;   /* Azul escuro no hover */
    --color-header: #fff159;       /* Amarelo Mercado Livre */
    --color-text-primary: #333333;  /* Texto principal escuro */
    --color-text-secondary: #666666;/* Texto secundário cinza */
    --color-title: #333333;         /* Títulos cinzas escuros */
    --color-white: #ffffff;
    --color-danger: #ea5455;
    --color-success: #00a650;      /* Verde Mercado Livre */
    --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--color-text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: 'Inter', sans-serif;
    color: var(--color-title);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* --- Container & Layout --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* --- Header & Navigation (Mercado Livre Style) --- */
header {
    background-color: var(--color-header);
    border-bottom: 1px solid rgba(0, 0, 0, 0.09);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}

.header-logo-col {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo-col img {
    height: 34px;
    object-fit: contain;
}

.header-search-col {
    flex-grow: 1;
    max-width: 600px;
    position: relative;
}

.header-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.2);
    overflow: hidden;
}

.header-search-input {
    width: 100%;
    border: none;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    color: #333333;
    outline: none;
    background: transparent;
}

.header-search-button {
    background: none;
    border: none;
    padding: 0.6rem 1rem;
    color: #666666;
    cursor: pointer;
    font-size: 1rem;
    border-left: 1px solid #e6e6e6;
    transition: color 0.2s;
}

.header-search-button:hover {
    color: var(--color-gold);
}

.header-right-col {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

/* CEP Location styling */
.header-cep-col {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background-color 0.2s;
    border: 1px solid transparent;
}
.header-cep-col:hover {
    border-color: rgba(0, 0, 0, 0.08);
    background-color: rgba(0, 0, 0, 0.03);
}
.cep-icon {
    font-size: 1.25rem;
    color: rgba(0, 0, 0, 0.5);
}
.cep-info {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.cep-text-1 {
    font-size: 0.68rem;
    color: rgba(51, 51, 51, 0.55);
}
.cep-text-2 {
    font-size: 0.8rem;
    color: rgba(51, 51, 51, 0.9);
    font-weight: 500;
}

/* Category Dropdown Menu */
.category-dropdown-container {
    position: relative;
}
.category-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333333;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    list-style: none;
    padding: 0.5rem 0;
    margin: 8px 0 0 0;
    z-index: 1000;
    display: none;
}
.category-dropdown-menu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 20px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #333333 transparent;
}
.category-dropdown-container:hover .category-dropdown-menu {
    display: block;
}
.category-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.7rem 1.2rem;
    color: #e6e6e6;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.2s, color 0.2s;
    font-weight: 500;
}
.category-dropdown-menu li a:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}
.category-dropdown-menu li a i {
    font-size: 0.9rem;
    width: 16px;
    color: rgba(255,255,255,0.5);
}

/* User Account Menu (Right aligned) */
.header-user-menu-col {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.header-user-link {
    color: #333333;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 400;
    transition: opacity 0.2s;
}
.header-user-link:hover {
    opacity: 0.75;
}
.header-cart-btn {
    color: #333333;
    font-size: 1.1rem;
    text-decoration: none;
    position: relative;
    padding: 4px;
    transition: opacity 0.2s;
}
.header-cart-btn:hover {
    opacity: 0.75;
}

/* Mobile CEP location row */
.header-mobile-cep-row {
    display: none;
    align-items: center;
    gap: 6px;
    background-color: var(--color-header);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.5rem 1rem;
    width: 100%;
    box-sizing: border-box;
}

.header-admin-link-mobile {
    display: none;
}

.header-nav-links-row {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.header-nav-link-item {
    color: rgba(51, 51, 51, 0.6);
    font-weight: 400;
    transition: color 0.2s;
}

.header-nav-link-item:hover, .header-nav-link-item.active {
    color: #333333;
}

.menu-toggle {
    display: none;
}

.nav-links {
    display: none;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-title);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-text-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* --- Footer --- */
footer {
    background-color: #fafbfc;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0;
    margin-top: 5rem;
    text-align: center;
    color: var(--color-text-secondary);
}

.footer-logo {
    height: 50px;
    margin-bottom: 1.5rem;
}

/* --- Link na Bio Page --- */
.bio-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 3rem 1rem;
    background-color: #fafbfc;
}

.bio-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: 16px;
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.bio-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid var(--color-gold);
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.bio-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.bio-subtitle {
    color: var(--color-gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.bio-desc {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.bio-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bio-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.bio-btn-store {
    background-color: var(--color-text-primary);
    color: #ffffff;
    border-color: var(--color-text-primary);
}

.bio-btn-store:hover {
    background-color: #2d3748;
    transform: translateY(-2px);
}

.bio-btn-whatsapp {
    background-color: #ffffff;
    color: #25d366;
    border-color: #25d366;
}

.bio-btn-whatsapp:hover {
    background-color: #25d366;
    color: #ffffff;
    transform: translateY(-2px);
}

/* --- Vitrine / Loja Page --- */
.hero-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
    margin-bottom: 3rem;
}

.hero-container-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}

.hero-subtitle {
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 0.85rem;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 1.25rem;
    font-weight: 400;
    line-height: 1.2;
}

.hero-text {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    max-width: 580px;
}

.hero-banner-column {
    display: flex;
    justify-content: center;
}

.hero-banner-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--color-text-primary);
    color: #ffffff;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #2d3748;
    transform: translateY(-2px);
}

/* Grid de produtos (LADO A LADO: 2 colunas por padrão) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colunas por padrão */
    gap: 3rem 1.5rem;
    margin-bottom: 4rem;
}

@media(min-width: 769px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 colunas em telas médias */
    }
}

@media(min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 colunas em telas grandes */
    }
}

/* Cartões 100% sem bordas ou sombras */
/* Cartões estilo Mercado Livre (fundo branco, borda fina, preço grande) */
.product-card {
    background-color: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.2s ease-in-out;
}

.product-card:hover {
    box-shadow: 0 4px 12px 0 rgba(0,0,0,0.1);
}

.product-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;       /* Proporção quadrada Mercado Livre */
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;       /* Mostrar a peça inteira */
    padding: 0.5rem;
    transition: var(--transition-smooth);
}

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

/* Setas pretas circulares sobrepostas nas laterais da imagem (desabilitadas no design clean) */
.slide-nav {
    display: none;
}

.product-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #666666;
    font-weight: 400;
    line-height: 1.3;
    height: 2.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.product-title a:hover {
    color: var(--color-gold);
}

.product-creator {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999999;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.product-price {
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    color: #333333;
    font-weight: 500;
}

.free-shipping-badge {
    color: #00a650;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 0.25rem;
}

/* --- Avaliações Section --- */
.reviews-section {
    background-color: #fafbfc;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 5rem 0;
    margin-top: 4rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Reviews Carousel Layout */
.reviews-carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0.5rem;
}

.reviews-carousel-wrapper {
    display: flex;
    gap: 2rem;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.review-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    position: relative;
    flex: 0 0 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

@media (min-width: 769px) {
    .review-card {
        flex: 0 0 calc(50% - 1rem); /* 2 items visible on tablet/desktop */
    }
}

.stars {
    color: var(--color-gold);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.review-text {
    font-style: italic;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Product Box in Review Card (Amazon-style) */
.review-product-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.review-product-img-wrapper {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: #f8fafc;
}

.review-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.review-product-img:hover {
    transform: scale(1.03);
}

.review-product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.review-product-label {
    font-size: 0.7rem;
    color: #2e7d32; /* Green for Amazon-style verified purchase */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.review-product-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.review-author {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Navigation Buttons & Dots */
.reviews-carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.reviews-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.reviews-nav-btn:hover {
    background-color: var(--color-text-primary);
    color: #ffffff;
    border-color: var(--color-text-primary);
    transform: translateY(-2px);
}

.reviews-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.reviews-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.reviews-dot.active {
    background-color: var(--color-gold);
    transform: scale(1.25);
}

/* --- Floating Whatsapp Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    background-color: #22c05b;
}

/* --- Produto Detail Page --- */
.product-container {
    max-width: 1200px;
    padding: 2rem 1.5rem;
}

.product-description-container {
    border-top: 1px solid #eee;
    padding-top: 2.5rem;
}

.recommended-products-container {
    margin-top: 3rem;
    background-color: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.1);
}

.product-main-container {
    background-color: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.1);
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 2.5rem;
    margin-top: 0;
}

.gallery-container {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: flex-start;
    width: 100%;
}

.gallery-thumbs-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.gallery-thumb {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 2px;
    background: white;
    opacity: 0.7;
}

.gallery-thumb.active {
    border: 2px solid #3483fa;
    opacity: 1;
}

.gallery-thumb:hover {
    opacity: 1;
}

.main-image-box {
    flex-grow: 1;
    height: 480px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    width: 100%;
}

.main-image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: filter 0.35s ease-in-out;
}

.product-detail-info {
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 2rem;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

@media(max-width: 768px) {
    /* Set body background to white on mobile product page */
    body.product-page {
        background-color: #ffffff !important;
    }
    
    .product-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .product-main-container {
        padding: 0 !important;
        gap: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background-color: transparent !important;
    }
    
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .gallery-container {
        flex-direction: column-reverse;
        gap: 1rem;
        padding: 1rem 0;
        background-color: #ffffff;
    }
    
    .gallery-thumbs-col {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        gap: 0.75rem;
        padding: 0 1rem;
    }
    
    .main-image-box {
        height: 350px !important;
        border: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        border-radius: 0 !important;
        padding: 0.5rem;
        background-color: #ffffff;
    }
    
    .product-detail-info {
        padding: 1.5rem 1.25rem !important;
        border: none !important;
        border-top: 1px solid #e6e6e6 !important;
        border-radius: 0 !important;
        background-color: #ffffff !important;
    }

    .product-description-container {
        padding: 1.5rem 1.25rem !important;
        border-top: 1px solid #e6e6e6 !important;
        background-color: #ffffff !important;
    }

    .recommended-products-container {
        margin-top: 1.5rem !important;
        padding: 1.5rem 1.25rem !important;
        border: none !important;
        border-top: 1px solid #e6e6e6 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background-color: #ffffff !important;
    }
}

.detail-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    font-weight: 400;
}

.detail-price {
    font-size: 1.8rem;
    color: var(--color-gold);
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.detail-desc {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* --- Shipping Calculator --- */
.shipping-calc-box {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.shipping-calc-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shipping-input-group {
    display: flex;
    gap: 0.5rem;
}

.form-control {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--color-text-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    outline: none;
    font-size: 0.95rem;
    width: 100%;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--color-text-primary);
    background-color: #ffffff;
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--color-text-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background-color: var(--color-text-primary);
    color: #ffffff;
    border-color: var(--color-text-primary);
}

.shipping-results {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shipping-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.shipping-option.selected {
    border-color: var(--color-text-primary);
    background-color: #ffffff;
}

.buy-button {
    width: 100%;
    text-align: center;
    padding: 1.1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    background-color: #1b8a5a; /* premium green */
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

.buy-button:hover {
    background-color: #156d46; /* darker green for hover */
    transform: translateY(-1px);
}

/* --- Checkout Page Layout --- */
.checkout-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 3rem;
    margin-top: 2rem;
}

@media(max-width: 992px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.checkout-box {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
}

/* Checkout Wizard Steps */
.checkout-wizard-step {
    transition: opacity 0.35s ease;
    opacity: 0;
}
.checkout-wizard-step.active {
    opacity: 1;
}

.checkout-section-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 400;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.form-group-full {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-weight: 600;
}

/* Payment Tabs */
.payment-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-tab {
    border: 1px solid var(--border-color);
    background-color: var(--bg-input);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-text-secondary);
}

.payment-tab.active {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background-color: #ffffff;
}

.payment-details-panel {
    display: none;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background-color: #ffffff;
}

.payment-details-panel.active {
    display: block;
}

/* Shipping Method Selection in Checkout */
.checkout-shipping-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.shipping-method-row {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.shipping-method-row:hover {
    border-color: var(--color-text-primary);
}

.shipping-method-row.active {
    border-color: var(--color-text-primary);
    background-color: #ffffff;
}

.shipping-method-row input[type="radio"] {
    margin-right: 1rem;
    accent-color: var(--color-text-primary);
}

.shipping-method-info {
    flex-grow: 1;
}

.shipping-method-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.shipping-method-time {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.shipping-method-cost {
    font-weight: 700;
    color: var(--color-title);
}

/* Summary Box */
.summary-box {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    position: sticky;
    top: 100px;
}

.summary-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    font-weight: 400;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.summary-item-info {
    flex-grow: 1;
}

.summary-item-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.summary-totals {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.total-row.grand-total {
    color: var(--color-title);
    font-size: 1.25rem;
    font-weight: 700;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

/* Modal Senha Cartão */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 22, 18, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-box {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    width: 90%;
    max-width: 420px;
    text-align: center;
}

.modal-icon {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.modal-desc {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* --- Pix Payment Screen --- */
.pix-container {
    max-width: 600px;
    margin: 3rem auto;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
}

.pix-qr-box {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    width: 250px;
    height: 250px;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.pix-qr-box img {
    width: 100%;
    height: 100%;
}

.pix-copia-cola-group {
    margin: 2rem 0;
}

.pix-copia-cola-box {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--color-text-secondary);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    word-break: break-all;
    font-family: monospace;
    max-height: 100px;
    overflow-y: auto;
    margin-bottom: 0.75rem;
    text-align: left;
}

.pix-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    color: var(--color-gold);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
}

.pix-status-indicator.approved {
    background-color: rgba(40, 199, 111, 0.1);
    color: var(--color-success);
    border-color: rgba(40, 199, 111, 0.2);
}

.pulse-animation::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: currentColor;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(179, 142, 54, 0.4);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(179, 142, 54, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(179, 142, 54, 0);
    }
}

/* --- Admin Panel --- */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background-color: #ffffff;
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.admin-logo {
    height: 40px;
    margin-bottom: 3rem;
    object-fit: contain;
}

.admin-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-menu-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.admin-menu-item.active a, .admin-menu-item a:hover {
    background-color: var(--bg-input);
    color: var(--color-text-primary);
}

.admin-content {
    flex-grow: 1;
    padding: 3rem;
    background-color: #f8fafc;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.admin-title {
    font-size: 2rem;
    font-weight: 400;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.admin-stat-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
}

.admin-stat-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.admin-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-top: 0.5rem;
}

.admin-table-container {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.admin-table th {
    background-color: #f8fafc;
    color: var(--color-title);
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--color-text-secondary);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background-color: #fafbfc;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.badge-pending {
    background-color: #f8fafc;
    color: var(--color-gold);
    border-color: var(--border-color);
}

.badge-approved {
    background-color: rgba(40, 199, 111, 0.1);
    color: var(--color-success);
}

.badge-failed {
    background-color: rgba(234, 84, 85, 0.1);
    color: var(--color-danger);
}

/* Card Details Display in Admin */
.admin-card-details-box {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--color-text-primary);
    line-height: 1.5;
}

.admin-card-details-box span {
    color: var(--color-gold);
    font-weight: 600;
}

/* Admin Forms */
.admin-form-box {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 600px;
}



.drawer-close-row {
    display: none;
}

/* --- Responsive Helpers --- */
@media(max-width: 768px) {
    .hero-container-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    .hero-banner-img {
        margin: 0 auto;
        max-width: 320px;
    }
    .header-container {
        flex-direction: column !important;
        gap: 0.5rem !important;
        padding: 0.5rem 1rem !important;
        width: 100%;
    }
    .header-top-row {
        justify-content: space-between !important;
        gap: 1rem !important;
    }
    .menu-toggle {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.3rem;
        color: #333333;
        cursor: pointer;
    }
    .header-search-col {
        width: 100% !important;
        max-width: 100% !important;
    }
    .header-bottom-row {
        display: none !important;
    }
    .header-mobile-cep-row {
        display: flex !important;
    }
    .header-admin-link-mobile {
        display: inline !important;
    }
    .drawer-close-row {
        display: flex !important;
        justify-content: flex-end;
        width: 100%;
    }
    #menu-close-btn {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--color-title);
        padding: 0.5rem;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100vh;
        background-color: #ffffff;
        border-right: 1px solid var(--border-color);
        border-bottom: none;
        padding: 2rem;
        gap: 1.5rem;
        z-index: 1000;
        transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-links.active {
        left: 0;
    }
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .admin-stats {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group-full {
        grid-column: span 1;
    }
    .checkout-box {
        padding: 1.25rem 1rem !important;
        border-radius: 8px !important;
    }
    .summary-box {
        padding: 1.25rem 1rem !important;
        border-radius: 8px !important;
    }
}

/* --- Screenshot Shipping Calculator Theme (Melhor Envio / Super Frete style) --- */
.frete-card {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.frete-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.frete-input-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #cbd5e1;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.frete-input-wrapper input {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 600;
    width: 60%;
    outline: none;
    color: var(--color-text-primary);
}

.frete-search-link {
    font-size: 0.85rem;
    color: #0284c7;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.frete-calc-btn {
    width: 100%;
    background-color: #cbd5e1;
    color: var(--color-text-primary);
    border: none;
    padding: 1rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.frete-calc-btn:hover {
    background-color: #94a3b8;
}

/* Modalidades (modalities) */
.frete-modalidades-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
    text-align: left;
}

.frete-modalidade-option {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background-color: #ffffff;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
    text-align: left;
}

.frete-modalidade-option:hover {
    border-color: #00c58d;
}

.frete-modalidade-option.selected {
    border-color: #00c58d;
    box-shadow: 0 0 0 2px rgba(0, 197, 141, 0.15);
}

.frete-radio {
    margin-right: 1.25rem;
    width: 20px;
    height: 20px;
    accent-color: #00c58d;
    cursor: pointer;
}

.frete-option-details {
    flex-grow: 1;
}

.frete-option-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.frete-option-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text-primary);
}

.frete-option-time {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.frete-option-prices {
    text-align: right;
}

.frete-option-price-current {
    font-size: 1.15rem;
    font-weight: 700;
    color: #00c58d; /* green price from screenshot */
}

.frete-option-price-original {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    text-decoration: line-through;
}

.frete-badge-best-price {
    position: absolute;
    top: -10px;
    right: 1.5rem;
    background-color: #cbfbe2;
    color: #0c8040;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid #a7f3d0;
}

/* Timeline */
.frete-timeline {
    margin-top: 2rem;
    padding-left: 0.5rem;
    text-align: left;
}

.frete-timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.frete-timeline-item:last-child {
    margin-bottom: 0;
}

.frete-timeline-icon {
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1rem;
    color: #94a3b8;
}

.frete-timeline-icon.origin {
    color: var(--color-text-secondary);
}

.frete-timeline-icon.destination {
    color: #ef4444; /* red pin */
}

.frete-timeline-line {
    position: absolute;
    left: 7px;
    top: 24px;
    bottom: -20px;
    width: 2px;
    border-left: 2px dotted #cbd5e1;
}

.frete-timeline-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-transform: uppercase;
}

.frete-timeline-text {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: 0.25rem;
}

/* Accepted Payments Custom Style (from User's HTML) */
.rvFooter__payments {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.rvPay {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 6px 12px;
    box-sizing: border-box;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b; /* Slate-800 color for text on white background */
    height: 32px;
    gap: 0.4rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.rvPay:hover {
    border-color: var(--color-gold);
    transform: translateY(-1px);
}

.rvPay img,
.rvPay svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.rvPay em {
    font-style: normal;
    color: #00c58d; /* Green color for discount */
    font-weight: 800;
    margin-left: 0.15rem;
}

/* Modal overlay and content styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 90%;
    max-width: 850px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

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

.modal-header {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-input);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--color-title);
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.35rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--color-danger);
}

.modal-body {
    padding: 1.75rem;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-sections-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media(max-width: 768px) {
    .modal-sections-container {
        grid-template-columns: 1fr;
    }
    .modal-column {
        padding-left: 0 !important;
        border-left: none !important;
        border-top: 1px solid var(--border-color);
        padding-top: 1.5rem;
    }
}

.modal-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-title);
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    color: var(--color-text-primary);
    font-size: 0.88rem;
}

.modal-copyable {
    cursor: pointer;
    border-bottom: 1px dotted var(--color-gold);
    transition: all 0.2s;
    font-family: monospace;
}

.modal-copyable:hover {
    color: #28c76f;
    background-color: rgba(40, 199, 111, 0.08);
}

/* Validation Errors styling (No Alert browser popups) */
@keyframes shake-box {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
    20%, 40%, 60%, 80% { transform: translateX(6px); }
}

.checkout-box.shake-error-box {
    animation: shake-box 0.6s ease-in-out;
    border-color: #ea5455 !important;
    box-shadow: 0 4px 20px rgba(234, 84, 85, 0.25) !important;
}

.form-control.input-error {
    border-color: #ea5455 !important;
    background-color: #fff8f8 !important;
    box-shadow: 0 0 0 2px rgba(234, 84, 85, 0.1) !important;
}

.validation-error-banner {
    background-color: #fff5f5;
    border: 1px solid #ffcccc;
    color: #ea5455;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: fadeIn 0.3s ease;
}

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

