/* WeTheme Glass Category Widget */

.wetheme-glass-category {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    align-content: center;
    justify-content: center;
    align-items: center;
}

/* Header */
.wetheme-glass-category__header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 36px;
    width: 100%;
}

.wetheme-glass-category__header-line {
    flex: 1 1 auto;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    min-width: 20px;
}

.wetheme-glass-category__header-center {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 8px 16px;
}

.wetheme-glass-category__bg-text {
    position: absolute;
    transform: translate(-45%, -75%);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 50px;
    line-height: 1;
    background: linear-gradient(180deg, rgba(180, 160, 140, 0.35) 0%, rgb(226 226 226 / 24%) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.wetheme-glass-category__title-wrap {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
}

.wetheme-glass-category__title {
    margin: 0;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 800;
    line-height: 1.35;
    color: #0B1F3A;
    text-align: center;
}

.wetheme-glass-category__title-wrap--has-star::after {
    content: '';
    position: absolute;
    top: -25px;
    right: -30px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    background-color: #0B1F3A;
    -webkit-mask-image: url(../images/glass-category-star.png);
    mask-image: url(../images/glass-category-star.png);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* Grid */
.wetheme-glass-category__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px;
    width: 75%;
}

.wetheme-glass-category__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease;
}

.wetheme-glass-category__item:hover {
    transform: translateY(-3px);
}

.wetheme-glass-category__glass-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wetheme-glass-category__glass-shadow {
    position: absolute;
    top: 92px;
    left: 50%;
    width: 62px;
    height: 34px;
    transform: translate(-50%, -42%);
    background-color: #dfc7aeb3;
    border-radius: 15px;
    pointer-events: none;
    z-index: 0;
}

/* Glass box — Figma: radius 35px, frost ~13px */
.wetheme-glass-category__glass {
    position: relative;
    z-index: 1;
    width: 102px;
    height: 102px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    border-radius: 35px;
    background-color: #e9d9c91c;
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: inset 4px 4px 7px rgb(153 153 153 / 17%);
    verflow: hidden;
    isolation: isolate;
}

.wetheme-glass-category__glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(255, 255, 255, 0) 60%
    );
    pointer-events: none;
    z-index: 1;
}

.wetheme-glass-category__glass img {
    position: relative;
    z-index: 2;
    width: auto;
    max-width: 100%;
    max-height: 78%;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.12));
}

.wetheme-glass-category__label {
    margin-top: 14px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #0B1F3A;
    text-align: center;
}

@media (max-width: 1024px) {
    .wetheme-glass-category__header {
        gap: 16px;
        margin-bottom: 28px;
    }

    .wetheme-glass-category__bg-text {
        font-size: clamp(40px, 8vw, 64px);
    }
}

@media (max-width: 767px) {
    .wetheme-glass-category {
        padding: 28px 12px;
    }

    .wetheme-glass-category__header {
        gap: 10px;
        margin-bottom: 22px;
    }

    .wetheme-glass-category__header-center {
        min-width: 0;
        padding: 4px 8px;
    }

    .wetheme-glass-category__header-line {
        min-width: 12px;
    }

    .wetheme-glass-category__grid {
        gap: 14px;
    }

    .wetheme-glass-category__label {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .wetheme-glass-category__grid {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        grid-template-columns: repeat(6, minmax(110px, 1fr)) !important;
    }

    .wetheme-glass-category__item {
        scroll-snap-align: start;
    }
}
