/* GauGrih Categories Page */
.gg-cat-page {
    background:
        radial-gradient(ellipse at top, rgba(255, 236, 210, 0.55), transparent 55%),
        linear-gradient(180deg, #faf7f2 0%, #fff 48%, #faf7f2 100%);
    padding: 28px 0 56px;
    min-height: 60vh;
}

.gg-cat-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px 24px;
    margin-bottom: 28px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid #efe6da;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(80, 40, 10, 0.05);
}

.gg-cat-hero-text {
    flex: 1 1 240px;
    min-width: 0;
}

.gg-cat-heading {
    margin-bottom: 6px !important;
    justify-content: flex-start !important;
}

.gg-cat-heading h1 {
    margin: 0 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #5c2e16 !important;
    text-transform: capitalize;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.gg-cat-subtitle {
    margin: 0;
    color: #8a7a6c;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.gg-cat-search {
    flex: 0 1 360px;
    width: 100%;
    max-width: 380px;
    margin: 0;
}

.gg-cat-search-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fffdf9;
    border: 1px solid #efe6da;
    border-radius: 12px;
    padding: 6px 6px 6px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gg-cat-search-inner:focus-within {
    border-color: #c4783a;
    box-shadow: 0 0 0 3px rgba(196, 120, 58, 0.12);
}

.gg-cat-search-inner > .tio-search {
    color: #c4783a;
    font-size: 18px;
    flex-shrink: 0;
}

.gg-cat-search-inner .form-control {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 8px 4px !important;
    height: auto !important;
    font-size: 14px;
    color: #5c2e16;
}

.gg-cat-search-inner .form-control::placeholder {
    color: #a89888;
}

.gg-cat-search-btn {
    flex-shrink: 0;
    border: 0;
    border-radius: 9px;
    background: #c4783a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 16px;
    cursor: pointer;
    text-transform: capitalize;
    transition: background 0.2s ease;
}

.gg-cat-search-btn:hover {
    background: #5c2e16;
}

.gg-cat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.gg-cat-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #efe6da;
    text-decoration: none !important;
    color: #5c2e16 !important;
    box-shadow: 0 4px 14px rgba(80, 40, 10, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gg-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(80, 40, 10, 0.1);
    border-color: #e2d2bf;
    color: #5c2e16 !important;
    text-decoration: none !important;
}

.gg-cat-media {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 220, 160, 0.4), transparent 55%),
        linear-gradient(160deg, #f3e6d4 0%, #e8d2b0 45%, #d4b48a 100%);
    overflow: hidden;
    position: relative;
}

.gg-cat-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}

.gg-cat-card:hover .gg-cat-media img {
    transform: scale(1.05);
}

.gg-cat-label {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 10px;
    background: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #5c2e16;
    line-height: 1.3;
    border-top: 1px solid #f3ebe1;
}

.gg-cat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 64px 16px;
    background: #fff;
    border: 1px solid #efe6da;
    border-radius: 16px;
    text-align: center;
}

.gg-cat-empty h5 {
    margin: 0;
    color: #8a7a6c;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 1199.98px) {
    .gg-cat-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .gg-cat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .gg-cat-heading h1 {
        font-size: 24px !important;
    }
}

@media (max-width: 767.98px) {
    .gg-cat-page {
        padding: 18px 0 40px;
    }

    .gg-cat-hero {
        padding: 16px;
        margin-bottom: 18px;
    }

    .gg-cat-search {
        flex: 1 1 100%;
        max-width: none;
    }

    .gg-cat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .gg-cat-label {
        min-height: 42px;
        padding: 10px 8px;
        font-size: 12px;
    }
}

@media (max-width: 575.98px) {
    .gg-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .gg-cat-heading {
        justify-content: center !important;
    }

    .gg-cat-hero-text {
        text-align: center;
        width: 100%;
    }

    .gg-cat-search-btn {
        padding: 10px 12px;
    }
}
