:root {
    --primary-color: #4ab7a8;
    --primary-hover: #3a978a;
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --border-color: #e5e5e5;
    --white: #ffffff;
    --discount-red: #d32f2f;
    --font-family: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-main);
    line-height: 1.5;
    background-color: var(--white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
}

.announcement-slider {
    display: flex;
    justify-content: center;
    animation: slide 15s linear infinite;
}

.slide {
    padding: 0 40px;
}

/* Header */
.site-header {
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.cart-icon {
    position: relative;
    color: var(--text-main);
}

/* Breadcrumb */
.breadcrumb {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    margin: 0 8px;
}

.breadcrumb .current {
    color: var(--text-main);
    font-weight: 500;
}

/* Product Main Section */
.product-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

/* Gallery */
.product-gallery {
    flex: 1 1 50%;
    min-width: 300px;
}

.main-image {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.main-image img {
    width: 100%;
    transition: transform 0.3s ease;
}

.main-image img:hover {
    transform: scale(1.02);
}

.thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumb-btn {
    border: 2px solid transparent;
    background: none;
    padding: 0;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-btn.active, .thumb-btn:hover {
    border-color: var(--primary-color);
}

/* Product Info */
.product-info {
    flex: 1 1 40%;
    min-width: 300px;
}

.badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.product-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 10px;
    font-weight: 700;
}

.reviews {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.stars {
    color: #ffc107;
}

.review-count {
    color: var(--text-light);
}

.price-container {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.compare-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-right: 10px;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--discount-red);
}

.installments {
    font-size: 0.95rem;
    margin-top: 5px;
}

/* Variants */
.variant-group {
    margin-bottom: 20px;
}

.variant-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.variant-group label span {
    font-weight: 400;
    color: var(--text-light);
}

.color-options, .size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, border-color 0.2s;
}

.color-btn.active {
    border-color: var(--text-main);
    transform: scale(1.1);
}

.size-btn {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.size-btn:hover {
    border-color: var(--text-main);
}

.size-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

/* Actions */
.actions {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    margin-top: 30px;
}

.quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    height: 50px;
    width: 120px;
}

.qty-btn {
    background: none;
    border: none;
    width: 40px;
    height: 100%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-main);
}

.quantity input {
    width: 40px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-family: inherit;
    -moz-appearance: textfield;
}

.quantity input::-webkit-outer-spin-button,
.quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.w-full {
    flex: 1;
}

.buy-button {
    height: 50px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.buy-button:active {
    transform: scale(0.98);
}

#add-to-cart {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

#add-to-cart:hover {
    background: rgba(74, 183, 168, 0.05);
}

.buy-now {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    animation: pulse 2s infinite;
}

.buy-now:hover {
    background: var(--primary-hover);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 183, 168, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(74, 183, 168, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 183, 168, 0); }
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.trust-item svg {
    color: var(--primary-color);
}

/* Payment Info */
.payment-info {
    text-align: center;
    margin-top: 20px;
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
}

.payment-info p {
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.payment-methods-img {
    max-width: 250px;
    margin: 0 auto;
}

/* Description Section */
.product-description {
    background: var(--bg-light);
    padding: 60px 20px;
}

.desc-container {
    max-width: 800px;
    margin: 0 auto;
}

.desc-heading {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.desc-subheading {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 50px;
}

.desc-block {
    margin-bottom: 50px;
}

.desc-block h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.desc-block p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.desc-block ul {
    list-style: none;
    margin-bottom: 20px;
}

.desc-block ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 1.05rem;
}

.desc-block ul li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.desc-img {
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Highlight Comparison */
.highlight-block {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.comparison {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.pro, .con {
    flex: 1;
}

.pro h4 { color: var(--primary-color); margin-bottom: 15px; font-size: 1.2rem; }
.con h4 { color: var(--discount-red); margin-bottom: 15px; font-size: 1.2rem; }

/* Store Benefits */
.store-benefits {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.benefit-item {
    padding: 20px;
}

.benefit-item svg {
    margin-bottom: 15px;
}

.benefit-item h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.benefit-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Footer */
.site-footer {
    background: #222222;
    color: #cccccc;
    padding: 60px 20px 20px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
}

/* Reviews Section */
.reviews-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.reviews-summary {
    text-align: center;
    min-width: 150px;
}

.rating-score {
    margin-bottom: 5px;
}

.rating-score .score {
    font-size: 4rem;
    font-weight: 700;
    color: #fbbc04;
    line-height: 1;
}

.rating-score .out-of {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
}

.reviews-summary .stars {
    font-size: 1.5rem;
    color: #fbbc04;
    margin: 5px 0;
}

.reviews-summary .review-count {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.rating-bars {
    flex: 1;
    max-width: 400px;
    border-left: 1px dashed var(--border-color);
    border-right: 1px dashed var(--border-color);
    padding: 0 40px;
}

.bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.bar-row .star-label {
    width: 30px;
}

.bar-row .bar {
    flex: 1;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    margin: 0 15px;
    overflow: hidden;
}

.bar-row .fill {
    height: 100%;
    background: #fbbc04;
    border-radius: 6px;
}

.bar-row .count {
    width: 40px;
    text-align: right;
}

.write-review-btn-container {
    min-width: 200px;
    text-align: center;
}

.write-review-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.write-review-btn:hover {
    background: #000;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.review-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.reviewer-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.reviewer-info .name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2px;
}

.reviewer-info .verified {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.verified .check {
    color: #4caf50;
    font-size: 0.85rem;
}

.review-card .stars {
    color: #fbbc04;
    font-size: 1rem;
    margin-bottom: 15px;
}

.review-card .review-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: var(--text-main);
    flex-grow: 1;
}

.review-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-title {
        font-size: 1.5rem;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .quantity {
        width: 100%;
    }
    
    .comparison {
        flex-direction: column;
        gap: 20px;
    }

    .desc-heading {
        font-size: 1.6rem;
    }
}
