/* Hardware Fittings tab section */
.hardware-tabsectiood{ position:relative; padding:90px 0 110px; 
    overflow:hidden;
}

.hardware-tabsectiood__tabs{
    display:grid;
    grid-template-columns:repeat(5, minmax(0, 1fr));
    gap:14px;
    position:relative;
    z-index:1;
}

.hardware-tabsectiood__tab{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:12px;
    width:100%;
    padding:14px 14px 16px;
    border:1px solid var(--border);
    background:rgba(255,255,255,0.92);
    cursor:pointer;
    text-align:center;
    appearance:none;
    outline:none;
    transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}

.hardware-tabsectiood__tab:hover{
    border-color:rgba(240,57,46,0.22);
}

.hardware-tabsectiood__tab.is-active{
    background:#fff;
    border-color:rgba(240,57,46,0.42);
}

.hardware-tabsectiood__tab:focus,
.hardware-tabsectiood__tab:focus-visible{
    outline:none;
    border-color:rgba(240,57,46,0.42);
}

.hardware-tabsectiood__tab::after{
    content:"";
    position:absolute;
    left:14px;
    right:14px;
    bottom:0;
    height:3px;
    border-radius:999px;
    background:transparent;
    transition:background-color .25s ease;
}

.hardware-tabsectiood__tab.is-active::after{
    background:var(--primary);
}

.hardware-tabsectiood__tab-thumb{
    width:100%;
    height:92px;
    overflow:hidden;
    background:#f2efe7;
    flex:0 0 auto;
}

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

.hardware-tabsectiood__tab-content{
    min-width:0;
    display:flex;
    align-items:center;
    justify-content:center;
}

.hardware-tabsectiood__tab-label{
    display:block;
    margin-bottom:0;
    font-family:var(--font-heading);
    font-size:18px;
    line-height:1.15;
    font-weight:700;
    letter-spacing:0.06em;
    text-transform:uppercase;
    color:var(--secondary);
}

.hardware-tabsectiood__panels{
    margin-top:26px;
    position:relative;
    z-index:1;
}

.hardware-tabsectiood__panel{
    animation:hardware-tabsectiood-fade .25s ease;
}

.hardware-tabsectiood__grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:22px;
}

.hardware-tabsectiood__card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:10px;
    overflow:hidden;
}

.hardware-tabsectiood__card:hover{
    border-color:rgba(240,57,46,0.26);
}

.hardware-tabsectiood__media{
    position:relative;
    overflow:hidden;
    aspect-ratio: 4 / 3;
    background:#ede9e1;
}

.hardware-tabsectiood__media img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .35s ease;
}


.hardware-tabsectiood__card-body{
    padding:20px 20px 22px;
}

.hardware-tabsectiood__card-tag{
    display:block;
    margin-bottom:10px;
    font-size:11px;
    font-weight:700;
    letter-spacing:4px;
    text-transform:uppercase;
    color:var(--primary);
}

.hardware-tabsectiood__card-title{
    margin:0 0 18px;
    font-family:var(--font-heading);
    font-size:24px;
    line-height:1;
    font-weight:700;
    letter-spacing:-0.5px;
    text-transform:uppercase;
    color:var(--secondary);
}

.hardware-tabsectiood__card-link{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:0;
    border:0;
    background:none;
    cursor:pointer;
    color:var(--secondary);
    font-size:12px;
    font-weight:700;
    letter-spacing:2px;
    text-transform:uppercase;
    text-decoration:none;
    transition:color .25s ease, gap .25s ease;
}

.hardware-tabsectiood__card-link:hover{
    color:var(--primary);
}

.hardware-tabsectiood__card-link span{
    font-size:14px;
    line-height:1;
}

.hardware-tabsectiood__popup{
    position:fixed;
    inset:0;
    z-index:9999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:rgba(15,12,11,0.72);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .18s ease, visibility .18s ease;
}

.hardware-tabsectiood__popup.is-visible{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}

.hardware-tabsectiood__popup[hidden]{
    display:none;
}

.hardware-tabsectiood__popup-content{
    position:relative;
    width:100%;
    max-width:760px;
    max-height:90vh;
    overflow:auto;
    padding:34px;
    border:1px solid rgba(255,255,255,0.16);
    border-radius:24px;
    background:#fffaf5;
    box-shadow:0 30px 90px rgba(0,0,0,0.28);
}

.hardware-tabsectiood__popup-eyebrow{
    display:inline-flex;
    align-items:center;
    gap:12px;
    margin-bottom:14px;
    color:var(--primary);
    font-size:12px;
    font-weight:700;
    letter-spacing:4px;
    text-transform:uppercase;
}

.hardware-tabsectiood__popup-eyebrow::before{
    content:"";
    width:36px;
    height:2px;
    background:var(--primary);
}

.hardware-tabsectiood__popup-title{
    margin:0 0 20px;
    font-family:var(--font-heading);
    font-size:42px;
    line-height:0.95;
    font-weight:700;
    letter-spacing:-1px;
    text-transform:uppercase;
    color:var(--secondary);
}

.hardware-tabsectiood__popup-close{
    position:absolute;
    top:16px;
    right:16px;
    width:44px;
    height:44px;
    border:0;
    border-radius:50%;
    background:var(--secondary);
    color:#fff;
    font-size:30px;
    line-height:1;
    cursor:pointer;
}

body.hardware-tabsectiood--popup-open{
    overflow:hidden;
}

@media (max-width: 767px){
    .hardware-tabsectiood__popup-content{
        padding:24px 18px 18px;
        border-radius:20px;
    }

    .hardware-tabsectiood__popup-title{
        font-size:30px;
    }

    .hardware-tabsectiood__popup-close{
        top:12px;
        right:12px;
        width:40px;
        height:40px;
        font-size:26px;
    }
}

@keyframes hardware-tabsectiood-fade{
    from{
        opacity:0;
        transform:translateY(10px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@media (max-width: 1200px){
    .hardware-tabsectiood__tabs{
        grid-template-columns:repeat(3, minmax(0, 1fr));
    }

    .hardware-tabsectiood__grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px){
    .hardware-tabsectiood{
        padding:70px 0 90px;
    }


    .hardware-tabsectiood__tab{
        padding:14px 14px 16px;
    }
}

@media (max-width: 767px){
    .hardware-tabsectiood{
        padding:60px 0 80px;
    }

    .hardware-tabsectiood__tabs{
        display:flex;
        gap:12px;
        overflow-x:auto;
        padding-bottom:8px;
        scroll-snap-type:x proximity;
    }

    .hardware-tabsectiood__tab{
        flex:0 0 290px;
        scroll-snap-align:start;
    }

    .hardware-tabsectiood__grid{
        grid-template-columns:1fr;
        gap:18px;
    }

    .hardware-tabsectiood__card-title{
        font-size:22px;
    }
}

@media (max-width: 480px){
    .hardware-tabsectiood__tab{
        flex-basis:260px;
    }

    .hardware-tabsectiood__tab-label{
        font-size:15px;
    }

    .hardware-tabsectiood__card-body{
        padding:18px 16px 20px;
    }
}
