* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}
:root {
    --primary: #22577A;
    --secondary: #38A3A5;
    --light: #57CC99;
    --pale: #80BCBD;
    --text-dark: #222;
    --text-light: #666;
    --white: #fff;
    --border: #eee;
}
body {
    color: var(--text-dark);
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
    display: block;
}
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 99;
}
.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.nav-list {
    display: flex;
    gap: 28px;
}
.nav-list a:hover {
    color: var(--primary);
}
.header-icons {
    display: flex;
    gap: 20px;
    font-size: 20px;
    cursor: pointer;
}
.icon-btn {
    position: relative;
}
.badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: crimson;
    color: white;
    font-size: 11px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

/* Banner */
.banner {
    height: 460px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    color: white;
}
.banner-content h1 {
    font-size: 42px;
    margin-bottom: 16px;
}
.banner-content p {
    font-size: 18px;
    margin-bottom: 24px;
    max-width: 520px;
}
.btn {
    padding: 12px 28px;
    background: var(--white);
    color: var(--primary);
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
}
.btn:hover {
    background: var(--light);
    color: white;
}
.btn-dark {
    background: var(--primary);
    color: white;
}
.btn-dark:hover {
    background: #1a4462;
}

/* Product Grid */
.section-title {
    font-size: 28px;
    margin: 60px 0 32px;
    text-align: center;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}
.product-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    transition: 0.3s;
}
.product-card:hover {
    box-shadow: 0 6px 18px #00000015;
}
.product-img-box {
    height: 220px;
    overflow: hidden;
    position: relative;
}
.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}
.product-card:hover .product-img-box img {
    transform: scale(1.05);
}
.card-action {
    position: absolute;
    bottom: -44px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
}
.product-card:hover .card-action {
    bottom: 12px;
}
.action-btn {
    background: white;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}
.action-btn:hover {
    background: var(--primary);
    color: white;
}
.product-info {
    padding: 16px;
}
.product-name {
    font-weight: 600;
    margin-bottom: 8px;
}
.product-price {
    color: crimson;
    font-size: 18px;
    font-weight: bold;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 50px 0;
}
.page-item {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    cursor: pointer;
    border-radius: 3px;
}
.page-item.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Side Drawer (Cart / Wishlist) */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}
.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}
.drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: white;
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}
.drawer.open {
    right: 0;
}
.drawer-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.drawer-close {
    cursor: pointer;
    font-size: 22px;
}
.drawer-body {
    flex: 1;
    padding: 16px 22px;
    overflow-y: auto;
}
.drawer-footer {
    padding: 18px 22px;
    border-top: 1px solid var(--border);
}
.cart-item, .wish-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.cart-item img, .wish-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
}
.item-del {
    color: crimson;
    cursor: pointer;
    margin-left: auto;
}

/* Detail Page */
.detail-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 0;
}
.detail-price {
    font-size: 26px;
    color: crimson;
    margin: 16px 0;
}
.detail-desc {
    margin: 24px 0;
    color: var(--text-light);
}
.qty-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}
.qty-box button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
}
.qty-box input {
    width: 60px;
    text-align: center;
    border: 1px solid var(--border);
    padding: 6px;
}

/* Page Content (About / Contact / Policy) */
.page-content {
    padding: 50px 0 80px;
    max-width: 900px;
    margin: 0 auto;
}
.page-content h2 {
    margin-bottom: 24px;
    font-size: 26px;
}
.page-content p {
    margin-bottom: 16px;
    color: var(--text-light);
}
.contact-info li {
    margin: 12px 0;
}

/* Footer */
footer {
    background: #112233;
    color: #ccc;
    padding: 60px 0 30px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 32px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: white;
    margin-bottom: 18px;
}
.footer-col li {
    margin: 10px 0;
}
.footer-col a:hover {
    color: var(--light);
}
.payment-img {
    width: 260px;
    margin-top: 12px;
}
.copyright {
    text-align: center;
    padding-top: 24px;
    border-top: #2a3b4c solid 1px;
}

/* Responsive */
@media(max-width:768px){
    .nav-list {
        display: none;
    }
    .detail-wrap {
        grid-template-columns: 1fr;
    }
    .drawer {
        width: 100%;
        right: -100%;
    }
}