/* =====================================================
   COMPACT WEBSHOP FILTERS
   ===================================================== */

/* Remove ALL spacing from filter blocks - target exact classes from template */
div.mb-4.filter-block.pb-5,
.mb-4.filter-block.pb-5,
.filter-block.mb-4.pb-5,
.filter-block {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove margin from filter label */
div.filter-label.mb-3,
.filter-label.mb-3,
.filter-label {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    font-weight: bold !important;
}

/* Make filter label text bold and larger */
.filter-label > span,
.filter-label.collapsible-filter > span,
.filter-block .filter-label > span,
div.filter-label span:first-child {
    font-weight: 700 !important;
    font-size: 16px !important;
}

/* Filter option text size (2px smaller than label) */
.filter-options .label-area,
.filter-lookup-wrapper .label-area {
    font-size: 14px !important;
    font-weight: 400 !important;
}

/* Collapsible header styling - only border separates filters */
.filter-label.collapsible-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 12px 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid #e5e5e5;
}

.filter-label.collapsible-filter:hover {
    color: var(--primary, #2490ef);
}

/* Chevron icon */
.filter-chevron {
    transition: transform 0.3s ease;
    font-size: 12px;
    color: #666;
}

/* Filter content area - tight spacing */
.filter-content {
    padding: 8px 0 !important;
    margin: 0 !important;
}

/* Filter options list */
.filter-options {
    padding: 0 !important;
    margin: 0 !important;
    max-height: 200px;
    overflow-y: auto;
}

/* Individual filter items */
.filter-lookup-wrapper {
    padding: 3px 0 !important;
    margin: 0 !important;
}

.filter-lookup-wrapper label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
}

.label-area {
    margin-left: 8px;
}

/* Hide Size filter search box */
.filter-block input[type="text"],
input[placeholder*="Sizes"],
input[placeholder*="Search"] {
    display: none !important;
}

/* Active filter indicator */
.filter-block.has-active-filter .filter-label {
    font-weight: 600;
    color: var(--primary, #2490ef);
}

/* Remove spacing from Filters header area */
.filters-section > .mb-4,
.product-filters > .mb-4 {
    margin-bottom: 8px !important;
}

/* Remove space above first filter block */
.product-filter-filter > .filter-block:first-child,
.filters-section > .filter-block:first-child,
.filter-block:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Target the Filters header area */
.filters-section > div:first-child,
.product-filter-filter > div:first-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Add 1px padding to filter labels */
.filter-label.collapsible-filter,
.filter-label {
    padding-top: 1px !important;
    padding-bottom: 1px !important;
}

/* Target Filters header and container */
.page-title,
.filters-header,
.d-flex.justify-content-between {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove any hr or divider */
.filters-section hr,
.product-filter hr {
    display: none !important;
    margin: 0 !important;
}

/* Reduce space after "Filters / Clear All" row */
.filters-section > .d-flex:first-child,
.filters-section > div:first-child {
    margin-bottom: 5px !important;
}

/* Remove padding/margin from filters-section */
.filters-section {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.filters-section > .filter-block:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove padding/margin from filters-section */
.filters-section {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.filters-section > .filter-block:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Fix space between Filters header and first filter */
.filters-section .title-section.mb-5,
.filters-section .title-section {
    margin-bottom: 8px !important;
}

.filters-section .filters-title.mb-4,
.filters-section .filters-title {
    margin-bottom: 0 !important;
}

.filters-section .clear-filters.mb-4,
.filters-section .clear-filters {
    margin-bottom: 0 !important;
}

/* Fix dropdown height and padding */
.inline-variant-selector select.attribute-dropdown,
.inline-variant-selector .attribute-dropdown {
    height: 45px !important;
    padding: 8px 12px !important;
    line-height: 1.5 !important;
    font-size: 14px !important;
}

.inline-variant-selector .attribute-selector select {
    height: 45px !important;
    padding: 8px 12px !important;
}

/* =====================================================
   CART ICON WITH COUNT AND TOTAL
   ===================================================== */

/* Override the shopping badge to fit count + total */
.shopping-cart .shopping-badge#cart-count {
    position: relative;
    top: -8px;
    left: -8px;
    min-width: auto;
    width: auto;
    height: auto;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 10px;
    background-color: var(--red-600, #dc3545);
    color: white;
}

/* =====================================================
   COMPACT FILTER CLASSES (JS-applied)
   ===================================================== */

/* Applied via JS for batched DOM operations */
.compact-filter-block {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.compact-filter-label {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 1px !important;
    padding-bottom: 1px !important;
}

.compact-title-section {
    margin-bottom: 8px !important;
}
