/* Retail Theme - Teal & Cyan Vibrant (with Dark Mode) */
:root {
    --primary: #14A89B;
    /* Vibrant Teal */
    --secondary: #053B50;
    /* Navy Blue */
    --accent-red: #e74c3c;
    /* Price Red */

    /* Light Mode Default */
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --bg-nav: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #eeeeee;
    --shadow: rgba(0, 0, 0, 0.05);
}

body.dark-mode {
    --bg-body: #121212;
    --bg-card: #1e1e1e;
    --bg-nav: #1e1e1e;
    --text-main: #e0e0e0;
    --text-muted: #aaaaaa;
    --border-color: #333333;
    --secondary: #64ffda;
    /* Bright Teal for text in dark mode if needed, or keep Navy if background is light... let's adjust specifics below */
    --shadow: rgba(0, 0, 0, 0.3);
}

/* Specific Dark Mode Overrides where CSS Vars aren't enough */
body.dark-mode .logo {
    color: #fff;
}

body.dark-mode .section-title {
    color: #fff;
}

body.dark-mode .product-info h3 {
    color: #e0e0e0;
}

body.dark-mode .category-strip {
    background: var(--bg-card);
    border-color: var(--border-color);
}

body.dark-mode .cat-icon {
    background: #333;
}

body.dark-mode footer {
    background: var(--bg-card);
}

body.dark-mode .footer-col h4 {
    color: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
}

/* Header */
.top-bar {
    background: #053B50;
    /* Always Navy */
    color: #fff;
    padding: 10px 5%;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
}

.navbar {
    background: var(--bg-nav);
    padding: 15px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #053B50;
    text-decoration: none;
    text-transform: uppercase;
}

.logo span {
    color: var(--primary);
}

.search-bar {
    flex: 1;
    margin: 0 40px;
    display: flex;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    background: var(--bg-body);
    color: var(--text-main);
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.search-bar button {
    background: #053B50;
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.user-actions {
    display: flex;
    align-items: center;
}

.user-actions a,
.theme-toggle {
    color: var(--text-main);
    margin-left: 20px;
    text-decoration: none;
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Category Slider */
.category-strip {
    background: var(--bg-nav);
    padding: 20px 5%;
    display: flex;
    justify-content: center;
    gap: 30px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.category-strip::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.cat-item {
    text-align: center;
    cursor: pointer;
    min-width: 80px;
}

.cat-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-body);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 24px;
    color: var(--primary);
    transition: 0.3s;
}

.cat-item:hover .cat-icon {
    background: var(--primary);
    color: #fff;
}

.cat-item p {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-main);
}

/* Hero Banner Grid */
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    padding: 20px 5%;
    height: 500px;
}

.banner-main {
    grid-row: 1 / span 2;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.banner-sub {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.retail-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.banner-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.banner-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.btn-shop {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-shop:hover {
    background: #0d8a7f;
}

/* Brand Slider */
.brand-strip {
    background: var(--bg-card);
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    white-space: nowrap;
}

.brand-scroll {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

.brand-scroll span {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-muted);
    margin: 0 40px;
    text-transform: uppercase;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Promo Banner Mid */
.promo-wide {
    padding: 40px 5%;
}

.promo-wide img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
}

/* Product Section */
.products-section {
    padding: 40px 5%;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #053B50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 5px;
    height: 25px;
    background: var(--primary);
    display: block;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    transition: 0.3s;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 5px 15px var(--shadow);
    border-color: var(--primary);
}

.product-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.product-img img {
    max-height: 100%;
    max-width: 100%;
}

.product-info h3 {
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 5px;
    height: 40px;
    overflow: hidden;
}

.stock-status {
    font-size: 11px;
    color: #27ae60;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.price {
    font-size: 18px;
    color: var(--accent-red);
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.btn-add {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.product-card:hover .btn-add {
    background: var(--primary);
    color: #fff;
}

/* Footer */
footer {
    background: var(--bg-nav);
    padding: 50px 5% 20px;
    margin-top: 50px;
    border-top: 5px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #053B50;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .logo {
        text-align: center;
    }

    .search-bar {
        margin: 0;
    }

    .user-actions {
        justify-content: center;
    }

    .hero-grid {
        height: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .banner-main {
        grid-row: auto;
        height: 300px;
    }

    .banner-sub {
        height: 200px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}