/* Shop index — category discovery grid */

.shop-index-section .shop-listing-main {
    padding-bottom: 3rem;
}

.shop-index-hero {
    align-items: flex-end;
    background: linear-gradient(135deg, rgba(68, 50, 151, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid #ececf3;
    border-radius: 22px;
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    padding: 1.5rem 1.65rem;
}

.shop-index-hero__eyebrow {
    color: #443297;
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.shop-index-hero__title {
    color: #101828;
    font-size: clamp(1.65rem, 2.4vw, 2.15rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 0.45rem;
}

.shop-index-hero__text {
    color: #667085;
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
    max-width: 38rem;
}

.shop-index-hero__stat {
    align-items: center;
    background: #443297;
    border-radius: 18px;
    color: #fff;
    display: inline-flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 0.15rem;
    justify-content: center;
    min-height: 84px;
    min-width: 84px;
    padding: 0.85rem 1rem;
    text-align: center;
}

.shop-index-hero__stat strong {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
}

.shop-index-hero__stat span {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.88;
    text-transform: uppercase;
}

.shop-index-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .shop-index-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .shop-index-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.shop-category-card {
    background: #fff;
    border: 1px solid #ececf3;
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(16, 24, 40, 0.05);
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.shop-category-card:hover,
.shop-category-card:focus-within {
    border-color: rgba(68, 50, 151, 0.22);
    box-shadow: 0 18px 40px rgba(68, 50, 151, 0.12);
    transform: translateY(-4px);
}

.shop-category-card__link {
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.shop-category-card__link:hover,
.shop-category-card__link:focus-visible {
    color: inherit;
    outline: none;
    text-decoration: none;
}

.shop-category-card__head {
    align-items: flex-start;
    background: linear-gradient(135deg, #443297 0%, #5b44b9 100%);
    border-bottom: 0;
    display: flex;
    gap: 0.85rem;
    justify-content: space-between;
    padding: 1rem 1.1rem;
    position: relative;
}

.shop-category-card__head::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0) 100%);
    bottom: 0;
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    right: 0;
}

.shop-category-card__identity {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
    min-width: 0;
}

.shop-category-card__icon {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.14);
    flex-shrink: 0;
    height: 56px;
    overflow: hidden;
    padding: 6px;
    width: 56px;
}

.shop-category-card__icon-image {
    background: #fff;
    border-radius: 10px;
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.shop-category-card__icon-fallback {
    align-items: center;
    background: #fff;
    border-radius: 10px;
    color: #443297;
    display: flex;
    font-size: 1.15rem;
    height: 100%;
    justify-content: center;
    opacity: 0.75;
    width: 100%;
}

.shop-category-card__meta {
    min-width: 0;
    padding-top: 0.15rem;
}

.shop-category-card__title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
}

.shop-category-card__tagline {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: rgba(255, 255, 255, 0.82);
    display: -webkit-box;
    font-size: 0.78rem;
    line-height: 1.45;
    margin: 0.25rem 0 0;
    overflow: hidden;
}

.shop-category-card__count {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 12px;
    color: #fff;
    display: inline-flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 0.05rem;
    line-height: 1.1;
    min-width: 64px;
    padding: 0.45rem 0.55rem;
    text-align: center;
}

.shop-category-card__count strong {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
}

.shop-category-card__count span {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.shop-category-card__showcase {
    background: linear-gradient(180deg, #faf9fd 0%, #ffffff 100%);
    padding: 0.95rem 1.1rem 1rem;
}

.shop-category-card__showcase-label {
    color: #98a2b3;
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
}

.shop-category-card__products {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-category-card__product {
    background: #fff;
    border: 1px solid #ececf3;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.04);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.shop-category-card:hover .shop-category-card__product,
.shop-category-card:focus-within .shop-category-card__product {
    border-color: #e4e7ef;
}

.shop-category-card:hover .shop-category-card__product:nth-child(1),
.shop-category-card:focus-within .shop-category-card__product:nth-child(1) {
    transform: translateY(-2px);
}

.shop-category-card:hover .shop-category-card__product:nth-child(2),
.shop-category-card:focus-within .shop-category-card__product:nth-child(2) {
    transform: translateY(-3px);
}

.shop-category-card:hover .shop-category-card__product:nth-child(3),
.shop-category-card:focus-within .shop-category-card__product:nth-child(3) {
    transform: translateY(-4px);
}

.shop-category-card:hover .shop-category-card__product:nth-child(4),
.shop-category-card:focus-within .shop-category-card__product:nth-child(4) {
    transform: translateY(-5px);
}

.shop-category-card__product-media {
    align-items: center;
    aspect-ratio: auto;
    background: linear-gradient(180deg, #faf9fd 0%, #ffffff 100%);
    display: flex;
    justify-content: center;
    min-height: 168px;
    overflow: hidden;
    padding: 0.75rem;
    position: relative;
}

.shop-category-card__product-image {
    display: block;
    height: auto;
    max-height: 150px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
    width: auto;
}

.shop-category-card__product-image-fallback {
    align-items: center;
    background: linear-gradient(180deg, #f8f7fc 0%, #fff 100%);
    border: 1px dashed #e4e7ec;
    border-radius: 12px;
    color: #443297;
    display: flex;
    font-size: 1.75rem;
    height: 150px;
    justify-content: center;
    opacity: 0.35;
    width: 100%;
}

.shop-category-card:hover .shop-category-card__product-image,
.shop-category-card:focus-within .shop-category-card__product-image {
    transform: scale(1.04);
}

.shop-category-card__product-badge {
    background: linear-gradient(135deg, #f97066 0%, #d92d20 100%);
    border-radius: 999px;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    left: 0.4rem;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.42rem;
    position: absolute;
    text-transform: uppercase;
    top: 0.4rem;
    z-index: 1;
}

.shop-category-card__product-title {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #344054;
    display: -webkit-box;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    min-height: 2.1rem;
    overflow: hidden;
    padding: 0.5rem 0.65rem 0;
}

.shop-category-card__product-price {
    color: #443297;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    padding: 0.25rem 0.65rem 0.65rem;
}

.shop-category-card__product-price span {
    color: #98a2b3;
    font-size: 0.62rem;
    font-weight: 600;
    margin-left: 0.15rem;
}

.shop-category-card__footer {
    border-top: 1px solid #f0f2f7;
    margin-top: auto;
    padding: 0.8rem 1.1rem 0.95rem;
}

.shop-category-card__cta {
    align-items: center;
    color: #443297;
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 700;
    gap: 0.45rem;
}

.shop-category-card__cta i {
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.shop-category-card:hover .shop-category-card__cta i,
.shop-category-card:focus-within .shop-category-card__cta i {
    transform: translateX(3px);
}

.shop-index-empty {
    align-items: center;
    background: #fff;
    border: 1px dashed #d0d5dd;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 3rem 1.5rem;
    text-align: center;
}

.shop-index-empty__icon {
    align-items: center;
    background: rgba(68, 50, 151, 0.08);
    border-radius: 999px;
    color: #443297;
    display: inline-flex;
    font-size: 1.35rem;
    height: 64px;
    justify-content: center;
    margin-bottom: 0.35rem;
    width: 64px;
}

.shop-index-empty h2 {
    color: #101828;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.shop-index-empty p {
    color: #667085;
    margin: 0 0 0.75rem;
    max-width: 28rem;
}

.shop-index-empty__btn {
    background: #443297;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    padding: 0.65rem 1.2rem;
    text-decoration: none;
}

/* Category detail hero */

.category-detail-hero {
    align-items: stretch;
    background: linear-gradient(135deg, rgba(68, 50, 151, 0.08) 0%, rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid #ececf3;
    border-radius: 22px;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
    margin-bottom: 1.5rem;
    overflow: hidden;
    padding: 1.25rem;
}

@media (min-width: 768px) {
    .category-detail-hero {
        grid-template-columns: 180px 1fr auto;
        padding: 1.35rem;
    }
}

.category-detail-hero__media {
    align-items: center;
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid #eef0f6;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    padding: 0.75rem;
}

.category-detail-hero__media img,
.category-detail-hero__media-image {
    display: block;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

.category-detail-hero__media-image--icon {
    max-height: 72%;
    max-width: 72%;
    width: auto;
    height: auto;
}

.category-detail-hero--brand .category-detail-hero__media {
    background: #fff;
    padding: 1rem;
}

.category-detail-hero--brand .category-detail-hero__media-fallback {
    background: #fff;
    border-radius: 12px;
    width: 100%;
}

.category-detail-hero__media-fallback {
    align-items: center;
    background: linear-gradient(145deg, rgba(68, 50, 151, 0.1) 0%, rgba(68, 50, 151, 0.04) 100%);
    border-radius: 14px;
    color: #443297;
    display: flex;
    font-size: 2.35rem;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.category-detail-hero__content {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    justify-content: center;
    min-width: 0;
}

.category-detail-hero__eyebrow {
    color: #443297;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-detail-hero__title {
    color: #101828;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
}

.category-detail-hero__desc {
    color: #667085;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

.category-detail-hero__stat {
    align-items: center;
    align-self: center;
    background: #443297;
    border-radius: 18px;
    color: #fff;
    display: inline-flex;
    flex-direction: column;
    gap: 0.15rem;
    justify-content: center;
    min-height: 84px;
    min-width: 84px;
    padding: 0.85rem 1rem;
    text-align: center;
}

.category-detail-hero__stat strong {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
}

.category-detail-hero__stat span {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.88;
    text-transform: uppercase;
}

.shop-listing-products--enhanced {
    --bs-gutter-x: 1.15rem;
    --bs-gutter-y: 1.15rem;
}

@media (max-width: 767.98px) {
    .shop-index-hero {
        align-items: flex-start;
        flex-direction: column;
    }
}
