/* CSS Reset & Variables */
:root {
    --primary-blue: #16568c;
    --secondary-blue: #0b3d70;
    --primary-green: #27ae60;
    --hover-green: #2ecc71;
    --text-dark: #333333;
    --text-gray: #666666;
    --bg-light: #f8f9fa;
    --border-color: #eaeaea;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Utilities */
.blue-bg { background-color: var(--primary-blue); }
.green-bg { background-color: var(--primary-green); }
.flex-space { display: flex; justify-content: space-between; align-items: center; }

/* Top Bar */
.top-bar {
    background-color: var(--bg-light);
    color: var(--text-gray);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-right span {
    margin-left: 20px;
}
.top-right i {
    color: var(--primary-blue);
    margin-right: 5px;
}

/* Main Header */
.main-header {
    padding: 25px 0;
    background-color: var(--white);
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo-icon {
    font-size: 40px;
    color: var(--primary-blue);
}
.logo-text h1 {
    font-size: 24px;
    color: var(--primary-blue);
    font-weight: 700;
    line-height: 1.2;
}
.logo-text p {
    font-size: 10px;
    color: var(--text-gray);
    letter-spacing: 1px;
    font-weight: 600;
}

.search-area {
    display: flex;
    flex: 0 1 500px;
    border: 2px solid var(--primary-green);
    border-radius: 4px;
    overflow: hidden;
}
.search-area input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 14px;
}
.search-area button {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}
.search-area button:hover {
    background-color: var(--hover-green);
}

.user-area {
    display: flex;
    align-items: center;
    gap: 30px;
}
.account-login {
    display: flex;
    align-items: center;
    gap: 10px;
}
.account-login i {
    font-size: 24px;
    color: var(--text-gray);
}
.account-text {
    display: flex;
    flex-direction: column;
}
.acc-title {
    font-size: 12px;
    color: var(--text-gray);
}
.account-text a {
    font-size: 14px;
    color: var(--primary-blue);
    font-weight: 600;
    transition: var(--transition);
}
.account-text a:hover {
    color: var(--primary-green);
}

.cart-icon {
    position: relative;
    font-size: 26px;
    color: var(--text-gray);
    cursor: pointer;
}
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--primary-green);
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation */
.main-nav {
    background-color: var(--primary-blue);
    color: var(--white);
}
.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}
.nav-left {
    display: flex;
    align-items: stretch;
}
.categories-btn {
    background-color: var(--primary-green);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    cursor: pointer;
    min-width: 280px;
    transition: var(--transition);
}
.categories-btn:hover {
    background-color: var(--hover-green);
}

.nav-links {
    display: flex;
    align-items: center;
}
.nav-links li a {
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: var(--transition);
}
.nav-links li a:hover {
    background-color: rgba(255,255,255,0.1);
}

.fomdem-btn {
    background-color: var(--primary-green);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.fomdem-btn:hover {
    background-color: var(--hover-green);
}

/* Hero Section */
.hero-section {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}
.hero-section .container {
    display: flex;
}
.sidebar-menu {
    width: 280px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-top: none;
    flex-shrink: 0;
}
.sidebar-menu ul li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 25px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}
.sidebar-menu ul li a:hover {
    color: var(--primary-green);
    background-color: var(--bg-light);
    padding-left: 30px;
}
.sidebar-menu ul li a i {
    color: var(--text-gray);
    width: 20px;
    text-align: center;
    font-size: 18px;
}
.sidebar-menu ul li a:hover i {
    color: var(--primary-green);
}

.hero-banner {
    flex: 1;
    background-image: url('images/hero_banner.png');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(14,76,140,0.85) 0%, rgba(14,76,140,0.4) 100%);
}
.banner-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 600px;
}
.banner-content h2 {
    font-size: 42px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 30px;
}
.banner-content .highlight {
    font-weight: 700;
    color: var(--primary-green);
}
.btn-primary {
    display: inline-block;
    background-color: var(--primary-green);
    color: var(--white);
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(39,174,96,0.4);
}
.btn-primary:hover {
    background-color: var(--hover-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39,174,96,0.6);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}
.dot.active, .dot:hover {
    background-color: var(--white);
}

/* Category Boxes */
.category-boxes {
    padding: 30px 0;
}
.category-boxes .container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.cat-box {
    display: flex;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
}
.cat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.cat-left {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 10px;
}
.cat-left i {
    font-size: 32px;
    margin-bottom: 10px;
}
.cat-left span {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}
.cat-right {
    width: 50%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.cat-right img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}
.cat-box:hover .cat-right img {
    transform: scale(1.1);
}

/* Featured Products */
.featured-products {
    padding: 30px 0 60px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.section-header h2 {
    font-size: 22px;
    color: var(--text-dark);
    font-weight: 700;
}
.slider-nav .nav-btn {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    width: 35px;
    height: 35px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-gray);
    transition: var(--transition);
    margin-left: 5px;
}
.slider-nav .nav-btn:hover {
    background-color: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

.featured-layout {
    display: flex;
    gap: 25px;
}
.promo-banners {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    flex-shrink: 0;
}
.promo-box {
    border-radius: 6px;
    overflow: hidden;
    color: var(--white);
    position: relative;
    height: 190px;
    display: flex;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}
.promo-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.promo-text {
    width: 50%;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 2;
}
.promo-text i {
    font-size: 32px;
    margin-bottom: 15px;
}
.promo-text h3 {
    font-size: 16px;
    line-height: 1.3;
}
.promo-img-wrapper {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 60%;
    z-index: 1;
}
.promo-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    mix-blend-mode: luminosity;
    transition: var(--transition);
}
.promo-box:hover .promo-img-wrapper img {
    transform: scale(1.05);
    opacity: 0.9;
}

.products-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.product-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
    transform: translateY(-5px);
}
.product-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}
.product-card:hover .product-img img {
    transform: scale(1.08);
}
.product-info h4 {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 10px;
    min-height: 40px;
}
.product-info .price {
    font-size: 18px;
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 15px;
}
.btn-add-cart {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 10px 0;
    width: 100%;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-add-cart:hover {
    background-color: var(--primary-blue);
}

/* Footer */
.main-footer {
    background-color: var(--secondary-blue);
    color: var(--white);
    padding-top: 60px;
    position: relative;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}
.footer-about p {
    color: #b0c4de;
    font-size: 14px;
    line-height: 1.8;
}
.footer-links h3, .footer-contact h3 {
    font-size: 16px;
    margin-bottom: 25px;
    font-weight: 600;
    letter-spacing: 1px;
}
.footer-links ul li {
    margin-bottom: 12px;
}
.footer-links ul li a {
    color: #b0c4de;
    font-size: 14px;
    transition: var(--transition);
}
.footer-links ul li a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}
.footer-contact ul li {
    color: #b0c4de;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-contact ul li i {
    color: var(--primary-green);
    font-size: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    font-size: 13px;
    color: #b0c4de;
}
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: var(--transition);
    z-index: 100;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .category-boxes .container {
        grid-template-columns: repeat(3, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 992px) {
    .featured-layout {
        flex-direction: column;
    }
    .promo-banners {
        width: 100%;
        flex-direction: row;
    }
    .promo-box {
        flex: 1;
    }
    .hero-section .container {
        flex-direction: column;
    }
    .sidebar-menu {
        width: 100%;
    }
}
