/* ===== RESET & BASE ===== */
:root {
    --white: #ffffff;
    --bg: #ffffff;
    --bg-light: #f7f7f8;
    --text-dark: #1a1a1a;
    --text-medium: #555;
    --text-light: #888;
    --border: #e5e5e5;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --green: #16a34a;
    --green-bg: #f0fdf4;
    --red: #dc2626;
    --orange-bg: #fff7ed;
    --orange: #ea580c;
    --radius: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --transition: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--bg);
    font-size: 16px;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

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

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
    background: var(--text-dark);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ===== SITE HEADER ===== */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 20px;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.header-logo:hover { text-decoration: none; }
.header-logo img {
    height: 104px;
    width: auto;
    display: block;
}

.header-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.header-nav a {
    color: var(--text-medium);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}
.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
}
.header-nav a:hover { color: var(--text-dark); text-decoration: none; }
.header-nav a:hover::after { width: 100%; }

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.5px;
    transition: var(--transition);
    flex-shrink: 0;
}
.header-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}

/* ===== PRODUCT SECTION ===== */
.product-section {
    padding: 40px 0 60px;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* GALLERY */
.product-gallery {
    display: flex;
    gap: 12px;
    position: sticky;
    top: 80px;
}

.gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 72px;
    flex-shrink: 0;
}

.thumb {
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    background: var(--bg-light);
}
.thumb:hover { border-color: #ccc; }
.thumb.active { border-color: var(--text-dark); }
.thumb img { width: 100%; height: auto; display: block; }

.gallery-main {
    flex: 1;
    position: relative;
    background: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    cursor: crosshair;
}
.gallery-main:hover img {
    transform: scale(1.05);
}

.zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
}

/* PRODUCT INFO */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.breadcrumb {
    font-size: 0.8rem;
    color: var(--text-light);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb span { color: var(--text-medium); }

.product-badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    width: fit-content;
}

.product-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}
.stars { color: #f59e0b; font-size: 1rem; }
.rating-count { color: var(--text-light); font-size: 0.85rem; }

/* PRICE */
.price-block {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1rem;
}

.current-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.installments {
    font-size: 0.85rem;
    color: var(--text-medium);
    width: 100%;
}

.discount-tag {
    background: var(--green-bg);
    color: var(--green);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

/* PROMO BANNER */
.promo-banner {
    background: var(--orange-bg);
    border: 1px solid #fed7aa;
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 0.9rem;
    color: var(--orange);
    line-height: 1.5;
}

/* HIGHLIGHTS */
.product-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
}

.highlight-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #eff6ff;
    border-radius: 8px;
}

.highlight-item strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.highlight-item p {
    font-size: 0.82rem;
    color: var(--text-medium);
    margin: 0;
    line-height: 1.4;
}

/* QUANTITY */
.quantity-selector {
    padding-top: 10px;
}

.quantity-selector label {
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: fit-content;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-dark);
    transition: var(--transition);
}
.qty-btn:hover { background: var(--bg-light); }

.qty-controls input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    background: transparent;
}

/* VOLTAGE SELECTOR */
.voltage-selector {
    padding-top: 6px;
}

.voltage-selector label {
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.voltage-options {
    display: flex;
    gap: 10px;
}

.voltage-btn {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.25s ease;
}

.voltage-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.voltage-btn.active {
    border-color: var(--accent);
    background: #eff6ff;
    color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* BUY BUTTON */
.buy-button {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.buy-button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.buy-text {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.buy-subtext {
    font-size: 0.75rem;
    opacity: 0.85;
}

/* TRUST */
.trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-medium);
}
.trust-item svg { color: var(--green); flex-shrink: 0; }

/* ===== PRODUCT DETAILS TABS ===== */
.product-details {
    padding: 60px 0;
    background: var(--bg-light);
}

.details-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 30px;
    gap: 0;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.tab-btn:hover { color: var(--text-dark); }
.tab-btn.active {
    color: var(--text-dark);
    border-bottom-color: var(--accent);
}

.tab-content {
    display: none;
}
.tab-content.active { display: block; }

.tab-content h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.tab-content p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 20px;
}

.details-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 30px 0;
}

.detail-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.detail-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.detail-card h3 {
    padding: 14px 16px 4px;
    font-size: 0.95rem;
}
.detail-card p {
    padding: 0 16px 16px;
    font-size: 0.82rem;
    margin: 0;
}

.marketing-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px;
}
.marketing-images img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* SPECS TABLE */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}
.specs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.specs-table tr td:first-child {
    font-weight: 600;
    width: 40%;
    color: var(--text-dark);
}
.specs-table tr td:last-child {
    color: var(--text-medium);
}
.specs-table tr:nth-child(even) {
    background: rgba(0,0,0,0.02);
}

/* SHIPPING INFO */
.shipping-info-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.shipping-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.shipping-card h3 { margin-bottom: 10px; font-size: 1.05rem; }
.shipping-card p { font-size: 0.88rem; margin: 0; }

/* ===== REVIEWS ===== */
.reviews {
    padding: 60px 0;
}

.reviews h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.reviews-summary {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.rating-big { text-align: center; min-width: 160px; }
.big-number { font-size: 3.5rem; font-weight: 700; display: block; line-height: 1; }
.stars-big { color: #f59e0b; font-size: 1.3rem; display: block; margin: 6px 0; }
.total-reviews { font-size: 0.8rem; color: var(--text-light); }

.rating-bars { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-medium);
}
.bar-row span:first-child { width: 30px; text-align: right; }
.bar-row span:last-child { width: 35px; }
.bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}
.bar-fill { height: 100%; background: #f59e0b; border-radius: 4px; }

.reviews-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.review-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.reviewer-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.review-header strong { font-size: 0.9rem; }
.review-date { display: block; font-size: 0.75rem; color: var(--text-light); }
.stars-sm { color: #f59e0b; font-size: 0.85rem; margin-left: auto; }

.review-tag {
    font-size: 0.75rem;
    color: var(--green);
    margin-bottom: 8px;
}

.review-card p:last-child {
    font-size: 0.88rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* ===== FAQ ===== */
.faq {
    padding: 60px 0;
    background: var(--bg-light);
}

.faq h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 18px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    transition: var(--transition);
}
.faq-question:hover { color: var(--accent); }

.faq-toggle {
    font-size: 1.4rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding-bottom: 18px;
}

.faq-answer p {
    font-size: 0.88rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
}

/* ===== STICKY BAR ===== */
.sticky-buy-bar {
    position: fixed;
    bottom: -80px;
    left: 0;
    width: 100%;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 99;
    transition: bottom 0.3s ease;
}
.sticky-buy-bar.visible { bottom: 0; }

.sticky-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.sticky-info strong {
    font-size: 0.9rem;
    display: block;
}
.sticky-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.sticky-buy-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}
.sticky-buy-btn:hover {
    background: var(--accent-hover);
}

/* ===== FOOTER ===== */
.footer {
    padding: 50px 0 30px;
    border-top: 1px solid var(--border);
}

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

.footer-col h4 {
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.footer-col p {
    font-size: 0.85rem;
    color: var(--text-medium);
    line-height: 1.5;
}
.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-medium);
    text-decoration: none;
    margin-bottom: 6px;
    transition: var(--transition);
}
.footer-col a:hover { color: var(--text-dark); text-decoration: none; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-light);
}

/* ===== RESPONSIVE ===== */

/* TABLET */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .product-gallery { position: static; }
    .details-features-grid { grid-template-columns: 1fr; }
    .marketing-images { grid-template-columns: 1fr; }
    .reviews-list { grid-template-columns: 1fr; }
    .shipping-info-block { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* MOBILE */
@media (max-width: 768px) {
    html { font-size: 15px; }

    .container { padding: 0 16px; }

    /* Announcement Bar */
    .announcement-bar {
        font-size: 0.75rem;
        padding: 8px 16px;
        line-height: 1.4;
    }

    /* Header */
    .header-inner { justify-content: center; }
    .header-logo img { height: 84px; }
    .header-nav { display: none; }
    .header-cta { padding: 8px 16px; font-size: 0.78rem; }

    /* Product Section */
    .product-section { padding: 20px 0 40px; }

    .product-gallery {
        flex-direction: column-reverse;
        gap: 10px;
    }
    .gallery-thumbnails {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 4px;
    }
    .gallery-thumbnails .thumb {
        min-width: 56px;
        width: 56px;
        flex-shrink: 0;
    }

    .gallery-main { border-radius: 6px; }
    .zoom-hint { display: none; }

    /* Product Info */
    .product-title { font-size: 1.25rem; line-height: 1.3; }
    .product-badge { font-size: 0.7rem; padding: 3px 8px; }
    .product-rating { flex-wrap: wrap; }

    .price-block {
        flex-wrap: wrap;
        gap: 6px;
        padding: 12px 0;
    }
    .original-price { font-size: 0.9rem; }
    .current-price { font-size: 1.8rem; }
    .installments { font-size: 0.8rem; }
    .discount-tag { font-size: 0.7rem; }

    .promo-banner {
        font-size: 0.82rem;
        padding: 12px;
    }

    .highlight-item {
        padding: 8px 0;
        gap: 10px;
    }
    .highlight-icon {
        width: 36px;
        height: 36px;
    }
    .highlight-icon svg {
        width: 18px;
        height: 18px;
    }
    .highlight-item strong { font-size: 0.85rem; }
    .highlight-item p { font-size: 0.78rem; }

    .quantity-selector label { font-size: 0.82rem; }

    .buy-button { padding: 14px; }
    .buy-text { font-size: 0.95rem; }
    .buy-subtext { font-size: 0.7rem; }

    .trust-badges {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .trust-item { font-size: 0.75rem; gap: 6px; }
    .trust-item svg { width: 16px; height: 16px; }

    /* Tabs / Details */
    .product-details { padding: 40px 0; }
    .details-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0;
    }
    .tab-btn {
        white-space: nowrap;
        padding: 10px 14px;
        font-size: 0.82rem;
    }
    .tab-content h2 { font-size: 1.2rem; }
    .tab-content p { font-size: 0.85rem; }

    .details-features-grid { grid-template-columns: 1fr; gap: 16px; }
    .detail-card img { height: 180px; }

    .marketing-images {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .specs-table td {
        padding: 10px 12px;
        font-size: 0.82rem;
    }

    .shipping-info-block { grid-template-columns: 1fr; gap: 12px; }
    .shipping-card { padding: 16px; }
    .shipping-card h3 { font-size: 0.95rem; }
    .shipping-card p { font-size: 0.82rem; }

    /* Reviews */
    .reviews { padding: 40px 0; }
    .reviews h2 { font-size: 1.3rem; margin-bottom: 20px; }
    .reviews-summary {
        flex-direction: column;
        gap: 20px;
        padding: 16px;
    }
    .big-number { font-size: 2.5rem; }
    .reviews-list { grid-template-columns: 1fr; gap: 12px; }
    .review-card { padding: 16px; }
    .review-header { gap: 8px; }
    .reviewer-avatar { width: 32px; height: 32px; font-size: 0.7rem; }
    .review-header strong { font-size: 0.82rem; }
    .review-card p:last-child { font-size: 0.82rem; }

    /* FAQ */
    .faq { padding: 40px 0; }
    .faq h2 { font-size: 1.3rem; margin-bottom: 20px; }
    .faq-question { font-size: 0.88rem; padding: 14px 0; }
    .faq-answer p { font-size: 0.82rem; }

    /* Sticky Bar */
    .sticky-buy-bar { z-index: 999; }
    .sticky-content { padding: 10px 0; }
    .sticky-info strong { font-size: 0.8rem; }
    .sticky-price { font-size: 0.95rem; }
    .sticky-buy-btn {
        padding: 10px 20px;
        font-size: 0.82rem;
    }

    /* Footer */
    .footer { padding: 30px 0 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-col h4 { font-size: 0.88rem; margin-bottom: 8px; }
    .footer-col p, .footer-col a { font-size: 0.8rem; }
    .footer-bottom p { font-size: 0.72rem; }
}

/* SMALL MOBILE (iPhone SE etc) */
@media (max-width: 380px) {
    html { font-size: 14px; }
    .product-title { font-size: 1.1rem; }
    .current-price { font-size: 1.6rem; }
    .trust-badges { grid-template-columns: 1fr; }
    .gallery-thumbnails .thumb { min-width: 48px; width: 48px; }
}

