.category-page {
    background: #f9f9ff;
    padding-top: 74px;
}

.category-detail-shell {
    color: #151c27;
}

.category-directory {
    background: #f9f9ff;
}

.category-directory__header {
    margin-bottom: 1.75rem;
    max-width: 760px;
}

.category-directory__breadcrumb {
    margin-bottom: 1rem;
}

.category-directory__breadcrumb .breadcrumb {
    font-size: 0.9rem;
}

.category-directory__breadcrumb .breadcrumb-item,
.category-directory__breadcrumb .breadcrumb-item a {
    color: #707974;
    font-weight: 600;
}

.category-directory__breadcrumb .breadcrumb-item a {
    text-decoration: none;
}

.category-directory__breadcrumb .breadcrumb-item a:hover,
.category-directory__breadcrumb .breadcrumb-item a:focus {
    color: #064e3b;
}

.category-directory__header-content {
    display: block;
}

.category-directory__eyebrow {
    color: #735c00;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
}

.category-directory__header h1 {
    color: #064e3b;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.category-directory__header p {
    color: #404944;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.category-directory__product-bar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.category-directory__product-bar h2 {
    color: #064e3b;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
}

.category-directory .product-card {
    border-radius: 8px;
}

.category-directory .product-card .card-body {
    border-top: 4px solid #064e3b;
}

.category-directory__empty {
    background: #fff;
    border: 1px dashed #bfc9c3;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.category-directory__empty h2,
.category-directory__section-heading h2,
.category-directory__cta h2 {
    color: #064e3b;
    font-weight: 800;
    letter-spacing: 0;
}

.category-directory__empty h2 {
    font-size: 1.35rem;
}

.category-directory__section {
    margin-top: 3rem;
}

.category-directory__section-heading {
    margin-bottom: 1.25rem;
    text-align: center;
}

.category-directory__section-heading h2 {
    font-size: 1.45rem;
    line-height: 1.35;
    margin-bottom: 0.55rem;
}

.category-directory__section-heading p {
    color: #6b7280;
    margin: 0;
}

.category-directory__table-wrap {
    background: #fff;
    border: 1px solid rgba(191, 201, 195, 0.65);
    border-radius: 8px;
}

.category-directory__table {
    border-collapse: separate;
    border-spacing: 0;
    color: #404944;
    min-width: 760px;
}

.category-directory__table thead th {
    background: #f0f3ff;
    border-bottom: 1px solid #bfc9c3;
    border-right: 1px solid #bfc9c3;
    color: #151c27;
    font-size: 0.86rem;
    font-weight: 800;
    padding: 1rem;
}

.category-directory__table thead th:last-child,
.category-directory__table tbody td:last-child {
    border-right: 0;
}

.category-directory__table tbody td {
    border-bottom: 1px solid rgba(191, 201, 195, 0.45);
    border-right: 1px solid rgba(191, 201, 195, 0.45);
    padding: 1rem;
    vertical-align: middle;
}

.category-directory__table tbody tr:last-child td {
    border-bottom: 0;
}

.category-directory__table tbody tr:hover {
    background: rgba(240, 243, 255, 0.55);
}

.category-directory__table a {
    color: #064e3b;
    font-weight: 800;
    text-decoration: none;
}

.category-directory__table-image {
    border-radius: 6px;
    height: 3.25rem;
    object-fit: cover;
    width: 4.75rem;
}

.category-directory__price {
    color: #064e3b;
    display: block;
    font-weight: 800;
}

.category-directory__old-price {
    color: #707974;
    display: block;
    font-size: 0.82rem;
    text-decoration: line-through;
}

.category-directory__gallery-item {
    background: transparent;
    border: 0;
    color: inherit;
    display: block;
    padding: 0;
    text-align: left;
    width: 100%;
}

.category-directory__testimonial-media {
    aspect-ratio: 4 / 3;
    background: #f0f3ff;
    border: 1px solid rgba(191, 201, 195, 0.55);
    border-radius: 8px;
    overflow: hidden;
}

.category-directory__testimonial-media img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 0.22s ease;
    width: 100%;
}

.category-directory__gallery-item:hover .category-directory__testimonial-media img,
.category-directory__gallery-item:focus .category-directory__testimonial-media img {
    transform: scale(1.04);
}

.category-directory__gallery-item:focus {
    outline: none;
}

.category-directory__gallery-item:focus .category-directory__testimonial-media {
    border-color: #064e3b;
    box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.14);
}

.category-directory__gallery-item p {
    color: #404944;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0.65rem 0 0;
}

body.home-gallery-open {
    overflow: hidden;
}

.home-gallery-viewer[hidden] {
    display: none !important;
}

.home-gallery-viewer {
    inset: 0;
    position: fixed;
    z-index: 1080;
}

.home-gallery-viewer__backdrop {
    background: rgba(15, 23, 42, 0.82);
    inset: 0;
    position: absolute;
}

.home-gallery-viewer__dialog {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    justify-content: center;
    margin: 0 auto;
    max-width: 1120px;
    padding: 1rem;
    position: relative;
}

.home-gallery-viewer__close,
.home-gallery-viewer__nav {
    background: rgba(255, 255, 255, 0.94);
    border: 0;
    border-radius: 999px;
    color: #151c27;
    cursor: pointer;
    line-height: 1;
}

.home-gallery-viewer__close {
    font-size: 2rem;
    height: 48px;
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 48px;
    z-index: 2;
}

.home-gallery-viewer__media {
    align-items: center;
    display: flex;
    justify-content: center;
    max-height: calc(100vh - 150px);
    position: relative;
    width: 100%;
}

.home-gallery-viewer__image {
    background: #fff;
    border-radius: 8px;
    max-height: calc(100vh - 170px);
    max-width: 100%;
    object-fit: contain;
}

.home-gallery-viewer__nav {
    font-size: 2.2rem;
    height: 52px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    z-index: 2;
}

.home-gallery-viewer__nav--prev {
    left: 0;
}

.home-gallery-viewer__nav--next {
    right: 0;
}

.home-gallery-viewer__footer {
    color: #fff;
    max-width: 760px;
    text-align: center;
}

.home-gallery-viewer__title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
}

.home-gallery-viewer__counter {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
}

.category-directory__cta {
    background: #e7eefe;
    border: 1px solid rgba(191, 201, 195, 0.5);
    border-radius: 8px;
    margin-top: 3rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.category-directory__cta h2 {
    font-size: 1.55rem;
    margin-bottom: 0.75rem;
}

.category-directory__cta p {
    color: #404944;
    margin: 0 auto 1.25rem;
    max-width: 560px;
}

.category-order-flow {
    background: #eef3f0;
    border-color: rgba(139, 195, 129, 0.45);
}

.category-order-flow__steps {
    align-items: center;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    margin: 2rem auto 2.25rem;
    max-width: 980px;
}

.category-order-flow__step {
    text-align: center;
}

.category-order-flow__number {
    align-items: center;
    background: #e1f3dc;
    border: 3px solid #8bc381;
    border-radius: 999px;
    color: #2f855a;
    display: inline-flex;
    font-size: 1.35rem;
    font-weight: 800;
    height: 74px;
    justify-content: center;
    margin-bottom: 1rem;
    width: 74px;
}

.category-order-flow__step strong,
.category-order-flow__step span:last-child {
    display: block;
}

.category-order-flow__step strong {
    color: #24303a;
    font-size: 0.98rem;
    font-weight: 800;
}

.category-order-flow__step span:last-child {
    color: #6b7280;
    font-size: 0.88rem;
    font-weight: 700;
    margin-top: 0.35rem;
}

.category-order-flow__arrow {
    color: #3b8a58;
    font-size: 1.9rem;
    margin-bottom: 2.2rem;
}

@media (max-width: 767.98px) {
    .category-directory__header {
        margin-bottom: 1.25rem;
    }

    .category-directory__header h1 {
        font-size: clamp(1.8rem, 8vw, 2.3rem);
    }

    .category-directory__header p {
        font-size: 0.98rem;
    }

    .category-directory__product-bar {
        margin-top: 1rem;
    }

    .home-gallery-viewer__dialog {
        padding: 0.75rem;
    }

    .home-gallery-viewer__nav {
        font-size: 1.8rem;
        height: 44px;
        width: 44px;
    }

    .home-gallery-viewer__nav--prev {
        left: 0.5rem;
    }

    .home-gallery-viewer__nav--next {
        right: 0.5rem;
    }

    .category-directory__section {
        margin-top: 2.25rem;
    }

    .category-directory__cta {
        padding: 2rem 1rem;
    }

    .category-order-flow__steps {
        gap: 1rem;
        grid-template-columns: 1fr;
        margin: 1.5rem auto 1.75rem;
    }

    .category-order-flow__arrow {
        display: none;
    }
}
