/* Base style reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Common styles */
.section-title {
    font-size: 1.8rem;
    text-align: center;
    margin: 2rem 0 1.5rem;
    color: #222;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #ff6b6b;
}

/* Header styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
    letter-spacing: 1px;
}

.cart i {
    font-size: 1.5rem;
    color: #222;
}

/* Product main and info styles */
.product-main {
    padding: 1rem;
    background-color: #fff;
    margin-bottom: 1rem;
}

.product-gallery {
    margin-bottom: 1.5rem;
}

.main-image {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.product-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.product-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #222;
    line-height: 1.3;
}

.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff6b6b;
    margin-right: 1rem;
}

.original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.discount {
    background-color: #ff6b6b;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #ffa41c;
}

.product-rating i {
    margin-right: 0.2rem;
}

.product-rating span {
    color: #666;
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.product-params {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f8f8;
    border-radius: 8px;
}

.param-name {
    font-weight: 600;
    color: #666;
}

.product-description {
    line-height: 1.7;
    color: #555;
    margin-bottom: 1rem;
}

/* Product features styles */
.product-features {
    padding: 1.5rem 1rem;
    background-color: #fff;
}

.feature-item {
    margin-bottom: 2.5rem;
}

.feature-image {
    margin-bottom: 1rem;
}

.feature-image img {
    border-radius: 8px;
    width: 100%;
}

.feature-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.feature-content p {
    color: #666;
    line-height: 1.6;
}

/* Customer reviews styles */
.customer-reviews {
    padding: 1.5rem 1rem;
    background-color: #fff;
    margin-top: 1rem;
}

.review-summary {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.average-rating {
    text-align: center;
}

.rating-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

.stars {
    color: #ffa41c;
    margin-bottom: 0.5rem;
}

.total-reviews {
    color: #777;
    font-size: 0.9rem;
}

.review-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.reviewer-details {
    flex-grow: 1;
}

.reviewer-name {
    font-weight: 600;
    color: #333;
}

.review-date {
    font-size: 0.8rem;
    color: #999;
}

.review-rating {
    color: #ffa41c;
    font-size: 0.9rem;
}

.review-content p {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.6;
}

.review-images {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.review-images img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

/* FAQ styles */
.faq-section {
    padding: 1.5rem 1rem;
    background-color: #fff;
    margin-top: 1rem;
}

.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.faq-question i {
    color: #999;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 0 1rem;
    color: #666;
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Footer styles */
.footer {
    background-color: #222;
    color: #fff;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1rem;
}

.copyright {
    font-size: 0.9rem;
    color: #bbb;
}

/* Media queries - tablet and desktop */
@media (min-width: 768px) {
    .product-main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .feature-item {
        display: flex;
        gap: 2rem;
    }

    .feature-item.reverse {
        flex-direction: row-reverse;
    }

    .feature-image,
    .feature-content {
        flex: 1;
    }

    .review-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
        margin: 3rem 0 2rem;
    }
}

/* Advanced animation effects */
.faq-question {
    transition: all 0.3s ease;
}

.faq-question:hover h3 {
    color: #ff6b6b;
}

.product-thumbnails img:hover {
    transform: scale(1.05);
    border-color: #ff6b6b;
    transition: all 0.3s ease;
}

/* Dark mode adaptation */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #f0f0f0;
    }

    .header, .product-main, .product-features, .customer-reviews, .faq-section {
        background-color: #1e1e1e;
    }

    .logo h1, .product-title, .section-title, .feature-content h3, .faq-question h3 {
        color: #f0f0f0;
    }

    .product-params {
        background-color: #2a2a2a;
    }

    .param-name, .product-description, .feature-content p, .review-content p, .faq-answer {
        color: #ccc;
    }

    .faq-item, .review-item {
        border-color: #333;
    }
} 