/* --- Google Fonts & Reset --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* --- Top Utility Bar --- */
.top-bar {
    background-color: #0c1a30;
    color: #fff;
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
}
.top-links a:hover {
    color: #f4c414;
}

/* --- Main Header --- */
.main-header {
    background-color: #fff;
    padding: 20px 0;
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 24px;
    font-weight: 700;
    color: #0c1a30;
}
.logo i {
    color: #f4c414;
}
.logo span {
    color: #f4c414;
}

/* Search Bar */
.search-bar {
    display: flex;
    width: 45%;
}
.search-bar input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #f4c414;
    border-right: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}
.search-bar button {
    background-color: #f4c414;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 20px;
}
.action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.action-item i {
    font-size: 22px;
    color: #0c1a30;
}
.action-item span {
    font-size: 11px;
    color: #777;
    display: block;
}
.action-item p {
    font-size: 13px;
    font-weight: 600;
}
.cart-icon-wrapper {
    position: relative;
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #f4c414;
    color: #0c1a30;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 50%;
}

/* --- Navigation Bar --- */
.navbar {
    background-color: #fff;
    border-top: 1px solid #eee;
    border-bottom: 2px solid #eee;
}
.nav-flex {
    display: flex;
    align-items: center;
}
.all-categories {
    background-color: #f4c414;
    color: #0c1a30;
    font-weight: 600;
    padding: 15px 25px;
    font-size: 14px;
    cursor: pointer;
}
.nav-links {
    margin-left: 20px;
}
.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    padding: 15px;
    display: inline-block;
}
.nav-links a.active, .nav-links a:hover {
    color: #f4c414;
}

/* --- Hero Banner --- */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    padding: 60px 0;
    margin-top: 20px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}
.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.special-offer {
    background-color: #ffe893;
    color: #d49e00;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
}
.hero-content h1 {
    font-size: 42px;
    color: #0c1a30;
    margin: 15px 0;
    font-weight: 700;
}
.hero-content h1 span {
    color: #f4c414;
}
.hero-content p {
    color: #666;
    margin-bottom: 25px;
}
.btn-shop {
    background-color: #0c1a30;
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
    transition: 0.3s;
}
.btn-shop:hover {
    background-color: #f4c414;
    color: #0c1a30;
}
.hero-badge {
    background-color: #f4c414;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.hero-badge p {
    font-size: 14px;
    font-weight: 500;
}
.hero-badge h2 {
    font-size: 48px;
    font-weight: 700;
}

/* --- Ad Placement --- */
.ad-placement {
    border: 1px dashed #ff4a4a;
    background-color: #fff5f5;
    text-align: center;
    padding: 20px;
    margin-top: 25px;
    border-radius: 6px;
}
.ad-title {
    color: #ff4a4a;
    font-weight: 600;
    font-size: 16px;
}
.ad-sub {
    color: #777;
    font-size: 12px;
    margin-top: 5px;
}

/* --- Section Global Title --- */
.section-title {
    font-size: 22px;
    color: #0c1a30;
    margin: 40px 0 20px 0;
    font-weight: 600;
}

/* --- Categories Grid --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}
.category-card {
    background-color: #fff;
    padding: 20px 10px;
    text-align: center;
    border-radius: 6px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: 0.3s;
}
.category-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: #f4c414;
}
.cat-icon {
    font-size: 28px;
    color: #0c1a30;
    margin-bottom: 10px;
}
.category-card p {
    font-size: 13px;
    font-weight: 500;
}

/* --- Featured Products --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.product-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    transition: 0.3s;
}
.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.price-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff4a4a;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.product-img {
    height: 180px;
    background-color: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-info {
    padding: 15px;
}
.rating {
    color: #f4c414;
    font-size: 11px;
    margin-bottom: 5px;
}
.rating span {
    color: #999;
    margin-left: 5px;
}
.product-info h3 {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 5px;
}
.price {
    font-size: 16px;
    font-weight: 600;
    color: #0c1a30;
    margin-bottom: 15px;
}
.btn-add-cart {
    width: 100%;
    background-color: #0c1a30;
    color: #fff;
    border: none;
    padding: 8px 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: 0.3s;
}
.btn-add-cart:hover {
    background-color: #f4c414;
    color: #0c1a30;
}

/* --- Footer --- */
.main-footer {
    background-color: #0c1a30;
    color: #fff;
    margin-top: 60px;
    padding: 50px 0 20px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}
.footer-col h3 {
    font-size: 22px;
    margin-bottom: 15px;
}
.footer-col h3 span {
    color: #f4c414;
}
.footer-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}
.footer-col p {
    font-size: 13px;
    color: #bcc1cb;
    line-height: 1.6;
}
.social-icons {
    margin-top: 15px;
}
.social-icons a {
    color: #fff;
    font-size: 16px;
    margin-right: 15px;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: #bcc1cb;
    text-decoration: none;
    font-size: 13px;
}
.footer-col ul li a:hover {
    color: #f4c414;
}
.newsletter-form {
    display: flex;
    margin-top: 15px;
}
.newsletter-form input {
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    width: 70%;
}
.newsletter-form button {
    background-color: #f4c414;
    color: #0c1a30;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    font-size: 12px;
    color: #bcc1cb;
}
.payment-methods i {
    font-size: 24px;
    margin-left: 10px;
    color: #fff;
}

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
    .container-flex, .header-flex, .hero-container, .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .search-bar {
        width: 100%;
    }
    .nav-flex {
        flex-direction: column;
    }
    .nav-links a {
        padding: 10px;
    }
}