
:root {
    --primary: #FF6700;
    --secondary: #333333;
    --light-gray: #f5f5f5;
    --gray: #e0e0e0;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Playfair Display', serif;
}

body {
    background-color: #f9f9f9;
}

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

/* Header styles */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar {
    background-color: var(--secondary);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
}

.top-bar-links a {
    color: var(--white);
    text-decoration: none;
    margin-left: 15px;
}

.main-header {
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 28px;
    font-weight: 400;
    color: var(--secondary);
}

.logo span {
    color: var(--primary);
}

.search-bar {
    flex-grow: 1;
    margin: 0 20px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--gray);
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-button {
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: 400;
}

.user-actions {
    display: flex;
    align-items: center;
}

.action-item {
    margin-left: 20px;
    text-align: center;
    position: relative;
}

.action-icon {
    font-size: 24px;
    color: var(--secondary);
}

.action-text {
    font-size: 12px;
    margin-top: 3px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    list-style: none;
    margin: 20px 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin: 0 8px;
    color: #888;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

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

.breadcrumb li:last-child a {
    color: var(--primary);
    font-weight: 500;
}

/* Product Detail Section */
.product-detail {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
}

.product-gallery {
    flex: 0 0 40%;
    padding: 20px;
    border-right: 1px solid var(--light-gray);
}

.main-image {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border: 2px solid var(--gray);
    border-radius: 4px;
    padding: 5px;
    cursor: pointer;
    flex-shrink: 0;
}

.thumbnail.active {
    border-color: var(--primary);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info {
    flex: 0 0 60%;
    padding: 20px;
}

.product-badge {
    display: inline-block;
    background-color: #e8f4ff;
    color: #0066cc;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
}

.product-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--secondary);
}

.product-brand {
    margin-bottom: 15px;
    color: #666;
}

.product-brand a {
    color: var(--primary);
    text-decoration: none;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.stars {
    color: #FFD700;
    margin-right: 10px;
}

.rating-text {
    color: #666;
    font-size: 14px;
}

.price-section {
    margin-bottom: 20px;
}

.discount-label {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    margin-left: 10px;
}

.current-price {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary);
}

.original-price {
    font-size: 16px;
    color: #888;
    text-decoration: line-through;
    margin-left: 10px;
}

.delivery-info {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.delivery-title {
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.delivery-title img {
    height: 20px;
    margin-right: 8px;
}

.delivery-option {
    display: flex;
    margin-bottom: 10px;
}

.delivery-icon {
    margin-right: 10px;
    font-size: 20px;
    color: var(--primary);
}

.delivery-text {
    flex-grow: 1;
}

.delivery-text strong {
    display: block;
    font-weight: 500;
}

.delivery-text span {
    font-size: 14px;
    color: #666;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.quantity-selector span {
    margin-right: 15px;
    font-weight: 500;
}

.quantity-buttons {
    display: flex;
    border: 1px solid var(--gray);
    border-radius: 4px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--gray);
    border-right: 1px solid var(--gray);
    text-align: center;
    font-size: 16px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.buy-now {
    flex: 1;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.buy-now:hover {
    background-color: #e05900;
}

.add-to-cart {
    flex: 1;
    background-color: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.add-to-cart:hover {
    background-color: #fff4ed;
}

.wish-button {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s;
}

.wish-button:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* Product Tabs */
.product-tabs {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--light-gray);
}

.tab-button {
    padding: 15px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-button.active {
    color: var(--primary);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
}

.tab-content {
    padding: 20px;
    display: none;
}

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

.product-description h3 {
    margin-bottom: 15px;
    color: var(--secondary);
}

.product-description p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.feature-list {
    list-style: none;
    margin-bottom: 20px;
}

.feature-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--light-gray);
}

.feature-list li::before {
    content: '✓';
    color: var(--primary);
    margin-right: 10px;
    font-weight: bold;
}

.specification-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.specification-table tr {
    border-bottom: 1px solid var(--light-gray);
}

.specification-table th {
    width: 30%;
    text-align: left;
    padding: 12px 10px;
    font-weight: 500;
    color: #666;
}

.specification-table td {
    padding: 12px 10px;
    color: var(--secondary);
}

/* Related Products */
.related-products h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--secondary);
    position: relative;
    padding-bottom: 10px;
    font-weight: 400;
}

.related-products h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

.product-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.wishlist-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--white);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #888;
    font-size: 18px;
}

.express-badge {
    position: absolute;
    bottom: 60%;
    left: 0;
    background-color: var(--primary);
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    font-weight: bold;
}

.product-image {
    height: 180px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.card-info {
    padding: 15px;
}

.card-name {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
}

.card-price {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.card-current {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
    margin-right: 10px;
}

.card-original {
    font-size: 12px;
    color: #888;
    text-decoration: line-through;
}

.card-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.card-stars {
    color: #FFD700;
    margin-right: 5px;
    font-size: 12px;
}

.card-count {
    font-size: 12px;
    color: #888;
}

.add-cart-btn {
    width: 100%;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 400;
    transition: background-color 0.3s;
    font-size: 14px;
}

.add-cart-btn:hover {
    background-color: #e05900;
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: #aaa;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 400;
}

.footer-links {
    list-style-type: none;
}

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

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

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

.subscribe-form {
    display: flex;
    margin-top: 15px;
}

.subscribe-input {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.subscribe-button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

.payment-methods {
    margin-top: 15px;
}

.payment-methods img {
    height: 30px;
    margin: 0 5px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .product-gallery {
        flex: 0 0 100%;
        border-right: none;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .product-info {
        flex: 0 0 100%;
    }
    
    .main-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .search-bar {
        display: none;
    }
    
    .action-text {
        display: none;
    }
    
    .main-image {
        height: 250px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .current-price {
        font-size: 24px;
    }
    
    .tab-button {
        padding: 12px;
        font-size: 14px;
    }
    
    .product-slider {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .breadcrumb {
        font-size: 12px;
        margin: 10px 0;
    }
    
    .main-image {
        height: 200px;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .product-tabs {
        margin-bottom: 20px;
    }
    
    .tabs-header {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .tab-button {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    .product-slider {
        gap: 10px;
    }
    
    .product-image {
        height: 120px;
    }
}

/* Reviews Section */
.reviews-section {
    padding: 20px 0;
}

.review-summary {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.overall-rating {
    text-align: center;
}

.rating-number {
    font-size: 48px;
    font-weight: 600;
    color: var(--primary);
}

.total-reviews {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.rating-bars {
    flex-grow: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.rating-bar span {
    width: 80px;
    font-size: 14px;
    color: #666;
}

.bar-container {
    flex-grow: 1;
    height: 8px;
    background-color: #ddd;
    border-radius: 4px;
    margin: 0 10px;
    overflow: hidden;
}

.bar {
    height: 100%;
    background-color: var(--primary);
    border-radius: 4px;
}

.review-list {
    margin-top: 30px;
}

.review-item {
    border-bottom: 1px solid var(--light-gray);
    padding: 20px 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reviewer-name {
    font-weight: 500;
    color: var(--secondary);
}

.review-date {
    font-size: 14px;
    color: #666;
}

.review-content {
    color: #555;
    line-height: 1.6;
}

/* Q&A Section */
.qa-section {
    padding: 20px 0;
}

.question-item {
    border-bottom: 1px solid var(--light-gray);
    padding: 20px 0;
}

.question {
    display: flex;
    margin-bottom: 15px;
}

.answer {
    display: flex;
    padding-left: 20px;
}

.q-icon, .a-icon {
    font-weight: bold;
    margin-right: 10px;
    color: var(--primary);
}

.q-text {
    font-weight: 500;
    color: var(--secondary);
}

.a-text {
    color: #555;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .review-summary {
        flex-direction: column;
        gap: 20px;
    }

    .rating-bars {
        width: 100%;
    }

    .rating-bar span {
        width: 60px;
    }
}

@media (max-width: 576px) {
    .review-header {
        flex-direction: column;
    }

    .review-rating {
        margin-top: 5px;
    }

    .rating-bar span {
        width: 50px;
        font-size: 12px;
    }
}
