/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f8f9fb;
    color: #333;
    line-height: 1.5;
}

/* =========================
   GLOBAL
========================= */
.container {
    width: 92%;
    max-width: 1200px;
    margin: auto;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================
   NAVBAR
========================= */
header {
    background: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 6px;
    transition: 0.2s ease;
}

nav a:hover {
    color: #0a66c2;
    background: rgba(10, 102, 194, 0.06);
}

/* =========================
   BUTTON
========================= */
.btn,
button.btn {
    background: #0a66c2;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    display: inline-block;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn:hover,
button.btn:hover {
    background: #004a99;
}

/* =========================
   HERO
========================= */
.hero {
    background: linear-gradient(135deg, #0a66c2, #004a99);
    color: white;
    text-align: center;
    padding: 70px 20px;
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 16px;
    opacity: 0.95;
}

/* =========================
   SEARCH
========================= */
.search-box {
    display: flex;
    gap: 10px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.search-box input,
.search-box select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 100%;
    background: #fff;
    outline: none;
}

.search-box input:focus,
.search-box select:focus {
    border-color: #0a66c2;
}

/* =========================
   CATEGORY BAR
========================= */
.categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin: 20px 0;
    padding-bottom: 5px;
}

.cat {
    background: white;
    padding: 10px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    font-size: 14px;
}

/* =========================
   GRID
========================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

/* =========================
   CARD
========================= */
.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: relative;
}

.card:hover {
    transform: translateY(-6px);
}

.card a {
    text-decoration: none;
    color: inherit;
}

.card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.card-body {
    padding: 12px;
}

.card-body h4 {
    margin-bottom: 8px;
    font-size: 16px;
    color: #222;
}

.card-body p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.price {
    color: #28a745;
    font-weight: bold;
    margin-top: 5px;
    font-size: 16px;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: gold;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

/* =========================
   FORM / BOX
========================= */
.box {
    max-width: 600px;
    margin: 40px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.box input,
.box select,
.box textarea,
.box button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 6px;
    box-sizing: border-box;
}

.box input,
.box select,
.box textarea {
    border: 1px solid #ddd;
    background: #fff;
}

.box textarea {
    resize: vertical;
    min-height: 120px;
}

.box button {
    border: none;
    background: #0a66c2;
    color: #fff;
    cursor: pointer;
}

.box button:hover {
    background: #004a99;
}

/* =========================
   ALERTS
========================= */
.success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
}

/* =========================
   FOOTER
========================= */
.footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: 50px;
}

.footer h3 {
    margin-bottom: 8px;
}

.footer p {
    margin-top: 6px;
    color: #ddd;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        width: 100%;
    }

    .search-box {
        flex-direction: column;
    }

    .hero {
        padding: 50px 15px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .logo img {
        height: 40px;
    }
}