/* Shared Theme Colors */
:root {
    --primary: #0066cc;
    --secondary: #2c3e50;
    --accent: #ff6b6b;
    --success: #2ecc71; 
    --warning: #f1c40f;
    --danger: #e74c3c;
    --light: #f8f9fa;
    --dark: #2d3436;
    --gray: #95a5a6;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --radius: 8px;
}

/* Shared Navigation Styles */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    box-shadow: var(--shadow-sm);
}

.topbar {
    background: var(--dark);
    color: white;
    padding: 8px 0;
    font-size: 0.875rem;
}

.main-nav {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
}

.brand img {
    height: 44px;
    object-fit: contain;
}

.nav-main ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-main a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all 0.3s;
}

.nav-main a:hover,
.nav-main a.active {
    background: var(--primary);
    color: white;
}

.search-form {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid #eee;
    border-radius: var(--radius);
    transition: border-color 0.3s;
}

.search-form button {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
}

.nav-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-actions a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
}

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

/* Shared Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #0052cc;
    transform: translateY(-2px);
}

/* Modern E-commerce Homepage Styles */
:root {
    --primary: #0066cc;
    --secondary: #2c3e50;
    --accent: #ff6b6b;
    --success: #2ecc71;
    --warning: #f1c40f;
    --danger: #e74c3c;
    --light: #f8f9fa;
    --dark: #2d3436;
    --gray: #95a5a6;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --radius: 8px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Top Bar */
.top-bar {
    background: var(--dark);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

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

.language-select,
.currency-select {
    background: transparent;
    border: none;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* Header */
.main-header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
}

.logo {
    padding: 10px 0;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.search-bar {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid #eee;
    border-radius: var(--radius);
    transition: border-color 0.3s;
}

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

.search-bar button {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
}

.header-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.action-link {
    color: var(--dark);
    text-decoration: none;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Navigation */
.main-nav {
    border-top: 1px solid #eee;
    background: white;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    display: block;
    padding: 1rem 0;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 420px; /* Smaller fixed height */
    min-height: 300px;
    max-height: 420px;
    background: var(--dark);
    margin-bottom: 2rem;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
    width: 100%;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.swiper-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    width: 90%;
    margin-left: 8%;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
}

.hero-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
}

.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-banner {
        height: 340px;
    }

    .hero-content {
        margin-left: 5%;
        width: 90%;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 280px;
    }

    .hero-content {
        margin-left: 1rem;
        margin-right: 1rem;
        width: calc(100% - 2rem);
        padding: 1rem;
    }

    .hero-logo {
        width: 80px;
    }
}

/* Categories Section */
.categories-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
    color: var(--dark);
}

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

.category-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon img {
    max-width: 100%;
    height: auto;
}

/* Products Section */
.products-section {
    padding: 4rem 0;
}

.products-section.bg-light {
    background: #f8f9fa;
}

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

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

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.out-of-stock,
.on-sale {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.out-of-stock {
    background: var(--danger);
    color: white;
}

.on-sale {
    background: var(--accent);
    color: white;
}

.product-thumb {
    position: relative;
    padding-top: 100%;
    background: #f8f9fa;
}

.product-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-actions {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    display: block;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-title a {
    color: var(--dark);
    text-decoration: none;
}

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

.stars {
    color: var(--warning);
}

.rating-count {
    color: var(--gray);
    font-size: 0.875rem;
}

.product-price {
    margin-bottom: 1rem;
}

.old-price {
    color: var(--gray);
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.current-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.2rem;
}

.btn-add-cart,
.btn-notify {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-add-cart {
    background: var(--success);
    color: white;
}

.btn-notify {
    background: var(--gray);
    color: white;
}

.btn-add-cart:hover {
    background: #27ae60;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--gray);
}

/* Newsletter Section */
.newsletter-section {
    background: var(--primary);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.newsletter-section h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 2rem auto 0;
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
}

/* Footer */
.main-footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding: 1.5rem 0;
    text-align: center;
    color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        padding: 1rem;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-content {
        left: 5%;
        right: 5%;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        padding: 0 1rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .main-nav {
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-main ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-form {
        width: 100%;
        max-width: none;
    }
    
    .nav-actions {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 500px;
    }

    .hero-content {
        padding: 0 30px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }
}