/* PREMIUM PRODUCTS CATALOG GRID STYLES */
.mass-products-wrapper {
    display: flow-root;
    clear: both !important;
    float: none !important;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
    position: relative;
    padding-bottom: 40px !important;
}

/* ============================================================
   CRITICAL: Override Elementor's height:100% chain so the
   catalog can grow taller than its initial render height and
   push the footer down naturally.
   ============================================================ */

.e-con:has(.mass-products-wrapper) {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
}

.e-con:has(.mass-products-wrapper) > .e-con-inner {
    height: auto !important;
    min-height: auto !important;
}

.elementor-widget-mass_product_catalogue_8a35f3f3,
.elementor-widget-mass_product_showcase_9b4a1f0a {
    height: auto !important;
    min-height: auto !important;
    flex-shrink: 0 !important;
    flex-grow: 1 !important;
}

.elementor-widget-mass_product_catalogue_8a35f3f3 > .elementor-widget-container,
.elementor-widget-mass_product_showcase_9b4a1f0a > .elementor-widget-container {
    height: auto !important;
    min-height: auto !important;
}

.mass-catalog-parent-con {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
}
.mass-catalog-parent-con > .e-con-inner {
    height: auto !important;
    min-height: auto !important;
}

/* Filter Bar Layout */
.mass-products-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: nowrap;
}

.mass-products-pills-scroll {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    min-width: 0;
}
.mass-products-pills-scroll::-webkit-scrollbar {
    display: none;
}

.mass-products-pills {
    display: flex;
    gap: 8px;
    white-space: nowrap;
    align-items: center;
}

.mass-filter-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 42px !important;
    padding: 0 22px !important;
    border-radius: 40px !important;
    border: 1px solid #e8e8e8 !important;
    background-color: #ffffff !important;
    color: #111111 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    letter-spacing: 0.02em !important;
    box-sizing: border-box !important;
    outline: none !important;
    line-height: normal !important;
}

.mass-filter-pill:hover {
    border-color: #111111 !important;
    background-color: #fafafa !important;
    transform: translateY(-1px);
}

.mass-filter-pill.active {
    background-color: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.2) !important;
}

/* Actions Wrapper (Search + Specification) */
.mass-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Premium Search Input Wrapper */
.mass-search-wrap {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 240px;
    height: 42px !important;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
    box-sizing: border-box !important;
}

.mass-search-wrap:focus-within {
    width: 290px;
}

.mass-search-wrap .mass-search-icon {
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #8e8e93 !important;
    pointer-events: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 3 !important;
    transition: color 0.2s ease !important;
}

.mass-search-wrap:focus-within .mass-search-icon {
    color: #b91c1c !important;
}

.mass-search-wrap .mass-search-icon svg {
    width: 15px !important;
    height: 15px !important;
    display: block !important;
}

.mass-products-wrapper .mass-search-wrap input.mass-search-input {
    width: 100% !important;
    height: 42px !important;
    line-height: 40px !important;
    padding: 0 36px 0 40px !important;
    border-radius: 40px !important;
    border: 1px solid #e8e8e8 !important;
    background-color: #fcfcfc !important;
    color: #111111 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    outline: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
}

.mass-products-wrapper .mass-search-wrap input.mass-search-input::placeholder {
    color: #8e8e93 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

.mass-products-wrapper .mass-search-wrap input.mass-search-input:hover {
    border-color: #d1d1d6 !important;
    background-color: #ffffff !important;
}

.mass-products-wrapper .mass-search-wrap input.mass-search-input:focus {
    border-color: #111111 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.mass-search-wrap .mass-search-clear {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #e8e8e8 !important;
    border: none !important;
    color: #666666 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    z-index: 4 !important;
    transition: all 0.2s ease !important;
}

.mass-search-wrap .mass-search-clear:hover {
    background: #b91c1c !important;
    color: #ffffff !important;
}

/* Specification Drawer Button */
.mass-open-drawer-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 42px !important;
    padding: 0 22px !important;
    border-radius: 40px !important;
    border: 1px solid #111111 !important;
    background-color: #111111 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    outline: none !important;
    line-height: normal !important;
}

.mass-open-drawer-btn svg {
    transition: stroke 0.25s ease !important;
}

.mass-open-drawer-btn:hover {
    background-color: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.2) !important;
    transform: translateY(-1px);
}

.mass-open-drawer-btn:hover svg {
    stroke: #ffffff !important;
}

.mass-active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.mass-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #b91c1c;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 6px rgba(185, 28, 28, 0.2);
}

.mass-remove-tag {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    margin-left: 2px;
    opacity: 0.8;
}

.mass-remove-tag:hover {
    opacity: 1;
}

.mass-products-grid {
    display: grid;
    grid-template-columns: repeat(var(--mass-products-cols, 4), 1fr);
    gap: 32px 24px;
    transition: opacity 0.3s ease;
    min-height: 200px;
}

@media (max-width: 1024px) {
    .mass-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mass-products-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .mass-filter-actions {
        width: 100%;
        justify-content: space-between;
    }
    .mass-search-wrap {
        flex: 1;
        width: auto !important;
    }
    .mass-products-grid {
        grid-template-columns: 1fr;
    }
}

.mass-products-grid.mass-loading {
    opacity: 0.4;
    pointer-events: none;
}

.mass-product-card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

.mass-product-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background-color: #f3f3f3;
    border-radius: 12px;
    margin-bottom: 16px;
}

.mass-product-img-wrap > img,
.mass-product-img-wrap > .mass-product-img-placeholder {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mass-product-img-placeholder {
    background-image: linear-gradient(135deg, #e5e5e5 25%, #f5f5f5 25%, #f5f5f5 50%, #e5e5e5 50%, #e5e5e5 75%, #f5f5f5 75%, #f5f5f5 100%);
    background-size: 30px 30px;
    opacity: 0.8;
}

.mass-product-card:hover .mass-product-img {
    transform: scale(1.05);
}

.mass-product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 17, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 16px;
    box-sizing: border-box;
}

.mass-product-card:hover .mass-product-overlay {
    opacity: 1;
}

.mass-overlay-spec {
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 4px;
    text-align: center;
}

.mass-overlay-spec:last-child {
    border-bottom: none;
}

.mass-product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mass-product-series {
    font-size: 10px;
    font-weight: 700;
    color: #b91c1c;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.mass-product-code {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    margin: 0;
    line-height: 1.2;
}

.mass-products-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 15px;
    color: #737373;
    padding: 60px 0;
}

.mass-pagination-container {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.mass-pagination-numeric {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.mass-page-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e5e5e5;
    background-color: #ffffff;
    color: #111111;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mass-page-number:hover {
    border-color: #111111;
}

.mass-page-number.active {
    background-color: #b91c1c;
    border-color: #b91c1c;
    color: #ffffff;
}

.mass-pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #737373;
    font-weight: 700;
    font-size: 14px;
}

.mass-pagination-load-more {
    display: flex;
    justify-content: center;
    width: 100%;
}

.mass-load-more-btn {
    padding: 12px 32px;
    border-radius: 30px;
    border: 1px solid #111111;
    background-color: #111111;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mass-load-more-btn:hover {
    background-color: transparent;
    color: #b91c1c;
    border-color: #b91c1c;
}

/* Off-canvas Drawer Panel */
.mass-filter-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999999 !important;
    visibility: hidden;
    transition: visibility 0.4s;
}

.mass-filter-drawer.open {
    visibility: visible;
}

.mass-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mass-filter-drawer.open .mass-drawer-overlay {
    opacity: 1;
}

.mass-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 100%;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mass-filter-drawer.open .mass-drawer-content {
    transform: translateX(0);
}

.mass-drawer-header {
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mass-drawer-title {
    font-size: 20px;
    font-weight: 800;
    color: #111111;
    margin: 0;
    letter-spacing: -0.01em;
}

.mass-close-drawer-btn {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #111111;
    cursor: pointer;
    padding: 0;
}

.mass-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.mass-drawer-filter-group {
    margin-bottom: 32px;
}

.mass-drawer-filter-group h5 {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #111111;
    margin: 0 0 16px 0;
    border-bottom: 1px solid #111111;
    padding-bottom: 8px;
}

.mass-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mass-checkbox-label {
    display: block;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #444444;
    user-select: none;
    line-height: 20px;
}

.mass-checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.mass-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mass-checkbox-label:hover input ~ .mass-checkmark {
    border-color: #111111;
}

.mass-checkbox-label input:checked ~ .mass-checkmark {
    background-color: #b91c1c;
    border-color: #b91c1c;
}

.mass-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.mass-checkbox-label input:checked ~ .mass-checkmark:after {
    display: block;
}

.mass-checkbox-label .mass-checkmark:after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.mass-drawer-footer {
    padding: 24px;
    border-top: 1px solid #f0f0f0;
}

.mass-clear-filters-btn {
    width: 100%;
    padding: 12px;
    background-color: #f5f5f5;
    color: #111111;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mass-clear-filters-btn:hover {
    background-color: #111111;
    color: #ffffff;
    border-color: #111111;
}
