/* Custom Glass Products */
.cgp-products {
    --cgp-accent: #e05f20;
    --cgp-dark: #221e70;
    --cgp-text: #171717;
    --cgp-muted: #737373;
    --cgp-border: rgba(255,255,255,.58);
    --cgp-glass: rgba(255,255,255,.48);

    width: 100%;
    position: relative;
    box-sizing: border-box;
    font-family: inherit;
}

.cgp-heading {
    text-align: center;
    margin: 0 0 28px;
}

.cgp-eyebrow {
    display: block;
    color: var(--cgp-accent);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}

.cgp-heading h2 {
    margin: 0;
    color: var(--cgp-text);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.25;
    font-weight: 800;
}

.cgp-heading-line {
    display: block;
    width: 55px;
    height: 3px;
    border-radius: 50px;
    background: var(--cgp-accent);
    margin: 13px auto 0;
}

.cgp-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin: 0 auto 34px;
}

.cgp-filter {
    appearance: none;
    border: 1px solid rgba(34,30,112,.13);
    background: rgba(255,255,255,.5);
    color: var(--cgp-dark);
    border-radius: 999px;
    padding: 11px 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all .25s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cgp-filter:hover {
    transform: translateY(-2px);
    border-color: rgba(224,95,32,.35);
}

.cgp-filter.is-active {
    color: #fff;
    background: var(--cgp-dark);
    border-color: var(--cgp-dark);
    box-shadow: 0 10px 24px rgba(34,30,112,.18);
}

.cgp-results {
    min-height: 120px;
    position: relative;
    transition: opacity .25s ease;
}

.cgp-results.is-loading {
    opacity: .45;
    pointer-events: none;
}

.cgp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.cgp-card {
    min-width: 0;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(145deg, rgba(255,255,255,.68), rgba(255,255,255,.28));
    border: 1px solid var(--cgp-border);
    box-shadow:
        0 18px 45px rgba(25, 25, 60, .08),
        inset 0 1px 0 rgba(255,255,255,.8);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform .35s cubic-bezier(.2,.8,.2,1),
                box-shadow .35s ease,
                border-color .35s ease;
}

.cgp-card:hover {
    transform: translateY(-8px);
    border-color: rgba(224,95,32,.35);
    box-shadow:
        0 28px 60px rgba(25,25,60,.13),
        inset 0 1px 0 rgba(255,255,255,.9);
}

.cgp-card-link {
    color: inherit;
    text-decoration: none !important;
    display: block;
}

.cgp-image-wrap {
    aspect-ratio: 1 / 1;
    margin: 10px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: rgba(255,255,255,.58);
}

.cgp-product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    box-sizing: border-box;
    transition: transform .55s cubic-bezier(.2,.8,.2,1);
}

.cgp-card:hover .cgp-product-image {
    transform: scale(1.055);
}

.cgp-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.2), transparent 50%, rgba(224,95,32,.04));
    pointer-events: none;
}

.cgp-card-content {
    padding: 10px 22px 23px;
    text-align: center;
}

.cgp-card-content h3 {
    margin: 0;
    color: var(--cgp-text);
    font-size: 18px;
    line-height: 1.65;
    font-weight: 800;
}

.cgp-card-content p {
    margin: 6px 0 0;
    color: var(--cgp-muted);
    font-size: 13px;
    line-height: 1.8;
}

.cgp-empty {
    width: 100%;
    box-sizing: border-box;
    padding: 45px 20px;
    text-align: center;
    border: 1px dashed rgba(34,30,112,.18);
    border-radius: 20px;
    color: var(--cgp-muted);
    background: rgba(255,255,255,.35);
}

@media (max-width: 900px) {
    .cgp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .cgp-heading {
        margin-bottom: 20px;
    }

    .cgp-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 2px 2px 8px;
        scrollbar-width: none;
    }

    .cgp-filters::-webkit-scrollbar {
        display: none;
    }

    .cgp-filter {
        flex: 0 0 auto;
        padding: 10px 16px;
        font-size: 13px;
    }

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

    .cgp-card {
        border-radius: 20px;
    }

    .cgp-image-wrap {
        margin: 8px;
        border-radius: 15px;
    }

    .cgp-card-content {
        padding: 8px 18px 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cgp-card,
    .cgp-product-image,
    .cgp-filter {
        transition: none;
    }
}
