/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --white: #fff;
    --gray: #bdc3c7;
    --success: #27ae60;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-weight: 500;
    position: relative;
}

nav ul li a.active::after,
nav ul li a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

.header-icons a {
    margin-left: 15px;
    font-size: 18px;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    margin-bottom: 50px;
}

.hero-content {
    width: 100%;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* Categories Section */
.categories {
    padding: 50px 0;
}

.categories h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
}

.category-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-item:hover img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--white);
    transition: background-color 0.3s;
}

.category-overlay:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.category-overlay h3 {
    font-size: 28px;
    font-weight: 600;
}

/* Products Section */
.featured-products {
    padding: 50px 0;
}

.featured-products h2,
.related-products h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.price {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

/* Newsletter Section */
.newsletter {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

.newsletter h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.newsletter p {
    margin-bottom: 25px;
    font-size: 18px;
}

.newsletter form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.newsletter button {
    border-radius: 0 4px 4px 0;
    background-color: var(--secondary-color);
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 50px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--gray);
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    color: var(--white);
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: var(--gray);
}

/* Product Listing Page */
.page-header {
    padding: 50px 0;
    text-align: center;
    background-color: var(--white);
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.product-listing .container {
    display: flex;
    gap: 30px;
}

.filters {
    width: 250px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray);
}

.filter-section ul {
    list-style: none;
}

.filter-section ul li {
    margin-bottom: 8px;
}

.filter-section ul li a {
    color: var(--text-light);
}

.filter-section ul li a:hover {
    color: var(--secondary-color);
}

.price-slider {
    width: 100%;
    margin-bottom: 10px;
}

.products-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination a {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid var(--gray);
    color: var(--text-color);
    border-radius: 4px;
}

.pagination a.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Product Detail Page */
.product-detail .container {
    display: flex;
    gap: 50px;
    margin-bottom: 50px;
}

.product-gallery {
    flex: 1;
}

.main-image {
    margin-bottom: 15px;
}

.main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail:hover, .thumbnail.active {
    border-color: var(--secondary-color);
}

.product-info {
    flex: 1;
}

.product-info h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.rating {
    margin-bottom: 15px;
    color: #f1c40f;
}

.rating span {
    color: var(--text-light);
    font-size: 14px;
    margin-left: 10px;
}

.description {
    margin-bottom: 25px;
    color: var(--text-light);
}

.product-options {
    margin-bottom: 25px;
}

.option {
    margin-bottom: 15px;
}

.option label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.option select, .option input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gray);
    border-radius: 4px;
}

.add-to-cart {
    background-color: var(--secondary-color);
    margin-right: 15px;
}

.wishlist {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.wishlist:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.product-meta {
    margin: 25px 0;
    font-size: 14px;
    color: var(--text-light);
}

.product-meta a {
    color: var(--text-light);
}

.product-meta a:hover {
    color: var(--secondary-color);
}

.share-buttons {
    margin-top: 20px;
}

.share-buttons span {
    margin-right: 10px;
}

.share-buttons a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: var(--light-color);
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    margin-right: 8px;
    color: var(--text-color);
    transition: background-color 0.3s;
}

.share-buttons a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Product Tabs */
.product-tabs {
    margin-bottom: 50px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--gray);
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 25px;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    bottom: -1px;
}

.tab-btn.active {
    border-bottom-color: var(--secondary-color);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.tab-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.tab-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.tab-content th, .tab-content td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--gray);
}

.review {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--gray);
}

.review-header {
    margin-bottom: 10px;
}

.review h4 {
    margin: 5px 0;
}

.review-meta {
    font-size: 14px;
    color: var(--text-light);
}

/* Related Products */
.related-products {
    margin-bottom: 50px;
}

/* Policy Pages */
.policy-page {
    padding: 50px 0;
}

.policy-page h1 {
    font-size: 36px;
    margin-bottom: 10px;
    text-align: center;
}

.policy-page p {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-light);
}

.policy-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.policy-content h2 {
    font-size: 24px;
    margin: 25px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray);
}

.policy-content p {
    text-align: left;
    margin-bottom: 15px;
}

.policy-content ul, .policy-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.policy-content li {
    margin-bottom: 8px;
}

.policy-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.policy-content th, .policy-content td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--gray);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .category-grid, 
    .product-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-detail .container {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        margin-bottom: 15px;
    }
    
    .hero h2 {
        font-size: 36px;
    }
    
    .product-listing .container {
        flex-direction: column;
    }
    
    .filters {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .category-grid, 
    .product-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .newsletter form {
        flex-direction: column;
    }
    
    .newsletter input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .newsletter button {
        border-radius: 4px;
        width: 100%;
    }
}