/**
 * Product page + attribute selector
 * Guided by Modern Web Guidance:
 * - size-aware-styling (container queries)
 * - fluid-scaling (clamp + cqi)
 * - improve-text-layout-and-legibility (text-wrap)
 * - child-state-based-styling / :has()
 * - individual-transform-properties (translate/scale)
 * - optimize-image-priority (fetchpriority in blade)
 */

/* -------------------------------------------------------------------------- */
/* Page shell                                                                  */
/* -------------------------------------------------------------------------- */

#product-page .ps-page--product.product-page-modern,
.ps-page--product.product-page-modern {
    --pp-accent: var(--color-1st, #fcb800);
    --pp-ink: #121417;
    --pp-muted: #5c6570;
    --pp-line: #e4e7ec;
    --pp-surface: #f6f7f9;
    --pp-radius: 14px;
    --pp-radius-sm: 10px;
    padding-block: 1.25rem 2.5rem;
}

.product-page-modern .ps-page__container {
    gap: 1.5rem;
}

.product-page-modern .ps-product--detail {
    margin-bottom: 2.5rem;
}

/* Info column is the sizing container for fluid type/spacing */
.product-page-modern .ps-product__info {
    container-type: inline-size;
    container-name: product-info;
}

.product-page-modern .ps-product__info > h1,
.product-page-modern .ps-product__desc h1,
.product-page-modern .ps-product__desc .h1 {
    margin-bottom: 0.65rem;
    color: var(--pp-ink);
    font-family: var(--font-heading, 'League Spartan', sans-serif);
    font-weight: 600;
    line-height: var(--lh-heading, 1.25);
    text-wrap: balance;
    font-size: 1.5rem; /* same size for product title + description title */
}

.product-page-modern .ps-product__desc h1,
.product-page-modern .ps-product__desc .h1 {
    margin: 0 0 0.45rem;
}

.product-page-modern .ps-product__desc h1 *,
.product-page-modern .ps-product__desc .h1 * {
    font-size: inherit !important;
    font-family: inherit !important;
    line-height: inherit !important;
}

.product-page-modern .ps-product__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-bottom: 0.85rem;
    color: var(--pp-muted);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: var(--fs-sm, 0.9375rem);
}

.product-page-modern .ps-product__meta p {
    margin: 0;
}

.product-page-modern .ps-product__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
    margin: 0.35rem 0 1rem;
    color: #e11d2e;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: var(--fs-2xl, 1.5rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.product-page-modern .ps-product__price.sale span {
    color: #e11d2e;
    font-weight: 700;
}

.product-page-modern .ps-product__price span {
    color: #e11d2e;
    font-weight: 700;
}

.product-page-modern .ps-product__price del {
    color: #8b939e;
    font-size: 0.7em;
    font-weight: 500;
}

/* Sticky product header bar — same price style as main product price */
#product-page .header--product .ps-product--header-sticky .ps-product__price,
#product-page .header--product .ps-product--header-sticky .ps-product__price span,
.header--product .ps-product--header-sticky .ps-product__price,
.header--product .ps-product--header-sticky .ps-product__price span {
    color: #e11d2e !important;
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

#product-page .header--product .ps-product--header-sticky .ps-product__price del,
.header--product .ps-product--header-sticky .ps-product__price del {
    color: #8b939e !important;
    font-size: 0.7em !important;
    font-weight: 500 !important;
}

.product-page-modern .ps-product__desc,
.product-page-modern .ps-product__desc .ps-list--dot,
.product-page-modern .ps-document {
    color: var(--pp-muted);
    text-wrap: pretty;
}

.product-page-modern .ps-product__desc {
    margin-bottom: 1.1rem;
    padding: 0.75rem 0.85rem;
    background: var(--pp-surface);
    border: 1px solid var(--pp-line);
    border-radius: var(--pp-radius-sm);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.product-page-modern .ps-product__desc h2,
.product-page-modern .ps-product__desc .h2 {
    margin: 0.5rem 0 0.35rem;
    font-size: 1.125rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.35;
    color: #5c6570;
}

.product-page-modern .ps-product__desc h3,
.product-page-modern .ps-product__desc h4,
.product-page-modern .ps-product__desc .h3,
.product-page-modern .ps-product__desc .h4 {
    margin: 0.65rem 0 0.35rem;
    font-size: 1rem;
    line-height: 1.3;
}

.product-page-modern .ps-product__desc p,
.product-page-modern .ps-product__desc li {
    margin-bottom: 0.55rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.product-page-modern .ps-document h1,
.product-page-modern .ps-document h2 {
    font-size: 1.2rem;
}

.product-page-modern .ps-document h3,
.product-page-modern .ps-document h4 {
    font-size: 1.05rem;
}

.product-page-modern .ps-document p,
.product-page-modern .ps-document li {
    font-size: 0.9375rem;
}

/* Gallery — larger on desktop, stacked cleanly on mobile */
.product-page-modern .ps-product__gallery .item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.product-page-modern .ps-product__variants .item {
    border-radius: 8px;
    border: 1px solid var(--pp-line);
    overflow: hidden;
    translate: 0;
    scale: 1;
    transition: border-color 0.18s ease, scale 0.18s ease;
}

.product-page-modern .ps-product__variants .item:hover,
.product-page-modern .ps-product__variants .item.slick-current {
    border-color: var(--pp-accent);
    scale: 1.02;
}

.product-page-modern .ps-product__variants .item img {
    opacity: 1;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Desktop / large tablets: give photos more column width */
@media (min-width: 992px) {
    .product-page-modern .ps-product--detail .ps-product__header {
        align-items: flex-start;
        gap: 1.5rem;
    }

    .product-page-modern .ps-product--detail .ps-product__header .ps-product__thumbnail {
        max-width: 54% !important;
        flex: 1 1 54%;
        position: sticky;
        top: 1rem;
        align-self: flex-start;
    }

    .product-page-modern .ps-product--detail .ps-product__header .ps-product__info {
        max-width: 46% !important;
        flex: 1 1 46%;
        padding-left: 0 !important;
    }

    .product-page-modern .ps-product__thumbnail {
        gap: 0.75rem;
    }

    .product-page-modern .ps-product__thumbnail .ps-product__variants {
        max-width: 72px !important;
        min-width: 72px !important;
    }

    .product-page-modern .ps-product__thumbnail > figure {
        max-width: calc(100% - 72px) !important;
        padding-left: 0.75rem !important;
        border-radius: var(--pp-radius);
        overflow: hidden;
        background: #f7f8fa;
    }

    .product-page-modern .ps-product__gallery .item {
        min-height: 28rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f7f8fa;
        border: 0;
        border-radius: 0;
    }

    .product-page-modern .ps-product__gallery .item img {
        max-height: min(70vh, 36rem);
        width: auto;
        max-width: 100%;
        margin: 0 auto;
        background: transparent;
    }
}

@media (min-width: 1200px) {
    .product-page-modern .ps-product--detail .ps-product__header .ps-product__thumbnail {
        max-width: 56% !important;
        flex-basis: 56%;
    }

    .product-page-modern .ps-product--detail .ps-product__header .ps-product__info {
        max-width: 44% !important;
        flex-basis: 44%;
    }

    .product-page-modern .ps-product__gallery .item {
        min-height: 32rem;
    }

    .product-page-modern .ps-product__gallery .item img {
        max-height: min(72vh, 40rem);
    }
}

/* Mobile / small tablets: full-width gallery above info — no nested frames */
@media (max-width: 991px) {
    .product-page-modern .ps-product--detail .ps-product__header {
        flex-direction: column;
    }

    .product-page-modern .ps-product--detail .ps-product__header .ps-product__thumbnail {
        max-width: 100% !important;
        width: 100%;
        margin-bottom: 1rem !important;
        position: static;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .product-page-modern .ps-product--detail .ps-product__header .ps-product__info {
        max-width: 100% !important;
        width: 100%;
        padding-left: 0 !important;
    }

    .product-page-modern .ps-product__thumbnail {
        flex-flow: column nowrap !important;
        display: flex !important;
        gap: 0.65rem;
    }

    .product-page-modern .ps-product__thumbnail > figure {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 0 0.35rem !important;
        border: 0 !important;
        border-radius: 10px;
        overflow: hidden;
        background: transparent !important;
        box-shadow: none !important;
    }

    .product-page-modern .ps-product__thumbnail .ps-wrapper,
    .product-page-modern .ps-product__gallery,
    .product-page-modern .ps-product__gallery .slick-list,
    .product-page-modern .ps-product__gallery .slick-track {
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        margin: 0 !important;
    }

    .product-page-modern .ps-product__gallery .item {
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        display: block !important;
    }

    .product-page-modern .ps-product__gallery .item a {
        display: block;
        border: 0;
        background: transparent;
    }

    .product-page-modern .ps-product__gallery .item img {
        width: 100%;
        max-height: 55vh;
        object-fit: contain;
        margin: 0 auto;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0;
    }

    .product-page-modern .ps-product__thumbnail .ps-product__variants {
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    .product-page-modern .ps-product__variants .item {
        max-width: 4.25rem;
        flex: 0 0 4.25rem;
        margin: 0 0.4rem 0 0 !important;
        border: 1px solid #dde1e6;
        border-radius: 8px;
        background: #fff;
    }

    .product-page-modern .ps-product__variants .item.slick-current {
        border-color: var(--pp-accent, #fcb800);
    }
}

@media (max-width: 575px) {
    .product-page-modern .ps-product__gallery .item img {
        max-height: 42vh;
    }

    .product-page-modern .ps-product__variants .item {
        max-width: 3.75rem;
        flex: 0 0 3.75rem;
    }
}

/* Availability badge */
.product-page-modern .number-items-available {
    margin: 0.35rem 0 1rem;
}

.product-page-modern .number-items-available span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: var(--fs-sm, 0.9375rem);
    font-weight: 600;
}

.product-page-modern .number-items-available .text-success {
    color: #0f7a3c !important;
    background: #e8f7ee;
}

.product-page-modern .number-items-available .text-danger {
    color: #b42318 !important;
    background: #fef3f2;
}

/* Shopping row */
.product-page-modern .ps-product__shopping {
    align-items: flex-end;
    gap: 0.75rem;
    padding: 1rem;
    margin-top: 0.25rem;
    background: #fff;
    border: 1px solid var(--pp-line);
    border-radius: var(--pp-radius);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.product-page-modern .ps-product__shopping .ps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-height: none;
    min-height: 50px;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    translate: 0;
    transition: translate 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

/* Sticky header Add to cart — same readable button text */
.header--product .ps-product--header-sticky .ps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-height: none;
    min-height: 44px;
    padding: 0.65rem 1.5rem;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.product-page-modern .ps-product__shopping .ps-btn:hover:not(.btn-disabled) {
    translate: 0 -1px;
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.12);
}

.product-page-modern .ps-product__sharing a.twitter,
.product-page-modern .ps-product__sharing a.x {
    background-color: #0f1419;
}

.product-page-modern .ps-product__sharing a.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.product-page-modern .ps-product__sharing a.youtube {
    background-color: #ff0000;
}


.product-page-modern .ps-product__specification {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--pp-line);
    color: var(--pp-muted);
    font-family: var(--font-specs, 'Roboto Condensed', sans-serif);
    font-size: var(--fs-sm, 0.9375rem);
}

.product-page-modern .ps-product__specification p {
    margin-bottom: 0.35rem;
}

/* Tabs */
.product-page-modern .ps-tab-list {
    gap: 0.35rem;
    border-bottom: 1px solid var(--pp-line);
}

.product-page-modern .ps-tab-list a {
    border-radius: 8px 8px 0 0;
    font-weight: 600;
}

.product-page-modern .ps-tabs {
    padding-top: 1.25rem;
}

.product-page-modern .ps-section__header h3 {
    text-wrap: balance;
    font-weight: 600;
}

/* Features sidebar */
.product-page-modern .widget_features,
.ps-page--product .widget_features {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.3rem;
    background: linear-gradient(165deg, #fbfbfc 0%, #f3f4f6 100%);
    border: 1px solid var(--pp-line, #e4e7ec);
    border-radius: var(--pp-radius, 14px);
}

.product-page-modern .widget_features p,
.ps-page--product .widget_features p {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0;
    padding: 0.75rem 0;
    padding-left: 0;
    border-bottom: 1px solid #e8eaee;
    color: var(--pp-ink, #121417);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: var(--fs-md, 1.0625rem);
    font-weight: 500;
    line-height: 1.4;
}

.product-page-modern .widget_features p:last-child,
.ps-page--product .widget_features p:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.product-page-modern .widget_features p:first-child,
.ps-page--product .widget_features p:first-child {
    padding-top: 0;
}

.product-page-modern .widget_features p i,
.ps-page--product .widget_features p i {
    position: static;
    flex: 0 0 auto;
    width: 1.75rem;
    margin: 0;
    color: var(--pp-accent, #fcb800);
    font-size: 1.5rem;
    line-height: 1.2;
}

/* -------------------------------------------------------------------------- */
/* Attribute configurator                                                      */
/* -------------------------------------------------------------------------- */

.product-page-modern .pr_switch_wrap,
.pr_switch_wrap {
    margin: 0.75rem 0 0.5rem;
}

.product-page-modern .product-attr-instructions,
.pr_switch_wrap .product-attr-instructions {
    margin: 0 0 0.75rem;
    padding: 0.65rem 0.85rem;
    border-left: 3px solid var(--color-1st, #fcb800);
    background: #fff8e6;
    border-radius: 0 8px 8px 0;
    color: #121417;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: var(--fs-base, 1rem);
    font-weight: 500;
    line-height: 1.45;
}

.product-attributes {
    container-type: inline-size;
    container-name: product-attrs;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0.35rem 0 1rem;
    padding: clamp(0.85rem, 3cqi, 1.15rem);
    background: linear-gradient(180deg, #f8f9fb 0%, #f2f3f6 100%);
    border: 1px solid #e4e7ec;
    border-radius: 14px;
}

.product-attr-modern.product__attribute,
.product-attributes .product__attribute.product-attr-modern {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 0 !important;
    padding: 0.65rem 0.7rem;
    padding-bottom: 0.65rem !important;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

/* Highlight attribute row when it has a selected value (:has) */
.product-attr-modern.product__attribute:has(input:checked) {
    border-color: color-mix(in srgb, var(--color-1st, #fcb800) 55%, #e4e7ec);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-1st, #fcb800) 18%, transparent);
}

.product-attr-modern > * {
    flex-basis: auto;
    max-width: none;
}

.product-attr-modern .attribute-name-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.product-attr-modern .attribute-name {
    display: block;
    margin: 0;
    max-width: none !important;
    color: #121417;
    font-family: var(--font-specs, 'Roboto Condensed', sans-serif);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.3;
    font-size: var(--fs-md, 1.0625rem);
}

@container product-attrs (min-width: 420px) {
    .product-attr-modern.product__attribute {
        display: grid;
        grid-template-columns: minmax(9.5rem, 13rem) 1fr;
        align-items: start;
        column-gap: 0.85rem;
    }

    .product-attr-modern .attribute-name-wrap {
        padding-top: 0.45rem;
    }
}

.product-attr-modern .attribute-values {
    width: 100%;
}

.product-attr-modern .text-swatch,
.product-attr-modern .color-swatch {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-attr-modern .text-swatch > li,
.product-attr-modern .color-swatch > li {
    display: block;
    margin: 0 !important;
}

.product-attr-modern .text-swatch label,
.product-attr-modern .attribute-swatch-item label {
    display: block;
    margin: 0;
    cursor: pointer;
}

.product-attr-modern .text-swatch input[type="radio"],
.product-attr-modern .text-swatch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.product-attr-modern .attr-chip,
.product-attr-modern .text-swatch span {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    min-height: 2.75rem;
    padding: 0.45rem 0.85rem;
    margin: 0;
    border: 1.5px solid #cfd3da;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
    color: #222;
    font-family: var(--font-specs, 'Roboto Condensed', sans-serif);
    font-size: var(--fs-base, 1rem);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    overflow: visible;
    cursor: pointer;
    user-select: none;
    /* identity transforms — individual-transform-properties */
    translate: 0;
    scale: 1;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        translate 0.18s ease,
        scale 0.18s ease;
}

.product-attr-modern .text-swatch li:not(.pe-none) label:hover .attr-chip,
.product-attr-modern .text-swatch li:not(.pe-none) label:hover span {
    border-color: #9aa1ad;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
    translate: 0 -1px;
}

.product-attr-modern .text-swatch input:focus-visible ~ .attr-chip,
.product-attr-modern .text-swatch input:focus-visible ~ span {
    outline: 2px solid var(--color-1st, #fcb800);
    outline-offset: 2px;
}

.product-attr-modern .text-swatch input:checked ~ .attr-chip,
.product-attr-modern .text-swatch input:checked ~ span {
    border-color: var(--color-1st, #fcb800);
    border-width: 2px;
    background: #fff6d6;
    background: color-mix(in srgb, var(--color-1st, #fcb800) 18%, #fff);
    color: #111;
    font-weight: 700;
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--color-1st, #fcb800) 35%, transparent),
        0 2px 10px rgba(16, 24, 40, 0.08);
    padding-right: 1.65rem;
}

.product-attr-modern .text-swatch input:checked ~ .attr-chip::before,
.product-attr-modern .text-swatch input:checked ~ span::before {
    content: none;
    border: 0;
}

.product-attr-modern .text-swatch input:checked ~ .attr-chip::after,
.product-attr-modern .text-swatch input:checked ~ span::after {
    content: "";
    position: absolute;
    right: 0.55rem;
    top: 50%;
    width: 0.45rem;
    height: 0.75rem;
    margin-top: -0.1rem;
    border: solid #111;
    border-width: 0 2px 2px 0;
    transform: translateY(-50%) rotate(45deg);
    font-size: 0;
    bottom: auto;
}

.product-attr-modern .attribute-swatch-item.pe-none {
    cursor: not-allowed !important;
}

.product-attr-modern .attribute-swatch-item.pe-none > div {
    pointer-events: none !important;
}

.product-attr-modern .text-swatch .attribute-swatch-item.pe-none .attr-chip,
.product-attr-modern .text-swatch .attribute-swatch-item.pe-none span {
    color: #9a9fa8;
    background: #f1f2f4;
    border-style: dashed;
    border-color: #c5cad3;
    box-shadow: none;
    cursor: not-allowed;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    text-decoration-color: #b0b5bd;
}

.product-attr-modern .text-swatch .attribute-swatch-item.pe-none .attr-chip::before,
.product-attr-modern .text-swatch .attribute-swatch-item.pe-none .attr-chip::after,
.product-attr-modern .text-swatch .attribute-swatch-item.pe-none span::before,
.product-attr-modern .text-swatch .attribute-swatch-item.pe-none span::after {
    content: none !important;
    border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
    .product-page-modern .ps-product__shopping .ps-btn,
    .product-page-modern .ps-product__variants .item,
    .product-attr-modern .attr-chip,
    .product-attr-modern .text-swatch span,
    .product-attr-modern.product__attribute {
        transition: none !important;
    }

    .product-page-modern .ps-product__shopping .ps-btn:hover:not(.btn-disabled),
    .product-attr-modern .text-swatch li:not(.pe-none) label:hover span {
        translate: 0;
        scale: 1;
    }
}

@media (max-width: 991px) {
    .product-page-modern .widget_features,
    .ps-page--product .widget_features {
        padding: 1.1rem 1.15rem;
    }

    .product-page-modern .widget_features p,
    .ps-page--product .widget_features p {
        font-size: var(--fs-md, 1.0625rem);
        padding: 0.75rem 0;
        gap: 0.85rem;
    }

    .product-page-modern .widget_features p i,
    .ps-page--product .widget_features p i {
        width: 1.75rem;
        font-size: 1.5rem;
    }

    .product-attr-modern .attribute-name {
        font-size: var(--fs-md, 1.0625rem);
    }

    .product-attr-modern .attr-chip,
    .product-attr-modern .text-swatch span {
        min-height: 2.85rem;
        font-size: var(--fs-base, 1rem);
        padding: 0.5rem 0.9rem;
    }
}

@media (max-width: 575px) {
    .product-attributes {
        padding: 0.75rem;
        border-radius: 12px;
    }

    .product-page-modern .ps-product__shopping {
        flex-wrap: wrap;
    }

    .product-page-modern .widget_features,
    .ps-page--product .widget_features {
        padding: 1rem 1.05rem;
        border-radius: 12px;
    }

    .product-page-modern .widget_features p,
    .ps-page--product .widget_features p {
        font-size: var(--fs-md, 1.0625rem);
        padding: 0.7rem 0;
        gap: 0.8rem;
    }

    .product-page-modern .widget_features p i,
    .ps-page--product .widget_features p i {
        width: 1.65rem;
        font-size: 1.4rem;
    }

    .product-attr-modern .attr-chip,
    .product-attr-modern .text-swatch span {
        min-height: 3rem;
        font-size: var(--fs-base, 1rem);
    }

    .product-page-modern .ps-product__info > h1,
    .product-page-modern .ps-product__desc h1,
    .product-page-modern .ps-product__desc .h1 {
        font-size: 1.375rem;
    }

    .product-page-modern .ps-product__price {
        font-size: var(--fs-xl, 1.375rem);
    }
}
