/* =========================================================
   HealthyLife Catalog Showcase v7
   Scoped visual layer only. No global resets.
   ========================================================= */

/* ---------- CATEGORY TILES ---------- */
.hl-category-showcase-v7 {
    overflow: hidden;
}

.hl-category-showcase-v7 .category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 35px rgba(15, 23, 42, .08);
}

.hl-category-showcase-v7 .category {
    min-height: 112px;
    margin: 0;
    padding: 18px 14px;
    border: 0;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 8px 18px rgba(15,23,42,.08);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.hl-category-showcase-v7 .category:nth-child(1) {
    background: linear-gradient(135deg, #347ff0 0%, #09a8e5 100%);
}
.hl-category-showcase-v7 .category:nth-child(2) {
    background: linear-gradient(135deg, #39b8bd 0%, #1bc9bf 100%);
}
.hl-category-showcase-v7 .category:nth-child(3) {
    background: linear-gradient(135deg, #9b73ef 0%, #8251e8 100%);
}
.hl-category-showcase-v7 .category:nth-child(4) {
    background: linear-gradient(135deg, #ffb358 0%, #ff744f 100%);
}

.hl-category-showcase-v7 .category:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 13px 24px rgba(15,23,42,.14);
    filter: saturate(1.04);
}

.hl-category-showcase-v7 .category-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    font-size: 31px;
    line-height: 1;
    border-radius: 14px;
    background: rgba(255,255,255,.10);
}

.hl-category-showcase-v7 .category-name {
    max-width: 100%;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,.08);
}

/* ---------- PRODUCT CARD ---------- */
.hl-catalog-card-v7 {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #e2edf8;
    border-radius: 22px !important;
    background: #fff;
    box-shadow: 0 8px 28px rgba(30, 64, 175, .10);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.hl-catalog-card-v7:hover {
    transform: translateY(-4px);
    border-color: #c8ddf5;
    box-shadow: 0 16px 34px rgba(30,64,175,.14);
}

.hl-catalog-card-v7 .product-image {
    position: relative;
    height: 185px;
    min-height: 185px;
    margin: 9px 9px 0;
    overflow: hidden;
    border-radius: 17px 17px 28px 28px;
    background:
        radial-gradient(circle at 15% 90%, rgba(255,255,255,.95) 0 28%, transparent 29%),
        radial-gradient(circle at 90% 25%, rgba(255,255,255,.48) 0 25%, transparent 26%),
        linear-gradient(145deg, #d8f0ff 0%, #b8ddff 45%, #e8f7ff 100%);
}

.hl-catalog-card-v7 .product-image img,
.hl-catalog-card-v7 .product-image .product-icon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 22px 28px 14px;
}

.hl-catalog-card-v7 .product-image .badge {
    position: absolute;
    z-index: 3;
    top: 10px;
    left: 10px;
    max-width: calc(100% - 64px);
    padding: 6px 10px;
    border: 0;
    border-radius: 999px;
    background: #12a95b;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    box-shadow: 0 4px 12px rgba(18,169,91,.22);
}


.hl-catalog-card-v7 .product-info {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 13px 14px 14px;
}

.hl-catalog-card-v7 .product-info h3 {
    margin: 0 0 5px;
    color: #1d334d;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.25;
}

.hl-catalog-card-v7 .brand {
    color: #8190a5;
    font-size: 12px;
    font-weight: 600;
}

.hl-catalog-card-v7 .rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: #7b8798;
    font-size: 12px;
}

.hl-catalog-card-v7 .rating-number {
    min-width: 25px;
    height: 25px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #0878df;
    color: #fff;
    font-weight: 800;
}

.hl-catalog-card-v7 .price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-top: 8px;
}

.hl-catalog-card-v7 .price small {
    color: #93a0b3;
    font-size: 12px;
}

.hl-catalog-card-v7 .price strong {
    color: #203a59;
    font-size: 20px;
    font-weight: 900;
}

.hl-catalog-card-v7 .product-card-sizes {
    margin-top: 8px;
}

.hl-catalog-card-v7 .product-card-sizes-title {
    display: block;
    margin-bottom: 6px;
    color: #68788d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hl-catalog-card-v7 .product-card-size-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.hl-catalog-card-v7 .product-size-option {
    min-height: 32px;
    margin: 0;
    border-radius: 8px;
    flex-wrap: wrap;
    max-width: 100%;
}

.hl-catalog-card-v7 .product-size-option .size-quantity-hint,
.hl-catalog-card-v7 .product-size-option .product-size-quantity,
.hl-catalog-card-v7 .product-size-option .product-size-edit-input {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.hl-catalog-card-v7 .product-size-option .size-quantity-hint,
.hl-catalog-card-v7 .product-size-option .product-size-quantity {
    justify-content: flex-start;
    cursor: text;
}

.hl-catalog-card-v7 .product-size-text,
.hl-catalog-card-v7 .size-quantity-hint {
    min-height: 32px;
    padding: 6px 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce6f1;
    border-radius: 8px;
    background: #fff;
    color: #5c6c80;
    font-size: 12px;
    font-weight: 750;
}

.hl-catalog-card-v7 .product-size-option input:checked + .product-size-text {
    border-color: #0b75d5;
    background: #eef7ff;
    color: #075da9;
    box-shadow: 0 0 0 2px rgba(11,117,213,.08);
}

.hl-catalog-card-v7 .stock {
    min-height: 42px !important;
    margin-top: auto !important;
    padding-top: 8px;
    transform: none !important;
}

.hl-catalog-card-v7 .stock-status {
    color: #13a654;
    font-size: 12px;
    font-weight: 800;
}

.hl-catalog-card-v7 .product-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 8px !important;
    width: 100%;
    margin-top: 10px !important;
}

/* Put Add to Cart first visually, Details as compact arrow second */
.hl-catalog-card-v7 .product-actions .hl-card-add-btn {
    grid-column: 1;
    grid-row: 1;
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #087ce5 0%, #006bc9 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 850;
    box-shadow: 0 7px 16px rgba(8,124,229,.22);
}

.hl-catalog-card-v7 .product-actions .hl-card-add-btn::before { content: none; display: none; }


.hl-catalog-card-v7 .product-actions .details-btn {
    grid-column: 2;
    grid-row: 1;
    width: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    border: 1px solid #d6e3f1;
    border-radius: 10px;
    background: #fff;
    color: transparent;
    font-size: 0;
    box-shadow: none;
}

.hl-catalog-card-v7 .product-actions .details-btn::after {
    content: "›";
    color: #23415f;
    font-size: 28px;
    font-weight: 500;
    line-height: 1;
}

@media (max-width: 860px) {
    .hl-category-showcase-v7 .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .hl-category-showcase-v7 .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 7px;
        border-radius: 17px;
    }

    .hl-category-showcase-v7 .category {
        min-height: 90px;
        padding: 13px 9px;
        border-radius: 13px;
    }

    .hl-category-showcase-v7 .category-icon {
        width: 38px;
        height: 38px;
        font-size: 25px;
    }

    .hl-category-showcase-v7 .category-name {
        font-size: 12px;
    }

    .hl-catalog-card-v7 {
        border-radius: 17px !important;
    }

    .hl-catalog-card-v7 .product-image {
        height: 150px;
        min-height: 150px;
        margin: 7px 7px 0;
    }

    .hl-catalog-card-v7 .product-info {
        padding: 11px;
    }

    .hl-catalog-card-v7 .product-info h3 {
        font-size: 15px;
    }
}

/* v34 — keep all catalog card footers aligned */
.hl-catalog-card-v7 .product-info h3{
    min-height:43px;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
}
.hl-catalog-card-v7 .brand{min-height:18px}
.hl-catalog-card-v7 .rating{min-height:25px}
.hl-catalog-card-v7 .price{min-height:30px}
.hl-catalog-card-v7 .product-card-sizes{
    min-height:118px;
    box-sizing:border-box;
}
.hl-catalog-card-v7 .product-no-size.hl-card-single-quantity{
    display:flex;
    align-items:center;
    justify-content:center;
}
.hl-catalog-card-v7 .stock{min-height:58px!important}
.hl-catalog-card-v7 .product-actions{
    grid-template-columns:minmax(0,1fr) 46px 46px!important;
    align-items:stretch;
    margin-top:auto!important;
}
.hl-catalog-card-v7 .product-actions .hl-card-add-btn{grid-column:1!important;grid-row:1!important}
.hl-catalog-card-v7 .product-actions .hl-card-compare-btn{grid-column:2!important;grid-row:1!important}
.hl-catalog-card-v7 .product-actions .details-btn{grid-column:3!important;grid-row:1!important}
@media(max-width:680px){
    .hl-catalog-card-v7 .product-card-sizes{min-height:104px}
    .hl-catalog-card-v7 .stock{min-height:50px!important}
    .hl-catalog-card-v7 .product-actions{grid-template-columns:minmax(0,1fr) 40px 40px!important;gap:6px!important}
}
