body { margin: 0; font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif; background-color: #f5f5f5; color: #333; line-height: 1.5; }
:root {
    --primary: #0b8649;
    --primary-dark: #096a3a;
    --primary-light: #e6f4ec;
    --accent: #e0123b;
    --yellow: #f5a623;
    --gray-light: #f2f2f2;
    --border: #e0e0e0;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

.topbar {
    background: var(--primary); color: white; font-size: 0.75rem; padding: 6px 0; text-align: center;
}
.topbar .container { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 1rem; }
.topbar a { color: white; font-weight: 500; }
.separator { width: 1px; height: 12px; background: rgba(255,255,255,0.4); }

.header {
    background: rgb(0, 0, 0); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; padding: 3.8px 0;
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { flex-shrink: 0; display: flex; align-items: center; }
.logo img { height: 68px; width: auto; }
.search { flex: 1; max-width: 500px; position: relative; }
.search input { width: 100%; padding: 8px 38px 8px 16px; border: 2px solid #ccc; border-radius: 38px; font-size: 0.8rem; outline: none; background: #f9f9f9; }
.search input:focus { border-color: var(--primary); background: white; }
.search button { position: absolute; right: 3.8px; top: 50%; transform: translateY(-50%); background: var(--primary); border: none; color: white; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }

.header-icons { display: flex; align-items: center; gap: 1.38rem; }
.header-icon { display: flex; flex-direction: column; align-items: center; font-size: 0.68rem; cursor: pointer; position: relative; transition: opacity 0.38s; }
.header-icon:hover { opacity: 0.88; }
.header-icon i { font-size: 1.38rem; margin-bottom: 1.88px; }
.cart-badge { position: absolute; top: -6px; right: -10px; background: var(--accent); color: white; border-radius: 18px; padding: 2px 6px; font-size: 0.65rem; font-weight: 700; line-height: 1; white-space: nowrap; box-shadow: 0 0 8px rgba(224,18,59,0.6); }
.spade{ color: #ff0000; font-size: 21.38px; font-weight: 888; display: inline-block; transform: translateY(1px); margin-right: 4px; }
.login-icon i, .login-icon span { color: #00e5ff; }
.register-icon i, .register-icon span { color: #76ff03; }
.bonus-icon i, .bonus-icon span { color: #ffb300; }

.categories { background: white; border-bottom: 1px solid var(--border); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.categories::-webkit-scrollbar { display: none; }
.categories .container { display: flex; gap: 1.38rem; padding: 6.8px 8px; }
.cat-item { font-size: 0.8rem; font-weight: 500; color: #333; padding-bottom: 3.8px; border-bottom: 1.8px solid transparent; cursor: pointer; flex-shrink: 0; }
.cat-item:hover, .cat-item.active { color: var(--primary); border-bottom-color: var(--primary); }
.cat-item.offer { color: var(--accent); font-weight: 688; }

.breadcrumb { padding: 3.8px 0; font-size: 0.88rem; color: #666; }
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { font-weight: 500; color: #333; }

.product-section { padding: 3.8px 0 13.8px; }
.product-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 13.8px; background: white;
    border-radius: 8px; padding: 6.8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.gallery {
    display: flex;
    gap: 16.8px;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
}
.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 0 auto;
    width: 68px;
}
.thumb {
    width: 68px;
    height: 68px;
    flex: 0 0 auto;
    border: 1.38px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
}
.thumb:hover { border-color: var(--primary); }
.thumb.active { border-color: var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.main-image {
    flex: 1;
    position: relative;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 380px;
    overflow: hidden;
}
.main-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s;
    margin-top: 0;
}
.main-image:hover img { transform: scale(1.04); }
.badge-discount {
    position: absolute;
    top: 13.8px;
    left: 13.8px;
    background: var(--accent);
    color: white;
    padding: 3.8px 8px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 688;
}
.badge-fav {
    position: absolute;
    top: 13.8px;
    right: 13.8px;
    width: 38px;
    height: 38px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: #aaa;
    border: 1px solid #ddd;
}
.badge-fav.liked { color: var(--accent); border-color: var(--accent); }

.gallery-actions {
    flex: 0 0 100%;
    order: -1;
    display: flex;
    gap: 3.8px;
    margin-top: 3.8px;
}
.gallery-btn {
    flex: 1;
    height: 45px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 16.8px;
    font-weight: 689;
    transition: .28s;
}
.login-btn { background: #00c8ff; color: #fff; }
.login-btn:hover { background: #00abd8; }
.register-btn { background: #ff2b2b; color: #fff; }
.register-btn:hover { background: #e11b1b; }

.product-info h1 { font-size: 1.68rem; font-weight: 688; color: #222; margin-bottom: 1.38px; }
.sku { font-size: 0.68rem; color: #888; margin-bottom: 1.38px; }
.rating { display: flex; align-items: center; gap: 6.8px; margin-bottom: 13.8px; }
.stars { color: var(--yellow); font-size: 1.38rem; letter-spacing: 1.38px; }
.rating-text { font-size: 0.88rem; color: #666; }
.rating-text a { color: #0066c0; }
.price-box { background: #f9f9f9; border-radius: 8px; padding: 1.38px 13.8px; margin-bottom: 1.38px; }
.price-current { font-size: 2rem; font-weight: 888; color: #222; margin: 6.58px 0 1.8px; }
.price-current .symbol { font-size: 1.38rem; font-weight: 388; }
.shipping, .store-pickup { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; border-top: 1px solid #eee; font-size: 0.88rem; color: #444; }
.shipping i, .store-pickup i { color: var(--primary); font-size: 1.1rem; }
.free { font-weight: 888; color: var(--primary); }
.btn-cart { width: 100%; padding: 13.8px; background: var(--primary); color: white; border: none; border-radius: 28px; font-size: 1rem; font-weight: 688; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 1.38px; }
.btn-cart:hover { background: var(--primary-dark); }
.btn-buy { width: 100%; padding: 14px; background: white; color: var(--primary); border: 2px solid var(--primary); border-radius: 24px; font-size: 1rem; font-weight: 700; cursor: pointer; }
.btn-buy:hover { background: var(--primary-light); }
.payment-icons { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.75rem; color: #555; }
.payment-icons span { background: #f2f2f2; padding: 4px 10px; border-radius: 4px; }

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0 10px;
    padding: 12px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: #555;
    background: #f9f9f9;
    padding: 4px 12px;
    border-radius: 20px;
}
.trust-badge i { color: var(--primary); font-size: 1rem; }

.reviews-container { background: white; margin-top: 24px; border-radius: 8px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.reviews-header { display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.reviews-score { font-size: 2.5rem; font-weight: 800; color: #222; }
.reviews-stars { color: var(--yellow); font-size: 1.2rem; }
.bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.bar-label { width: 20px; font-size: 0.8rem; color: #666; }
.bar-track { flex: 1; height: 8px; background: #e0e0e0; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--yellow); border-radius: 4px; }
.bar-count { width: 30px; font-size: 0.8rem; color: #666; text-align: right; }
.sort-section { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.sort-btn { border: 1px solid #ccc; border-radius: 20px; padding: 6px 16px; font-size: 0.8rem; background: white; cursor: pointer; }
.review-card { border-bottom: 1px solid #eee; padding: 16px 0; }
.review-card:last-child { border-bottom: none; }
.review-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.review-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary); font-size: 0.85rem; }
.review-name { font-weight: 600; font-size: 0.9rem; }
.review-date { font-size: 0.75rem; color: #888; margin-left: auto; }
.review-stars { color: var(--yellow); font-size: 0.8rem; }
.review-body { font-size: 0.85rem; color: #444; margin: 8px 0; }
.helpful { font-size: 0.75rem; color: #888; }
.show-more { text-align: center; margin-top: 20px; }
.show-more a { color: var(--primary); font-weight: 600; font-size: 0.9rem; }

.faq-section {
    background: white;
    margin-top: 24px;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.faq-item {
    border-bottom: 1px solid #eee;
    padding: 16px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
    font-weight: 600;
    font-size: 1.05rem;
    color: #222;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question i {
    transition: transform 0.2s;
    font-size: 1.2rem;
    color: var(--primary);
}
.faq-answer {
    margin-top: 8px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    display: none;
}
.faq-answer.open { display: block; }
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.footer { background: #222; color: #ccc; padding: 40px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 24px; margin-bottom: 20px; }
.footer h4 { color: white; font-size: 0.9rem; margin-bottom: 12px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 6px; }
.footer ul li a { color: #aaa; font-size: 0.8rem; }
.footer ul li a:hover { color: white; }
.footer-bottom { border-top: 1px solid #444; padding-top: 13.8px; text-align: center; font-size: 0.75rem; color: #888; }

@media (max-width: 900px) {
    .product-grid { grid-template-columns: 1fr; }
    .gallery { flex-direction: column-reverse; flex-wrap: nowrap; align-items: stretch; }
    .thumbnails { flex-direction: row; overflow-x: auto; gap: 6px; width: auto; flex: none; }
    .thumb { width: 44px; height: 44px; flex: none; }
    .main-image { min-height: 280px; align-items: center; justify-content: center; }
    .gallery-actions { flex: unset; width: 100%; gap: 10px; margin-top: 14px; order: 0; }
    .gallery-btn { height: 46px; font-size: 14px; }
}
@media (max-width: 600px) {
    .header-icons span { display: none; }
    .search { max-width: 200px; }
    .reviews-header { flex-direction: column; align-items: flex-start; }
    .trust-badges { gap: 8px; }
    .trust-badge { font-size: 0.6rem; padding: 3px 8px; }
}