﻿/* ==============================
   EGOO Core Business Categories
   Primary Color: #30C1B4
============================== */

.egoo-goods-page {
    width: 100%;
    padding: 55px 0 85px;
    background: #fff;
}

.egoo-goods-page * {
    box-sizing: border-box;
}

.egoo-goods-group + .egoo-goods-group {
    margin-top: 58px;
}

/* First-Level Category Heading */

.egoo-goods-group-heading {
    margin: 0 0 27px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e4efed;
    position: relative;
}

.egoo-goods-group-heading::after {
    content: "";
    width: 62px;
    height: 3px;
    background: #30c1b4;
    border-radius: 3px;
    position: absolute;
    bottom: -2px;
    left: 0;
}

.egoo-goods-group-heading h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.35;
    color: #111;
    overflow-wrap: anywhere;
}

/* Second-Level Category Grid */

.egoo-goods-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.egoo-goods-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 10px 10px 15px;
    background: #fff;
    border: 1px solid #e6efed;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    box-shadow: none;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.egoo-goods-card:hover {
    transform: translateY(-6px);
    border-color: rgba(48, 193, 180, .5);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .07);
}

.egoo-goods-card-image {
    width: 100%;
    aspect-ratio: 210 / 100;
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.egoo-goods-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transition: transform .4s ease;
}

.egoo-goods-card:hover .egoo-goods-card-image img {
    transform: scale(1.045);
}

.egoo-goods-card h3 {
    margin: 10px 2px 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: #222;
    overflow-wrap: anywhere;
    transition: color .3s ease;
}

.egoo-goods-card:hover h3 {
    color: #30c1b4;
}

/* Mobile Layout */

@media screen and (max-width: 767px) {
    .egoo-goods-page {
        padding: 35px 0 50px;
    }

    .egoo-goods-group + .egoo-goods-group {
        margin-top: 38px;
    }

    .egoo-goods-group-heading {
        margin-bottom: 18px;
        padding-bottom: 13px;
    }

    .egoo-goods-group-heading h2 {
        font-size: 23px;
        line-height: 1.4;
    }

    .egoo-goods-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .egoo-goods-card {
        padding: 8px 8px 13px;
        border-radius: 9px;
    }

    .egoo-goods-card-image {
        aspect-ratio: 4 / 3;
        border-radius: 6px;
    }

    .egoo-goods-card h3 {
        margin-top: 10px;
        font-size: 14px;
        line-height: 1.45;
    }

    .egoo-goods-card:hover {
        transform: none;
    }
}
