/* ==========================================================================
   1.0 TOP CONTROL BAR LAYOUT
   ========================================================================== */

.kt-woo-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid #edf2f7;
    margin-bottom: 24px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.03);
    gap: 16px;
}

.kt-woo-top-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.kt-sidebar-toggle-btn {
    background: #0b192c;
    border: 1px solid #0b192c;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.kt-sidebar-toggle-btn:hover {
    background: #1e293b;
    border-color: #1e293b;
}

.kt-sidebar-toggle-btn .dashicons {
    font-size: 16px;
    line-height: 1.2;
}

.kt-woo-result-count {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.kt-woo-top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kt-woo-ordering-wrap select {
    height: 38px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 0 32px 0 12px;
    font-size: 13px;
    color: #334155;
    background-color: #ffffff;
    cursor: pointer;
}

/* ==========================================================================
   2.0 VIEW SWITCHER CONTROLS
   ========================================================================== */

.kt-woo-views {
    display: inline-flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 10px;
    gap: 2px;
}

.kt-woo-views button {
    background: transparent;
    border: none;
    color: #64748b;
    padding: 6px 9px;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.kt-woo-views button:hover {
    color: #0f172a;
}

.kt-woo-views button.active {
    background: #5c35e9;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(92, 53, 233, 0.3);
}

/* ==========================================================================
   3.0 DRAWER COLLAPSE & EXPAND (SIDEBAR TOGGLE)
   ========================================================================== */

.kt-sidebar-collapsed,
.elementor-column.kt-sidebar-collapsed,
.e-con.kt-sidebar-collapsed {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    flex: 0 0 0% !important;
    --width: 0% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
}

.kt-content-expanded,
.elementor-column.kt-content-expanded,
.e-con.kt-content-expanded {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    --width: 100% !important;
    transition: width 0.2s ease, flex 0.2s ease;
}

/* ==========================================================================
   4.0 GRID & LIST CATALOG MODES
   ========================================================================== */

#kt-domain-results-container.grid-mode,
.elementor-loop-container.grid-mode,
ul.products.grid-mode {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
}

#kt-domain-results-container.grid-mode .kt-domain-card-row,
.elementor-loop-container.grid-mode .kt-domain-card-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    margin-bottom: 0 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

#kt-domain-results-container.grid-mode .kt-domain-title-text,
.elementor-loop-container.grid-mode .kt-domain-title-text {
    font-size: 16px !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    margin-bottom: 16px !important;
    line-height: 1.3 !important;
}

#kt-domain-results-container.grid-mode .kt-domain-meta-right,
.elementor-loop-container.grid-mode .kt-domain-meta-right {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-top: auto !important;
    gap: 12px !important;
}

#kt-domain-results-container.grid-mode .kt-domain-price-badge,
.elementor-loop-container.grid-mode .kt-domain-price-badge {
    font-size: 16px !important;
    white-space: nowrap !important;
}

#kt-domain-results-container.grid-mode .kt-add-to-cart-btn,
.elementor-loop-container.grid-mode .kt-add-to-cart-btn {
    white-space: nowrap !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
    flex-shrink: 0 !important;
}

/* ==========================================================================
   5.0 SIDEBAR STRUCTURE & FILTER ACCORDIONS
   ========================================================================== */

.kt-sidebar-wrapper {
    width: 100%;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    box-sizing: border-box;
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.kt-filter-group {
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.kt-filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.kt-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    color: #0b192c;
    user-select: none;
}

.kt-arrow {
    transition: transform 0.2s ease;
    font-size: 12px;
    color: #64748b;
}

.kt-filter-group.collapsed .kt-arrow {
    transform: rotate(-90deg);
}

.kt-filter-group.collapsed .kt-filter-body {
    display: none;
}

.kt-filter-body {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kt-checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    line-height: 1.4;
    margin: 0;
}

.kt-checkbox-label input {
    margin-right: 10px !important;
    accent-color: #00c4a7;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.kt-count {
    margin-left: auto;
    font-size: 12px;
    color: #94a3b8;
}

.kt-add-ext-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.kt-add-ext-row input {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.kt-add-ext-row button {
    background: #0b192c;
    color: #ffffff;
    border: none;
    width: 34px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   6.0 SLIDERS & FORM INPUTS
   ========================================================================== */

.kt-input-range-boxes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.kt-range-box {
    width: 44%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    text-align: center;
    padding: 6px 4px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.kt-to-text {
    color: #64748b;
    font-size: 13px;
}

.kt-slider-container {
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
}

.kt-slider-track {
    position: absolute;
    width: 100%;
    height: 6px;
    background: #00c4a7;
    border-radius: 3px;
    z-index: 1;
}

.kt-slider-thumb {
    position: absolute;
    width: 100%;
    pointer-events: none;
    -webkit-appearance: none;
    background: none;
    z-index: 2;
    margin: 0;
}

.kt-slider-thumb::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00c4a7;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.kt-slider-thumb::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00c4a7;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.kt-text-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
    outline: none;
}

/* ==========================================================================
   7.0 DOMAIN CARDS & LIST ROWS
   ========================================================================== */

#kt-domain-results-container,
.elementor-loop-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.kt-domain-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff !important;
    border: 1px solid #000000;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-sizing: border-box;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kt-domain-card-row:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.kt-domain-title-text {
    font-size: 18px;
    font-weight: 700;
    color: #0b192c;
    text-decoration: none;
    letter-spacing: -0.2px;
}

.kt-domain-title-text:hover {
    color: #00c4a7;
}

.kt-domain-meta-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.kt-domain-price-badge {
    font-size: 17px;
    font-weight: 700;
    color: #10b981;
}

.kt-add-to-cart-btn {
    background: #0b192c;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 22px;
    border-radius: 6px;
    text-decoration: none !important;
    display: inline-block;
    transition: background 0.2s;
}

.kt-add-to-cart-btn:hover {
    background: #1e293b;
}

.kt-btn-offer {
    background: transparent;
    color: #0b192c !important;
    border: 1px solid #cbd5e1;
}

.kt-no-results-box {
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
    font-size: 15px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

/* ==========================================================================
   8.0 DOMAIN METRICS TELEMETRY RIBBON
   ========================================================================== */

.kt-card-metrics-ribbon {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.kt-metric-pill-box {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    padding: 6px 12px;
    text-align: center;
    min-width: 65px;
    flex: 1 1 auto;
}

.kt-metric-pill-value {
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
    display: block;
    line-height: 1.2;
}

.kt-metric-pill-label {
    font-size: 10px;
    color: #64748b;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 2px;
    font-weight: 600;
}

/* ==========================================================================
   9.0 RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 767px) {
    .kt-woo-top-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .kt-woo-top-left,
    .kt-woo-top-right {
        justify-content: space-between;
    }

    .kt-domain-card-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .kt-domain-meta-right {
        width: 100%;
        justify-content: space-between;
    }
}