/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* Top Bar */
.top-bar {
    background-color: #000;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.promo-text {
    font-weight: 700;
    letter-spacing: 1px;
}

.trust-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: #ffa500;
    font-size: 16px;
}

.rating-text {
    font-weight: 600;
}

.review-count {
    color: #ccc;
}

/* Header Ecommerce */
.header-ecommerce {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.header-left {
    display: flex;
    justify-content: flex-start;
}

.header-center {
    text-align: center;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #000;
}

.menu-toggle,
.icon-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.menu-toggle:hover,
.icon-btn:hover {
    color: #000;
}

.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* Hero Section */
.hero-section {
    background-color: #fff;
    padding: 40px 0;
}

.hero-badges {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-red {
    background-color: #dc2626;
    color: #fff;
}

.badge-orange {
    background-color: #f97316;
    color: #fff;
}

/* Trustpilot Style Rating */
.trustpilot-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.trustpilot-stars {
    display: flex;
    gap: 2px;
}

.trustpilot-stars i {
    color: #00b67a;
    font-size: 18px;
}

.trustpilot-text {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.trustpilot-count {
    font-size: 14px;
    color: #666;
}

/* Product Title */
.product-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #000;
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.rating-stars {
    display: flex;
    gap: 3px;
}

.rating-stars i {
    color: #fbbf24;
    font-size: 18px;
}

.rating-count {
    font-size: 14px;
    color: #6b7280;
}

/* Price Section */
.price-section {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 15px;
}

.price-current {
    font-size: 40px;
    font-weight: 900;
    color: #000;
}

.price-old {
    font-size: 22px;
    text-decoration: line-through;
    color: #9ca3af;
}

/* Stock Alert */
.stock-alert {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fef3c7;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 20px;
}

.stock-alert i {
    font-size: 16px;
}

/* Trust Badges Inline */
.trust-badges-inline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #4b5563;
}

.trust-item i {
    font-size: 18px;
    color: #6b7280;
}

/* Purchase Section */
.purchase-section {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: stretch;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    background-color: #fff;
    overflow: hidden;
}

.qty-btn {
    background-color: #f9fafb;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 16px;
    color: #4b5563;
    transition: background-color 0.2s ease;
}

.qty-btn:hover {
    background-color: #e5e7eb;
}

.qty-btn:active {
    background-color: #d1d5db;
}

.qty-input {
    border: none;
    width: 60px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    background-color: #fff;
    padding: 12px 0;
}

.qty-input:focus {
    outline: none;
}

/* Add to Cart Button */
.add-to-cart-btn {
    flex: 1;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.add-to-cart-btn:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn i {
    font-size: 18px;
}

/* Product Image Main */
.product-image-main {
    text-align: center;
    margin-bottom: 30px;
}

.product-image-main img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Urgency Banner */
.urgency-banner {
    background-color: #fee2e2;
    border-left: 4px solid #dc2626;
    padding: 15px 10px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 14px;
    color: #991b1b;
}

/* Customer Photos */
.customer-photos {
    background-color: #f9fafb;
    padding: 60px 0;
}

.section-subtitle {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #000;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.photo-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Product Details */
.product-details {
    background-color: #fff;
    padding: 10px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 50px;
    color: #000;
}

.product-detail-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #e5e7eb;
}

.product-detail-card:last-of-type {
    border-bottom: none;
}

.product-detail-image {
    text-align: center;
}

.product-detail-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.product-detail-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.tasting-notes {
    font-size: 15px;
    color: #059669;
    font-style: italic;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-description {
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
}

/* Pack Composition */
.pack-composition {
    background-color: #f9fafb;
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
    margin-bottom: 30px;
}

.pack-composition h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.pack-composition ul {
    list-style: none;
    padding: 0;
}

.pack-composition ul li {
    font-size: 15px;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #4b5563;
}

.pack-composition ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 700;
}

/* Product Specs */
.product-specs {
    background-color: #f9fafb;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.product-specs h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.product-specs p {
    font-size: 15px;
    margin-bottom: 10px;
    color: #4b5563;
}

/* Guarantees */
.guarantees {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.guarantee-item {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #166534;
    text-align: center;
}

/* Reviews Section */
.reviews-section {
    background-color: #f9fafb;
    padding: 60px 0;
}

.reviews-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 50px;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.reviews-score {
    text-align: center;
}

.score-number {
    font-size: 64px;
    font-weight: 900;
    color: #000;
    line-height: 1;
}

.score-stars {
    color: #16a34a;
    font-size: 32px;
    margin: 10px 0;
}

.score-text {
    font-size: 14px;
    color: #6b7280;
}

.reviews-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.breakdown-row {
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    align-items: center;
    gap: 15px;
}

.breakdown-label {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
}

.breakdown-bar {
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    background-color: #16a34a;
    transition: width 0.3s ease;
}

.breakdown-count {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-align: right;
}

/* Review Images Grid */
.review-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 50px;
}

.review-images-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Reviews List */
.reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.review-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-name {
    font-size: 15px;
    font-weight: 700;
    color: #000;
}

.review-stars {
    color: #16a34a;
    font-size: 16px;
}

.review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

/* Footer */
.footer {
    background-color: #000;
    color: #9ca3af;
    padding: 30px 0;
    text-align: center;
}

.footer-disclaimer {
    font-size: 13px;
    margin-bottom: 10px;
}

.footer-copyright {
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }

    .header-content {
        grid-template-columns: auto 1fr auto;
    }

    .logo {
        font-size: 20px;
    }

    .header-right {
        gap: 10px;
    }

    .icon-btn {
        font-size: 18px;
    }

    .product-title {
        font-size: 24px;
    }

    .price-current {
        font-size: 32px;
    }

    .price-old {
        font-size: 18px;
    }

    .purchase-section {
        flex-direction: column;
    }

    .quantity-selector {
        justify-content: center;
    }

    .product-detail-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-title {
        font-size: 26px;
    }

    .photos-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .product-title {
        font-size: 20px;
    }

    .price-current {
        font-size: 28px;
    }

    .trustpilot-rating {
        flex-direction: column;
        align-items: flex-start;
    }

    .add-to-cart-btn {
        font-size: 14px;
        padding: 12px 30px;
    }

    .score-number {
        font-size: 48px;
    }

    .reviews-list {
        grid-template-columns: 1fr;
    }
}
/* =============================== */
/*   GALERIA DE IMAGENS DO PRODUTO */
/* =============================== */

.product-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

/* Imagem principal */
.product-gallery-main img {
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    display: block;
}

/* Thumbnails container */
.product-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    width: 100%;
    max-width: 450px;
    scrollbar-width: thin; /* Firefox */
}

/* Barra de rolagem (Chrome / Edge / Safari) */
.product-gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.product-gallery-thumbs::-webkit-scrollbar-thumb {
    background: #c89b3c;
    border-radius: 10px;
}

.product-gallery-thumbs::-webkit-scrollbar-track {
    background: transparent;
}

/* Miniaturas */
.product-gallery-thumbs img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: .6;
    transition: all .2s ease-in-out;
    border: 2px solid transparent;
    flex-shrink: 0; /* impede de estourar o layout */
}

/* Miniatura ativa ou hover */
.product-gallery-thumbs img.active,
.product-gallery-thumbs img:hover {
    opacity: 1;
    border-color: #c89b3c;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .product-gallery-main img {
        max-width: 100%;
    }

    .product-gallery-thumbs img {
        width: 60px;
        height: 60px;
    }
}
/* ===========================
   QUANTITY SELECTOR — ELEGANTE/COMPACTO
   =========================== */

.purchase-section {
    display: flex;
    flex-direction: column;   /* seletor em cima do botão */
    align-items: flex-start;  /* canto esquerdo */
    gap: 10px;
}

/* cápsula premium compacta */
.quantity-selector {
    --accent: #c89b3c;
    height: 34px;
    padding: 0 4px;
    border-radius: 999px; /* pílula */
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    border: 1px solid rgba(200,155,60,.42);
    box-shadow:
        0 6px 14px rgba(0,0,0,.06),
        inset 0 1px 0 rgba(255,255,255,.85);
    display: inline-flex;
    align-items: center;
    overflow: hidden;
}

/* divisórias suaves */
.quantity-selector .qty-btn + .qty-input,
.quantity-selector .qty-input + .qty-btn { position: relative; }
.quantity-selector .qty-btn + .qty-input::before,
.quantity-selector .qty-input + .qty-btn::before {
    content: "";
    position: absolute;
    left: 0; top: 18%;
    width: 1px; height: 64%;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.08), transparent);
}

/* botões minimalistas */
.qty-btn {
    width: 32px;
    height: 100%;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #3a3a3a;
    cursor: pointer;
    transition: background .15s ease, transform .06s ease, color .15s ease;
    border-radius: 8px; /* só pra hover ficar redondinho */
}
.qty-btn:hover { background: rgba(200,155,60,.10); color: #2a2a2a; }
.qty-btn:active { transform: scale(.95); }

/* número central */
.qty-input {
    width: 36px;
    height: 100%;
    border: 0;
    background: transparent;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .2px;
    color: #111;
}
.qty-input:focus { outline: none; }

/* foco acessível no conjunto */
.quantity-selector:focus-within {
    box-shadow:
        0 6px 14px rgba(0,0,0,.06),
        inset 0 1px 0 rgba(255,255,255,.85),
        0 0 0 3px rgba(200,155,60,.18);
    border-color: rgba(200,155,60,.56);
}

/* botão de compra permanece largo */
.add-to-cart-btn { width: 100%; border-radius: 10px; }

/* variante ainda menor: adicione class="quantity-selector xs" no HTML se quiser */
.quantity-selector.xs { height: 30px; }
.quantity-selector.xs .qty-btn { width: 28px; font-size: 12px; }
.quantity-selector.xs .qty-input { width: 32px; font-size: 14px; }
