:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --dark: #111827;
    --dark-2: #1f2937;
    --light: #f8fafc;
    --border: #e5e7eb;
    --text: #374151;
    --muted: #6b7280;
    --success: #16a34a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f8fafc;
    color: var(--text);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

/* Navbar */

.main-navbar {
    background: var(--dark);
    min-height: 72px;
}

.navbar-brand {
    font-size: 22px;
    letter-spacing: .5px;
}

.navbar-brand span:last-child {
    color: #60a5fa;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    margin-right: 8px;

    border-radius: 10px;

    background: var(--primary);
}

.navbar-nav {
    gap: 8px;
}

.nav-link {
    color: #d1d5db !important;
    padding: 10px 14px !important;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: white !important;
    background: rgba(255,255,255,.08);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-action {
    position: relative;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    color: white;
    text-decoration: none;

    background: rgba(255,255,255,.08);
}

.nav-action:hover {
    background: var(--primary);
    color: white;
}

.cart-counter {
    position: absolute;

    top: -5px;
    right: -5px;

    min-width: 19px;
    height: 19px;

    padding: 0 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ef4444;
    color: white;

    border-radius: 50%;

    font-size: 11px;
    font-weight: 700;
}

/* Hero */

.hero {
    padding: 70px 0;

    background:
        linear-gradient(
            135deg,
            #111827 0%,
            #1e3a8a 100%
        );

    color: white;
}

.hero-content {
    max-width: 850px;
    margin: auto;
    text-align: center;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 800;
    margin-bottom: 18px;
}

.hero h1 span {
    color: #60a5fa;
}

.hero p {
    color: #dbeafe;
    font-size: 18px;
    margin-bottom: 30px;
}

/* Search */

.search-box {
    max-width: 760px;
    margin: auto;

    display: flex;

    background: white;

    padding: 7px;

    border-radius: 14px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.25);
}

.search-box input {
    flex: 1;

    border: 0;
    outline: 0;

    padding: 15px 18px;

    font-size: 16px;
}

.search-box button {
    border: 0;

    padding: 0 25px;

    border-radius: 10px;

    background: var(--primary);
    color: white;

    font-weight: 600;
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* Section */

.section {
    padding: 60px 0;
}

.section-title {
    margin-bottom: 35px;
}

.section-title h2 {
    font-size: 30px;
    font-weight: 750;
    color: var(--dark);
}

.section-title p {
    color: var(--muted);
}

/* Categories */

.category-card {
    display: block;

    height: 100%;

    padding: 25px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 14px;

    color: var(--dark);
    text-decoration: none;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.category-card:hover {
    transform: translateY(-4px);

    border-color: #bfdbfe;

    box-shadow:
        0 15px 30px rgba(15,23,42,.08);

    color: var(--primary);
}

.category-icon {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 12px;

    background: #eff6ff;

    color: var(--primary);

    font-size: 25px;
}

.category-card h5 {
    margin: 0 0 6px;

    font-weight: 700;
}

.category-card p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;
}

/* Product */

.product-card {
    height: 100%;

    overflow: hidden;

    background: white;

    border: 1px solid var(--border);

    border-radius: 14px;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.product-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 35px rgba(15,23,42,.09);
}

.product-image {
    height: 210px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f1f5f9;

    color: #94a3b8;

    font-size: 55px;
}

.product-body {
    padding: 20px;
}

.product-brand {
    color: var(--primary);

    font-size: 13px;

    font-weight: 700;

    text-transform: uppercase;
}

.product-name {
    color: var(--dark);

    font-size: 17px;

    font-weight: 700;

    margin: 6px 0;
}

.product-article {
    color: var(--muted);

    font-size: 13px;
}

.product-price {
    color: var(--dark);

    font-size: 22px;

    font-weight: 800;
}

.old-price {
    color: #9ca3af;

    text-decoration: line-through;

    font-size: 14px;

    margin-left: 6px;
}

.stock {
    font-size: 13px;

    color: var(--success);

    font-weight: 600;
}

/* Footer */

.footer {
    padding: 55px 0 20px;

    background: var(--dark);

    color: #9ca3af;
}

.footer h5 {
    color: white;

    font-size: 16px;

    margin-bottom: 18px;
}

.footer-brand {
    color: white;

    font-size: 22px;

    font-weight: 800;

    margin-bottom: 15px;
}

.footer-brand span {
    color: #60a5fa;
}

.footer ul {
    padding: 0;
    margin: 0;

    list-style: none;
}

.footer li {
    margin-bottom: 9px;
}

.footer a {
    color: #9ca3af;

    text-decoration: none;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;

    padding-top: 15px;

    font-size: 14px;
}

/* Mobile */

@media (max-width: 991px) {

    .navbar-actions {
        margin-top: 15px;
        padding-bottom: 15px;
    }

    .hero {
        padding: 50px 0;
    }

}

@media (max-width: 575px) {

    .search-box {
        display: block;

        background: transparent;

        box-shadow: none;
    }

    .search-box input {
        width: 100%;

        border-radius: 10px;

        margin-bottom: 8px;
    }

    .search-box button {
        width: 100%;

        min-height: 52px;
    }

    .section {
        padding: 40px 0;
    }

}