/* ===============================
   GLOBAL RESET
   =============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f1f3f6;
    color: #212121;
}

a {
    text-decoration: none;
    color: inherit;


}

.container {
    width: 95%;
    max-width: 1200px;
    margin: auto;
}

/* ===============================
   BUTTONS
   =============================== */
.btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-primary {
    background: #2874f0;
    color: #fff;
}

.btn-primary:hover {
    background: #1a5fd0;
}

/* ===============================
   HEADER / NAVBAR
   =============================== */
.header {
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.header-flex {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #2874f0;
    white-space: nowrap;
}

/* Search */
.search {
    flex: 1;
}

.search input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 20px;
    border: 1px solid #ccc;
    outline: none;
}

/* Header actions */
.actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* ===============================
   LOGIN DROPDOWN
   =============================== */
.login-box {
    position: relative;
}

.login-btn {
    background: #2874f0;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.login-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    width: 220px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    z-index: 1000;
}

.login-dropdown a,
.login-dropdown p {
    padding: 10px 14px;
    font-size: 14px;
    color: #212121;
    display: block;
}

.login-dropdown a:hover {
    background: #f1f3f6;
}

.login-dropdown p {
    border-bottom: 1px solid #eee;
}

.login-dropdown p a {
    color: #2874f0;
    font-weight: 500;
}

.login-box:hover .login-dropdown {
    display: block;
}

/* ===============================
   CATEGORY STRIP
   =============================== */
.category-strip {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.category-strip .container {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    overflow-x: auto;
}

.category-strip a {
    font-size: 14px;
    white-space: nowrap;
    padding: 0 10px;
}

.category-strip::-webkit-scrollbar {
    display: none;
}

/* ===============================
   HERO / BANNER
   =============================== */
.hero {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.hero img {
    max-width: 45%;
    border-radius: 8px;
}

/* ===============================
   PRODUCT CARDS
   =============================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    padding: 14px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 10px;
}

.product-title {
    font-size: 14px;
    height: 36px;
    overflow: hidden;
    margin-bottom: 6px;
    font-weight: 500;
}

.product-price {
    font-weight: 600;
}

.product-old-price {
    color: #878787;
    font-size: 13px;
    margin-left: 6px;
}

.product-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #2874f0;
    color: #fff;
    padding: 9px 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
}

/* ===============================
   FOOTER
   =============================== */
.footer {
    margin-top: 60px;
    background: #172337;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

/* ===============================
   RESPONSIVE (MOBILE)
   =============================== */
@media (max-width: 768px) {

    .header-flex {
        flex-wrap: wrap;
    }

    .search {
        order: 3;
        width: 100%;
    }

    .actions {
        order: 2;
        width: 100%;
        justify-content: space-between;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero img {
        max-width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {

    .product-grid {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 20px;
    }

    .login-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
}
