.syp-product-category-page .product-category-page__hero,
.syp-category-detail-page .product-category-page__hero {
    padding: 74px 0 64px;
    background-image: url('../frontend/images/resource/breadcumb.jpg');
}

.syp-product-category-page .product-category-page__hero-pattern,
.syp-category-detail-page .product-category-page__hero-pattern {
    background-image: url('../frontend/images/background/pattern-7.png');
}

.syp-product-category-page .syp-products-page,
.syp-category-detail-page .syp-products-page {
    padding: 36px 0 84px;
    background: #fff;
}

.syp-product-category-page .syp-products-page .auto-container,
.syp-category-detail-page .syp-products-page .auto-container {
    max-width: 1280px;
}

.syp-product-category-page .syp-products-intro {
    max-width: 760px;
    margin: 0 0 22px;
}

.syp-product-category-page .syp-products-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #6e8f61;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.syp-product-category-page .product-groups-heading {
    margin: 0 0 8px;
    color: #252f3f;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.08;
}

.syp-product-category-page .syp-products-intro p,
.syp-category-detail-page .syp-section-head p,
.syp-category-detail-page .syp-empty-state p,
.syp-product-category-page .syp-empty-state p {
    margin: 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.72;
}

.syp-product-category-page .syp-root-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.syp-product-category-page .syp-root-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .38fr) minmax(0, 1.32fr);
    min-height: 356px;
    overflow: hidden;
    border: 1px solid rgba(37, 47, 63, 0.06);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(38, 44, 56, 0.07);
    isolation: isolate;
}

.syp-product-category-page .syp-root-card.media-end {
    grid-template-columns: minmax(0, 1.52fr) minmax(0, .68fr);
}

.syp-product-category-page .syp-root-card.media-end .syp-root-card-media {
    order: 2;
}

.syp-product-category-page .syp-root-card.media-end .syp-root-card-copy {
    order: 1;
}

.syp-product-category-page .syp-root-card-surface,
.syp-category-detail-page .syp-product-card-surface {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.syp-category-detail-page .subcategory-slide-card__surface {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.syp-product-category-page .syp-root-card-media,
.syp-product-category-page .syp-root-card-copy,
.syp-category-detail-page .subcategory-slide-card__media,
.syp-category-detail-page .subcategory-slide-card__body,
.syp-category-detail-page .syp-product-image,
.syp-category-detail-page .syp-product-body {
    position: relative;
    z-index: 2;
}

.syp-product-category-page .root-category-card__media {
    min-height: 356px;
    overflow: hidden;
    background: linear-gradient(145deg, #f3f8ed 0%, #f8f6ef 100%);
}

.syp-product-category-page .root-category-card__media img,
.syp-product-category-page .syp-root-card-fallback {
    width: 100%;
    height: 100%;
}

.syp-product-category-page .root-category-card__media img {
    display: block;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
    box-shadow: none;
}

.syp-product-category-page .syp-root-card-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 28px;
    background: radial-gradient(circle at 20% 20%, rgba(123, 187, 99, 0.12), transparent 26%), linear-gradient(160deg, #f7fbf3 0%, #fbf8f0 100%);
    text-align: center;
}

.syp-product-category-page .syp-root-card-fallback-mark {
    color: #69a95a;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.syp-product-category-page .syp-root-card-fallback-icon {
    position: relative;
    width: 116px;
    height: 78px;
    border: 2px solid rgba(83, 106, 79, 0.32);
    border-radius: 16px 16px 20px 20px;
    background: rgba(255, 255, 255, 0.44);
}

.syp-product-category-page .syp-root-card-fallback-icon::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -18px;
    width: 52px;
    height: 20px;
    border: 2px solid rgba(83, 106, 79, 0.32);
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    transform: translateX(-50%);
}

.syp-product-category-page .syp-root-card-fallback-title {
    max-width: 280px;
    color: #2b3342;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.24;
}

.syp-product-category-page .root-category-card__content {
    display: flex;
    align-items: center;
    padding: 30px 38px;
    background: #fff;
}

.syp-product-category-page .syp-root-card-copy-inner {
    max-width: 500px;
}

.syp-product-category-page .root-category-card__title {
    display: -webkit-box;
    margin: 0 0 12px;
    overflow: hidden;
    color: #252f3f;
    font-size: clamp(28px, 2.3vw, 36px);
    font-weight: 700;
    line-height: 1.12;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.syp-product-category-page .syp-root-card-desc {
    display: -webkit-box;
    margin: 0 0 18px;
    overflow: hidden;
    color: #667085;
    font-size: 15px;
    line-height: 1.72;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.syp-product-category-page .syp-root-card-desc.is-empty {
    display: none;
}

.syp-product-category-page .syp-root-card-action {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 10px;
    background: #78b85f;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: background-color .25s ease, transform .25s ease;
}

.syp-product-category-page .syp-root-card-action::after {
    content: '\2192';
    font-size: 16px;
    line-height: 1;
}

.syp-product-category-page .syp-root-card:hover .syp-root-card-action {
    background: #649f4d;
    transform: translateX(2px);
}

.syp-product-category-page .syp-empty-state,
.syp-category-detail-page .syp-empty-state {
    padding: 48px 36px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(38, 44, 56, 0.06);
    text-align: center;
}

.syp-category-detail-page .syp-products-page--category-detail {
    padding-top: 24px;
}

.syp-category-detail-page .syp-section-head {
    max-width: 640px;
    margin: 0 0 24px;
}

.syp-category-detail-page .syp-section-head--slider {
    margin-bottom: 18px;
}

.syp-category-detail-page .syp-section-head--products {
    max-width: 640px;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.syp-category-detail-page .syp-section-head--products p {
    max-width: none;
}

.syp-category-detail-page .syp-section-head.with-gap {
    margin-top: 48px;
}

.syp-category-detail-page .subcategory-section__title,
.syp-category-detail-page .category-products-section__title {
    margin: 0 0 10px;
    color: #252f3f;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
}

.syp-category-detail-page .subcategory-slider-block {
    position: relative;
    margin-bottom: 10px;
}

.syp-category-detail-page .subcategory-swiper {
    overflow: hidden;
}

.syp-category-detail-page .subcategory-slider-block.is-static .subcategory-swiper {
    overflow: visible;
}

.syp-category-detail-page .subcategory-slider-block.is-static .swiper-wrapper {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 190px;
    gap: 16px;
    justify-content: flex-start;
    align-items: start;
    transform: none !important;
}

.syp-category-detail-page .subcategory-slider-block.is-static .swiper-slide {
    width: 190px !important;
    margin-right: 0 !important;
}

.syp-category-detail-page .subcategory-slider-nav {
    position: absolute;
    top: 42%;
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(38, 44, 56, 0.12);
    transition: transform .25s ease, opacity .25s ease;
}

.syp-category-detail-page .subcategory-slider-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 10px;
    height: 10px;
    border-top: 2px solid #4f5c52;
    border-right: 2px solid #4f5c52;
}

.syp-category-detail-page .subcategory-slider-nav--prev {
    left: -18px;
}

.syp-category-detail-page .subcategory-slider-nav--prev::before {
    transform: rotate(-135deg);
}

.syp-category-detail-page .subcategory-slider-nav--next {
    right: -18px;
}

.syp-category-detail-page .subcategory-slider-nav--next::before {
    transform: rotate(45deg);
}

.syp-category-detail-page .subcategory-slider-nav:hover {
    transform: scale(1.04);
}

.syp-category-detail-page .subcategory-slider-nav.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}

.syp-category-detail-page .subcategory-slide-card {
    position: relative;
}

.syp-category-detail-page .subcategory-slide-card__media {
    overflow: hidden;
    width: 190px;
    height: 190px;
    border-radius: 16px;
    background: linear-gradient(145deg, #f4f8ee 0%, #faf7ef 100%);
    box-shadow: 0 10px 22px rgba(38, 44, 56, 0.07);
}

.syp-category-detail-page .subcategory-slide-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
}

.syp-category-detail-page .subcategory-slide-card:hover .subcategory-slide-card__media img {
    transform: scale(1.03);
}

.syp-category-detail-page .subcategory-slide-card__fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 18% 18%, rgba(123, 187, 99, 0.14), transparent 24%), linear-gradient(160deg, #f7fbf3 0%, #fbf8f0 100%);
}

.syp-category-detail-page .subcategory-slide-card__mark {
    color: #6ba95b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
}

.syp-category-detail-page .subcategory-slide-card__icon {
    position: relative;
    width: 60px;
    height: 40px;
    border: 2px solid rgba(83, 106, 79, 0.26);
    border-radius: 12px 12px 16px 16px;
}

.syp-category-detail-page .subcategory-slide-card__icon::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -14px;
    width: 28px;
    height: 14px;
    border: 2px solid rgba(83, 106, 79, 0.26);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    transform: translateX(-50%);
}

.syp-category-detail-page .subcategory-slide-card__body {
    width: 190px;
    padding: 10px 2px 0;
}

.syp-category-detail-page .subcategory-card__title {
    display: block;
    width: 100%;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
    color: #252f3f;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    transition: transform .2s ease, color .2s ease;
}

.syp-category-detail-page .subcategory-slide-card:hover .subcategory-card__title {
    transform: translateX(2px);
    color: #1f2d45;
}

.syp-category-detail-page .syp-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.syp-category-detail-page .syp-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(37, 47, 63, 0.06);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(38, 44, 56, 0.08);
    transition: transform .24s ease, box-shadow .24s ease;
}

.syp-category-detail-page .syp-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 42px rgba(38, 44, 56, 0.12);
}

.syp-category-detail-page .syp-product-image {
    display: block;
    height: 255px;
    overflow: hidden;
    background: linear-gradient(145deg, #f1f6eb 0%, #f8f4ea 100%);
}

.syp-category-detail-page .syp-product-image img,
.syp-category-detail-page .syp-product-image-fallback {
    width: 100%;
    height: 100%;
}

.syp-category-detail-page .syp-product-image img {
    display: block;
    object-fit: cover;
    object-position: center;
}

.syp-category-detail-page .syp-product-image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    color: #2b3342;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    background: radial-gradient(circle at 20% 20%, rgba(123, 187, 99, 0.14), transparent 26%), linear-gradient(160deg, #f4f8ee 0%, #f8f3e5 100%);
}

.syp-category-detail-page .syp-product-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 20px 22px;
}

.syp-category-detail-page .product-card__title {
    display: -webkit-box;
    min-height: 76px;
    max-height: 76px;
    margin: 0;
    overflow: hidden;
    color: #252f3f;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.32;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.syp-category-detail-page .syp-product-desc {
    display: -webkit-box;
    min-height: 60px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #667085;
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.syp-category-detail-page .syp-product-link {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: #69a95a;
    font-size: 14px;
    font-weight: 600;
}

.syp-category-detail-page .syp-product-link::after {
    content: '\2192';
    font-size: 15px;
}

@media (max-width: 1199px) {
    .syp-product-category-page .syp-root-card,
    .syp-product-category-page .syp-root-card.media-end {
        grid-template-columns: 1fr;
    }

    .syp-product-category-page .syp-root-card.media-end .syp-root-card-media,
    .syp-product-category-page .syp-root-card.media-end .syp-root-card-copy {
        order: initial;
    }

    .syp-category-detail-page .syp-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .syp-category-detail-page .subcategory-slider-nav--prev {
        left: -10px;
    }

    .syp-category-detail-page .subcategory-slider-nav--next {
        right: -10px;
    }
}

@media (max-width: 991px) {
    .syp-product-category-page .product-category-page__hero,
    .syp-category-detail-page .product-category-page__hero {
        padding: 68px 0 58px;
    }

    .syp-product-category-page .syp-products-page,
    .syp-category-detail-page .syp-products-page {
        padding: 32px 0 72px;
    }

    .syp-product-category-page .root-category-card__media {
        min-height: 292px;
    }

    .syp-product-category-page .root-category-card__content {
        padding: 28px 28px 32px;
    }

    .syp-category-detail-page .syp-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .syp-product-category-page .syp-products-intro,
    .syp-category-detail-page .syp-section-head {
        margin-bottom: 20px;
    }

    .syp-product-category-page .product-groups-heading {
        font-size: 28px;
    }

    .syp-category-detail-page .subcategory-section__title,
    .syp-category-detail-page .category-products-section__title {
        font-size: 24px;
    }

    .syp-product-category-page .root-category-card__media {
        min-height: 236px;
    }

    .syp-product-category-page .root-category-card__content {
        padding: 24px 22px 26px;
    }

    .syp-product-category-page .root-category-card__title {
        font-size: 24px;
    }

    .syp-category-detail-page .subcategory-slider-block.is-static .swiper-wrapper {
        grid-auto-columns: 160px;
        gap: 14px;
    }

    .syp-category-detail-page .subcategory-slider-block.is-static .swiper-slide,
    .syp-category-detail-page .subcategory-slide-card__media,
    .syp-category-detail-page .subcategory-slide-card__body {
        width: 160px !important;
    }

    .syp-category-detail-page .subcategory-slide-card__media {
        height: 160px;
    }

    .syp-category-detail-page .syp-product-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .syp-category-detail-page .syp-product-image {
        height: 224px;
    }

    .syp-category-detail-page .product-card__title {
        min-height: 0;
        max-height: none;
        font-size: 17px;
    }

    .syp-category-detail-page .syp-product-desc {
        min-height: 0;
        -webkit-line-clamp: 2;
    }
}

.product-category-preview-page {
    background:
        radial-gradient(circle at top left, rgba(130, 204, 103, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fbf7 100%);
    color: #1f3154;
    padding: 48px 0 80px;
}

.product-category-preview-page__intro {
    margin-bottom: 28px;
}

.product-category-preview-page__intro-copy {
    max-width: 720px;
}

.product-category-preview-page__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #76b857;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.product-category-preview-page__eyebrow::before {
    content: "";
    width: 38px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #76b857 0%, #c9efd8 100%);
}

.product-category-preview-page__intro-copy h1 {
    margin: 0 0 14px;
    color: #203255;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.06;
}

.product-category-preview-page__intro-copy p {
    max-width: 620px;
    margin: 0;
    color: #60708f;
    font-size: 15px;
    line-height: 1.7;
}

.product-category-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.product-category-preview-card {
    position: relative;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 236px;
    overflow: hidden;
    border: 1px solid rgba(195, 214, 200, 0.7);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(207, 241, 207, 0.38), transparent 30%),
        #fff;
    box-shadow: 0 24px 48px rgba(31, 49, 84, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-category-preview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(118, 184, 87, 0.45);
    box-shadow: 0 28px 56px rgba(31, 49, 84, 0.12);
}

.product-category-preview-card__surface {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.product-category-preview-card__media {
    position: relative;
    min-height: 236px;
    overflow: hidden;
    background: #eef5ea;
}

.product-category-preview-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.product-category-preview-card__fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background:
        radial-gradient(circle at top left, rgba(190, 238, 195, 0.75), transparent 30%),
        linear-gradient(180deg, #fbfcf3 0%, #f4f2e4 100%);
}

.product-category-preview-card__fallback-mark {
    color: #76b857;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.product-category-preview-card__fallback-icon {
    width: 84px;
    height: 62px;
    border: 2px solid rgba(31, 49, 84, 0.18);
    border-radius: 20px;
    position: relative;
}

.product-category-preview-card__fallback-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -18px;
    width: 34px;
    height: 22px;
    border: 2px solid rgba(31, 49, 84, 0.18);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    transform: translateX(-50%);
}

.product-category-preview-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 24px 26px;
}

.product-category-preview-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-category-preview-card__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f4f8f1;
    color: #6e7f9e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.product-category-preview-card__title {
    margin: 0;
    color: #203255;
    font-size: clamp(24px, 1.7vw, 34px);
    font-weight: 800;
    line-height: 1.12;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.product-category-preview-card__desc {
    margin: 0;
    max-width: 44ch;
    color: #627390;
    font-size: 15px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.product-category-preview-card__desc.is-empty {
    color: #8d9ab2;
}

.product-category-preview-card__actions {
    display: flex;
    align-items: center;
}

.product-category-preview-card__button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #76b857 0%, #6aab4e 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 16px 32px rgba(118, 184, 87, 0.25);
}

.product-category-preview-card__button::after {
    content: "\2192";
    font-size: 18px;
    line-height: 1;
}

.product-category-preview-empty {
    grid-column: 1 / -1;
    padding: 44px;
    border: 1px solid rgba(195, 214, 200, 0.7);
    border-radius: 28px;
    background: #fff;
    text-align: center;
    box-shadow: 0 24px 48px rgba(31, 49, 84, 0.08);
}

.product-category-preview-empty h2 {
    margin: 0 0 12px;
    color: #203255;
    font-size: 28px;
    font-weight: 800;
}

.product-category-preview-empty p {
    margin: 0;
    color: #60708f;
    font-size: 16px;
    line-height: 1.7;
}

@media (max-width: 1199px) {
    .product-category-preview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .product-category-preview-page {
        padding: 32px 0 56px;
    }

    .product-category-preview-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .product-category-preview-card__media {
        min-height: 240px;
    }

    .product-category-preview-card__content {
        padding: 20px;
    }

    .product-category-preview-card__title {
        font-size: 24px;
    }

    .product-category-preview-page__intro-copy p {
        font-size: 15px;
    }
}
