/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fb;
    color: #111;
}

/* ================= LAYOUT ================= */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* ================= HEADER ================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header a {
    text-decoration: none;
    color: #333;
}

/* ================= CATEGORIES ================= */
.categories {
    display: flex;
    gap: 10px;
    padding: 10px;
    overflow-x: auto;
    background: #fff;
}

.categories a {
    padding: 6px 12px;
    background: #eee;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    color: #333;
}

/* ================= GRID ================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    padding: 20px;
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

/* ================= PRODUCT PAGE ================= */
.product-page {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
}

.product-images,
.product-info {
    flex: 1;
    min-width: 280px;
}

.main-img {
    width: 100%;
    border-radius: 10px;
}

.thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.thumbs img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
}

.price {
    font-size: 22px;
    color: #101070;
    font-weight: bold;
}

.desc {
    margin: 15px 0;
    color: #444;
}

.qty {
    width: 60px;
    padding: 5px;
}

/* ================= BUTTON ================= */
.btn {
    background: #101070;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    opacity: 0.9;
}

/* ================= MODAL ================= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

/* ================= CART ================= */
.cart-link {
    position: relative;
    text-decoration: none;
    color: #101070;
    font-weight: bold;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: red;
    color: #fff;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 50%;
}

/* ================= TABLE ================= */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

thead {
    background: #101070;
    color: #fff;
}
