* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --secondary: #6f42c1;
    --text: #1f2937;
    --text-soft: #6b7280;
    --bg: #f5f7fb;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.12);
    --footer-bg: #0f172a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.site-main {
    min-height: 60vh;
}

.container {
    width: min(92%, 1280px);
    margin: 0 auto;
}

/* Topbar */
.topbar {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
}

.topbar-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.topbar-left span,
.topbar-right a {
    color: rgba(255, 255, 255, 0.92);
}

.topbar-right a:hover {
    color: #ffffff;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.04);
}

.header-main {
    display: grid;
    grid-template-columns: 240px minmax(300px, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 20px;
    box-shadow: var(--shadow-sm);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}

.brand-text small {
    font-size: 12px;
    color: var(--text-soft);
    margin-top: 3px;
}

.header-search {
    width: 100%;
}

.search-form {
    position: relative;
    width: 100%;
}

.search-form input {
    width: 100%;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0 58px 0 18px;
    font-size: 15px;
    background: #fff;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.search-form input:focus {
    border-color: rgba(13, 110, 253, 0.45);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.08);
}

.search-form button {
    position: absolute;
    top: 50%;
    right: 7px;
    transform: translateY(-50%);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    cursor: pointer;
    font-size: 15px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-action-item {
    min-width: 84px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.header-action-item:hover {
    transform: translateY(-1px);
    color: var(--primary);
    border-color: rgba(13, 110, 253, 0.25);
}

.cart-action {
    padding-right: 18px;
}

.cart-badge {
    position: absolute;
    top: -7px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Navigation */
.header-nav-wrap {
    border-top: 1px solid rgba(229, 231, 235, 0.9);
    background: #ffffff;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 0;
}

.main-nav a {
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(13, 110, 253, 0.08);
    color: var(--primary);
}

/* Hero */
.hero-section {
    padding: 42px 0 20px;
}

.hero-box {
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    color: #fff;
    padding: 70px 30px;
    border-radius: 28px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-box::before,
.hero-box::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

.hero-box::before {
    width: 240px;
    height: 240px;
    top: -80px;
    right: -60px;
}

.hero-box::after {
    width: 180px;
    height: 180px;
    left: -40px;
    bottom: -60px;
}

.hero-box h1,
.hero-box p,
.hero-box .shop-btn {
    position: relative;
    z-index: 1;
}

.hero-box h1 {
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 14px;
    font-weight: 800;
}

.hero-box p {
    font-size: 18px;
    max-width: 760px;
    margin: 0 auto 24px;
    opacity: 0.96;
}

.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    background: #fff;
    color: var(--primary);
    padding: 14px 24px;
    border-radius: 14px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.shop-btn:hover {
    transform: translateY(-2px);
    background: #f8fafc;
}

/* Featured */
.featured-section {
    padding: 34px 0 70px;
}

.section-title {
    text-align: center;
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 28px;
    color: #111827;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    background: #fff;
    border-radius: 22px;
    padding: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.25s ease;
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.product-card:hover {
    transform: translateY(-6px);
}

.product-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 16px;
    background: #f3f4f6;
}

.product-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}

.price {
    font-size: 18px;
    color: #16a34a;
    font-weight: 800;
    margin-bottom: 14px;
}

.product-btn {
    width: 100%;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}

.product-btn:hover {
    transform: translateY(-1px);
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.86);
    margin-top: 30px;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 30px;
    padding-bottom: 38px;
}

.footer-col h4,
.footer-brand h3 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 700;
}

.footer-brand p {
    max-width: 360px;
    color: rgba(255, 255, 255, 0.78);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a,
.footer-contact-list li {
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    transition: all 0.2s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-contact-list li i {
    width: 18px;
    margin-right: 8px;
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.footer-socials a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding: 18px 0 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 1100px) {
    .header-main {
        grid-template-columns: 1fr;
    }

    .header-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .topbar-inner {
        flex-direction: column;
        padding: 10px 0;
        align-items: flex-start;
    }

    .hero-box {
        padding: 50px 20px;
        border-radius: 22px;
    }

    .hero-box h1 {
        font-size: 32px;
    }

    .hero-box p {
        font-size: 16px;
    }

    .main-nav {
        gap: 6px;
    }

    .main-nav a {
        padding: 8px 12px;
        font-size: 13px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-text strong {
        font-size: 20px;
    }

    .header-action-item {
        min-width: unset;
        padding: 10px 12px;
    }
}

/* HERO */
.hero-section {
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
    padding: 80px 0;
    color: #fff;
    text-align: center;
}

.hero-box h1 {
    font-size: 40px;
    font-weight: 800;
}

.hero-search {
    margin: 20px auto;
    display: flex;
    max-width: 500px;
}

.hero-search input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px 0 0 6px;
}

.hero-search button {
    padding: 12px 20px;
    border: none;
    background: #ff9800;
    color: #fff;
    border-radius: 0 6px 6px 0;
}

/* CATEGORY */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.category-card {
    text-align: center;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    transition: 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

/* PRODUCTS */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-btn {
    background: #2e7d32;
    color: #fff;
    border: none;
    padding: 10px;
    width: 100%;
    margin-top: 10px;
}

/* PROMO */
.promo-banner {
    background: #ff5722;
    padding: 50px 0;
    text-align: center;
    color: #fff;
}

.promo-box h2 {
    font-size: 32px;
}