/* Category products page — Cello-style shop layout */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

body.page-products .category-shop {
    background: #f5f5f5;
    color: #1a1a1a;
}

body.page-products .category-shop * {
    box-sizing: border-box;
}

/* Hero banner — removed; category uses breadcrumb header instead */
.category-shop-hero {
    display: none !important;
}

/* Category / product breadcrumb with banner background + photo */
body.page-products .category-breadcrumb,
body.page-product-detail .category-breadcrumb {
    position: relative;
    margin-top: 76px;
    padding: 48px 0;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-bottom: 0;
    overflow: hidden;
}

body.page-products .category-breadcrumb__overlay,
body.page-product-detail .category-breadcrumb__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        90deg,
        rgba(12, 10, 8, 0.82) 0%,
        rgba(12, 10, 8, 0.55) 55%,
        rgba(12, 10, 8, 0.4) 100%
    );
    pointer-events: none;
}

body.page-products .category-breadcrumb .container,
body.page-product-detail .category-breadcrumb .container {
    position: relative;
    z-index: 1;
}

body.page-products .category-breadcrumb__wrap,
body.page-product-detail .category-breadcrumb__wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

body.page-products .category-breadcrumb__photo,
body.page-product-detail .category-breadcrumb__photo {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

body.page-products .category-breadcrumb__photo img,
body.page-product-detail .category-breadcrumb__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

body.page-products .category-breadcrumb__content,
body.page-product-detail .category-breadcrumb__content {
    flex: 1 1 auto;
    min-width: 0;
}

body.page-products .category-breadcrumb .page-breadcrumb a,
body.page-product-detail .category-breadcrumb .page-breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
}

body.page-products .category-breadcrumb .page-breadcrumb a:hover,
body.page-product-detail .category-breadcrumb .page-breadcrumb a:hover {
    color: #fff;
}

body.page-products .category-breadcrumb .page-breadcrumb .current,
body.page-product-detail .category-breadcrumb .page-breadcrumb .current,
body.page-products .category-breadcrumb .banner-title,
body.page-product-detail .category-breadcrumb .banner-title {
    color: #fff;
}

body.page-products .category-breadcrumb .banner-title,
body.page-product-detail .category-breadcrumb .banner-title {
    margin-top: 6px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

@media (max-width: 575px) {
    body.page-products .category-breadcrumb,
    body.page-product-detail .category-breadcrumb {
        padding: 28px 0;
    }

    body.page-products .category-breadcrumb__photo,
    body.page-product-detail .category-breadcrumb__photo {
        width: 120px;
        height: 120px;
        border-radius: 10px;
    }

    body.page-products .category-breadcrumb__wrap,
    body.page-product-detail .category-breadcrumb__wrap {
        gap: 14px;
    }

    body.page-products .category-breadcrumb .banner-title,
    body.page-product-detail .category-breadcrumb .banner-title {
        font-size: 22px;
    }
}

/* Horizontal category nav */
.category-shop-nav {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
    border-bottom: 1px solid #ebebeb;
    padding: 28px 0 22px;
    overflow: hidden;
}

.category-shop-nav::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: min(420px, 70%);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 160, 82, 0.55), transparent);
}

.category-shop-nav__scroll {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 18px 22px;
    overflow-x: auto;
    padding: 6px 18px 4px;
    max-width: 1180px;
    margin: 0 auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.category-shop-nav__scroll::-webkit-scrollbar {
    display: none;
}

.category-shop-nav__item {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 96px;
    max-width: 118px;
    padding: 4px 2px 8px;
    text-decoration: none;
    color: #555;
    transition: color 0.25s ease, transform 0.25s ease;
}

.category-shop-nav__item:hover {
    color: #111;
    text-decoration: none;
    transform: translateY(-3px);
}

.category-shop-nav__item.is-active {
    color: #111;
}

.category-shop-nav__icon {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ececec;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(20, 16, 12, 0.08);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.category-shop-nav__icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
    pointer-events: none;
}

.category-shop-nav__item:hover .category-shop-nav__icon {
    border-color: #c4a052;
    box-shadow: 0 12px 28px rgba(196, 160, 82, 0.22);
    transform: scale(1.04);
}

.category-shop-nav__item.is-active .category-shop-nav__icon {
    border-color: #1a1a1a;
    border-width: 2.5px;
    box-shadow:
        0 0 0 4px rgba(26, 26, 26, 0.06),
        0 12px 28px rgba(20, 16, 12, 0.14);
}

.category-shop-nav__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.category-shop-nav__item:hover .category-shop-nav__icon img {
    transform: scale(1.08);
}

.category-shop-nav__label {
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    line-height: 1.35;
    letter-spacing: 0.01em;
    min-height: 2.7em;
}

.category-shop-nav__item.is-active .category-shop-nav__label::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    margin: 8px auto 0;
    border-radius: 50%;
    background: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.12);
}

/* Main shop layout */
.category-shop__body {
    max-width: 1140px;
    margin: 0 auto;
    padding: 28px 15px 56px;
}

.category-shop-main {
    width: 100%;
}

/* Main shop layout */
.category-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    text-align: center;
}

.category-shop-toolbar__count {
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin: 0;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Product grid */
.category-shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.category-product-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.category-product-card:hover {
    border-color: #ddd;
    box-shadow: 0 14px 36px rgba(20, 16, 12, 0.12);
    transform: translateY(-4px);
}

.category-product-card__media {
    position: relative;
    background-color: #f0f0f0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 334px;
    display: block;
}

.category-product-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 13px;
}

.category-product-card__thumbs {
    display: flex;
    gap: 6px;
    padding: 10px 14px 0;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.category-product-card__thumbs--empty {
    min-height: 80px;
}

.category-product-card__thumb {
    width: 70px;
    height: 70px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 3px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
}

.category-product-card__thumb.is-active {
    border-color: #1a1a1a;
}

.category-product-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-product-card__body {
    padding: 0;
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
}

.category-product-card__name-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 18px 18px;
    text-decoration: none;
    text-align: center;
    background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
    border-top: 1px solid #e8e8e8;
    transition: background 0.25s ease, box-shadow 0.25s ease;
    min-height: 88px;
}

.category-product-card:hover .category-product-card__name-link {
    background: linear-gradient(180deg, #fff 0%, #f5f5f5 100%);
    box-shadow: inset 0 2px 0 #1a1a1a;
}

.category-product-card__name-accent {
    display: block;
    width: 32px;
    height: 3px;
    background: #1a1a1a;
    border-radius: 2px;
    margin-bottom: 10px;
    transition: width 0.3s ease;
}

.category-product-card:hover .category-product-card__name-accent {
    width: 52px;
}

.category-product-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    margin: 0;
    letter-spacing: 0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.category-product-card:hover .category-product-card__title {
    color: #000;
}

.category-product-card__price {
    font-size: 14px;
    color: #333;
    margin: 0 0 14px;
}

.category-product-card__price strong {
    font-weight: 700;
}

.category-product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px 16px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.category-product-card__link {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.category-product-card__link:hover {
    color: #000;
}

.category-product-card__status {
    font-size: 12px;
    font-weight: 500;
    color: #2e7d32;
}

.category-shop-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    background: #fff;
    border: 1px dashed #ddd;
    border-radius: 8px;
    color: #666;
}

/* All categories landing (no category selected) */
.products-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.products-category-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.products-category-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
    text-decoration: none;
}

.products-category-card__img {
    height: 200px;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #eee;
}

.products-category-card__body {
    padding: 16px 18px 20px;
}

.products-category-card__title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px;
}

.products-category-card__meta {
    font-size: 13px;
    color: #666;
    margin: 0;
}

@media (max-width: 991px) {
    .category-shop-grid,
    .products-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .category-shop-nav {
        padding: 20px 0 16px;
    }

    .category-shop-nav__scroll {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 14px;
        padding: 4px 14px 8px;
    }

    .category-shop-nav__item {
        min-width: 78px;
        max-width: 88px;
        gap: 8px;
    }

    .category-shop-nav__icon {
        width: 68px;
        height: 68px;
    }

    .category-shop-nav__label {
        font-size: 11px;
        min-height: 2.6em;
    }

    .category-shop-grid,
    .products-categories-grid {
        grid-template-columns: 1fr;
    }
}
