/* Global Styles */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #388E3C;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #eee;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Header Styles */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 5%;
    border-bottom: 1px solid #eee;
    position: relative;
    height: 100px;
}

.social-icons {
    position: absolute;
    left: 5%;
    z-index: 10;
}

.social-icons a {
    color: #555;
    margin-right: 15px;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #4CAF50;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo img {
    max-width: 150px;
    height: auto;
}

.user-menu {
    position: absolute;
    right: 5%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-container {
    position: relative;
}

.search-input {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 200px;
}

.search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

.menu-item {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Navigation Styles */
.main-nav {
    background-color: var(--primary-color);
    padding: 1rem 5%;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s;
    border-radius: 4px;
}

.main-nav a:hover {
    background-color: var(--secondary-color);
}

/* Banner Slider */
.banner-slider {
    position: relative;
    width: 100%;
    max-width: 1903px;
    margin: 0 auto;
    overflow: hidden;
}

.slider {
    position: relative;
    width: 100%;
    height: 600px;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease-in-out;
    position: relative;
}

.slide.active {
    display: block;
    opacity: 1;
}

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

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 80%;
    max-width: 800px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.slide-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.slide-content .btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.slide-content .btn-primary:hover {
    background-color: var(--secondary-color);
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s ease;
    border-radius: 3px;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 3;
    border: none;
}

.next {
    right: 20px;
}

.prev {
    left: 20px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: white;
}

/* Responsive Styles for Banner */
@media (max-width: 1200px) {
    .slider {
        height: 500px;
    }
    
    .slide-content h2 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .slider {
        height: 400px;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .prev, .next {
        padding: 12px;
        font-size: 16px;
    }
    
    .dot {
        height: 10px;
        width: 10px;
    }
}

@media (max-width: 480px) {
    .slider {
        height: 300px;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
    }
    
    .slide-content .btn-primary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .prev, .next {
        padding: 8px;
        font-size: 14px;
    }
}

/* Bestsellers Section */
.bestsellers {
    padding: 4rem 5%;
    background-color: #f8f9fa;
}

.bestsellers-wrapper {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0;
    font-weight: 600;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #4CAF50;
    margin: 15px auto 0;
    border-radius: 2px;
}

.bestseller-container {
    max-width: 1400px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

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

.product-image {
    position: relative;
    background-color: #f5f5f5;
    padding: 20px;
}

.product-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    aspect-ratio: 1;
}

.shipping-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #4CAF50;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.wishlist-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    display: block;
}

.product-rating {
    margin-bottom: 0.5rem;
}

.product-rating i {
    color: #ffc107;
    font-size: 0.9rem;
}

.product-rating span {
    color: #666;
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.5rem;
    color: #4CAF50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.add-to-cart {
    width: 100%;
    padding: 0.8rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart i {
    font-size: 1.1rem;
}

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

@media (max-width: 768px) {
    .bestsellers {
        padding: 2rem 3%;
    }
    
    .bestsellers-wrapper {
        padding: 1.5rem;
        border-radius: 8px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
}

/* Quick View Modal */
.quick-view-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.quick-view-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-quick-view {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.quick-view-content .product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .quick-view-content .product-details {
        grid-template-columns: 1fr;
    }
}

/* Product Grid */
.section-title {
    text-align: center;
    margin: 3rem 0;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--text-color);
}

.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 5%;
    margin-bottom: 3rem;
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    height: 200px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
}

.product-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.add-to-cart {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: var(--secondary-color);
}

/* Category Circles */
.category-circles {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 4rem 5%;
    background-color: white;
    flex-wrap: wrap;
}

.category-circle {
    text-align: center;
    flex: 0 1 auto;
}

.category-circles a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-circles .circle-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
    background-color: white;
}

.category-circles .circle-icon i {
    font-size: 40px;
    color: #4CAF50;
}

.category-circles p {
    margin: 0;
    font-size: 18px;
    color: #333;
    text-align: center;
}

.category-circle:hover .circle-icon {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.2);
}

@media (max-width: 768px) {
    .category-circles {
        gap: 2rem;
        padding: 2rem 3%;
    }
    
    .category-circles .circle-icon {
        width: 90px;
        height: 90px;
    }
    
    .category-circles .circle-icon i {
        font-size: 30px;
    }
    
    .category-circles p {
        font-size: 16px;
    }
}

/* Services Section */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 3rem 5%;
    background-color: var(--light-gray);
}

.service-item {
    text-align: center;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 3rem 5% 1rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.footer-column a {
    color: #ccc;
    text-decoration: none;
    line-height: 2;
}

.footer-column a:hover {
    color: white;
}

footer > p {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .search-input {
        width: 100%;
    }
    
    .category-circles {
        gap: 1rem;
    }
    
    .circle-icon {
        width: 80px;
        height: 80px;
    }
}

/* Product Details Page */
.product-details {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.product-gallery {
    position: relative;
}

.product-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-info-details {
    padding: 1rem;
}

.product-info-details h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-description {
    margin: 2rem 0;
    line-height: 1.8;
}

.product-features {
    margin: 2rem 0;
}

.product-features ul {
    list-style: none;
}

.product-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.product-features li:before {
    content: "✓";
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.legal-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 1rem;
    border-radius: 4px;
    margin: 2rem 0;
}

/* Contact Page */
.contact-page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 5%;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-info {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    width: 20px;
}

.header-search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

.header-search-input {
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
    min-width: 200px;
    transition: all 0.3s;
}

.header-search-input:focus {
    border-color: #4CAF50;
    outline: none;
}

.header-search-button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.header-search-button:hover {
    color: #4CAF50;
}

@media (max-width: 768px) {
    .header-search-form {
        position: relative;
        margin-right: 0;
    }

    .header-search-input {
        min-width: 150px;
    }
} 