/* assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #003366;
    --primary-dark: #002244;
    --primary-light: #00509e;
    --secondary: #0077be;
    --white: #ffffff;
    --light-blue: #f0f8ff;
    --gray: #f8f9fa;
    --dark: #333333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--primary-dark);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.top-bar span {
    margin-right: 20px;
}
.top-bar span i {
    margin-right: 5px;
}
.top-links a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    transition: 0.3s;
}
.top-links a:hover {
    opacity: 0.8;
}

/* ===== MAIN HEADER ===== */
.main-header {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.logo a {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}
.logo a i {
    color: var(--secondary);
}
.search-bar {
    flex: 1;
    max-width: 500px;
    min-width: 200px;
}
.search-bar form {
    display: flex;
}
.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 50px 0 0 50px;
    outline: none;
    font-size: 14px;
}
.search-bar input:focus {
    border-color: var(--primary);
}
.search-bar button {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: 0.3s;
}
.search-bar button:hover {
    background: var(--primary-dark);
}
.header-icons {
    display: flex;
    gap: 20px;
}
.header-icons .icon-link {
    color: var(--dark);
    font-size: 20px;
    position: relative;
    text-decoration: none;
}
.header-icons .icon-link:hover {
    color: var(--primary);
}
.badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: red;
    color: white;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 50%;
}

/* ===== NAVIGATION ===== */
.main-nav {
    background: var(--primary);
    padding: 0;
}
.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
}
.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    transition: 0.3s;
    font-size: 15px;
}
.nav-links li a:hover,
.nav-links li a.active {
    background: white;
    color: var(--primary);
}
.nav-categories a {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    background: rgba(255,255,255,0.15);
    display: block;
    transition: 0.3s;
}
.nav-categories a:hover {
    background: white;
    color: var(--primary);
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 60px 0;
    color: white;
}
.hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
}
.hero-content {
    flex: 1;
}
.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
}
.hero-content p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 25px;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.btn-primary {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.btn-secondary {
    display: inline-block;
    background: transparent;
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid white;
    transition: 0.3s;
}
.btn-secondary:hover {
    background: white;
    color: var(--primary);
}
.hero-image {
    flex: 1;
    text-align: center;
}
.hero-image img {
    max-width: 100%;
    max-height: 350px;
    border-radius: 20px;
}

/* ===== TRUST BAR ===== */
.trust-bar {
    background: white;
    padding: 40px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.trust-item {
    text-align: center;
}
.trust-item i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 10px;
}
.trust-item h4 {
    color: var(--dark);
    font-size: 18px;
}
.trust-item p {
    color: #777;
    font-size: 14px;
}

/* ===== SECTIONS COMMON ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.section-header h2 {
    font-size: 32px;
    color: var(--dark);
}
.section-header h2 span {
    color: var(--primary);
}
.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}
.view-all:hover {
    color: var(--secondary);
}
.view-all i {
    margin-left: 5px;
}

/* ===== CATEGORIES ===== */
.categories-section {
    padding: 60px 0;
    background: var(--gray);
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.category-card {
    background: white;
    padding: 25px 15px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,51,102,0.15);
}
.category-icon {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 10px;
}
.category-card h4 {
    font-size: 16px;
}
.category-card p {
    font-size: 13px;
    color: #777;
}

/* ===== PRODUCTS ===== */
.products-section {
    padding: 60px 0;
    background: white;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.product-image {
    position: relative;
    height: 220px;
    background: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.badge-featured {
    position: absolute;
    top: 10px;
    left: 10px;
    background: gold;
    color: var(--dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}
.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
}
.product-card:hover .product-actions {
    bottom: 15px;
}
.product-actions button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: white;
    color: var(--dark);
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.product-actions button:hover {
    background: var(--primary);
    color: white;
}
.product-info {
    padding: 18px;
}
.product-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
}
.product-info h4 a {
    color: var(--dark);
    text-decoration: none;
}
.product-info h4 a:hover {
    color: var(--primary);
}
.product-price {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}
.current-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
}
.old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}
.btn-add-cart {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}
.btn-add-cart:hover {
    background: var(--primary-dark);
}

/* ===== PROMO ===== */
.promo-section {
    padding: 40px 0;
    background: var(--gray);
}
.promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}
.promo-banner {
    border-radius: 16px;
    padding: 35px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}
.promo-content {
    flex: 1;
}
.promo-tag {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 10px;
}
.promo-banner h3 {
    font-size: 28px;
    margin-bottom: 8px;
}
.promo-banner p {
    opacity: 0.9;
    margin-bottom: 15px;
}
.btn-promo {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 10px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}
.btn-promo:hover {
    transform: scale(1.05);
}
.promo-image img {
    max-height: 100px;
    max-width: 120px;
}

/* ===== REWARDS ===== */
.rewards-banner {
    padding: 60px 0;
    color: white;
}
.rewards-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.rewards-content h2 {
    font-size: 36px;
}
.rewards-content h2 span {
    color: gold;
}
.rewards-content p {
    font-size: 18px;
    opacity: 0.9;
    margin: 10px 0 20px;
}
.rewards-icon i {
    font-size: 100px;
    color: gold;
}

/* ===== FOOTER ===== */
.main-footer {
    background: var(--primary-dark);
    color: white;
    padding: 50px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
    font-size: 18px;
    margin-bottom: 15px;
}
.footer-col p {
    opacity: 0.7;
    font-size: 14px;
    line-height: 1.8;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;
}
.footer-col ul li a:hover {
    color: white;
}
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}
.social-links a {
    display: inline-block;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    color: white;
    text-align: center;
    line-height: 38px;
    border-radius: 50%;
    transition: 0.3s;
}
.social-links a:hover {
    background: white;
    color: var(--primary);
}
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    opacity: 0.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .promo-grid {
        grid-template-columns: 1fr;
    }
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-content h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
    }
    .search-bar {
        max-width: 100%;
        width: 100%;
    }
    .top-bar .container {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .rewards-container {
        flex-direction: column;
        text-align: center;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-content h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
    .categories-grid {
        grid-template-columns: 1fr;
    }
}