/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    background-color: #f8f8f8;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.main-header {
    background-color: #fdd835; /* More accurate yellow */
    padding: 0.5rem 0;
}

.main-header .container {
    display: flex;
    flex-direction: column;
}

.header-top, .header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0;
}

.header-bottom {
    gap: 20px;
    padding-bottom: 0.5rem;
}

.city-selector {
    color: #555;
}

.header-right {
    display: flex;
    gap: 20px;
}

.header-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
}

.catalog-btn {
    background-color: #36a13b; /* More accurate green */
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
}

.search-bar {
    flex-grow: 1;
    display: flex;
}

.search-bar input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
    border-right: none;
}

.search-bar button {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background-color: #f0f0f0;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
}

.header-icon {
    font-size: 1.5rem;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    font-size: 0.9rem;
    color: #555;
}

.breadcrumbs a {
    color: #555;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Product Page Layout */
.product-page {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
}

/* Gallery */
.product-gallery .main-image img {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 8px;
}

/* Details */
.product-details h1 {
    font-size: 1.8rem;
    margin: 0.5rem 0;
    font-weight: 600; /* Slightly less bold */
}

.product-details .sku {
    color: #888;
    font-size: 0.9rem;
}

.product-details .rating {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.action-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    color: #555;
    font-weight: 500;
}

.product-options {
    margin: 1.5rem 0;
}

.product-options label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.product-options select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    font-size: 1rem;
}

.product-details .rating span {
    color: #f9d71c; /* Gold color for stars */
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.product-details .price h2 {
    font-size: 2.5rem;
    color: #333;
    margin: 1rem 0;
}

.add-to-cart {
    background-color: #36a13b; /* More accurate green */
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    width: 100%;
    transition: background-color 0.3s;
}

.add-to-cart-container {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.quantity-selector input {
    width: 40px;
    text-align: center;
    border: none;
    font-size: 1rem;
    font-weight: bold;
}

.quantity-selector input:focus {
    outline: none;
}

.quantity-btn {
    background: #f0f0f0;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.2rem;
}

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

.availability {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #36a13b;
    border-radius: 50%;
    margin-right: 8px;
}

.delivery-info {
    margin-top: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.delivery-option:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.delivery-icon {
    font-size: 1.8rem;
}

.delivery-option p {
    margin: 0;
    line-height: 1.4;
}

.delivery-subtext {
    font-size: 0.9rem;
    color: #888;
}

/* Tabs */
.product-info-tabs {
    margin-top: 40px;
}
.tabs {
    border-bottom: 2px solid #eee;
}

.tab-link {
    background: none;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1rem;
    margin-right: 10px;
    border-bottom: 3px solid transparent;
}

.tab-link.active {
    border-bottom: 3px solid #50c878;
    font-weight: bold;
}

.tab-content {
    padding: 20px;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
    display: none; /* Initially hide all tabs */
}

#reviews {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
}

#reviews h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table td:first-child {
    font-weight: bold;
    color: #555;
    width: 30%;
}

/* Reviews Section */
.reviews-section {
    margin-top: 40px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
}

.reviews-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.reviews-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.reviews-summary-score .score-value {
    font-size: 2.5rem;
    font-weight: bold;
}

.reviews-summary-score .stars {
    color: #f9d71c;
    font-size: 1.2rem;
    margin: 0 5px;
}

.reviews-summary-score .review-count {
    color: #888;
}

.write-review-btn {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.review {
    display: flex;
    gap: 20px;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.review-author .author-initial {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #555;
    text-align: center;
    font-weight: bold;
}

.review-author .author-name {
    display: block;
    font-weight: bold;
    margin-top: 5px;
}

.review-rating .stars {
    color: #f9d71c;
}

.review-meta {
    margin-top: 10px;
    color: #888;
    font-size: 0.9rem;
}

.review-meta .purchase-badge {
    color: #50c878;
    font-weight: bold;
    margin-right: 15px;
}

/* Product Tags */
.product-tags-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
}

.product-tags-section h4 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: #f0f0f0;
    padding: 8px 12px;
    border-radius: 15px;
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.tag:hover {
    background-color: #e0e0e0;
}

/* Q&A Section in Tab */
.qa-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.qa-item:last-of-type {
    border-bottom: none;
}

.qa-item .question {
    font-weight: 500;
    margin-bottom: 10px;
}

.qa-item .answer {
    color: #555;
    padding-left: 20px; /* Indent the answer */
}

/* Detailed Delivery Section */
.detailed-delivery-section {
    margin-top: 40px;
    padding: 30px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.detailed-delivery-section h3 {
    text-align: center;
    margin: 0 0 25px 0;
    font-size: 1.5rem;
}

.delivery-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.delivery-detail-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

.delivery-detail-item h4 {
    margin: 0 0 10px 0;
    color: #36a13b;
}

/* How to Use Section */
.how-to-use-section {
    margin-top: 40px;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.how-to-use-section h3 {
    text-align: center;
    margin: 0 0 30px 0;
    font-size: 1.5rem;
}

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

.step-icon {
    font-size: 2rem;
    color: #36a13b;
    margin-bottom: 15px;
}

.step-item h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

/* About Brand Section */
.about-brand-section {
    margin-top: 40px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.brand-text {
    flex: 2;
}

.brand-image {
    flex: 1;
}

.brand-image img {
    max-width: 100%;
    border-radius: 8px;
}

/* Guarantees Section */
.guarantees-section {
    margin-top: 40px;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.guarantees-section h3 {
    text-align: center;
    margin: 0 0 20px 0;
    font-size: 1.5rem;
}

.guarantees-section ul {
    list-style-type: '✔ ';
    padding-left: 20px;
}

.guarantees-section li {
    margin-bottom: 10px;
}

/* SEO Text Section */
.seo-text-section {
    margin-top: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .main-header .container, .header-left {
        flex-direction: column;
        gap: 15px;
    }

    .search-bar {
        width: 100%;
        margin: 10px 0;
    }

    .product-page {
        grid-template-columns: 1fr;
    }

    .reviews-summary {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .review {
        flex-direction: column;
    }

    .about-brand-section {
        flex-direction: column;
    }
}

/* Collection Section */
.collection-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.collection-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.product-card .product-title {
    font-size: 1rem;
    font-weight: 500;
    min-height: 40px;
}

.product-card .product-price {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 10px 0;
}

.add-to-cart-small {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
}

/* Footer */
.site-footer {
    background-color: #f8f9fa;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #e7e7e7;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}

.site-footer .legal-info {
    font-size: 12px;
    color: #868e96;
    margin-top: 10px;
    line-height: 1.5;
} 