/* ===== Base ===== */
html { font-size: 15px; }
body { background: #f8f9fa; margin-bottom: 0; }

/* ===== Auth pages ===== */
.auth-wrapper { min-height: calc(100vh - 130px); }
.auth-card { width: 100%; max-width: 460px; border-radius: 16px; }

/* ===== Hero ===== */
.hero-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 70px 0;
}
.search-wrapper { max-width: 560px; }
.search-wrapper .input-group { border-radius: 12px; overflow: hidden; }
.search-wrapper .form-control:focus { box-shadow: none; }

/* ===== Category filter buttons ===== */
.filter-btn { border-radius: 20px; transition: all .15s; }
.filter-btn.active {
    background: #212529;
    border-color: #212529;
    color: #fff;
}
.filter-btn:not(.active) {
    background: #fff;
    border-color: #dee2e6;
    color: #495057;
}
.filter-btn:not(.active):hover { border-color: #adb5bd; background: #f1f3f5; }

/* ===== Product cards ===== */
.product-card {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
    background: #fff;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.product-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f1f3f5;
}
.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.04); }

.product-img-wrap .img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 3rem;
    color: #ced4da;
}
.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: .7rem;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(0,0,0,.55);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: .7rem;
    padding: 3px 8px;
    border-radius: 10px;
}

.product-card .card-body { padding: 14px 16px 6px; }
.product-card .card-title {
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5rem;
}
.product-card .card-text {
    font-size: .8rem;
    color: #6c757d;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-price { font-size: 1.15rem; font-weight: 700; color: #198754; }

.add-to-cart-btn {
    border-radius: 0 0 14px 14px;
    font-size: .85rem;
    font-weight: 600;
    padding: 10px;
    transition: background .15s;
}

/* ===== Cart offcanvas ===== */
.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
    align-items: flex-start;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: #f1f3f5;
    flex-shrink: 0;
}
.cart-item-name { font-size: .87rem; font-weight: 600; line-height: 1.3; }
.cart-item-price { font-size: .82rem; color: #198754; font-weight: 600; }

.qty-control { display: flex; align-items: center; gap: 6px; }
.qty-btn {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: .8rem;
    transition: background .1s;
}
.qty-btn:hover { background: #f1f3f5; }
.qty-val { font-size: .9rem; font-weight: 600; min-width: 20px; text-align: center; }

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #adb5bd;
    padding: 40px 0;
}
.empty-cart i { font-size: 3rem; }

/* ===== Checkout summary ===== */
.checkout-line {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    padding: 4px 0;
    border-bottom: 1px dashed #e9ecef;
}
.checkout-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1rem;
    padding-top: 8px;
}

/* ===== Quick view modal ===== */
.qv-img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 10px;
}
.qv-price { font-size: 1.6rem; font-weight: 700; color: #198754; }

/* ===== Toast ===== */
.toast-shopease { min-width: 280px; }

/* ===== Responsive tweaks ===== */
@media (max-width: 576px) {
    .hero-banner { padding: 40px 0; }
    .hero-banner h1 { font-size: 1.6rem; }
}

/* ===== Footer ===== */
footer { margin-top: auto; }
