/* Product page width system */
.product-category-showcase > .container,
.printer-products-area > .container {
    width: min(1320px, calc(100% - 30px));
    max-width: none;
    padding-inline: 0;
}

/* Product hero banner slider */
.product-hero-slider-area {
    overflow: hidden;
    padding: 10px 10px 0;
    background: var(--ztm-neutral, #eef2f6);
}

.product-hero-slider-area .hero-slider-active-1 {
    margin-bottom: 0;
    overflow: hidden;
    border: 1px solid var(--ztm-border, #dce5e8);
    border-radius: 14px;
    background: var(--ztm-surface, #ffffff);
    box-shadow: 0 14px 34px rgba(34, 49, 63, 0.08);
}

.product-hero-slider-area .hero-slider-active-1:not(.slick-initialized) .product-hero-slide {
    display: none;
}

.product-hero-slider-area .hero-slider-active-1:not(.slick-initialized) .product-hero-slide:first-child {
    display: block;
}

.product-hero-slide,
.product-hero-banner-link {
    display: block;
    width: 100%;
    background: var(--ztm-surface, #ffffff);
}

.product-hero-banner-link img {
    display: block;
    width: 100%;
    height: auto;
}

.product-hero-slider-area .slider-icon-1-prev,
.product-hero-slider-area .slider-icon-1-next {
    display: none !important;
}

.product-hero-slider-area .slick-dots {
    bottom: 18px;
}

.product-hero-slider-area .slick-dots li {
    width: auto;
    height: auto;
    margin: 0 4px;
}

.product-hero-slider-area .slick-dots li button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid var(--ztm-primary, #3e6b89);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    font-size: 0;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.product-hero-slider-area .slick-dots li button::before {
    display: none;
}

.product-hero-slider-area .slick-dots li.slick-active button {
    width: 26px;
    background: var(--ztm-primary, #3e6b89);
}

/* Home-inspired product category section */
.product-category-showcase {
    padding: 94px 0 98px !important;
    background:
        radial-gradient(circle at 7% 10%, rgba(108, 180, 184, 0.12), transparent 24%),
        linear-gradient(180deg, #f8fbfb 0%, var(--ztm-neutral, #eef2f6) 100%);
}

.product-category-layout {
    display: grid;
    grid-template-columns: minmax(230px, 255px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 3.4vw, 52px);
}

.product-category-heading {
    min-width: 0;
    margin: 0;
    text-align: left;
}

.product-category-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--ztm-primary, #3e6b89);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.product-category-eyebrow::before {
    width: 22px;
    height: 2px;
    border-radius: 99px;
    background: var(--ztm-accent, #6cb4b8);
    content: "";
}

.product-category-heading h2 {
    margin: 0 0 17px;
    color: var(--ztm-text, #22313f);
    font-size: clamp(34px, 3.2vw, 48px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.product-category-heading p {
    margin: 0;
    color: var(--ztm-muted, #657485);
    font-size: 14px;
    line-height: 1.75;
}

.product-category-overview-link {
    display: inline-flex;
    min-height: 46px;
    margin-top: 27px;
    padding: 9px 19px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--ztm-primary, #3e6b89);
    border-radius: 999px;
    color: var(--ztm-primary-dark, #294f68);
    font-size: 13px;
    font-weight: 800;
    transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.product-category-overview-link:hover {
    transform: translateY(-2px);
    background: var(--ztm-primary, #3e6b89);
    color: #ffffff;
}

.printer-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.printer-category-item {
    min-width: 0;
}

.product-category-showcase .printer-category-card {
    position: relative;
    display: flex;
    min-height: 394px;
    height: 100%;
    margin: 0 !important;
    padding: 0 16px 18px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ztm-border, #dce5e8);
    border-radius: 24px;
    background: var(--ztm-surface, #ffffff);
    box-shadow: var(--ztm-shadow, 0 16px 42px rgba(34, 49, 63, 0.09));
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.product-category-showcase .printer-category-card:hover,
.product-category-showcase .printer-category-card.active-filter-card {
    border-color: var(--ztm-accent, #6cb4b8);
    box-shadow: 0 22px 48px rgba(34, 49, 63, 0.15);
    transform: translateY(-6px);
}

.product-category-showcase .printer-category-card .product-img {
    position: relative;
    display: flex;
    min-height: 230px;
    margin: 0 -16px !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 23px 23px 0 0;
    background: linear-gradient(145deg, var(--ztm-accent, #6cb4b8), var(--ztm-primary, #3e6b89));
}

.product-category-showcase .printer-category-card:nth-child(even) .product-img {
    background: linear-gradient(145deg, var(--ztm-primary, #3e6b89), var(--ztm-accent, #6cb4b8));
}

.product-category-showcase .printer-category-card .product-img::after {
    position: absolute;
    right: -12%;
    bottom: -68px;
    left: -12%;
    height: 116px;
    border-radius: 50% 50% 0 0;
    background: var(--ztm-surface, #ffffff);
    content: "";
}

.product-category-showcase .printer-category-card .product-img a {
    display: flex;
    width: 100%;
    min-height: 230px;
    align-items: center;
    justify-content: center;
}

.product-category-showcase .printer-category-card .product-img img {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: 82%;
    max-height: 178px;
    object-fit: contain;
    filter: drop-shadow(0 17px 15px rgba(24, 45, 58, 0.24));
    transition: transform 0.3s ease;
}

.product-category-showcase .printer-category-card:hover .product-img img {
    transform: translateY(-4px) scale(1.055);
}

.product-category-showcase .printer-category-card .product-content-2 {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1;
    margin-top: -28px;
    padding: 26px 10px 0;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 24px 24px 0 0;
    background: var(--ztm-surface, #ffffff);
    text-align: left !important;
}

.product-category-showcase .printer-category-card .product-content-2 h3 {
    width: 100%;
    margin: 0 0 10px;
}

.product-category-showcase .printer-category-card .product-content-2 h3 a,
.product-category-showcase .printer-category-card .product-content-2 h3 span {
    color: var(--ztm-text, #22313f);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: none;
}

.product-category-showcase .printer-category-card .product-content-2 p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0;
    overflow: hidden;
    color: var(--ztm-muted, #657485);
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.printer-category-link {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin-top: 14px;
    padding: 7px 6px 7px 11px;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    border: 1px solid rgba(62, 107, 137, 0.2);
    border-radius: 999px;
    background: var(--ztm-accent-soft, #d9eeee);
    color: var(--ztm-text, #22313f);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.15;
    white-space: nowrap;
    transition: background 0.22s ease, transform 0.22s ease;
}

.printer-category-link i {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    place-items: center;
    border-radius: 50%;
    background: var(--ztm-primary, #3e6b89);
    color: #ffffff;
    transition: background-color 0.22s ease, transform 0.22s ease;
}

.printer-category-link:hover,
.active-filter-card .printer-category-link {
    border-color: var(--ztm-accent, #6cb4b8);
    background: var(--ztm-accent, #6cb4b8);
    color: var(--ztm-text, #22313f);
}

.printer-category-link:hover i,
.active-filter-card .printer-category-link i {
    background: var(--ztm-primary-dark, #294f68);
    transform: translateX(2px);
}

/* Product collection heading */
.printer-products-area {
    padding: 88px 0 96px !important;
    background: #f7fafb;
}

.product-collection-heading {
    position: relative;
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr);
    min-height: 168px;
    margin-bottom: 42px;
    padding: 14px;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    border: 1px solid var(--ztm-border, #dce5e8);
    border-radius: 26px;
    background:
        radial-gradient(circle at 94% 15%, rgba(108, 180, 184, 0.16), transparent 25%),
        var(--ztm-surface, #ffffff);
    box-shadow: 0 14px 34px rgba(34, 49, 63, 0.07);
}

.product-collection-heading::before {
    position: absolute;
    top: 0;
    right: 30px;
    bottom: -52px;
    left: auto;
    width: 145px;
    height: 145px;
    border-radius: 50%;
    background: rgba(108, 180, 184, 0.08);
    content: "";
}

.product-collection-heading__copy {
    position: relative;
    z-index: 1;
    grid-column: 2;
    grid-row: 1;
    padding: 18px 24px;
}

.product-collection-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--ztm-primary, #3e6b89);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.product-collection-heading h2 {
    margin: 0 0 7px;
    color: var(--ztm-text, #22313f);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
}

.product-collection-heading h2 span {
    color: var(--ztm-primary, #3e6b89);
}

.product-collection-heading p {
    margin: 0;
    color: var(--ztm-muted, #657485);
    font-size: 14px;
    line-height: 1.6;
}

.product-collection-count {
    position: relative;
    z-index: 1;
    display: flex;
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 138px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 19px;
    background: linear-gradient(145deg, var(--ztm-primary, #3e6b89), var(--ztm-primary-dark, #294f68));
    box-shadow: 0 12px 25px rgba(41, 79, 104, 0.22);
}

.product-collection-count strong {
    color: #ffffff;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.product-collection-count span {
    margin-top: 6px;
    color: var(--ztm-accent-soft, #d9eeee);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Dynamic product card grid */
.printer-products-area .row {
    row-gap: 22px;
}

.printer-products-area .row > [class*="col-"] {
    display: flex;
}

.theme-product-card {
    position: relative;
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 482px;
    height: auto;
    margin: 0 !important;
    padding: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ztm-border, #dce5e8);
    border-radius: 24px;
    background: var(--ztm-surface, #ffffff);
    box-shadow: 0 12px 30px rgba(34, 49, 63, 0.08);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.theme-product-card:hover {
    border-color: var(--ztm-accent, #6cb4b8);
    box-shadow: 0 20px 42px rgba(34, 49, 63, 0.14);
    transform: translateY(-5px);
}

.theme-product-card .product-img {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 260px;
    height: 260px;
    margin: 0 !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0;
    border-radius: 23px 23px 56px 23px;
    background: var(--ztm-highlight, #e9f4f1);
}

.theme-product-card .product-img a {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.theme-product-card .product-img img {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: 92%;
    max-height: 216px;
    object-fit: contain;
    filter: drop-shadow(0 9px 10px rgba(34, 49, 63, 0.13));
    transition: transform 0.3s ease;
}

.theme-product-card:hover .product-img img {
    transform: scale(1.045);
}

.printer-product-image-missing {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    min-height: 190px;
    padding: 18px;
    align-items: center;
    justify-content: center;
    color: var(--ztm-muted, #657485);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    overflow-wrap: anywhere;
}

.theme-product-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    padding: 18px 20px 20px;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    opacity: 1 !important;
    visibility: visible !important;
}

.single-product-wrap.theme-product-card:hover .theme-product-card__content {
    opacity: 1 !important;
    visibility: visible !important;
}

.theme-product-card .printer-product-category {
    width: fit-content;
    max-width: 100%;
    margin: 0 0 9px;
    padding: 4px 10px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--ztm-accent-soft, #d9eeee);
    color: var(--ztm-primary-dark, #294f68);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.theme-product-card .theme-product-card__content h3 {
    width: 100%;
    min-height: 45px;
    margin: 0 0 12px;
}

.theme-product-card .theme-product-card__content h3 a {
    display: -webkit-box;
    min-height: 45px;
    overflow: hidden;
    color: var(--ztm-text, #22313f);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.38;
    text-align: left;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.theme-product-card:hover .theme-product-card__content h3 a {
    color: var(--ztm-primary, #3e6b89);
}

.theme-product-card .printer-product-price-stock {
    display: flex;
    width: 100%;
    min-height: 30px;
    margin: 0 0 15px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 9px;
}

.theme-product-card .product-price-2 span:first-child {
    color: var(--ztm-primary, #3e6b89);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
}

.theme-product-card .printer-stock-badge {
    display: inline-flex;
    min-height: 26px;
    padding: 4px 10px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: var(--ztm-accent-soft, #d9eeee);
    color: var(--ztm-primary-dark, #294f68);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.theme-product-card .printer-stock-badge::before {
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.theme-product-card .printer-stock-badge.is-unavailable {
    background: #fbe5e5;
    color: #a83c3c;
}

.theme-product-card__link {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    padding: 9px 15px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ztm-primary, #3e6b89), var(--ztm-primary-dark, #294f68));
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    transition: background 0.22s ease, transform 0.22s ease;
}

.theme-product-card__link:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--ztm-primary-dark, #294f68), var(--ztm-accent, #6cb4b8));
    color: #ffffff;
}

.theme-product-card .product-content-position,
.theme-product-card .product-content-position-2 {
    display: none !important;
}

@media (max-width: 1199px) {
    .product-category-layout {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .product-category-heading {
        max-width: 760px;
    }

    .product-category-heading h2 {
        max-width: 620px;
    }
}

@media (max-width: 991px) {
    .product-category-showcase {
        padding: 76px 0 82px !important;
    }

    .printer-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .product-category-showcase .printer-category-card {
        min-height: 394px;
    }

    .printer-products-area {
        padding: 72px 0 80px !important;
    }
}

@media (max-width: 767px) {
    .product-category-showcase > .container,
    .printer-products-area > .container {
        width: calc(100% - 20px);
    }

    .product-category-heading h2 {
        font-size: 34px;
    }

    .product-collection-heading {
        grid-template-columns: 122px minmax(0, 1fr);
    }

    .product-collection-heading__copy {
        padding-inline: 18px;
    }

    .product-collection-count {
        height: 128px;
    }
}

@media (max-width: 575px) {
    .product-hero-slider-area {
        padding: 6px 6px 0;
    }

    .product-hero-slider-area .hero-slider-active-1 {
        border-radius: 9px;
    }

    .product-category-showcase {
        padding: 62px 0 68px !important;
    }

    .product-category-layout {
        gap: 30px;
    }

    .product-category-heading h2 {
        font-size: 31px;
    }

    .product-category-heading p {
        font-size: 13px;
    }

    .printer-category-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .product-category-showcase .printer-category-card {
        min-height: 380px;
    }

    .product-category-showcase .printer-category-card .product-img,
    .product-category-showcase .printer-category-card .product-img a {
        min-height: 210px;
    }

    .product-category-showcase .printer-category-card .product-img img {
        max-height: 165px;
    }

    .printer-products-area {
        padding: 62px 0 70px !important;
    }

    .product-collection-heading {
        grid-template-columns: 1fr;
        min-height: 0;
        margin-bottom: 30px;
        padding: 12px;
        gap: 5px;
    }

    .product-collection-heading__copy {
        grid-column: 1;
        grid-row: 2;
        padding: 18px 10px 14px;
    }

    .product-collection-heading h2 {
        font-size: 23px;
    }

    .product-collection-heading p {
        font-size: 12px;
    }

    .product-collection-count {
        grid-row: 1;
        width: 100%;
        height: 68px;
        flex-direction: row;
        gap: 8px;
        border-radius: 16px;
    }

    .product-collection-count strong {
        font-size: 22px;
    }

    .product-collection-count span {
        margin-top: 0;
        font-size: 8px;
    }

    .theme-product-card {
        width: min(100%, 430px);
        min-height: 476px;
        margin-inline: auto !important;
    }

    .theme-product-card .product-img {
        min-height: 255px;
        height: 255px;
    }

    .theme-product-card .product-img img {
        max-height: 212px;
    }
}

@media (max-width: 360px) {
    .product-category-showcase > .container,
    .printer-products-area > .container {
        width: calc(100% - 14px);
    }

    .theme-product-card__content {
        padding-inline: 16px;
    }
}
