/* ================= HERO + SIDEBAR ================= */

/* categories card */
.categories-card{
    padding:16px;
    min-height:430px;
    display:flex;
    flex-direction:column;
}

.categories-list{
    overflow:auto;
    padding-right:4px;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.cat-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:12px;
    border-radius:14px;
    background:#f8faff;
    border:1px solid transparent;
    transition:.2s ease;
    cursor:pointer;
}

.cat-item:hover{
    background:#fff;
    border-color:#dbe5ff;
    color:var(--primary);
}

.cat-left{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
}

.cat-icon{
    width:34px;
    height:34px;
    border-radius:10px;
    background:#eef2ff;
    color:var(--primary);
    display:flex;
    align-items:center;
    justify-content:center;
}

.cat-name{
    font-size:14px;
    font-weight:600;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.cat-count{
    font-size:12px;
    color:var(--muted);
    background:#fff;
    border:1px solid var(--line);
    border-radius:999px;
    min-width:28px;
    height:28px;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* ================= HERO BANNER ================= */

.hero-main{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.hero-banner{
    min-height:280px;
    border-radius:26px;
    padding:28px;
    color:#fff;
    position:relative;
    overflow:hidden;

    background:
        radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 22%),
        radial-gradient(circle at bottom left, rgba(255,255,255,.10), transparent 18%),
        linear-gradient(135deg, #4338ca 0%, #6366f1 45%, #22c55e 130%);
}

.hero-banner::after{
    content:"";
    position:absolute;
    right:-80px;
    top:-60px;
    width:240px;
    height:240px;
    border-radius:50%;
    background:rgba(255,255,255,.08);
}

.hero-banner::before{
    content:"";
    position:absolute;
    left:-70px;
    bottom:-70px;
    width:220px;
    height:220px;
    border-radius:50%;
    background:rgba(255,255,255,.06);
}

.hero-content{
    position:relative;
    z-index:1;
    max-width:650px;
}

.eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:rgba(255,255,255,.14);
    border:1px solid rgba(255,255,255,.18);
    padding:8px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    margin-bottom:14px;
}

.hero-title{
    margin:0 0 12px;
    font-size:40px;
    line-height:1.1;
    font-weight:900;
}

.hero-subtitle{
    margin:0;
    color:rgba(255,255,255,.88);
    font-size:15px;
    line-height:1.7;
}

.hero-cta{
    display:flex;
    gap:12px;
    margin-top:20px;
    flex-wrap:wrap;
}

.hero-btn{
    height:46px;
    padding:0 18px;
    border-radius:14px;
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:700;
    border:none;
    cursor:pointer;
}

.hero-btn.white{
    background:#fff;
    color:#111827;
}

.hero-btn.glass{
    background:rgba(255,255,255,.12);
    color:#fff;
    border:1px solid rgba(255,255,255,.18);
}

/* ================= HERO FEATURES ================= */

.hero-features{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
}

.feature-box{
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    padding:16px;
}

.feature-box i{
    color:var(--primary);
    font-size:18px;
    margin-bottom:10px;
}

.feature-box strong{
    display:block;
    font-size:14px;
    margin-bottom:6px;
}

.feature-box span{
    font-size:12px;
    color:var(--muted);
}

/* ================= CART PANEL ================= */

.cart-panel{
    padding:18px;
    display:flex;
    flex-direction:column;
    min-height:430px;
    border-radius:24px;
}

.cart-summary{
    margin-top:10px;
    padding:14px;
    border-radius:16px;
    background:#f8faff;
    border:1px solid var(--line);
    display:grid;
    grid-template-columns:1fr auto;
}

.cart-items{
    margin-top:14px;
    flex:1;
    overflow:auto;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.cart-empty{
    padding:24px;
    text-align:center;
    color:var(--muted);
    border:1px dashed #dbe3f3;
    border-radius:18px;
}

.cart-actions{
    margin-top:14px;
    display:flex;
    flex-direction:column;
    gap:10px;
}

/* ================= RESPONSIVE ================= */

@media (max-width:1200px){
    .hero-features{
        grid-template-columns:1fr;
    }
}

@media (max-width:900px){
    .hero-banner{
        padding:22px;
    }

    .hero-title{
        font-size:30px;
    }
}
/* ===== Cart panel top access buttons fix ===== */

.shop-access-top{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-bottom:16px;
}

.shop-access-btn{
    height:46px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    font-weight:800;
    font-size:14px;
    transition:.2s ease;
    text-decoration:none;
    width:100%;
    box-shadow:0 10px 24px rgba(15,23,42,.10);
}

.shop-access-btn i{
    font-size:14px;
    line-height:1;
}

.shop-access-btn span{
    display:inline-block;
    line-height:1;
}

.shop-access-btn:hover{
    transform:translateY(-1px);
}

.shop-access-btn.primary{
    color:#fff;
    background:linear-gradient(135deg,#4f46e5,#6d63ff);
    border:none;
}

.shop-access-btn.secondary{
    color:#fff;
    background:linear-gradient(135deg,#243b6b,#334a7d);
    border:1px solid rgba(255,255,255,.08);
}

/* ===== Cart panel header fix ===== */

.cart-panel .card-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:14px;
}

.cart-panel .card-head h3{
    margin:0;
    font-size:17px;
    font-weight:800;
    color:#0f172a;
}

.cart-panel .soft-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:7px 10px;
    border-radius:999px;
    background:#eef2ff;
    color:#4f46e5;
    font-size:12px;
    font-weight:700;
    white-space:nowrap;
}

.cart-panel .soft-badge i{
    font-size:12px;
    line-height:1;
}

/* ===== Cart summary fix ===== */

.cart-summary{
    margin-top:6px;
    padding:14px;
    border-radius:16px;
    background:#f8faff;
    border:1px solid #e8edf7;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-bottom:8px;
}

.cart-summary > div{
    padding:10px 12px;
    border-radius:14px;
    background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
    border:1px solid rgba(226,232,240,.95);
    box-shadow:0 6px 14px rgba(15,23,42,.035);
}

.cart-summary small{
    display:block;
    color:#6f7b91;
    font-size:11px;
    margin-bottom:3px;
}

/* ===== Empty cart block fix ===== */

.cart-empty{
    padding:24px 14px;
    text-align:center;
    color:#6f7b91;
    border:1px dashed #dbe3f3;
    border-radius:18px;
    background:#fbfcff;
}

.cart-empty i{
    font-size:24px;
    margin-bottom:8px;
    display:block;
    color:#64748b;
}

/* ===== Buttons at bottom ===== */

.cart-actions{
    margin-top:14px;
    display:flex;
    flex-direction:column;
    gap:10px;
    padding-top:10px;
    border-top:1px solid rgba(226,232,240,.95);
}

.cart-actions .action-btn{
    width:100%;
    justify-content:center;
    min-height:46px;
    border-radius:14px;
    font-size:14px;
    font-weight:900;
}

/* ===== Mobile ===== */

@media (max-width:640px){
    .shop-access-btn{
        font-size:13px;
        gap:8px;
    }

    .cart-summary{
        grid-template-columns:1fr 1fr;
    }
}
/* =========================
   CART PANEL FIX
========================= */

.cart-panel{
    padding:18px;
    display:flex;
    flex-direction:column;
    min-height:430px;
    max-height:560px;
    height:560px;
    overflow:hidden;
    background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
    border:1px solid rgba(148,163,184,.16);
    border-radius:24px;
    box-shadow:0 18px 40px rgba(15,23,42,.08), 0 6px 18px rgba(59,130,246,.06);
}

.cart-summary{
    margin-top:6px;
    padding:14px;
    border-radius:16px;
    background:#f8faff;
    border:1px solid #e8edf7;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-bottom:8px;
    flex:0 0 auto;
}

.cart-summary > div{
    padding:10px 12px;
    border-radius:14px;
    background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
    border:1px solid rgba(226,232,240,.95);
    box-shadow:0 6px 14px rgba(15,23,42,.035);
}

.cart-summary small{
    display:block;
    color:#6f7b91;
    font-size:11px;
    margin-bottom:3px;
}

#cart-items-count{
    font-size:18px;
    font-weight:800;
}

#cart-total{
    font-size:18px;
    font-weight:900;
    line-height:1.15;
}

.cart-items{
    margin-top:14px;
    flex:1 1 auto;
    min-height:0;
    max-height:255px;
    overflow-y:auto;
    overflow-x:hidden;
    display:flex;
    flex-direction:column;
    gap:10px;
    padding-right:4px;
}

.cart-items::-webkit-scrollbar{
    width:6px;
}

.cart-items::-webkit-scrollbar-track{
    background:#eef2f7;
    border-radius:999px;
}

.cart-items::-webkit-scrollbar-thumb{
    background:linear-gradient(180deg,#94a3b8 0%,#64748b 100%);
    border-radius:999px;
}

.cart-empty{
    padding:24px 14px;
    text-align:center;
    color:#6f7b91;
    border:1px dashed #dbe3f3;
    border-radius:18px;
    background:#fbfcff;
}

.cart-empty i{
    font-size:24px;
    margin-bottom:8px;
    display:block;
    color:#64748b;
}

/* single cart item */
.cart-item{
    background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
    border:1px solid rgba(226,232,240,.95);
    border-radius:18px;
    padding:12px;
    box-shadow:0 8px 20px rgba(15,23,42,.045);
    transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cart-item:hover{
    transform:translateY(-1px);
    box-shadow:0 14px 26px rgba(37,99,235,.09);
    border-color:rgba(96,165,250,.35);
}

.cart-item-top{
    display:flex;
    gap:12px;
    align-items:flex-start;
}

.cart-item-thumb{
    width:72px;
    min-width:72px;
    height:72px;
    border-radius:16px;
    overflow:hidden;
    background:linear-gradient(180deg,#f8fafc 0%,#eef2ff 100%);
    border:1px solid rgba(226,232,240,.95);
    display:flex;
    align-items:center;
    justify-content:center;
}

.cart-item-thumb-img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.cart-item-thumb-placeholder{
    color:#94a3b8;
    font-size:22px;
}

.cart-item-main{
    flex:1;
    min-width:0;
}

.cart-item-name{
    font-size:14px;
    font-weight:900;
    color:#0f172a;
    margin-bottom:5px;
    line-height:1.35;
}

.cart-item-meta{
    font-size:13px;
    color:#64748b;
    font-weight:700;
    margin-bottom:8px;
}

.cart-item-bottom{
    margin-top:10px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
}

.cart-qty-control{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:#f8fafc;
    border:1px solid rgba(226,232,240,.95);
    border-radius:999px;
    padding:4px;
}

.cart-qty-btn{
    width:30px;
    height:30px;
    border:none;
    border-radius:999px;
    background:linear-gradient(180deg,#ffffff 0%,#eef2ff 100%);
    color:#1d4ed8;
    font-weight:900;
    font-size:16px;
    cursor:pointer;
    box-shadow:0 4px 10px rgba(15,23,42,.06);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    line-height:1;
}

.cart-qty-btn:hover{
    transform:translateY(-1px);
}

.cart-qty-value{
    min-width:20px;
    text-align:center;
    font-weight:900;
    color:#0f172a;
    font-size:14px;
}

.cart-item-line-total{
    font-weight:900;
    color:#1d4ed8;
    font-size:14px;
}

/* delete button inside cart item */
.cart-item .action-btn{
    height:34px;
    min-height:34px;
    border-radius:12px;
    border:1px solid rgba(239,68,68,.14);
    background:linear-gradient(180deg,#fff5f5 0%,#fff1f2 100%);
    color:#dc2626;
    font-size:12px;
    font-weight:800;
    box-shadow:none;
    padding:0 12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}

.cart-item .action-btn:hover{
    background:linear-gradient(180deg,#ffe9e9 0%,#ffe4e6 100%);
}

/* bottom actions */
.cart-actions{
    margin-top:14px;
    display:flex;
    flex-direction:column;
    gap:10px;
    padding-top:10px;
    border-top:1px solid rgba(226,232,240,.95);
    flex:0 0 auto;
}

.cart-actions .action-btn{
    width:100%;
    justify-content:center;
    min-height:46px;
    border-radius:14px;
    font-size:14px;
    font-weight:900;
    transition:transform .18s ease, box-shadow .18s ease;
}

.cart-actions .action-btn:hover{
    transform:translateY(-1px);
}

.cart-actions .action-btn.primary{
    background:linear-gradient(90deg,#1d4ed8 0%,#2563eb 45%,#4f46e5 100%);
    color:#fff;
    border:none;
    box-shadow:0 14px 26px rgba(37,99,235,.20);
}

.cart-actions .action-btn:not(.primary){
    background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
    border:1px solid rgba(203,213,225,.95);
    color:#0f172a;
}

/* responsive */
@media (min-width:992px) and (max-width:1199px){
    .cart-panel{
        max-height:500px;
        min-height:500px;
        height:500px;
    }

    .cart-items{
        max-height:235px;
    }
}

@media (max-width:1200px){
    .cart-panel{
        grid-column:1 / -1;
        min-height:auto;
        height:auto;
        max-height:none;
    }

    .cart-items{
        max-height:320px;
    }
}

@media (max-width:640px){
    .cart-item-top{
        flex-direction:column;
        align-items:flex-start;
    }

    .cart-item-bottom{
        flex-direction:column;
        align-items:flex-start;
    }

    .cart-summary{
        grid-template-columns:1fr 1fr;
    }
}