/* =========================================================
   Shop Essentials Slider
========================================================= */

.shop-essentials {
    padding: 35px 0 45px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}

.shop-essentials__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 22px;
}

.shop-essentials__eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--color-primary);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.shop-essentials__header h2 {
    margin: 0;
    color: var(--color-text);
    font-size: clamp(25px, 3vw, 38px);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.045em;
    text-transform: uppercase;
}

.shop-essentials__header p {
    margin: 8px 0 0;
    color: var(--color-text-light);
    font-size: 11px;
}

.shop-essentials__actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.shop-essentials__actions > a {
    color: var(--color-text);
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
}

.shop-essentials__actions > a:hover {
    color: var(--color-primary);
}

.shop-essentials__arrows {
    display: flex;
    gap: 7px;
}

.shop-essentials__arrows button {
    display: grid;
    width: 37px;
    height: 37px;
    padding: 9px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
    place-items: center;
}

.shop-essentials__arrows button:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.shop-essentials__arrows svg,
.shop-essential-card__add svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.shop-essentials__viewport {
    overflow: hidden;
}

.shop-essentials__track {
    display: grid;
    grid-auto-columns: calc((100% - 70px) / 6);
    grid-auto-flow: column;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.shop-essentials__track::-webkit-scrollbar {
    display: none;
}

.shop-essential-card {
    min-width: 0;
    scroll-snap-align: start;
}

.shop-essential-card__image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: var(--color-surface-soft);
}

.shop-essential-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transition: transform .3s ease;
}

.shop-essential-card:hover
.shop-essential-card__image img {
    transform: scale(1.035);
}

.shop-essential-card__sale {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #e5292f;
    color: #fff;
    font-size: 8px;
    font-weight: 850;
    text-transform: uppercase;
}

.shop-essential-card__content {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 12px 43px 0 2px;
}

.shop-essential-card__title {
    overflow: hidden;
    color: var(--color-text);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-essential-card__price {
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 850;
}

.shop-essential-card__price del {
    margin-right: 5px;
    color: var(--color-text-light);
    font-size: 9px;
}

.shop-essential-card__price ins {
    text-decoration: none;
}

.shop-essential-card__add {
    position: absolute;
    top: 10px;
    right: 0;
    display: grid;
    width: 32px;
    height: 32px;
    padding: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    place-items: center;
}

.shop-essential-card__add:hover {
    color: #fff;
    filter: brightness(1.05);
}

/* =========================================================
   Shop Toolbar
========================================================= */

.box-shop-toolbar {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 24px;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: 17px;
    background: var(--color-surface);
}

.box-shop-toolbar__left,
.box-shop-toolbar__right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.box-filter-toggle {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    padding-inline: 15px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
}

.box-filter-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.box-filter-toggle svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.box-shop-result-count
.woocommerce-result-count {
    margin: 0;
    color: var(--color-text-light);
    font-size: 10px;
}

.box-shop-sort-label {
    color: var(--color-text-light);
    font-size: 9px;
    font-weight: 750;
    text-transform: uppercase;
}

.box-shop-toolbar
.woocommerce-ordering {
    float: none;
    margin: 0;
}

.box-shop-toolbar
.woocommerce-ordering select {
    min-height: 42px;
    padding: 8px 36px 8px 13px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    outline: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 10px;
}

/* Tablet */
@media (max-width: 1100px) {
    .shop-essentials__track {
        grid-auto-columns: calc((100% - 42px) / 4);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .shop-essentials {
        padding: 27px 0 32px;
    }

    .shop-essentials > .container {
        padding-inline: 20px;
    }

    .shop-essentials__header {
        align-items: flex-start;
        margin-bottom: 17px;
    }

    .shop-essentials__header h2 {
        font-size: 25px;
    }

    .shop-essentials__header p {
        display: none;
    }

    .shop-essentials__arrows {
        display: none;
    }

    .shop-essentials__track {
        grid-auto-columns: 42vw;
        gap: 10px;
        padding-right: 20px;
    }

    .shop-essential-card__image {
        border-radius: 15px;
    }

    .shop-essential-card__title {
        font-size: 10px;
    }

    .box-shop-toolbar {
        align-items: stretch;
        flex-direction: column;
        margin-bottom: 18px;
        padding: 10px;
    }

    .box-shop-toolbar__left,
    .box-shop-toolbar__right {
        width: 100%;
        justify-content: space-between;
    }

    .box-filter-toggle {
        flex: 1;
        justify-content: center;
    }

    .box-shop-sort-label {
        display: none;
    }

    .box-shop-toolbar
    .woocommerce-ordering {
        width: 100%;
    }

    .box-shop-toolbar
    .woocommerce-ordering select {
        width: 100%;
    }
}

/* =========================================================
   Size Filter Button Label
========================================================= */

.box-filter-toggle {
    min-height: 48px;
    padding: 7px 17px;
}

.box-filter-toggle__text {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
    text-align: left;
    line-height: 1.15;
}

.box-filter-toggle__text strong {
    color: inherit;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .015em;
    text-transform: uppercase;
}

.box-filter-toggle__text small {
    color: var(--color-text-light);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.box-filter-toggle:hover
.box-filter-toggle__text small {
    color: inherit;
}

@media (max-width: 767px) {
    .box-filter-toggle {
        min-height: 45px;
        padding-inline: 14px;
    }

    .box-filter-toggle__text small {
        display: none;
    }
}

/* =========================================================
   Premium Shop Hero
========================================================= */

.box-shop-hero {
    padding: 30px 0 34px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}

.box-shop-hero__breadcrumb {
    margin-bottom: 18px;
}

.box-shop-hero__breadcrumb nav,
.box-shop-hero__breadcrumb .woocommerce-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--color-text-light);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.box-shop-hero__breadcrumb a {
    color: var(--color-text-light);
}

.box-shop-hero__breadcrumb a:hover {
    color: var(--color-primary);
}

.box-shop-hero__breadcrumb span {
    opacity: .45;
}

.box-shop-hero__content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.box-shop-hero__copy {
    max-width: 650px;
}

.box-shop-hero__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--color-primary);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.box-shop-hero h1 {
    margin: 0;
    color: var(--color-text);
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 950;
    line-height: .95;
    letter-spacing: -.055em;
    text-transform: uppercase;
}

.box-shop-hero__copy p {
    max-width: 580px;
    margin: 13px 0 0;
    color: var(--color-text-light);
    font-size: 11px;
    line-height: 1.65;
}

.box-shop-hero__meta {
    display: flex;
    min-width: 95px;
    flex-direction: column;
    align-items: flex-end;
    padding-bottom: 3px;
}

.box-shop-hero__meta strong {
    color: var(--color-text);
    font-size: 30px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.04em;
}

.box-shop-hero__meta span {
    margin-top: 4px;
    color: var(--color-text-light);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    .box-shop-hero {
        padding: 22px 0 25px;
    }

    .box-shop-hero > .container {
        padding-inline: 20px;
    }

    .box-shop-hero__breadcrumb {
        margin-bottom: 16px;
    }

    .box-shop-hero__content {
        align-items: flex-start;
        gap: 18px;
    }

    .box-shop-hero h1 {
        font-size: 42px;
    }

    .box-shop-hero__copy p {
        margin-top: 10px;
        font-size: 10px;
    }

    .box-shop-hero__meta {
        min-width: 60px;
        padding-top: 22px;
    }

    .box-shop-hero__meta strong {
        font-size: 24px;
    }
}

/* Shop content spacing */
.woocommerce-shop .site-main,
.tax-product_cat .site-main,
.tax-product_tag .site-main {
    padding-top: 0;
}

.box-shop-hero + .box-shop-toolbar {
    margin-top: 24px;
}

/* =========================================================
   Premium Shop Product Grid
========================================================= */

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 16px;
    width: 100%;
    margin: 0 0 45px;
    padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce ul.products li.product .product-card {
    height: 100%;
}

/* Flat premium card inside shop archives */
.woocommerce ul.products .product-card {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.woocommerce ul.products .product-card:hover {
    border: 0;
    box-shadow: none;
    transform: translateY(-2px);
}

.woocommerce ul.products .product-card__media {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    background: #f3f4f4;
}

.woocommerce ul.products .product-card__image-link {
    position: relative;
}

.woocommerce ul.products .product-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 13px;
    object-fit: contain;
    object-position: center;
    transition:
        opacity .32s ease,
        transform .38s ease;
}

.woocommerce ul.products .product-card__image--primary {
    z-index: 1;
    opacity: 1;
}

.woocommerce ul.products .product-card__image--secondary {
    z-index: 2;
    opacity: 0;
}

.woocommerce ul.products
.product-card:hover
.product-card__image--primary {
    opacity: 0;
    transform: scale(1.025);
}

.woocommerce ul.products
.product-card:hover
.product-card__image--secondary {
    opacity: 1;
    transform: scale(1.025);
}

.woocommerce ul.products
.product-card:not(:has(.product-card__image--secondary)):hover
.product-card__image--primary {
    opacity: 1;
    transform: scale(1.035);
}

.woocommerce ul.products .product-card__content {
    padding: 13px 1px 0;
}

.woocommerce ul.products .product-card__brand {
    display: block;
    margin-bottom: 5px;
    color: var(--color-primary);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.woocommerce ul.products .product-card__title {
    min-height: 0;
    margin: 0;
    padding: 0;
    color: var(--color-text);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.woocommerce ul.products .product-card__description {
    min-height: 0;
    margin: 4px 0 0;
    color: var(--color-text-light);
    font-size: 10px;
    line-height: 1.4;
}

.woocommerce ul.products .product-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    color: var(--color-text);
    font-size: 12px;
    font-weight: 850;
}

.woocommerce ul.products .product-card__price .amount {
    color: inherit;
}

.woocommerce ul.products .product-card__price ins {
    order: -1;
    color: #ff3347;
}

.woocommerce ul.products .product-card__price del {
    margin: 0;
    color: var(--color-text-light);
    font-size: 9px;
    opacity: .7;
}

.product-card__badge {
    position: absolute;
    top: 11px;
    left: 11px;
    z-index: 4;
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    padding-inline: 8px;
    border-radius: 5px;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.product-card__badge--sale {
    background: #ff3347;
    color: #fff;
}

.product-card__badge--new {
    background: rgba(8, 168, 181, .13);
    color: #087f89;
}

.woocommerce ul.products .product-card__wishlist {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    background: rgba(255, 255, 255, .78);
    color: #10171a;
    opacity: .92;
}

.woocommerce ul.products .product-card__sizes {
    gap: 5px;
    margin-top: 11px;
}

.woocommerce ul.products .product-card__sizes span {
    min-width: 27px;
    height: 24px;
    padding-inline: 6px;
    border-radius: 999px;
    background: transparent;
    font-size: 8px;
    font-weight: 700;
}

.woocommerce ul.products
.product-card__sizes-more {
    color: var(--color-primary);
}

/* WooCommerce pagination */
.woocommerce nav.woocommerce-pagination {
    margin: 12px 0 55px;
    text-align: left;
}

.woocommerce nav.woocommerce-pagination ul {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
    overflow: visible;
    border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: grid;
    min-width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: transparent;
    color: var(--color-text);
    font-size: 10px;
    font-weight: 750;
    place-items: center;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover {
    border-color: var(--color-primary);
    background: rgba(8, 168, 181, .1);
    color: var(--color-primary);
}

/* Tablet */
@media (max-width: 1100px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 767px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 12px;
        margin-bottom: 35px;
    }

    .woocommerce ul.products .product-card__media {
        border-radius: 3px;
    }

    .woocommerce ul.products .product-card__image {
        padding: 8px;
    }

    .woocommerce ul.products .product-card__content {
        padding-top: 10px;
    }

    .woocommerce ul.products .product-card__title {
        font-size: 11px;
        line-height: 1.35;
    }

    .woocommerce ul.products .product-card__description {
        display: -webkit-box;
        overflow: hidden;
        font-size: 9px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
    }

    .woocommerce ul.products .product-card__price {
        margin-top: 7px;
        font-size: 10px;
    }

    .woocommerce ul.products .product-card__sizes {
        gap: 4px;
        margin-top: 9px;
    }

    .woocommerce ul.products .product-card__sizes span {
        min-width: 25px;
        height: 22px;
        padding-inline: 5px;
        font-size: 7px;
    }

    .woocommerce ul.products
    .product-card__sizes span:nth-child(n+5) {
        display: none;
    }

    .product-card__badge {
        top: 8px;
        left: 8px;
        min-height: 21px;
        padding-inline: 7px;
        font-size: 7px;
    }

    .woocommerce ul.products .product-card__wishlist {
        top: 7px;
        right: 7px;
        width: 29px;
        height: 29px;
    }
}

/* =========================================================
   Shop Product Card — Reference Final
========================================================= */

.woocommerce ul.products {
    gap: 34px 18px;
}

.woocommerce ul.products li.product {
    overflow: visible;
}

.woocommerce ul.products .product-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.woocommerce ul.products .product-card:hover {
    border: 0;
    box-shadow: none;
    transform: none;
}

.woocommerce ul.products .product-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 4px;
    background: #f4f5f5;
}

html[data-theme="light"]
.woocommerce ul.products .product-card__media {
    border-color: rgba(15, 23, 42, .1);
}

.woocommerce ul.products .product-card__image-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.woocommerce ul.products .product-card__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 17px;
    object-fit: contain;
    object-position: center;
    transition:
        opacity .32s ease,
        transform .42s cubic-bezier(.2, .7, .2, 1);
}

.woocommerce ul.products .product-card__image--primary {
    z-index: 1;
    opacity: 1;
}

.woocommerce ul.products .product-card__image--secondary {
    z-index: 2;
    opacity: 0;
}

@media (hover: hover) {
    .woocommerce ul.products
    .product-card:hover
    .product-card__image--primary {
        opacity: 0;
        transform: scale(1.035);
    }

    .woocommerce ul.products
    .product-card:hover
    .product-card__image--secondary {
        opacity: 1;
        transform: scale(1.035);
    }

    .woocommerce ul.products
    .product-card:not(:has(.product-card__image--secondary)):hover
    .product-card__image--primary {
        opacity: 1;
        transform: scale(1.04);
    }
}

.woocommerce ul.products .product-card__wishlist {
    top: 11px;
    right: 11px;
    z-index: 6;
    width: 34px;
    height: 34px;
    padding: 7px;
    border: 1px solid rgba(17, 24, 28, .08);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #10171a;
    opacity: 1;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .07);
}

.woocommerce ul.products .product-card__wishlist:hover,
.woocommerce ul.products
.product-card__wishlist[aria-pressed="true"] {
    border-color: rgba(8, 168, 181, .4);
    background: #fff;
    color: var(--color-primary);
}

.woocommerce ul.products .product-card__wishlist svg {
    stroke-width: 1.8;
}

.product-card__badge {
    top: 11px;
    left: 11px;
    z-index: 5;
    min-height: 23px;
    padding-inline: 8px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
}

.product-card__badge--new {
    background: #d9f4f5;
    color: #087b84;
}

.product-card__badge--sale {
    background: #ff3347;
    color: #fff;
}

.woocommerce ul.products .product-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 0 0;
}

.woocommerce ul.products .product-card__brand {
    display: block;
    margin: 0 0 5px;
    color: var(--color-text-light);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .07em;
    line-height: 1.2;
    text-transform: uppercase;
}

.woocommerce ul.products .product-card__title {
    min-height: 0;
    margin: 0;
    padding: 0;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 850;
    letter-spacing: -.015em;
    line-height: 1.35;
}

.woocommerce ul.products .product-card__title a {
    color: inherit;
    text-decoration: none;
}

.woocommerce ul.products .product-card__title a:hover {
    color: var(--color-primary);
}

.woocommerce ul.products .product-card__description {
    display: -webkit-box;
    min-height: 17px;
    overflow: hidden;
    margin: 5px 0 0;
    color: var(--color-text-light);
    font-size: 10px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.woocommerce ul.products .product-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;
    margin-top: 10px;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.3;
}

.woocommerce ul.products
.product-card__price > .woocommerce-Price-amount {
    color: var(--color-text);
}

.woocommerce ul.products .product-card__price ins {
    order: -1;
    color: #ff3347;
    font-weight: 900;
    text-decoration: none;
}

.woocommerce ul.products .product-card__price del {
    margin: 0;
    color: var(--color-text-light);
    font-size: 10px;
    font-weight: 600;
    opacity: .65;
}

.woocommerce ul.products .product-card__sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 12px;
}

.woocommerce ul.products .product-card__sizes span {
    display: inline-flex;
    min-width: 31px;
    height: 25px;
    align-items: center;
    justify-content: center;
    padding-inline: 7px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: transparent;
    color: var(--color-text-light);
    font-size: 8px;
    font-weight: 750;
    line-height: 1;
}

.woocommerce ul.products .product-card__sizes span:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.woocommerce ul.products
.product-card__sizes .product-card__sizes-more {
    border-color: rgba(8, 168, 181, .3);
    color: var(--color-primary);
}

html[data-theme="dark"]
.woocommerce ul.products
.product-card__sizes span {
    border-color: rgba(255, 255, 255, .17);
}

@media (max-width: 1100px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 30px 16px;
    }
}

@media (max-width: 767px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 27px 12px;
    }

    .woocommerce ul.products .product-card__media {
        border-radius: 3px;
    }

    .woocommerce ul.products .product-card__image {
        padding: 9px;
    }

    .woocommerce ul.products .product-card__wishlist {
        top: 7px;
        right: 7px;
        width: 30px;
        height: 30px;
        padding: 6px;
    }

    .product-card__badge {
        top: 7px;
        left: 7px;
        min-height: 21px;
        padding-inline: 6px;
        font-size: 7px;
    }

    .woocommerce ul.products .product-card__content {
        padding-top: 10px;
    }

    .woocommerce ul.products .product-card__brand {
        margin-bottom: 4px;
        font-size: 7px;
    }

    .woocommerce ul.products .product-card__title {
        font-size: 11px;
        line-height: 1.35;
    }

    .woocommerce ul.products .product-card__description {
        min-height: 14px;
        margin-top: 4px;
        font-size: 8px;
    }

    .woocommerce ul.products .product-card__price {
        gap: 4px;
        margin-top: 7px;
        font-size: 10px;
    }

    .woocommerce ul.products .product-card__price del {
        font-size: 8px;
    }

    .woocommerce ul.products .product-card__sizes {
        gap: 4px;
        margin-top: 8px;
    }

    .woocommerce ul.products .product-card__sizes span {
        min-width: 25px;
        height: 21px;
        padding-inline: 5px;
        font-size: 7px;
    }
}

/* =========================================================
   Mobile Shop Fix
========================================================= */

@media (max-width: 767px) {

    /* Keep the shop grid at two equal columns */
    body.woocommerce ul.products,
    body.woocommerce-page ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 26px 12px !important;
        width: 100% !important;
        margin: 0 0 38px !important;
        padding: 0 !important;
    }

    body.woocommerce ul.products li.product,
    body.woocommerce-page ul.products li.product {
        float: none !important;
        clear: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.woocommerce ul.products .product-card {
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        flex-direction: column !important;
        overflow: visible !important;
    }

    body.woocommerce ul.products .product-card__media {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 1 / 1 !important;
        overflow: hidden !important;
        border-radius: 4px !important;
        background: #f3f4f4 !important;
    }

    body.woocommerce ul.products .product-card__image-link {
        position: absolute !important;
        inset: 0 !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
    }

    body.woocommerce ul.products .product-card__image {
        position: absolute !important;
        inset: 0 !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 10px !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    body.woocommerce ul.products .product-card__image--primary {
        z-index: 1 !important;
        opacity: 1 !important;
    }

    body.woocommerce ul.products .product-card__image--secondary {
        display: none !important;
    }

    body.woocommerce ul.products .product-card__content {
        display: block !important;
        width: 100% !important;
        padding: 10px 0 0 !important;
    }

    body.woocommerce ul.products .product-card__brand {
        display: block !important;
        margin: 0 0 5px !important;
        font-size: 7px !important;
        line-height: 1.2 !important;
    }

    body.woocommerce ul.products .product-card__title {
        display: block !important;
        min-height: 34px !important;
        margin: 0 !important;
        font-size: 12px !important;
        font-weight: 850 !important;
        line-height: 1.35 !important;
    }

    body.woocommerce ul.products .product-card__description {
        display: -webkit-box !important;
        min-height: 13px !important;
        margin: 5px 0 0 !important;
        overflow: hidden !important;
        font-size: 8px !important;
        line-height: 1.45 !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 1 !important;
    }

    body.woocommerce ul.products .product-card__price {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
        margin-top: 7px !important;
        font-size: 10px !important;
        line-height: 1.3 !important;
    }

    body.woocommerce ul.products .product-card__wishlist {
        top: 7px !important;
        right: 7px !important;
        width: 29px !important;
        height: 29px !important;
        padding: 6px !important;
    }

    body.woocommerce ul.products .product-card__badge {
        top: 7px !important;
        left: 7px !important;
        min-height: 20px !important;
        padding: 0 6px !important;
        font-size: 7px !important;
    }

    body.woocommerce ul.products .product-card__sizes {
        display: none !important;
    }

    /*
     * Mobile header category navigation:
     * prevent blank active/hover pills.
     */
    .mobile-category-nav a,
    .mobile-category-menu a,
    .mobile-header-categories a,
    .header-category-tabs a,
    .mobile-category-tabs a {
        width: auto !important;
        min-width: max-content !important;
        color: var(--color-text) !important;
        text-indent: 0 !important;
        white-space: nowrap !important;
        opacity: 1 !important;
    }

    .mobile-category-nav a:hover,
    .mobile-category-menu a:hover,
    .mobile-header-categories a:hover,
    .header-category-tabs a:hover,
    .mobile-category-tabs a:hover {
        border-color: var(--color-primary) !important;
        background: rgba(8, 168, 181, .12) !important;
        color: var(--color-primary) !important;
    }

    .mobile-category-nav .current-menu-item > a,
    .mobile-category-menu .current-menu-item > a,
    .mobile-header-categories .current-menu-item > a,
    .header-category-tabs .current-menu-item > a,
    .mobile-category-tabs .current-menu-item > a,
    .mobile-category-nav a[aria-current="page"],
    .mobile-category-menu a[aria-current="page"],
    .mobile-header-categories a[aria-current="page"],
    .header-category-tabs a[aria-current="page"],
    .mobile-category-tabs a[aria-current="page"] {
        background: var(--color-primary) !important;
        color: #fff !important;
    }

    .mobile-category-nav a *,
    .mobile-category-menu a *,
    .mobile-header-categories a *,
    .header-category-tabs a *,
    .mobile-category-tabs a * {
        color: inherit !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}


/* =========================================================
   Clickable Sizes + Clear Pricing
========================================================= */

.woocommerce ul.products .product-card__price {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 8px !important;
    margin-top: 11px !important;
    color: var(--color-text) !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
}

.woocommerce ul.products
.product-card__price > .woocommerce-Price-amount,
.woocommerce ul.products
.product-card__price > .woocommerce-Price-amount bdi {
    color: var(--color-text) !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

.woocommerce ul.products .product-card__price ins {
    order: -1 !important;
    color: #ff3347 !important;
    font-size: 15px !important;
    font-weight: 950 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
}

.woocommerce ul.products .product-card__price ins *,
.woocommerce ul.products .product-card__price ins bdi {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

.woocommerce ul.products .product-card__price del {
    margin: 0 !important;
    color: var(--color-text-light) !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    opacity: .65 !important;
}

.woocommerce ul.products .product-card__price del *,
.woocommerce ul.products .product-card__price del bdi {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

.woocommerce ul.products .product-card__sizes {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-top: 13px !important;
}

.woocommerce ul.products .product-card__size {
    display: inline-flex !important;
    min-width: 35px !important;
    height: 29px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 8px !important;
    border: 1px solid rgba(255, 255, 255, .2) !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: var(--color-text) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transition:
        border-color .18s ease,
        background-color .18s ease,
        color .18s ease,
        transform .18s ease !important;
}

.woocommerce ul.products .product-card__size:hover,
.woocommerce ul.products .product-card__size:focus-visible {
    border-color: var(--color-primary) !important;
    background: var(--color-primary) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
}

.woocommerce ul.products
.product-card__size.product-card__sizes-more {
    border-color: rgba(8, 168, 181, .4) !important;
    color: var(--color-primary) !important;
}

.woocommerce ul.products
.product-card__size.product-card__sizes-more:hover {
    background: var(--color-primary) !important;
    color: #fff !important;
}

html[data-theme="light"]
.woocommerce ul.products .product-card__size {
    border-color: rgba(15, 23, 42, .18) !important;
}

/* Mobile */
@media (max-width: 767px) {

    body.woocommerce ul.products .product-card__price,
    body.woocommerce-page ul.products .product-card__price {
        display: flex !important;
        gap: 5px !important;
        margin-top: 8px !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    body.woocommerce ul.products .product-card__price ins,
    body.woocommerce-page ul.products .product-card__price ins {
        font-size: 12px !important;
    }

    body.woocommerce ul.products .product-card__price del,
    body.woocommerce-page ul.products .product-card__price del {
        font-size: 8px !important;
    }

    body.woocommerce ul.products .product-card__sizes,
    body.woocommerce-page ul.products .product-card__sizes {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        width: 100% !important;
        margin-top: 10px !important;
        overflow-x: auto !important;
        padding-bottom: 3px !important;
        scrollbar-width: none !important;
    }

    body.woocommerce ul.products .product-card__sizes::-webkit-scrollbar,
    body.woocommerce-page ul.products .product-card__sizes::-webkit-scrollbar {
        display: none !important;
    }

    body.woocommerce ul.products .product-card__size,
    body.woocommerce-page ul.products .product-card__size {
        min-width: 30px !important;
        height: 25px !important;
        flex: 0 0 auto !important;
        padding: 0 6px !important;
        font-size: 8px !important;
    }
}


/* =========================================================
   Shop Price and Clickable Sizes Fix
========================================================= */

.woocommerce ul.products .product-card__price {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 8px !important;
    margin-top: 11px !important;
    color: var(--color-text) !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
}

.woocommerce ul.products .product-card__price ins {
    order: -1 !important;
    color: #ff3347 !important;
    font-size: 15px !important;
    font-weight: 950 !important;
    text-decoration: none !important;
}

.woocommerce ul.products .product-card__price ins *,
.woocommerce ul.products .product-card__price ins bdi {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

.woocommerce ul.products .product-card__price del {
    margin: 0 !important;
    color: var(--color-text-light) !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    opacity: .65 !important;
}

.woocommerce ul.products .product-card__price del *,
.woocommerce ul.products .product-card__price del bdi {
    color: inherit !important;
    font-size: inherit !important;
}

.woocommerce ul.products .product-card__sizes {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-top: 13px !important;
}

.woocommerce ul.products .product-card__size {
    display: inline-flex !important;
    min-width: 35px !important;
    height: 29px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 8px !important;
    border: 1px solid rgba(255, 255, 255, .2) !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: var(--color-text) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transition:
        border-color .18s ease,
        background-color .18s ease,
        color .18s ease,
        transform .18s ease !important;
}

.woocommerce ul.products .product-card__size:hover,
.woocommerce ul.products .product-card__size:focus-visible {
    border-color: var(--color-primary) !important;
    background: var(--color-primary) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
}

.woocommerce ul.products
.product-card__size.product-card__sizes-more {
    border-color: rgba(8, 168, 181, .45) !important;
    color: var(--color-primary) !important;
}

html[data-theme="light"]
.woocommerce ul.products .product-card__size {
    border-color: rgba(15, 23, 42, .18) !important;
}

@media (max-width: 767px) {
    body.woocommerce ul.products .product-card__price,
    body.woocommerce-page ul.products .product-card__price {
        gap: 5px !important;
        margin-top: 8px !important;
        font-size: 12px !important;
    }

    body.woocommerce ul.products .product-card__price ins,
    body.woocommerce-page ul.products .product-card__price ins {
        font-size: 12px !important;
    }

    body.woocommerce ul.products .product-card__price del,
    body.woocommerce-page ul.products .product-card__price del {
        font-size: 8px !important;
    }

    body.woocommerce ul.products .product-card__sizes,
    body.woocommerce-page ul.products .product-card__sizes {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 5px !important;
        width: 100% !important;
        margin-top: 10px !important;
        padding-bottom: 3px !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
    }

    body.woocommerce ul.products .product-card__sizes::-webkit-scrollbar,
    body.woocommerce-page ul.products .product-card__sizes::-webkit-scrollbar {
        display: none !important;
    }

    body.woocommerce ul.products .product-card__size,
    body.woocommerce-page ul.products .product-card__size {
        min-width: 31px !important;
        height: 26px !important;
        flex: 0 0 auto !important;
        padding: 0 6px !important;
        font-size: 8px !important;
    }
}


/* Product ratings are shown on single-product pages only */
.product-card__rating {
    display: none !important;
}

/* =========================================================
   Final shop archive card cleanup
========================================================= */

/*
 * Hide descriptions and sizes only on product archives.
 * Homepage product sections remain unchanged.
 */
body.post-type-archive-product
.woocommerce ul.products
.product-card__description,

body.tax-product_cat
.woocommerce ul.products
.product-card__description,

body.tax-product_tag
.woocommerce ul.products
.product-card__description,

body.post-type-archive-product
.woocommerce ul.products
.product-card__sizes,

body.tax-product_cat
.woocommerce ul.products
.product-card__sizes,

body.tax-product_tag
.woocommerce ul.products
.product-card__sizes {
    display: none !important;
}

/* Keep archive cards balanced after removing extra content */
body.post-type-archive-product
.woocommerce ul.products
.product-card__content,

body.tax-product_cat
.woocommerce ul.products
.product-card__content,

body.tax-product_tag
.woocommerce ul.products
.product-card__content {
    min-height: 0 !important;
}

body.post-type-archive-product
.woocommerce ul.products
.product-card__price,

body.tax-product_cat
.woocommerce ul.products
.product-card__price,

body.tax-product_tag
.woocommerce ul.products
.product-card__price {
    margin-top: 14px !important;
}

/* =========================================================
   Force-hide archive card descriptions and sizes
   Keep this block last in shop.css
========================================================= */

/* Main shop page and product taxonomy archives */
body:not(.single-product)
.woocommerce-main
ul.products
.product-card__description,

body:not(.single-product)
.woocommerce-main
ul.products
.product-card__sizes,

body.woocommerce-shop
ul.products
.product-card__description,

body.woocommerce-shop
ul.products
.product-card__sizes,

body.post-type-archive-product
ul.products
.product-card__description,

body.post-type-archive-product
ul.products
.product-card__sizes,

body.tax-product_cat
ul.products
.product-card__description,

body.tax-product_cat
ul.products
.product-card__sizes,

body.tax-product_tag
ul.products
.product-card__description,

body.tax-product_tag
ul.products
.product-card__sizes,

body.archive.woocommerce
ul.products
.product-card__description,

body.archive.woocommerce
ul.products
.product-card__sizes {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Remove the empty space left inside archive cards */
body:not(.single-product)
.woocommerce-main
ul.products
.product-card__content,

body.woocommerce-shop
ul.products
.product-card__content,

body.post-type-archive-product
ul.products
.product-card__content,

body.tax-product_cat
ul.products
.product-card__content,

body.tax-product_tag
ul.products
.product-card__content {
    display: flex !important;
    min-height: 0 !important;
    flex-direction: column !important;
}

body:not(.single-product)
.woocommerce-main
ul.products
.product-card__price,

body.woocommerce-shop
ul.products
.product-card__price,

body.post-type-archive-product
ul.products
.product-card__price,

body.tax-product_cat
ul.products
.product-card__price,

body.tax-product_tag
ul.products
.product-card__price {
    margin-top: 12px !important;
}

/* =========================================================
   Compact Shop Hero
========================================================= */

.box-shop-hero{
    padding-top:clamp(22px,3vw,42px)!important;
    padding-bottom:clamp(22px,3vw,38px)!important;
}

.box-shop-hero__inner{
    gap:18px!important;
}

.box-shop-hero__content{
    gap:12px!important;
}

.box-shop-hero__eyebrow{
    margin-bottom:6px!important;
}

.box-shop-hero__title{
    margin:0!important;
    line-height:.92!important;
}

.box-shop-hero__description{
    margin-top:6px!important;
    max-width:440px!important;
}

.box-shop-hero__divider{
    margin-top:18px!important;
}

@media(max-width:767px){

    .box-shop-hero{
        padding-top:14px!important;
        padding-bottom:18px!important;
    }

    .box-shop-hero__inner{
        gap:12px!important;
    }

    .box-shop-hero__description{
        margin-top:4px!important;
    }

    .box-shop-hero__divider{
        margin-top:12px!important;
    }

}

/* =========================================================
   Ultra Compact Shop Hero
========================================================= */

.box-shop-hero{
    padding:12px 0 14px!important;
}

.box-shop-hero__inner{
    gap:10px!important;
}

.box-shop-hero__content{
    gap:8px!important;
}

.box-shop-hero__breadcrumbs{
    margin-bottom:2px!important;
    font-size:11px!important;
}

.box-shop-hero__eyebrow{
    margin:0!important;
    font-size:10px!important;
    letter-spacing:.18em!important;
}

.box-shop-hero__title{
    margin:0!important;
    font-size:clamp(40px,5vw,62px)!important;
    line-height:.88!important;
}

.box-shop-hero__description{
    margin-top:2px!important;
    max-width:360px!important;
    font-size:14px!important;
    line-height:1.5!important;
}

.box-shop-hero__stats{
    gap:2px!important;
}

.box-shop-hero__divider{
    margin-top:10px!important;
}

@media (max-width:767px){

    .box-shop-hero{
        padding:8px 0 10px!important;
    }

    .box-shop-hero__inner{
        gap:8px!important;
    }

    .box-shop-hero__title{
        font-size:42px!important;
    }

    .box-shop-hero__description{
        font-size:13px!important;
        line-height:1.45!important;
        max-width:220px!important;
    }

    .box-shop-hero__divider{
        margin-top:8px!important;
    }
}


/* =========================================================
   Minimal Shop Hero
========================================================= */

/* Hide unnecessary content */
.box-shop-hero__eyebrow,
.box-shop-hero__description{
    display:none!important;
}

/* Compact hero */
.box-shop-hero{
    padding:8px 0 10px!important;
}

.box-shop-hero__inner{
    gap:8px!important;
}

.box-shop-hero__content{
    gap:4px!important;
}

.box-shop-hero__breadcrumbs{
    margin:0 0 4px!important;
    font-size:11px!important;
}

.box-shop-hero__title-row{
    align-items:flex-end!important;
}

.box-shop-hero__title{
    margin:0!important;
    line-height:.9!important;
    font-size:clamp(38px,5vw,58px)!important;
}

.box-shop-hero__stats{
    margin-bottom:6px!important;
}

.box-shop-hero__stats-value{
    font-size:32px!important;
    line-height:1!important;
}

.box-shop-hero__stats-label{
    font-size:10px!important;
    letter-spacing:.16em!important;
}

.box-shop-hero__divider{
    margin-top:8px!important;
}

@media (max-width:767px){

    .box-shop-hero{
        padding:4px 0 8px!important;
    }

    .box-shop-hero__breadcrumbs{
        font-size:10px!important;
        margin-bottom:2px!important;
    }

    .box-shop-hero__title{
        font-size:36px!important;
    }

    .box-shop-hero__stats{
        margin-bottom:2px!important;
    }

    .box-shop-hero__stats-value{
        font-size:24px!important;
    }

    .box-shop-hero__stats-label{
        font-size:8px!important;
    }

    .box-shop-hero__divider{
        margin-top:6px!important;
    }

}


/* =========================================================
   Final Minimal Shop Hero — real markup selectors
========================================================= */

/* Remove eyebrow and description completely */
.box-shop-hero .box-shop-hero__eyebrow,
.box-shop-hero .box-shop-hero__copy > p {
    display: none !important;
}

/* Balanced compact container */
.box-shop-hero {
    padding: 18px 0 16px !important;
}

/* Small breathing room under breadcrumb */
.box-shop-hero__breadcrumb {
    margin: 0 0 12px !important;
}

/* Title and product count in one clean row */
.box-shop-hero__content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
}

.box-shop-hero__copy {
    max-width: none !important;
}

.box-shop-hero h1 {
    margin: 0 !important;
    font-size: clamp(38px, 4.8vw, 58px) !important;
    line-height: .9 !important;
}

/* Compact product count badge */
.box-shop-hero__meta {
    display: inline-flex !important;
    min-width: 0 !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;

    margin: 0 !important;
    padding: 7px 10px !important;

    border: 1px solid var(--color-border) !important;
    border-radius: 999px !important;
    background: var(--color-surface, transparent) !important;
}

.box-shop-hero__meta strong {
    font-size: 14px !important;
    line-height: 1 !important;
}

.box-shop-hero__meta span {
    margin: 0 !important;
    font-size: 8px !important;
    line-height: 1 !important;
    letter-spacing: .08em !important;
}

/* Mobile */
@media (max-width: 767px) {
    .box-shop-hero {
        padding: 14px 0 13px !important;
    }

    .box-shop-hero > .container {
        padding-inline: 14px !important;
    }

    .box-shop-hero__breadcrumb {
        margin-bottom: 10px !important;
    }

    .box-shop-hero__content {
        align-items: center !important;
        gap: 12px !important;
    }

    .box-shop-hero h1 {
        font-size: 36px !important;
    }

    .box-shop-hero__meta {
        padding: 6px 9px !important;
    }

    .box-shop-hero__meta strong {
        font-size: 13px !important;
    }

    .box-shop-hero__meta span {
        font-size: 7px !important;
    }
}

/* =========================================================
   Essentials Carousel — Product Grid Card Size
   ========================================================= */

.box-essentials-carousel {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin: 28px 0 !important;
}

.box-essentials-carousel__panel {
    width: 100% !important;
    padding: 16px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
}

.box-essentials-carousel__header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-height: 0 !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
}

.box-essentials-carousel__actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
}

.box-essentials-carousel__view-all {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 40px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    line-height: 1 !important;
}

.box-essentials-carousel__view-all svg {
    width: 16px !important;
    height: 16px !important;
}

.box-essentials-carousel__arrows {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.box-essentials-carousel__arrows button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
}

.box-essentials-carousel__arrows button svg {
    width: 17px !important;
    height: 17px !important;
}

.box-essentials-carousel__viewport {
    width: 100% !important;
    overflow: hidden !important;
}

.box-essentials-carousel__track {
    display: flex !important;
    align-items: stretch !important;
    gap: 16px !important;
    width: max-content !important;
}

.box-essentials-carousel__item {
    flex: 0 0 calc((100vw - 160px) / 4) !important;
    width: calc((100vw - 160px) / 4) !important;
    max-width: 285px !important;
    min-width: 0 !important;
}

.box-essentials-carousel__item .product-card,
.box-essentials-carousel__item .box-product-card {
    width: 100% !important;
    height: 100% !important;
}

.box-essentials-carousel__item .product-card__image,
.box-essentials-carousel__item .box-product-card__image,
.box-essentials-carousel__item .product-card__media,
.box-essentials-carousel__item .box-product-card__media {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
}

.box-essentials-carousel__item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

@media (min-width: 1200px) {
    .box-essentials-carousel__item {
        flex-basis: calc((100% - 48px) / 4) !important;
        width: calc((100% - 48px) / 4) !important;
        max-width: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .box-essentials-carousel__item {
        flex-basis: calc((100vw - 96px) / 3) !important;
        width: calc((100vw - 96px) / 3) !important;
        max-width: 280px !important;
    }
}

@media (max-width: 767px) {
    .box-essentials-carousel {
        margin: 22px 0 !important;
    }

    .box-essentials-carousel__panel {
        padding: 12px !important;
        border-radius: 16px !important;
    }

    .box-essentials-carousel__header {
        margin-bottom: 12px !important;
    }

    .box-essentials-carousel__view-all {
        min-height: 38px !important;
        padding: 0 14px !important;
        font-size: 11px !important;
    }

    .box-essentials-carousel__arrows button {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
    }

    .box-essentials-carousel__track {
        gap: 10px !important;
    }

    .box-essentials-carousel__item {
        flex: 0 0 calc((100vw - 114px) / 2) !important;
        width: calc((100vw - 114px) / 2) !important;
        max-width: none !important;
    }
}

@media (max-width: 380px) {
    .box-essentials-carousel__item {
        flex-basis: calc((100vw - 96px) / 2) !important;
        width: calc((100vw - 96px) / 2) !important;
    }
}

/* =========================================================
   Essentials Carousel Drag Scroll
   ========================================================= */

.box-essentials-carousel__viewport {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    cursor: grab;
    touch-action: pan-y pinch-zoom;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.box-essentials-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.box-essentials-carousel__viewport.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.box-essentials-carousel__viewport.is-dragging,
.box-essentials-carousel__viewport.is-dragging * {
    user-select: none !important;
    -webkit-user-select: none !important;
}

.box-essentials-carousel__track {
    scroll-snap-type: none;
}

.box-essentials-carousel__item {
    scroll-snap-align: start;
}

/* =========================================================
   Fix Essentials carousel card size on desktop
   ========================================================= */

@media (min-width: 1200px) {
    .box-essentials-carousel__track {
        display: flex !important;
        width: max-content !important;
        gap: 16px !important;
    }

    .box-essentials-carousel__item {
        flex: 0 0 235px !important;
        width: 235px !important;
        min-width: 235px !important;
        max-width: 235px !important;
    }

    .box-essentials-carousel__item .product-card,
    .box-essentials-carousel__item .box-product-card {
        width: 100% !important;
    }

    .box-essentials-carousel__item .product-card__media,
    .box-essentials-carousel__item .box-product-card__media,
    .box-essentials-carousel__item .product-card__image,
    .box-essentials-carousel__item .box-product-card__image {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
    }

    .box-essentials-carousel__item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .box-essentials-carousel__item {
        flex: 0 0 210px !important;
        width: 210px !important;
        min-width: 210px !important;
        max-width: 210px !important;
    }
}


/* ============================================================
   BOX KITS — SHOP
   ========================================================== */

.box-shop-kit-cta,
.box-fixed-kits {
    grid-column: 1 / -1;
    width: 100%;
    list-style: none;
}

.box-shop-kit-cta {
    margin: 18px 0 8px;
}

.box-shop-kit-cta__panel {
    display: flex;
    min-height: 110px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            rgba(8,168,181,.10),
            transparent 60%
        ),
        var(--color-surface);
}

.box-shop-kit-cta__copy {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.box-shop-kit-cta__eyebrow {
    color: var(--color-primary);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .09em;
}

.box-shop-kit-cta__copy strong {
    color: var(--color-text);
    font-size: 25px;
    font-weight: 950;
    letter-spacing: -.035em;
}

.box-shop-kit-cta__button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.box-shop-kit-cta__button svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Fixed kits */

.box-fixed-kits {
    margin: 8px 0 24px;
}

.box-fixed-kits__panel {
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: var(--color-surface);
}

.box-fixed-kits__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.box-fixed-kits__header > div:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
}

.box-fixed-kits__header span {
    color: var(--color-text-light);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .06em;
}

.box-fixed-kits__header strong {
    color: var(--color-text);
    font-size: 16px;
    font-weight: 950;
}

.box-fixed-kits__actions {
    display: flex;
    gap: 7px;
}

.box-fixed-kits__actions button {
    display: grid;
    width: 36px;
    height: 36px;
    padding: 9px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
    place-items: center;
}

.box-fixed-kits__actions button:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.box-fixed-kits__actions svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.box-fixed-kits__viewport {
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    cursor: grab;
}

.box-fixed-kits__viewport::-webkit-scrollbar {
    display: none;
}

.box-fixed-kits__viewport.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.box-fixed-kits__track {
    display: flex;
    gap: 12px;
}

.box-fixed-kit-card {
    flex: 0 0 calc((100% - 36px) / 4);
    min-width: 0;
}

.box-fixed-kit-card__image {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: var(--color-bg);
    aspect-ratio: 1 / 1;
}

.box-fixed-kit-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.box-fixed-kit-card__save {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
}

.box-fixed-kit-card__body {
    padding: 10px 2px 2px;
}

.box-fixed-kit-card__body > a {
    display: block;
    overflow: hidden;
    color: var(--color-text);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.box-fixed-kit-card__price {
    margin-top: 5px;
    font-size: 11px;
    font-weight: 900;
}


@media (max-width: 767px) {

    .box-shop-kit-cta {
        margin-top: 12px;
    }

    .box-shop-kit-cta__panel {
        min-height: 92px;
        padding: 17px;
        border-radius: 15px;
    }

    .box-shop-kit-cta__copy strong {
        font-size: 19px;
    }

    .box-shop-kit-cta__button {
        min-height: 42px;
        padding: 0 15px;
        font-size: 9px;
    }

    .box-fixed-kits__panel {
        padding: 13px;
        border-radius: 15px;
    }

    .box-fixed-kits__header {
        margin-bottom: 11px;
    }

    .box-fixed-kits__header span {
        display: none;
    }

    .box-fixed-kit-card {
        flex-basis: calc((100% - 9px) / 2);
    }

    .box-fixed-kits__track {
        gap: 9px;
    }
}


/* ============================================================
   CREATE YOUR KIT DRAWER
   ========================================================== */

body.box-kit-drawer-open {
    overflow: hidden;
}

.box-kit-drawer {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    visibility: hidden;
    pointer-events: none;
}

.box-kit-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.box-kit-drawer__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 7, 10, .68);
    opacity: 0;
    backdrop-filter: blur(5px);
    transition: opacity .25s ease;
}

.box-kit-drawer.is-open
.box-kit-drawer__backdrop {
    opacity: 1;
}

.box-kit-drawer__panel {
    position: relative;
    z-index: 2;
    width: min(760px, 92vw);
    height: 100%;
    overflow-y: auto;
    border-left: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: -30px 0 80px rgba(0, 0, 0, .22);
    transform: translateX(100%);
    transition: transform .3s ease;
}

.box-kit-drawer.is-open
.box-kit-drawer__panel {
    transform: translateX(0);
}

.box-kit-drawer__header {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}

.box-kit-drawer__header > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.box-kit-drawer__header span {
    color: var(--color-primary);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
}

.box-kit-drawer__header strong {
    color: var(--color-text);
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -.04em;
}

.box-kit-drawer__close {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
    font-size: 23px;
    line-height: 1;
    place-items: center;
}

.box-kit-drawer__content {
    padding: 18px;
}


/* override builder spacing inside drawer */

.box-kit-drawer
.box-kit-builder {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.box-kit-drawer
.box-kit-builder__head {
    display: none;
}


/* desktop: 3 cards per row inside drawer */

.box-kit-drawer
.box-kit-builder__grid {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}


/* keep sticky summary inside drawer */

.box-kit-drawer
.box-kit-builder__summary {
    bottom: 18px;
}


@media (max-width: 767px) {

    .box-kit-drawer {
        align-items: flex-end;
    }

    .box-kit-drawer__panel {
        width: 100%;
        height: auto;
        max-height: 92vh;
        border-left: 0;
        border-top: 1px solid var(--color-border);
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
    }

    .box-kit-drawer.is-open
    .box-kit-drawer__panel {
        transform: translateY(0);
    }

    .box-kit-drawer__header {
        padding: 18px 18px 15px;
    }

    .box-kit-drawer__header strong {
        font-size: 21px;
    }

    .box-kit-drawer__content {
        padding: 12px;
    }

    .box-kit-drawer
    .box-kit-builder {
        padding: 0;
    }

    .box-kit-drawer
    .box-kit-builder__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .box-kit-drawer
    .box-kit-builder__summary {
        bottom: 8px;
    }
}


/* Create Your Kit offer text */

.box-shop-kit-cta__offer {
    max-width: 430px;
    margin: 2px 0 0;
    color: var(--color-text-light);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.45;
}

@media (max-width: 767px) {
    .box-shop-kit-cta__offer {
        max-width: 220px;
        margin-top: 1px;
        font-size: 8px;
        line-height: 1.4;
    }
}


/* ============================================================
   Kit Type Picker
   ========================================================== */

.box-kit-type-picker {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.box-kit-type-choice {
    display: flex;
    min-height: 120px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 5px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
    overflow: hidden;
}

.box-kit-type-choice:hover {
    border-color: var(--color-primary);
}

.box-kit-type-choice img {
    width: 64px;
    height: 64px;
    margin-bottom: auto;
    border-radius: 10px;
    object-fit: cover;
}

.box-kit-type-choice strong {
    font-size: 16px;
    font-weight: 950;
}

.box-kit-type-choice span {
    color: var(--color-text-light);
    font-size: 10px;
}

.box-kit-builder-back {
    margin-bottom: 14px;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
}

@media (max-width: 767px) {
    .box-kit-type-picker {
        grid-template-columns: 1fr;
    }

    .box-kit-type-choice {
        min-height: 95px;
    }
}


/* Custom Kit Type cards inside Shop Kits */

button.box-fixed-kit-card__image {
    width: 100%;
    padding: 0;
    border: 0;
    color: inherit;
    cursor: pointer;
    text-align: inherit;
}

.box-custom-kit-card__title {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.35;
    text-align: left;
}

.box-custom-kit-card__title:hover {
    color: var(--color-primary);
}

.box-custom-kit-card__meta {
    margin-top: 5px;
    color: var(--color-text-light);
    font-size: 9px;
    font-weight: 750;
    text-transform: uppercase;
}


/* Custom kit clickable card safety */

.box-custom-kit-card {
    position: relative;
}

.box-custom-kit-card
[data-box-custom-kit-open] {
    position: relative;
    z-index: 4;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.box-custom-kit-card
.box-fixed-kit-card__image {
    display: block;
}


/* Custom Kit cards must remain clickable */

.box-custom-kit-card {
    position: relative;
}

.box-custom-kit-card
[data-box-custom-kit-open] {
    position: relative !important;
    z-index: 20 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.box-custom-kit-card::before,
.box-custom-kit-card::after {
    pointer-events: none !important;
}

/* Mobile pagination fix */
@media (max-width: 767px) {
    .woocommerce nav.woocommerce-pagination {
        width: 100%;
        margin: 12px 0 45px;
        overflow: hidden;
    }

    .woocommerce nav.woocommerce-pagination ul {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 5px;
        width: 100%;
        max-width: 100%;
    }

    .woocommerce nav.woocommerce-pagination ul li {
        flex: 0 0 auto;
    }

    .woocommerce nav.woocommerce-pagination ul li a,
    .woocommerce nav.woocommerce-pagination ul li span {
        min-width: 32px;
        width: 32px;
        height: 32px;
        font-size: 9px;
        border-radius: 7px;
    }

    .woocommerce nav.woocommerce-pagination ul li a.prev,
    .woocommerce nav.woocommerce-pagination ul li a.next {
        min-width: 32px;
        width: 32px;
    }
}
