/* Layout Structure */
.main-container {
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.container {
    max-width: 1280px !important;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .main-container {
        /* padding-left: 3rem; padding-right: 3rem; */
    }
}

/* ── Sticky Sidebar ──────────────────────────────────────── */
.sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    z-index: 90;
    max-height: calc(100vh - 120px);
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.right-sidebar,
.summary-sidebar {
    z-index: 10 !important;
}

.sticky-sidebar.left {
    padding-right: 4px;
    max-height: calc(100vh - 120px);
}

/* ── Global Custom Thin Scrollbar ────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--color-muted-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-muted-mid);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-muted-light) transparent;
}

/* ── Border Utilities ────────────────────────────────────── */
.border-right1px {
    border-right: 1px solid var(--color-border) !important;
    padding-bottom: 120px;
}

.border-left1px {
    border-left: 1px solid var(--color-border) !important;
    padding-bottom: 120px;
}

@media (max-width: 991.98px) {
    .border-right1px {
        border-right: none !important;
        padding-bottom: 0;
    }

    .border-left1px {
        border-left: none !important;
        padding-bottom: 0;
    }
}

/* ── Center Content Feed ─────────────────────────────────── */
.center-feed {
    /* background-color: var(--color-white); */
    /* border-radius: 20px; */
    padding: 30px;
    padding-bottom: 120px;
    /* box-shadow: 0 10px 40px var(--color-dark-shadow-sm); */
    overflow: visible;
}

/* ── Content Sections ────────────────────────────────────── */
.content-section {
    padding-top: 10px;
}

.section-title {
    font-weight: 800;
    font-size: var(--fs-h1);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    color: var(--color-dark);
}

.section-subtitle {
    color: var(--color-muted);
    font-size: var(--fs-body);
    max-width: 700px;
    line-height: 1.6;
}

/* Perfect Circular Header Action Badges */
.header-count-badge,
.cart-count-badge,
.favorite-count-badge,
.compare-count-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    max-width: 20px;
    max-height: 20px;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    padding: 0 !important;
    text-align: center;
    color: #ffffff !important;
    border: 1.5px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transform: none !important;
    z-index: 10;
    box-sizing: border-box;
}

.header-count-badge.d-none,
.cart-count-badge.d-none,
.favorite-count-badge.d-none,
.compare-count-badge.d-none {
    display: none !important;
}

.cart-count-badge {
    background-color: #2563eb !important;
}

.favorite-count-badge,
.compare-count-badge {
    background-color: #ef4444 !important;
}