/* MODERN RESET */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

body {
    font-family: Arial, sans-serif;
    background: #f2f2f2;
}

/* =========================
       HEADER
========================= */
.header {
    background-color: #131921;
    color: white;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

/* Search Bar */
#searchBar {
    flex: 1;
    max-width: 500px;
    padding: 10px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    outline: none;
}

/* Cart Icon with badge */
.cart-icon {
    color: white;
    position: relative;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: red;
    color: white;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 50%;
}

/* =========================
      CATEGORY BAR
========================= */
.category-bar {
    background: white;
    padding: 10px;
    display: flex;
    overflow-x: auto;
    gap: 10px;
    border-bottom: 1px solid #ddd;
}

.category-bar a {
    background: #efefef;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    color: black;
    font-size: 14px;
    white-space: nowrap;
}

.category-bar a:hover {
    background: #ddd;
}

/* =========================
         BANNER
========================= */
.hero img {
    width: 100%;
    border-radius: 10px;
    margin-top: 10px;
}

/* =========================
     PRODUCT GRID SECTION
========================= */
.products-section {
    padding: 15px;
}

.products-section h2 {
    margin-bottom: 10px;
    font-size: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

/* PRODUCT CARD */
.product-card {
    background: white;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    transition: 0.2s;
}

.product-card:hover {
    transform: scale(1.03);
}

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
}

.product-card h3 {
    font-size: 14px;
    margin: 8px 0;
}

.product-card p {
    font-size: 16px;
    color: #B12704;
    font-weight: bold;
}

.product-card button {
    width: 100%;
    padding: 8px;
    background: #FFD814;
    border: 1px solid #FCD200;
    border-radius: 8px;
    margin-top: 8px;
    cursor: pointer;
    font-weight: bold;
}

.product-card button:hover {
    background: #F7CA00;
}

/* =========================
          CART PAGE
========================= */

.cart-container {
    padding: 15px;
}

.cart-item {
    background: white;
    padding: 12px;
    border-radius: 10px;
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cart-item img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.item-details {
    flex: 1;
}

.quantity-box {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 8px 0;
}

.quantity-box button {
    background: #ddd;
    border: none;
    padding: 5px 10px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

.remove-btn {
    background: red;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.total-box {
    background: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    margin-top: 15px;
    text-align: center;
}

/* =========================
     MOBILE RESPONSIVE
========================= */
@media (max-width: 600px) {
    #searchBar {
        max-width: 100%;
    }

    .header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
    }

    .quantity-box {
        justify-content: center;
    }
}