/* =========================================================
   FRIGOPRO HOME CATALOG v1.7
   Compact stacked WooCommerce category / subcategory sections
   ========================================================= */

.frigo-hc,
.frigo-hc *{box-sizing:border-box;}

.frigo-hc{
    --frigo-hc-blue:#173cff;
    --frigo-hc-red:#e60012;
    --frigo-hc-text:#292c33;
    --frigo-hc-muted:#777d88;
    --frigo-hc-border:#e4e7ec;
    width:100%;
    max-width:1500px;
    margin:0 auto;
    padding:28px 24px 48px;
    font-family:Arial,Helvetica,sans-serif;
    color:var(--frigo-hc-text);
}

/* ---------- MAIN CATEGORY ---------- */
.frigo-hc-main-section{
    margin:0 0 38px;
}

/* The pale blue strip is intentionally compact. */
.frigo-hc-main-heading{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:56px;
    margin:0 0 20px;
    padding:9px 20px 8px;
    background:linear-gradient(90deg,#fff 0%,#f7f9ff 18%,#f2f6ff 50%,#f7f9ff 82%,#fff 100%);
    border-top:1px solid #eef0f5;
    border-bottom:1px solid #eef0f5;
}

/* H3: main WooCommerce category */
.frigo-hc-main-heading h3{
    position:relative;
    margin:0 !important;
    padding:0 0 9px !important;
    font-family:Arial,Helvetica,sans-serif !important;
    font-size:24px !important;
    line-height:1.15 !important;
    font-weight:800 !important;
    letter-spacing:-.25px;
    text-align:center;
    color:var(--frigo-hc-text) !important;
}

/* Short red/blue accent, tight to the title and strip. */
.frigo-hc-main-heading h3::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:0;
    width:82px;
    height:2px;
    transform:translateX(-50%);
    border-radius:2px;
    background:linear-gradient(90deg,var(--frigo-hc-red),var(--frigo-hc-blue));
}

.frigo-hc-main-title-link{
    display:inline-block;
    color:var(--frigo-hc-text) !important;
    text-decoration:none !important;
    transform:translateY(0) scale(1);
    text-shadow:none;
    transition:transform .18s ease,text-shadow .18s ease,filter .18s ease;
    will-change:transform;
}
.frigo-hc-main-title-link:hover,
.frigo-hc-main-title-link:focus{
    color:var(--frigo-hc-text) !important;
    transform:translateY(-2px) scale(1.012);
    text-shadow:0 4px 10px rgba(0,0,0,.14);
    filter:brightness(.98);
}

/* ---------- SUBCATEGORY ---------- */
.frigo-hc-subsection{
    margin:0 0 27px;
}

.frigo-hc-subheading{
    display:block;
    margin:0 48px 10px;
    padding:0 0 8px;
    border-bottom:1px solid #eceef2;
}

/* H6: WooCommerce subcategory */
.frigo-hc-subheading h6{
    position:relative;
    margin:0 !important;
    padding:0 0 0 12px !important;
    font-family:Arial,Helvetica,sans-serif !important;
    font-size:15px !important;
    line-height:1.3 !important;
    font-weight:800 !important;
    letter-spacing:.05px;
    color:#353840 !important;
}

.frigo-hc-subheading h6::before{
    content:"";
    position:absolute;
    left:0;
    top:1px;
    bottom:1px;
    width:3px;
    border-radius:3px;
    background:var(--frigo-hc-red);
}

.frigo-hc-subtitle-link{
    display:inline-block;
    color:#353840 !important;
    text-decoration:none !important;
    transform:translateY(0) scale(1);
    text-shadow:none;
    transition:transform .18s ease,text-shadow .18s ease,filter .18s ease;
    will-change:transform;
}
.frigo-hc-subtitle-link:hover,
.frigo-hc-subtitle-link:focus{
    color:#353840 !important;
    transform:translateY(-2px) scale(1.018);
    text-shadow:0 3px 8px rgba(0,0,0,.16);
    filter:brightness(.98);
}

/* ---------- PRODUCT GRID ---------- */
.frigo-hc-row-shell{
    padding:0 48px;
}

.frigo-hc-products-grid{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:12px;
    align-items:stretch;
}

.frigo-hc-card{
    min-width:0;
    background:#fff;
    border:1px solid var(--frigo-hc-border);
    border-radius:8px;
    overflow:hidden;
    box-shadow:0 1px 4px rgba(0,0,0,.025);
    transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.frigo-hc-card:hover{
    transform:translateY(-2px);
    border-color:#cfd4dc;
    box-shadow:0 7px 20px rgba(0,0,0,.07);
}

.frigo-hc-image{
    display:flex;
    align-items:center;
    justify-content:center;
    height:132px;
    padding:8px;
    background:#fff;
    text-decoration:none;
}
.frigo-hc-image img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}

.frigo-hc-card-body{
    display:flex;
    flex-direction:column;
    min-height:124px;
    padding:10px 10px 11px;
}

.frigo-hc-name{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    min-height:34px;
    margin:0 0 7px;
    font-size:13px;
    line-height:1.3;
    font-weight:700;
    color:var(--frigo-hc-text);
    text-decoration:none;
}
.frigo-hc-name:hover{color:var(--frigo-hc-blue);}

.frigo-hc-price{
    min-height:22px;
    margin:auto 0 8px;
    font-size:14px;
    line-height:1.2;
    font-weight:800;
    color:#e31a1a;
}
.frigo-hc-price del{
    font-size:11px;
    font-weight:500;
    color:#8b9098;
}
.frigo-hc-price ins{text-decoration:none;}
.frigo-hc-price-quote{
    font-size:12px;
    font-weight:700;
    color:#696f78;
}

.frigo-hc-action{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:32px;
    padding:7px 8px;
    border-radius:6px;
    font-size:11px;
    font-weight:700;
    line-height:1.15;
    text-align:center;
    text-decoration:none !important;
    transition:background-color .20s ease,transform .20s ease,box-shadow .20s ease;
}

/* Protect button colors from Astra/Elementor/WooCommerce link hover rules. */
.frigo-hc a.frigo-hc-action.frigo-hc-action-buy{
    background-color:var(--frigo-hc-blue) !important;
    color:#fff !important;
}
.frigo-hc a.frigo-hc-action.frigo-hc-action-quote{
    background-color:var(--frigo-hc-red) !important;
    color:#fff !important;
}

/* ~30% lighter than the base color; text always remains white. */
.frigo-hc a.frigo-hc-action.frigo-hc-action-buy:hover,
.frigo-hc a.frigo-hc-action.frigo-hc-action-buy:focus{
    background-color:#5d76ff !important;
    color:#fff !important;
    filter:none !important;
    transform:translateY(-2px);
    box-shadow:0 5px 12px rgba(0,0,0,.12);
}
.frigo-hc a.frigo-hc-action.frigo-hc-action-quote:hover,
.frigo-hc a.frigo-hc-action.frigo-hc-action-quote:focus{
    background-color:#ee4c59 !important;
    color:#fff !important;
    filter:none !important;
    transform:translateY(-2px);
    box-shadow:0 5px 12px rgba(0,0,0,.12);
}

.frigo-hc-empty{
    margin:0 48px;
    min-height:82px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px;
    border:1px dashed #dfe3e9;
    border-radius:8px;
    background:#fbfbfc;
    font-size:12px;
    color:#7c818a;
    text-align:center;
}

@media(max-width:1250px){
    .frigo-hc-products-grid{grid-template-columns:repeat(5,minmax(0,1fr));}
}

@media(max-width:1050px){
    .frigo-hc{padding-left:16px;padding-right:16px;}
    .frigo-hc-main-heading h3{font-size:22px !important;}
    .frigo-hc-products-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
}

@media(max-width:767px){
    .frigo-hc{padding:20px 10px 34px;}
    .frigo-hc-main-section{margin-bottom:30px;}
    .frigo-hc-main-heading{
        min-height:50px;
        margin-bottom:16px;
        padding:8px 10px 7px;
    }
    .frigo-hc-main-heading h3{
        padding-bottom:8px !important;
        font-size:19px !important;
    }
    .frigo-hc-main-heading h3::after{
        width:64px;
        height:2px;
    }

    .frigo-hc-subsection{margin-bottom:22px;}
    .frigo-hc-subheading{
        margin:0 0 8px;
        padding-bottom:7px;
    }
    .frigo-hc-subheading h6{
        font-size:13px !important;
        padding-left:10px !important;
    }

    .frigo-hc-row-shell{padding:0;}
    .frigo-hc-products-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:9px;
    }
    .frigo-hc-image{height:126px;}
    .frigo-hc-card-body{min-height:121px;padding:9px 9px 10px;}
    .frigo-hc-empty{margin:0;min-height:70px;}
}

@media(max-width:420px){
    .frigo-hc-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
    .frigo-hc-image{height:112px;}
    .frigo-hc-name{font-size:12px;}
}
