* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f6f8;
    color: #202124;
}

.container {
    width: min(1100px, 94%);
    margin: auto;
}

header {
    background: #101418;
    color: white;
    padding: 16px 0;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
}

.search {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin: 20px 0;
}

.categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.categories a {
    background: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    white-space: nowrap;
}

.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.product {
    background: white;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.product h3 {
    margin: 5px 0;
}

.price {
    color: #149447;
    font-size: 20px;
    font-weight: bold;
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    border: 0;
    border-radius: 7px;
    background: #1687ff;
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.form {
    background: white;
    padding: 25px;
    border-radius: 12px;
    max-width: 600px;
    margin: 30px auto;
}

.form input,
.form textarea,
.form select {
    width: 100%;
    padding: 12px;
    margin: 7px 0 15px;
    border: 1px solid #ddd;
    border-radius: 7px;
}

.form textarea {
    min-height: 120px;
}

.admin-menu {
    background: #151a20;
    padding: 15px;
}

.admin-menu a {
    color: white;
    margin-right: 15px;
    text-decoration: none;
}

.table-wrap {
    overflow-x: auto;
    background: white;
    padding: 15px;
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

@media(max-width: 700px) {
    .products {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   HEADER / NAVBAR
========================================================= */

.main-navbar {
    min-height: 72px;
    background: #111827;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
    z-index: 1030;
}

/* Container */
.main-navbar .container {
    min-height: 72px;
}


/* =========================================================
   BRAND / LOGO
========================================================= */

.main-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #ffffff;

    font-size: 20px;
    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;
}

.main-navbar .navbar-brand:hover {
    color: #ffffff;
}


/* Logo Icon */

.brand-icon {
    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: #ffffff;

    background: #0d6efd;

    border-radius: 10px;

    font-size: 18px;

    box-shadow:
        0 5px 15px rgba(13, 110, 253, 0.35);
}


/* =========================================================
   NAVIGATION
========================================================= */

.main-navbar .navbar-nav {
    gap: 4px;
}

.main-navbar .nav-item {
    display: flex;
    align-items: center;
}


/* Navigation Links */

.main-navbar .nav-link {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 42px;

    padding: 9px 14px !important;

    color: rgba(255, 255, 255, 0.78) !important;

    border-radius: 8px;

    font-size: 15px;
    font-weight: 500;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}


/* Hover */

.main-navbar .nav-link:hover {
    color: #ffffff !important;

    background:
        rgba(255, 255, 255, 0.08);
}


/* Active */

.main-navbar .nav-link.active {
    color: #ffffff !important;

    background:
        rgba(13, 110, 253, 0.18);
}


/* Icons */

.main-navbar .nav-link i {
    font-size: 15px;
}


/* =========================================================
   ADMIN LINK
========================================================= */

.main-navbar .admin-link {
    color: #7db2ff !important;
}

.main-navbar .admin-link:hover {
    color: #ffffff !important;

    background:
        rgba(13, 110, 253, 0.18);
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.main-navbar .nav-login-btn {
    min-height: 42px;

    padding:
        9px 18px !important;

    color: #ffffff !important;

    background: #0d6efd;

    border:
        1px solid #0d6efd;

    border-radius: 8px;

    font-weight: 600;

    box-shadow:
        0 4px 12px rgba(13, 110, 253, 0.22);

    transition:
        all 0.2s ease;
}

.main-navbar .nav-login-btn:hover {
    color: #ffffff !important;

    background: #0b5ed7;

    border-color: #0b5ed7;

    transform: translateY(-1px);
}


/* =========================================================
   REGISTER BUTTON
========================================================= */

.main-navbar .nav-register-btn {
    min-height: 42px;

    padding:
        8px 17px !important;

    color: #ffffff !important;

    border:
        1px solid rgba(255, 255, 255, 0.35);

    border-radius: 8px;

    font-weight: 600;

    transition:
        all 0.2s ease;
}

.main-navbar .nav-register-btn:hover {
    color: #111827 !important;

    background: #ffffff;

    border-color: #ffffff;
}


/* =========================================================
   USER DROPDOWN
========================================================= */

.main-navbar .dropdown-menu {
    min-width: 190px;

    margin-top: 8px;

    padding: 8px;

    background: #ffffff;

    border: 0;

    border-radius: 10px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.15);
}

.main-navbar .dropdown-item {
    padding:
        10px 12px;

    color: #374151;

    border-radius: 7px;

    font-size: 14px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.main-navbar .dropdown-item:hover {
    color: #0d6efd;

    background: #f1f5f9;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.main-navbar .navbar-toggler {
    width: 44px;
    height: 42px;

    padding: 7px;

    border:
        1px solid rgba(255, 255, 255, 0.25);

    border-radius: 8px;
}

.main-navbar .navbar-toggler:focus {
    box-shadow:
        0 0 0 3px rgba(13, 110, 253, 0.25);
}

.main-navbar .navbar-toggler-icon {
    width: 20px;
    height: 20px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991.98px) {

    .main-navbar {
        min-height: 65px;
    }

    .main-navbar .container {
        min-height: 65px;
    }

    .main-navbar .navbar-collapse {
        margin-top: 10px;

        padding:
            10px 0 15px;

        border-top:
            1px solid rgba(255, 255, 255, 0.08);
    }

    .main-navbar .navbar-nav {
        gap: 3px;
    }

    .main-navbar .nav-item {
        display: block;
    }

    .main-navbar .nav-link {
        width: 100%;

        padding:
            11px 12px !important;
    }

    .main-navbar .nav-login-btn,
    .main-navbar .nav-register-btn {
        display: inline-flex;

        align-items: center;
        justify-content: center;

        margin-top: 7px;
    }

    .main-navbar .dropdown-menu {
        margin-top: 2px;

        background: #1f2937;

        box-shadow: none;
    }

    .main-navbar .dropdown-item {
        color:
            rgba(255, 255, 255, 0.8);
    }

    .main-navbar .dropdown-item:hover {
        color: #ffffff;

        background:
            rgba(255, 255, 255, 0.08);
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575.98px) {

    .main-navbar .navbar-brand {
        font-size: 17px;
    }

    .brand-icon {
        width: 36px;
        height: 36px;

        border-radius: 9px;
    }

}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: #111827;
    color: rgba(255, 255, 255, .65);
    margin-top: 60px;
    padding: 50px 0 25px;
}

.site-footer p {
    color: rgba(255, 255, 255, .65);
    line-height: 1.7;
}

.site-footer h5,
.site-footer h6 {
    color: #fff;
}

.site-footer a {
    color: rgba(255, 255, 255, .68);
    text-decoration: none;
    transition: all .2s ease;
}

.site-footer a:hover {
    color: #fff;
    padding-left: 3px;
}

.site-footer .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
}


/* =========================================================
   HOME PAGE
========================================================= */


/* Hero */

.hero-section {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #0d6efd 0%,
            #084298 100%
        );

    color: #fff;

    border-radius: 0 0 20px 20px;

    padding: 70px 0;

    margin-top: 0;
}

.hero-section::before {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.06);

    top: -150px;
    right: -80px;
}

.hero-section::after {
    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.05);

    bottom: -150px;
    left: 30%;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-product-icon {
    width: 250px;
    height: 250px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        rgba(255,255,255,.12);

    border:
        1px solid rgba(255,255,255,.2);

    font-size: 100px;

    color: rgba(255,255,255,.9);

    box-shadow:
        0 20px 60px rgba(0,0,0,.12);
}


/* Category cards */

.category-card {
    display: flex;

    align-items: center;

    gap: 14px;

    background: #fff;

    border:
        1px solid var(--border);

    border-radius: 12px;

    padding: 17px;

    color: var(--text);

    text-decoration: none;

    height: 100%;

    transition:
        all .2s ease;
}

.category-card:hover {
    color: var(--primary);

    transform:
        translateY(-3px);

    box-shadow:
        0 8px 25px rgba(0,0,0,.07);
}

.category-card small {
    color: var(--muted);
}

.category-icon {
    flex-shrink: 0;

    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        rgba(13,110,253,.1);

    color:
        var(--primary);

    font-size: 20px;
}


/* Product image */

.product-image {
    width: 100%;
    height: 190px;

    background: #f8fafc;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* Product placeholder */

.product-placeholder {
    width: 100%;
    height: 190px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #eef2f7
        );

    color: #94a3b8;

    font-size: 55px;
}


/* Empty products */

.empty-icon {
    width: 70px;
    height: 70px;

    margin: auto;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        #eef4ff;

    color:
        var(--primary);

    font-size: 28px;
}


/* Feature cards */

.feature-card {
    background: #fff;

    border:
        1px solid var(--border);

    border-radius: 14px;

    padding: 30px 25px;

    height: 100%;

    transition:
        all .2s ease;
}

.feature-card:hover {
    transform:
        translateY(-4px);

    box-shadow:
        0 10px 30px rgba(0,0,0,.07);
}

.feature-card h5 {
    margin-top: 18px;

    font-weight: 700;
}

.feature-card p {
    color: var(--muted);

    margin-bottom: 0;

    line-height: 1.7;
}

.feature-icon {
    width: 58px;
    height: 58px;

    margin: auto;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        rgba(13,110,253,.1);

    color:
        var(--primary);

    font-size: 25px;
}


/* CTA */

.cta-section {
    background:
        linear-gradient(
            135deg,
            #111827,
            #1e293b
        );

    color: #fff;

    border-radius: 16px;

    padding: 40px;
}

.cta-section h2 {
    font-weight: 750;

    margin-bottom: 8px;
}

.cta-section p {
    color:
        rgba(255,255,255,.7);
}


/* Mobile */

@media (max-width: 767.98px) {

    .hero-section {
        padding: 50px 0;

        border-radius:
            0 0 15px 15px;
    }

    .hero-section h1 {
        font-size: 34px;
    }

    .hero-section p {
        font-size: 16px;
    }

    .cta-section {
        padding: 30px 22px;
    }

}
