/* ========================================
   Override & Supplementary Styles
   Original base: vendors.css + aiz-core.css
   ======================================== */

/* Logo */
.logo-icon-box {
    width: 40px;
    height: 40px;
    background: #e53935;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

.py-20px { padding-top: 20px; padding-bottom: 20px; }

/* Category sidebar fix */
.aiz-category-menu { height: 100%; }
.categories { max-height: 400px; overflow-y: auto; }
.cat-image { width: 16px; display: inline-block; }

/* Banner Swiper */
#bannerSlider { border-radius: .25rem; }
#bannerSlider .swiper-slide img.img-fit { height: 315px; object-fit: cover; width: 100%; border-radius: .25rem; }
#bannerSlider .swiper-button-prev,
#bannerSlider .swiper-button-next {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    color: #555;
    border: 1px solid #ddd;
}
#bannerSlider .swiper-button-prev:after,
#bannerSlider .swiper-button-next:after { font-size: 16px; font-weight: 700; }
#bannerSlider .swiper-button-prev:hover,
#bannerSlider .swiper-button-next:hover { background: #fff; color: var(--primary); }
#bannerSlider .swiper-pagination-bullet { background: #fff; opacity: .6; width: 10px; height: 10px; }
#bannerSlider .swiper-pagination-bullet-active { background: var(--primary); opacity: 1; width: 24px; border-radius: 5px; }
@media(max-width:991px) { #bannerSlider .swiper-slide img.img-fit { height: 220px; } }
@media(max-width:480px) { #bannerSlider .swiper-slide img.img-fit { height: 180px; } }

/* Category icon boxes below banner */
.cat-icon-box {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #9b9b9b;
}

/* Product card supplement */
.aiz-product-grid { display: flex; flex-wrap: wrap; }
.aiz-product-grid > [class*="col-"] { display: flex; }
.aiz-card-box { overflow: hidden; display: flex; flex-direction: column; width: 100%; }
.aiz-card-box .p-md-3, .aiz-card-box .p-2 { flex: 1; display: flex; flex-direction: column; }
.aiz-card-box .rounded.px-2.mt-2 { margin-top: auto !important; }
.aiz-card-box:hover { box-shadow: 0 .25rem .5rem rgba(0,0,0,.1) !important; }
.aiz-card-box .position-relative img { transition: transform .3s; }
.aiz-card-box:hover .position-relative img { transform: scale(1.03); }

.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff6262;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}

/* Rating stars active color */
.rating i.active { color: var(--primary); }
.rating i { color: #dee2e6; }

/* Today's deal scroll area */
.h-lg-400px { max-height: 400px; overflow-y: auto; }
@media(max-width: 991px) { .h-lg-400px { max-height: none; } }

/* Brand placeholder */
.brand-placeholder {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Product Detail Page
   ======================================== */
.z-3 { z-index: 3; }
.h2 { font-size: 1.6rem; }
.lh-1-8 { line-height: 1.8; }
.width-100 { width: 100%; }
.btn-soft-primary { background: var(--soft-primary); color: var(--primary); border: 1px solid transparent; }
.btn-soft-primary:hover { background: var(--primary); color: #fff; }
.btn-link { background: none; border: none; color: var(--primary); padding: 4px 0; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }
.btn-icon { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.btn-circle { border-radius: 50%; }
.btn-light { background: #f7f8fa; border: 1px solid #e2e5ec; color: #555; }
.btn-light:hover { background: #e9ecef; }
.input-number { outline: none; -moz-appearance: textfield; font-family: inherit; }
.input-number::-webkit-outer-spin-button,
.input-number::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.aiz-plus-minus { border: 1px solid #e2e5ec; border-radius: .25rem; overflow: hidden; }

/* ========================================
   Cart Page
   ======================================== */
.cart-section { padding: 20px 0 50px; }
.page-title { font-size: 22px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.cart-items { background: #fff; border: 1px solid #e2e5ec; border-radius: .25rem; overflow: hidden; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table thead { background: #f7f8fa; }
.cart-table th { padding: 12px 14px; text-align: left; font-size: 12px; font-weight: 600; color: #9b9b9b; text-transform: uppercase; }
.cart-table td { padding: 14px; border-bottom: 1px solid #f7f8fa; vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 12px; }
.cart-product img { width: 60px; height: 60px; border-radius: .25rem; object-fit: cover; }
.cart-product-info a { font-size: 13px; font-weight: 600; color: #333; }
.cart-product-info a:hover { color: var(--primary); }
.cart-sku { font-size: 11px; color: #9b9b9b; display: block; margin-top: 3px; }
.cart-price { font-weight: 600; font-size: 13px; }
.cart-subtotal { font-weight: 700; color: var(--primary); font-size: 13px; }
.remove-btn { color: #9b9b9b; font-size: 15px; }
.remove-btn:hover { color: #ff6262; }
.cart-actions-row { display: flex; justify-content: space-between; padding: 14px; background: #f7f8fa; }
.cart-summary { background: #fff; border: 1px solid #e2e5ec; border-radius: .25rem; padding: 20px; position: sticky; top: 100px; }
.cart-summary h3 { font-size: 16px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #e9ecef; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; }
.summary-total { font-size: 16px; font-weight: 700; padding: 12px 0; }
.summary-total span:last-child { color: var(--primary); }
.free-shipping { color: #85b567; font-weight: 600; }
.summary-divider { border-top: 1px solid #e9ecef; margin: 4px 0; }
.payment-icons { display: flex; justify-content: center; gap: 10px; font-size: 24px; color: #9b9b9b; }

@media(max-width:991px) {
    .cart-layout { grid-template-columns: 1fr; }
}
@media(max-width:767px) {
    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; }
}

/* ========================================
   Empty State & Misc
   ======================================== */
.empty-state { text-align: center; padding: 50px 20px; background: #fff; border: 1px solid #e2e5ec; border-radius: .25rem; }
.empty-state i { font-size: 56px; color: #dee2e6; margin-bottom: 14px; }
.empty-state h3 { font-size: 18px; margin-bottom: 6px; color: #555; }
.empty-state p { color: #9b9b9b; margin-bottom: 18px; font-size: 13px; }

.product-count { color: #9b9b9b; font-size: 13px; }

/* Toast */
.toast-notification {
    position: fixed; top: 20px; right: 20px;
    background: #85b567; color: #fff;
    padding: 12px 22px; border-radius: .25rem;
    font-size: 13px; font-weight: 600;
    display: flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12); z-index: 9999;
    transform: translateX(120%); transition: transform .3s;
}
.toast-notification.show { transform: translateX(0); }

/* Dropdown toggle */
.dropdown-toggle::after { display: none !important; }
.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 160px;
    padding: 4px 0;
    margin: 0;
    background: #fff;
    border: 1px solid #e2e5ec;
    border-radius: .25rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.dropdown.show > .dropdown-menu { display: block; }
.dropdown-item {
    display: block;
    padding: 6px 16px;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    transition: all .15s;
}
.dropdown-item:hover { background: var(--soft-primary); color: var(--primary); }
.dropdown-item.active { color: var(--primary); font-weight: 600; }

/* Auth pages - only truly custom additions */
.profile { min-height: 50vh; }
.form-default .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 .1rem rgba(205,165,47,.25); }
