.ht-hidden-vars {
    display: none !important;
}

#product .sticky-wrapper {
    background-color: var(--htsc-cart-bar-bg, #ffffff);
    left: 0;
    right: 0;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    position: fixed;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
    z-index: 999;
    display: none;
    /* Enhanced animations and transitions */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-100%);
    opacity: 0;
    /* Accessibility improvements */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Bottom bar: slide from below */
#product .sticky-wrapper.bottom {
    transform: translateY(100%);
}

body.sticky-add#product .sticky-wrapper {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

/* Reserve space when bar is fixed to bottom so page content is not covered */
body.sticky-add.sticky-cart-bar-bottom#product {
    padding-bottom: var(--htstickycart-bar-height, 0px);
}

#product .sticky-wrapper > .container {
    box-sizing: border-box;
}

#product .sticky-wrapper.top {
    top: 0;
    border-bottom: 1px solid #e1e1e1;
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
}

#product .sticky-wrapper.bottom {
    bottom: 0;
    border-top: 1px solid #e1e1e1;
}

/* Main bar: flex instead of floats for predictable height and alignment */
#product .sticky-wrapper .product-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

#product .sticky-wrapper .product-info-content {
    float: none;
    padding-right: 0;
    width: auto;
    flex: 1 1 auto;
    max-width: min(40%, 360px);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 0;
    box-sizing: border-box;
}

#product .sticky-wrapper .actions {
    float: none;
    margin-left: 0;
    vertical-align: middle;
}

#product .sticky-wrapper .actions .stickycart-btn {
    font-size: 15px;
    line-height: 1.35;
    padding: 10px 14px;
    margin-top: 0;
    max-width: 175px;
    min-width: 125px;
    white-space: normal;
}

#product .sticky-wrapper .product-sticky-img {
    max-width: 72px;
}

#product .sticky-wrapper .product-info-content > .product-sticky-img {
    flex: 0 0 auto;
    margin-right: 0;
}

#product .sticky-wrapper .product-sticky-img,
#product .sticky-wrapper .product-sticky-info {
    vertical-align: middle;
}

#product .sticky-wrapper .product-sticky-img img {
    position: relative;
    border: 1px solid #e1e1e1;
    display: block;
    max-width: 100%;
}

#product .sticky-wrapper .product-sticky-info {
    flex: 1 1 auto;
    min-width: min(100%, 200px);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-right: 0;
}

#product .sticky-wrapper .htsc-sticky-title-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
    min-width: 0;
    width: 100%;
    flex: 0 1 auto;
}

#product .sticky-wrapper .htsc-sticky-price-rating-row {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    max-width: 100%;
    min-width: 0;
    width: auto;
    vertical-align: top;
}

#product .sticky-wrapper .htsc-sticky-price-rating-row .product-rating {
    margin: 0;
    flex: 0 0 auto;
}

#product .sticky-wrapper .htsc-sticky-price-rating-row .product-info-price {
    flex: 0 1 auto;
    min-width: 0;
}

#product .sticky-wrapper .htsc-sticky-title-line {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0px 5px;
    max-width: 100%;
    min-width: 0;
    width: auto;
    vertical-align: top;
}

#product .sticky-wrapper .htsc-sticky-title-line .product-name-block {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
}

#product .sticky-wrapper .htsc-sticky-title-line .stock-info {
    margin: 0;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: baseline;
}

#product .sticky-wrapper .htsc-sticky-title-line .product-name-block h2 {
    margin: 0;
}

#product .sticky-wrapper .product-sticky-info .product-name-block h2 {
    font-size: 15px;
    color: var(--htsc-cart-text, #333333);
    margin: 0 0 4px;
    font-weight: 400;
    line-height: 1.25;
}

/* Prevent theme inheritance from stacking the title vertically in a narrow column */
#product .sticky-wrapper .product-sticky-info .product-name-block,
#product .sticky-wrapper .product-sticky-info .product-name {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
}

#product .sticky-wrapper .product-info-price {
    display: inline-block;
    vertical-align: middle;
}

#product .sticky-wrapper .product-info-price .regular-price {
    display: inline-block;
    vertical-align: middle;
}

#product .sticky-wrapper .product-info-price .regular-price .price {
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--htsc-cart-text, #333333);
    display: inline;
}

#product .sticky-wrapper .product-info-price .special-price {
    display: inline-block;
    vertical-align: middle;
}

#product .sticky-wrapper .product-info-price .special-price .price {
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--htsc-cart-text, #333333);
    display: inline;
}

#product .sticky-wrapper .product-info-price .old-price {
    display: inline-block;
    vertical-align: middle;
    padding-left: 10px;
}

#product .sticky-wrapper .product-info-price .old-price .price {
    font-size: 13px;
    line-height: 1.3;
    display: inline;
    font-weight: 400;
    color: var(--htsc-cart-text, #333333);
    position: relative;
}

#product .sticky-wrapper .product-info-price .old-price .price::after {
    content: "";
    display: block;
    height: 1px;
    background: var(--htsc-cart-text, #333333);
    left: 0;
    top: 50%;
    position: absolute;
    width: 100%;
}

#product .sticky-wrapper .product-info-price .price-box .special-price .price-wrapper .price,
#product .sticky-wrapper .product-info-price .price-box .old-price .price-wrapper .price,
#product .sticky-wrapper .stock.available,
#product .sticky-wrapper .stock.unavailable {
    color: var(--htsc-cart-text, #333333);
}

#product .sticky-wrapper .product-attribute {
    float: none;
    padding-left: 0;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

/* Variants + CTA on one row when space allows */
#product .sticky-wrapper .product-attribute > .htsc-variants-wrap {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
}

/* Qty + CTA: direct child of .product-actions (see htstickycart.tpl .htsc-sticky-cta) */
#product .sticky-wrapper .htsc-sticky-cta {
    flex: 0 0 auto;
    min-width: 0;
}

#product .sticky-wrapper .product-actions .control-label {
    margin-bottom: 0;
    display: block;
    color: var(--htsc-cart-text, #333333);
}

#product .sticky-wrapper .sticky-static-content {
    color: var(--htsc-cart-text, #333333);
    font-size: 14px;
    line-height: 22px;
    padding-bottom: 15px;
}

#product .sticky-wrapper .product-variants,
#product .sticky-wrapper .htsc-variants-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    float: none;
}

#product .sticky-wrapper .htsc-variants-wrap .product-variant.htsc_variants {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0;
    padding-right: 8px;
    min-width: 0;
    border: 0;
    padding-top: 0;
    padding-bottom: 0;
}

#product .sticky-wrapper .htsc-variants-wrap .product-variant__label {
    margin-block-end: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 6px;
    flex: 0 0 auto;
}

#product .sticky-wrapper .htsc-variants-wrap .product-variant__legend {
    display: inline;
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    color: var(--htsc-cart-text, #333333);
}

#product .sticky-wrapper .htsc-variants-wrap .product-variant__selected {
    font-size: 12px;
    color: var(--htsc-cart-text, #333333);
    opacity: 0.72;
    line-height: 1.2;
}

#product .sticky-wrapper .htsc-sticky-cta.js-product-add-to-cart,
#product .sticky-wrapper .js-product-add-to-cart {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    float: none;
    vertical-align: middle;
    margin-left: 0;
    box-shadow: none;
    padding: 0;
}

#product .sticky-wrapper .htsc-sticky-cta .product-quantity,
#product .sticky-wrapper .js-product-add-to-cart .product-quantity {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0;
}

#product .sticky-wrapper .htsc-sticky-cta .product-quantity::after,
#product .sticky-wrapper .js-product-add-to-cart .product-quantity::after {
    display: none;
}

#product .sticky-wrapper .product-discounts {
    display: inline-block;
    vertical-align: middle;
    display: none;
}

#product .sticky-wrapper .product-sticky-info {
    margin-left: 0;
}

/* Hummingbird color swatches: theme supplies .input-color / .product-variant__colors; keep bar compact */
#product .sticky-wrapper .product-variant__colors .input-color__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.32);
    background-color: #e8e8e8;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

#product .sticky-wrapper .product-variant__colors .input-color__label:hover {
    border-color: rgba(0, 0, 0, 0.48);
    background-color: #e0e0e0;
}

#product .sticky-wrapper .product-variant__colors .input-color__label--texture {
    background-color: #ececec;
}

#product .sticky-wrapper .product-variant__colors .input-color__input:focus-visible + .input-color__label {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

#product .sticky-wrapper .product-variant__colors .color {
    width: 1.35rem;
    height: 1.35rem;
    box-sizing: border-box;
    border-radius: 4px;
    /* Inner edge so fills (especially white) read against the label pad */
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
}

#product .sticky-wrapper .product-variant__colors .color.texture {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

/* Selected swatch: strong frame (class + :checked for themes that only sync input state) */
#product .sticky-wrapper .product-variant__colors .input-color__label--active,
#product .sticky-wrapper .product-variant__colors .input-color__input:checked + .input-color__label {
    border: 1px solid #333333;
    border: 1px solid color-mix(in srgb, var(--htsc-cart-text, #1a1a1a) 72%, #555555);
    background-color: #d2d2d2;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.98),
        0 0 0 3px color-mix(in srgb, var(--htsc-cart-text, #222222) 75%, transparent),
        0 2px 6px rgba(0, 0, 0, 0.2);
}

#product .sticky-wrapper .product-variant__colors .input-color__label--active .color,
#product .sticky-wrapper .product-variant__colors .input-color__input:checked + .input-color__label .color {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

#product .product-actions .js-product-add-to-cart .control-label {
    display: none;
}

#product .sticky-wrapper .htsc-sticky-cta .product-quantity .add,
#product .sticky-wrapper .js-product-add-to-cart .product-quantity .add {
    margin-top: 0;
    flex: 0 0 auto;
}

.product-info-price-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    width: 100%;
    font-size: inherit;
}

#product .sticky-wrapper .product-info-price-inner > .special-price,
#product .sticky-wrapper .product-info-price-inner > .regular-price {
    flex: 0 0 auto;
}

#product .sticky-wrapper .product-info-price-inner > .old-price {
    flex: 0 0 auto;
}

#product .sticky-wrapper .product-info-price-inner > .savings-amount {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 991px) {
    #product .sticky-wrapper .product-attribute {
        max-width: none;
        flex: 1 1 auto;
    }

    #product .sticky-wrapper .product-info-content {
        max-width: min(46%, 300px);
    }

    #product .sticky-wrapper .product-sticky-img {
        margin-right: 10px;
        max-width: 64px;
    }

    #product .sticky-wrapper .product-sticky-info {
        max-width: min(42vw, 340px);
        min-width: 140px;
        margin-right: 10px;
    }

    #product .sticky-wrapper .product-info-price .old-price .price {
        font-size: 12px;
    }

    #product .sticky-wrapper .product-info-price .special-price .price {
        font-size: 13px;
    }

    #product .sticky-wrapper .product-sticky-info .product-name-block h2 {
        font-size: 14px;
        line-height: 20px;
        margin: 0 0 4px;
    }

    #product .sticky-wrapper .actions {
        margin-left: 10px;
    }

    #product .sticky-wrapper .actions .stickycart-btn {
        max-width: 160px;
        min-width: auto;
    }

}

@media (max-width: 767px) {
    /* Tighter bar — less vertical space on phones */
    #product .sticky-wrapper {
        padding: 4px 0;
        padding-bottom: calc(4px + env(safe-area-inset-bottom, 0px));
    }

    #product .sticky-wrapper.top {
        padding-top: calc(4px + env(safe-area-inset-top, 0px));
    }

    #product .sticky-wrapper > .container {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        padding-left: max(0.5rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.5rem, env(safe-area-inset-right, 0px));
    }

    #product .sticky-wrapper .product-sticky-img,
    #product .sticky-wrapper .product-sticky-info {
        margin-right: 6px;
        display: block;
        vertical-align: middle;
    }

    #product .sticky-wrapper .product-sticky-info {
        max-width: none;
        min-width: 0;
        flex: 1 1 0;
    }

    #product .sticky-wrapper .product-sticky-img {
        max-width: 44px;
        flex-shrink: 0;
    }

    #product .sticky-wrapper .product-sticky-img img {
        max-height: 44px;
        width: auto;
        object-fit: contain;
    }

    #product .sticky-wrapper .product-info-content .product-name-block h2 {
        font-size: 13px;
        line-height: 1.2;
        margin: 0 0 2px;
    }

    /* Hide "Qty:" visually; input keeps aria-label from tpl */
    #product .sticky-wrapper .htsc-quantity-label {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    /* Pill: horizontal strip on narrow viewports */
    #product .sticky-wrapper.layout-pill .product-actions {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        align-items: center;
        gap: 8px;
    }

    #product .sticky-wrapper.layout-pill .product-info-content,
    #product .sticky-wrapper.layout-pill .product-attribute,
    #product .sticky-wrapper.layout-pill .htsc-sticky-cta {
        grid-column: unset;
        grid-row: unset;
    }

    #product .sticky-wrapper.layout-pill .htsc-sticky-cta {
        max-width: none;
        justify-self: auto;
        flex-shrink: 0;
    }

    #product .sticky-wrapper.layout-pill .htsc-sticky-cta .htsc-addtocart-text {
        display: inline !important;
    }

    #product .sticky-wrapper.layout-pill .htsc-sticky-cta .add-to-cart.btn-primary {
        font-size: 11px;
        line-height: 1.2;
        min-width: 0;
    }

    #product .sticky-wrapper.layout-pill .htsc-sticky-cta .add-to-cart.btn-primary .material-icons {
        display: none !important;
    }

    #product .sticky-wrapper.layout-pill .product-attribute {
        flex-direction: row;
        flex-wrap: nowrap;
        width: auto;
        flex: 0 1 auto;
        min-width: 0;
    }

    #product .sticky-wrapper.layout-pill .product-info-content {
        flex-shrink: 0;
        margin-right: auto;
    }

    /* One row per attribute: label | control (saves a full line vs stacked) */
    #product .sticky-wrapper .htsc-variants-wrap .product-variant.htsc_variants {
        width: 100%;
        flex: 0 0 auto;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        padding-right: 0;
    }

    #product .sticky-wrapper .htsc-variants-wrap .product-variant__label {
        width: auto;
        flex: 0 0 auto;
        max-width: 32%;
        min-width: 0;
    }

    /* Duplicates the select / swatch; hiding removes an extra text line */
    #product .sticky-wrapper .htsc-variants-wrap .product-variant__selected {
        display: none !important;
    }

    #product .sticky-wrapper .htsc-variants-wrap .product-variant__legend {
        font-size: 11px;
    }

    #product .sticky-wrapper .htsc-variants-wrap select.form-select,
    #product .sticky-wrapper .htsc-variants-wrap .form-control-select {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        max-width: none;
        min-height: 40px;
        padding: 5px 10px;
        font-size: 16px;
        line-height: 1.2;
        box-sizing: border-box;
    }

    #product .sticky-wrapper .product-variant__colors {
        display: flex;
        flex: 1 1 0;
        flex-wrap: wrap;
        gap: 6px;
        align-items: center;
        min-width: 0;
        justify-content: flex-start;
    }

    #product .sticky-wrapper .product-attribute > .htsc-variants-wrap {
        order: 1;
    }

    #product .sticky-wrapper .product-info-price .regular-price .price {
        font-size: 13px;
        line-height: 1.2;
    }

    #product .sticky-wrapper .product-info-price .special-price .price {
        font-size: 13px;
        line-height: 1.2;
    }

    #product .sticky-wrapper .product-info-price .old-price .price {
        font-size: 12px;
        line-height: 1.2;
    }

    #product .sticky-wrapper .actions {
        float: right;
        margin-left: 5px;
    }

    #product .sticky-wrapper .actions .stickycart-btn {
        font-size: 13px;
        line-height: 20px;
        padding: 6px 12px;
        margin-top: 7px;
        max-width: 175px;
    }

    #product .sticky-wrapper .sticky-static-content {
        display: none;
    }

    #product .sticky-wrapper .htsc-sticky-cta.js-product-add-to-cart,
    #product .sticky-wrapper .js-product-add-to-cart {
        margin-left: 0;
    }

    #product .sticky-wrapper .product-info-price-inner {
        gap: 2px 6px;
        align-items: center;
    }

    #product .sticky-wrapper .savings-amount {
        flex: 0 1 auto;
    }

    #product .sticky-wrapper .savings-text,
    #product .sticky-wrapper .savings-value {
        font-size: 11px;
    }

    #product .sticky-wrapper .htsc-sticky-price-rating-row .product-rating {
        margin: 0;
    }

    /* Catalog: CTA markup omitted — single column top row */
    #product .sticky-wrapper .product-actions:not(:has(.htsc-sticky-cta)) {
        grid-template-columns: 1fr;
    }

    #product .sticky-wrapper .product-actions:not(:has(.htsc-sticky-cta)) .product-info-content {
        grid-column: 1;
        grid-row: 1;
    }

    #product .sticky-wrapper .product-actions:not(:has(.htsc-sticky-cta)) .product-attribute {
        grid-column: 1;
        grid-row: 2;
    }

    #product .sticky-wrapper .quantity-selector {
        gap: 4px;
    }

    #product .sticky-wrapper .quantity-selector label {
        font-size: 10px;
    }
}

@media (max-width: 639px) {
    #product .sticky-wrapper .product-sticky-info {
        max-width: none;
    }

    #product .sticky-wrapper .htsc-variants-wrap .product-variant__colors .color {
        width: 1.25rem;
        height: 1.25rem;
    }

    #product .sticky-wrapper .product-info-content {
        width: 100%;
        max-width: 100%;
    }

    #product .sticky-wrapper .actions .stickycart-btn {
        max-width: 135px;
    }

    #product .sticky-wrapper .htsc-variants-wrap .product-variant.htsc_variants {
        padding-right: 0;
    }
}

@media (max-width: 479px) {
    #product .sticky-wrapper .product-sticky-img {
        max-width: 50px;
        margin-right: 10px;
    }

    #product .sticky-wrapper .product-sticky-info {
        display: inline-block;
        vertical-align: middle;
        max-width: 100%;
    }

    #product .sticky-wrapper .product-info-content {
        width: 100%;
    }

    #product .sticky-wrapper .product-info-content .product-name-block h2 {
        font-size: 13px;
        line-height: 16px;
    }

    #product .sticky-wrapper .actions .stickycart-btn {
        max-width: 100px;
        margin-top: 3px;
        font-size: 12px;
        font-weight: 600;
        padding: 5px 9px;
    }

    #product .sticky-wrapper .htsc-sticky-cta.js-product-add-to-cart,
    #product .sticky-wrapper .js-product-add-to-cart {
        margin-left: 0;
    }

    #product .product-actions .control-label {
        display: none;
    }

    #product .sticky-wrapper .htsc-variants-wrap .product-variant.htsc_variants {
        margin: 0;
    }

    #product .sticky-wrapper .htsc-sticky-cta .product-quantity .add,
    #product .sticky-wrapper .js-product-add-to-cart .product-quantity .add {
        padding-top: 0;
        margin: 0;
    }

    #product .sticky-wrapper .js-product-actions {
        padding-bottom: 0;
    }

    #product .sticky-wrapper.top {
        padding-bottom: 0;
    }
}

body.sticky-add#product .quickview.modal .sticky-wrapper {
    display: none;
}

/* Enhanced Mobile Optimizations (class toggled by JS from matchMedia + UA) */
#product .sticky-wrapper.mobile-optimized {
    padding: 8px 0;
    -webkit-tap-highlight-color: transparent;
}

#product .sticky-wrapper.mobile-optimized button,
#product .sticky-wrapper.mobile-optimized .add-to-cart.btn-primary {
    min-height: 40px;
    min-width: 0;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    touch-action: manipulation;
}

/* Icon-only sticky CTA: undo font-size on button so .material-icons sizing works */
#product .sticky-wrapper.mobile-optimized .htsc-sticky-cta .add-to-cart.btn-primary {
    font-size: 0;
    line-height: 0;
    min-width: 42px;
    padding: 6px 10px;
}

#product .sticky-wrapper.mobile-optimized .htsc-sticky-cta .add-to-cart.btn-primary .material-icons {
    font-size: 22px;
    line-height: 1;
}

#product .sticky-wrapper.mobile-optimized .quantity-input {
    min-height: 40px;
    padding-block: 4px;
    font-size: 16px;
    touch-action: manipulation;
}

#product .sticky-wrapper.mobile-optimized .product-variant__colors .input-color__label {
    min-width: 2.35rem;
    min-height: 2.35rem;
    padding: 2px;
}

#product .sticky-wrapper.mobile-optimized .product-variant__colors .color {
    width: 1.35rem;
    height: 1.35rem;
}

/* Accessibility Enhancements */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

#product .sticky-wrapper button:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

#product .sticky-wrapper button:focus:not(:focus-visible) {
    outline: none;
}

#product .sticky-wrapper button:focus-visible {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    #product .sticky-wrapper {
        border: 2px solid #000;
        background-color: #fff;
    }
    
    #product .sticky-wrapper button {
        border: 2px solid #000;
        background-color: #fff;
        color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    #product .sticky-wrapper {
        transition: none;
    }
    
    #product .sticky-wrapper * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Swipe indicator for mobile */
#product .sticky-wrapper.mobile-optimized::before {
    content: "↑ Swipe up to dismiss";
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #666;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#product .sticky-wrapper.mobile-optimized:hover::before {
    opacity: 1;
}

/* Enhanced button states */
#product .sticky-wrapper button {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

#product .sticky-wrapper button:active {
    transform: translateY(1px);
}

#product .sticky-wrapper button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading state for buttons */
#product .sticky-wrapper button.loading {
    position: relative;
    color: transparent;
}

#product .sticky-wrapper button.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced responsive design */
@media (max-width: 480px) {
    #product .sticky-wrapper {
        padding: 6px 0;
    }

    #product .sticky-wrapper .product-attribute {
        width: 100%;
        padding-left: 0;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    #product .sticky-wrapper {
        background-color: #2d3748;
        color: #e2e8f0;
        border-color: #4a5568;
    }
    
    #product .sticky-wrapper .product-name,
    #product .sticky-wrapper .price {
        color: #e2e8f0;
    }
    
    #product .sticky-wrapper button {
        background-color: #4299e1;
        color: #fff;
        border-color: #4299e1;
    }
    
    #product .sticky-wrapper button:hover {
        background-color: #3182ce;
        border-color: #3182ce;
    }

    #product .sticky-wrapper .product-variant__colors .input-color__label {
        background-color: #4a5568;
        border-color: rgba(255, 255, 255, 0.22);
    }

    #product .sticky-wrapper .product-variant__colors .input-color__label:hover {
        border-color: rgba(255, 255, 255, 0.4);
    }

    #product .sticky-wrapper .product-variant__colors .input-color__label--texture {
        background-color: #3d4a5c;
    }

    #product .sticky-wrapper .product-variant__colors .input-color__label--active,
    #product .sticky-wrapper .product-variant__colors .input-color__input:checked + .input-color__label {
        border-color: rgba(255, 255, 255, 0.75);
        background-color: #5a6778;
        box-shadow:
            0 0 0 2px #2d3748,
            0 0 0 3px rgba(255, 255, 255, 0.45),
            0 2px 8px rgba(0, 0, 0, 0.35);
    }
}

/* Phase 2: Advanced Features Styles */

/* Product Rating Styles */
#product .sticky-wrapper .product-rating {
    margin: 5px 0;
}

#product .sticky-wrapper .product-rating .stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

#product .sticky-wrapper .product-rating .star {
    color: #ddd;
    font-size: 14px;
    transition: color 0.2s ease;
}

#product .sticky-wrapper .product-rating .star.filled {
    color: #ffc107;
}

#product .sticky-wrapper .product-rating .rating-count {
    margin-left: 5px;
    font-size: 12px;
    color: var(--htsc-cart-text, #666666);
    opacity: 0.85;
}

/* Stock Information Styles (in .htsc-sticky-title-line — inline with product title) */
#product .sticky-wrapper .stock-info {
    margin: 0;
}

#product .sticky-wrapper .stock-status {
    font-size: 12px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 3px;
}

#product .sticky-wrapper .stock-status.in-stock {
    color: #28a745;
    background-color: #d4edda;
}

#product .sticky-wrapper .stock-status.low-stock {
    color: #ffc107;
    background-color: #fff3cd;
}

#product .sticky-wrapper .stock-status.out-of-stock {
    color: #dc3545;
    background-color: #f8d7da;
}

/* Savings Display Styles */
#product .sticky-wrapper .savings-amount {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

#product .sticky-wrapper .savings-text {
    font-size: 11px;
    color: #666;
}

#product .sticky-wrapper .savings-value {
    font-size: 12px;
    font-weight: 600;
    color: #28a745;
}

/* Quantity Selector Styles */
#product .sticky-wrapper .quantity-selector {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 0;
    white-space: nowrap;
}

#product .sticky-wrapper .quantity-selector label {
    font-size: 11px;
    color: var(--htsc-cart-text, #666666);
    opacity: 0.85;
    margin: 0;
}

#product .sticky-wrapper .quantity-input {
    width: 52px;
    height: 34px;
    padding: 2px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
    font-size: 13px;
}

#product .sticky-wrapper .add-to-cart.btn-primary {
    padding: 8px 14px;
    font-size: 14px;
    line-height: 1.25;
    white-space: nowrap;
}

#product .sticky-wrapper .add-to-cart.btn-primary .material-icons {
    font-size: 18px;
    vertical-align: middle;
    margin-right: 4px;
}

#product .sticky-wrapper .actions .stickycart-btn,
#product .sticky-wrapper .add-to-cart.btn-primary {
    background-color: var(--htsc-cart-btn-bg, #2fb5d2);
    border-color: var(--htsc-cart-btn-border, var(--htsc-cart-btn-bg, #2fb5d2));
    color: var(--htsc-cart-btn-text, #ffffff);
}

#product .sticky-wrapper .actions .stickycart-btn:hover,
#product .sticky-wrapper .add-to-cart.btn-primary:hover {
    background-color: var(--htsc-cart-btn-bg-hover, #2592a9);
    border-color: var(--htsc-cart-btn-border-hover, var(--htsc-cart-btn-bg-hover, #2592a9));
    color: var(--htsc-cart-btn-text-hover, #ffffff);
}

#product .sticky-wrapper .quantity-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

/* Pill row “boutique” layout */
#product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner {
    display: contents;
}

/* Unwrapped on desktop so .product-actions lays out info + controls; mobile overrides below */
#product .sticky-wrapper.layout-pill .htsc-pill-mobile-controls {
    display: contents;
}

#product .sticky-wrapper.layout-pill {
    padding: 6px 0;
}

#product .sticky-wrapper.layout-pill .savings-amount {
    display: none !important;
}

#product .sticky-wrapper.layout-pill .product-actions {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    background: var(--htsc-cart-bar-bg, #f4f1ea);
    border-radius: 999px;
    padding: 10px 18px 10px 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

#product .sticky-wrapper.layout-pill .product-info-content {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
    gap: 10px 12px;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    align-self: center;
}

#product .sticky-wrapper.layout-pill .product-info-content > .product-sticky-img,
#product .sticky-wrapper.layout-pill .product-info-content > img {
    align-self: center;
    flex-shrink: 0;
}

#product .sticky-wrapper.layout-pill .product-sticky-img {
    max-width: 44px;
    flex-shrink: 0;
}

#product .sticky-wrapper.layout-pill .product-sticky-img img {
    border-radius: 8px;
    max-height: 44px;
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

#product .sticky-wrapper.layout-pill .product-sticky-info {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px 14px;
    min-width: 0;
    flex: 1 1 auto;
}

#product .sticky-wrapper.layout-pill .htsc-sticky-title-stack {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

#product .sticky-wrapper.layout-pill .product-name-block {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    align-self: flex-start;
}

#product .sticky-wrapper.layout-pill .product-name-block h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(32vw, 220px);
    color: var(--htsc-cart-text, #4a3428);
}

#product .sticky-wrapper.layout-pill .htsc-sticky-price-rating-row {
    flex: 0 0 auto;
    min-width: 0;
    align-self: center;
}

#product .sticky-wrapper.layout-pill .product-info-price {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
}

#product .sticky-wrapper.layout-pill .product-info-price-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px 10px;
    align-items: center;
    justify-content: flex-start;
}

#product .sticky-wrapper.layout-pill .product-info-price .old-price {
    padding-left: 6px;
    margin: 0;
}

#product .sticky-wrapper.layout-pill .product-info-price .regular-price .price,
#product .sticky-wrapper.layout-pill .product-info-price .special-price .price {
    color: var(--htsc-cart-text, #4a3428);
    font-weight: 700;
}

#product .sticky-wrapper.layout-pill .product-info-price .old-price .price {
    color: var(--htsc-cart-text, #4a3428);
    opacity: 0.72;
}

#product .sticky-wrapper.layout-pill .product-attribute {
    flex: 0 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 8px;
    display: flex;
    align-items: center;
    align-self: center;
}

#product .sticky-wrapper.layout-pill .htsc-variants-wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
}

@media (min-width: 768px) {
    #product .sticky-wrapper.layout-pill .product-actions {
        align-items: center;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-controls {
        display: inline-flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
        flex: 0 1 auto;
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    #product .sticky-wrapper.layout-pill .product-attribute {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
    }

    /* Size dropdown + color swatches on one row */
    #product .sticky-wrapper.layout-pill .htsc-variants-wrap {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
        align-items: center;
        justify-content: flex-end;
        margin: 0;
    }

    #product .sticky-wrapper.layout-pill .htsc-variants-wrap .product-variant.htsc_variants {
        justify-content: flex-end;
        flex: 0 0 auto;
    }

    #product .sticky-wrapper.layout-pill .htsc-variants-wrap .product-variant.htsc_variants:has(.product-variant__colors) {
        width: auto;
        max-width: none;
        justify-content: flex-end;
    }

    #product .sticky-wrapper.layout-pill .product-variant__colors {
        justify-content: flex-start;
        width: auto;
    }
}

#product .sticky-wrapper.layout-pill .htsc-variants-wrap .product-variant.htsc_variants {
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin: 0;
    border: 0;
    min-height: 34px;
    align-self: center;
}

#product .sticky-wrapper.layout-pill .htsc-variants-wrap .product-variant__label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

#product .sticky-wrapper.layout-pill .htsc-variants-wrap select.form-select,
#product .sticky-wrapper.layout-pill .htsc-variants-wrap .form-control-select {
    box-sizing: border-box;
    min-height: 34px;
    height: 34px;
    padding: 5px 28px 5px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    max-width: 6.5rem;
    color: var(--htsc-cart-text, #2c241c);
    background-color: color-mix(in srgb, var(--htsc-cart-btn-bg, #d9c5a1) 28%, #ffffff);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a4a38' d='M1 1.5L6 6l5-4.5' stroke='%235a4a38' stroke-width='0.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 6px;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    appearance: none;
    -webkit-appearance: none;
}

#product .sticky-wrapper.layout-pill .product-variant__colors {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    align-self: center;
    gap: 8px;
    min-height: 38px;
}

#product .sticky-wrapper.layout-pill .product-variant__colors .input-color__label {
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    margin: 0;
    padding: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    background-color: #e8e8e8;
}

#product .sticky-wrapper.layout-pill .product-variant__colors .color {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    border-radius: 4px;
}

#product .sticky-wrapper.layout-pill .product-variant__colors .input-color__label--active,
#product .sticky-wrapper.layout-pill .product-variant__colors .input-color__input:checked + .input-color__label {
    background-color: #cfcfcf;
    border-color: #333333;
    border-color: color-mix(in srgb, var(--htsc-cart-text, #222222) 70%, #444444);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.98),
        0 0 0 3px color-mix(in srgb, var(--htsc-cart-text, #222222) 78%, transparent),
        0 2px 5px rgba(0, 0, 0, 0.18);
}

#product .sticky-wrapper.layout-pill .htsc-sticky-cta {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    align-self: center;
}

#product .sticky-wrapper.layout-pill .htsc-sticky-cta .product-quantity {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    float: none;
    clear: none;
}

#product .sticky-wrapper.layout-pill .htsc-sticky-cta .product-quantity::before,
#product .sticky-wrapper.layout-pill .htsc-sticky-cta .product-quantity::after {
    content: none;
    display: none;
}

#product .sticky-wrapper.layout-pill .htsc-sticky-cta .add {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

#product .sticky-wrapper.layout-pill .htsc-quantity-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

#product .sticky-wrapper.layout-pill .htsc-qty-stepper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    box-sizing: border-box;
    min-height: 34px;
    height: 34px;
    background: color-mix(in srgb, var(--htsc-cart-btn-bg, #d9c5a1) 28%, #ffffff);
    border-radius: 999px;
    padding: 0 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    align-self: center;
}

#product .sticky-wrapper.layout-pill .htsc-qty-btn {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: var(--htsc-cart-text, #5a4a38);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    padding: 0 8px;
    height: 100%;
    min-height: 0;
    cursor: pointer;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#product .sticky-wrapper.layout-pill .htsc-qty-btn:focus-visible {
    outline: 2px solid var(--htsc-cart-text, #4a3428);
    outline-offset: 1px;
}

#product .sticky-wrapper.layout-pill .htsc-qty-stepper .quantity-input {
    width: 28px;
    min-width: 24px;
    height: 28px;
    min-height: 28px;
    padding: 0 2px;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--htsc-cart-text, #4a3428);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    border-radius: 0;
    -moz-appearance: textfield;
}

#product .sticky-wrapper.layout-pill .htsc-qty-stepper .quantity-input::-webkit-outer-spin-button,
#product .sticky-wrapper.layout-pill .htsc-qty-stepper .quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#product .sticky-wrapper.layout-pill .add-to-cart.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 34px;
    height: 34px;
    padding: 0 16px;
    background: var(--htsc-cart-btn-bg, #f2c037) !important;
    border-color: var(--htsc-cart-btn-border, #d4a520) !important;
    color: var(--htsc-cart-btn-text, #2c241c) !important;
    text-transform: none;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 0.01em;
    white-space: nowrap;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    align-self: center;
}

#product .sticky-wrapper.layout-pill .add-to-cart.btn-primary:hover {
    background: var(--htsc-cart-btn-bg-hover, #ffd54a) !important;
    border-color: var(--htsc-cart-btn-border-hover, #c49810) !important;
    color: var(--htsc-cart-btn-text-hover, #1a1510) !important;
}

#product .sticky-wrapper.layout-pill .add-to-cart.btn-primary .material-icons {
    display: none !important;
}

/* Pill layout: mobile floating card — row1: thumb | name+price stacked; row2: variants + qty + icon CTA */
@media (max-width: 767px) {
    #product .sticky-wrapper.layout-pill {
        padding: 10px 0 12px;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    #product .sticky-wrapper.layout-pill.top {
        border-bottom: 0;
    }

    #product .sticky-wrapper.layout-pill.bottom {
        border-top: 0;
    }

    #product .sticky-wrapper.layout-pill > .container {
        padding-left: max(12px, env(safe-area-inset-left, 0px));
        padding-right: max(12px, env(safe-area-inset-right, 0px));
    }

    #product .sticky-wrapper.layout-pill .product-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow: visible;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        background: #fff;
        border-radius: 22px;
        padding: 14px 14px 16px;
        box-shadow: 0 4px 22px rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(0, 0, 0, 0.06);
        isolation: isolate;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner > .product-info-content {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        margin: 0;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 12px;
    }

    /* No attribute groups: one row — thumb + info + CTA aligned to the right (no extra row under text) */
    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner.htsc-pill-no-variants {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner.htsc-pill-no-variants > .product-info-content {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        max-width: none;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner.htsc-pill-no-variants .htsc-pill-mobile-controls {
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
        max-width: none;
        justify-content: flex-end;
        align-self: center;
        flex-shrink: 0;
        overflow: visible;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner.htsc-pill-no-variants .htsc-pill-mobile-controls > .product-attribute {
        display: contents;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner.htsc-pill-no-variants .htsc-pill-mobile-controls .htsc-sticky-cta .quantity-selector,
    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner.htsc-pill-no-variants .htsc-pill-mobile-controls .htsc-sticky-cta .add {
        flex-shrink: 0;
    }

    /* Row 1: thumb | name + price (stacked, like mockup) */
    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .product-info-content .product-sticky-info {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 6px;
        flex: 1 1 auto;
        min-width: 0;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .htsc-sticky-title-stack {
        width: 100%;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .product-info-content .htsc-sticky-price-rating-row {
        width: 100%;
        max-width: 100%;
        align-items: center;
        gap: 6px 10px;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .htsc-pill-mobile-controls {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        width: 100%;
        min-width: 0;
        flex: 0 0 auto;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .htsc-pill-mobile-controls .htsc-sticky-cta {
        display: contents;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .htsc-pill-mobile-controls .product-quantity {
        display: contents;
    }

    /* Row 2 order (document order + display:contents): [ S ▼ ][ color ][- 1 +][ cart ] */
    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .htsc-pill-mobile-controls .htsc-sticky-cta .quantity-selector {
        display: inline-flex;
        align-items: center;
        margin: 0;
        flex: 0 0 auto;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .htsc-pill-mobile-controls > .product-attribute {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        max-width: none;
        margin: 0;
        padding: 0;
        border: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        overflow: visible;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .htsc-pill-mobile-controls .htsc-sticky-cta .add {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        flex: 0 0 auto;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .htsc-pill-mobile-controls:has(.htsc-sticky-cta):not(:has(.htsc-sticky-cta .quantity-selector)) > .product-attribute {
        flex: 1 1 auto;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .htsc-pill-mobile-controls > .product-attribute:only-child {
        flex: 1 1 auto;
        justify-content: center;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .product-info-content > img.product-sticky-img,
    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .product-info-content > img.img-fluid {
        width: 48px;
        height: 48px;
        max-width: 48px;
        max-height: 48px;
        object-fit: cover;
        border-radius: 10px;
        border: 1px solid #e8e8e8;
        box-shadow: none;
        flex-shrink: 0;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .product-info-content .product-name-block {
        min-width: 0;
        flex: 0 1 auto;
        width: auto;
        max-width: 100%;
        align-self: auto;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .product-info-content .product-name-block h2 {
        color: var(--htsc-cart-text, #111);
        font-size: 14px;
        font-weight: 400;
        line-height: 1.25;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .product-info-content .product-info-price {
        flex: 0 1 auto;
        width: auto;
        max-width: 100%;
        margin: 0;
        align-self: center;
        text-align: left;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .product-info-content .product-info-price .regular-price .price,
    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .product-info-content .product-info-price .special-price .price {
        color: var(--htsc-cart-text, #111);
        font-weight: 500;
        font-size: 14px;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .product-info-content .product-info-price .old-price .price {
        color: var(--htsc-cart-text, #111);
        opacity: 0.65;
        font-size: 12px;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .product-info-content .product-info-price .product-info-price-inner {
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
    }

    /* Icon-only CTA (text hidden; label stays in tpl for aria) */
    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .htsc-pill-mobile-controls .htsc-sticky-cta .add .add-to-cart.btn-primary {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        padding: 0 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50% !important;
        background: var(--htsc-cart-btn-bg, #f2c037) !important;
        border: 1px solid var(--htsc-cart-btn-border, #d4a520) !important;
        color: var(--htsc-cart-btn-text, #2c241c) !important;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1) !important;
        text-transform: none;
        font-size: 0;
        line-height: 0;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .htsc-pill-mobile-controls .htsc-sticky-cta .add .add-to-cart.btn-primary:hover {
        background: var(--htsc-cart-btn-bg-hover, #ffd54a) !important;
        border-color: var(--htsc-cart-btn-border-hover, #d4a520) !important;
        color: var(--htsc-cart-btn-text-hover, #222) !important;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .htsc-pill-mobile-controls .htsc-sticky-cta .add .htsc-addtocart-text {
        display: none !important;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .htsc-pill-mobile-controls .htsc-sticky-cta .add .add-to-cart.btn-primary .material-icons {
        display: block !important;
        font-size: 22px;
        line-height: 1;
        margin: 0;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .htsc-qty-stepper {
        background: #fff;
        border: 1px solid #c8c8c8;
        border: 1px solid color-mix(in srgb, var(--htsc-cart-text, #333) 18%, #e8e8e8);
        border-radius: 999px;
        box-shadow: none;
        padding: 2px 4px;
        min-height: 36px;
        height: 36px;
        box-sizing: border-box;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .htsc-qty-btn {
        color: var(--htsc-cart-text, #333);
        padding: 4px 8px;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .htsc-qty-stepper .quantity-input {
        color: var(--htsc-cart-text, #111);
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .htsc-variants-wrap select.form-select,
    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .htsc-variants-wrap .form-control-select {
        max-width: 5.5rem;
        min-width: 0;
        flex: 0 1 auto;
        background-color: color-mix(in srgb, var(--htsc-cart-btn-bg, #d9c5a1) 24%, #ffffff);
        color: var(--htsc-cart-text, #111);
        border: 1px solid #d4cec4;
        border: 1px solid color-mix(in srgb, var(--htsc-cart-text, #333) 12%, #d4cec4);
        border-radius: 999px;
        box-shadow: none;
        min-height: 36px;
        height: 36px;
        padding: 4px 24px 4px 10px;
        font-size: 11px;
        font-weight: 600;
        box-sizing: border-box;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a4a38' d='M1 1.5L6 6l5-4.5'/%3E%3C/svg%3E");
        appearance: none;
        -webkit-appearance: none;
    }

    /* Hide “Size” / “Color” copy; keep legends for screen readers (same pattern as desktop pill) */
    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .htsc-variants-wrap .product-variant__label {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
        flex: 0 0 auto;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .htsc-variants-wrap .product-variant__selected {
        display: none !important;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .htsc-variants-wrap .product-variant.htsc_variants {
        position: relative;
        min-width: 0;
        flex: 0 1 auto;
        max-width: none;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .htsc-variants-wrap {
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        gap: 6px 8px;
        align-items: center;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .htsc-variants-wrap .product-variant.htsc_variants:has(select.form-select) {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        align-self: center;
        gap: 0;
        max-width: 100%;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .htsc-variants-wrap .product-variant.htsc_variants:has(.product-variant__colors) {
        flex: 0 1 auto;
        max-width: none;
    }

    #product .sticky-wrapper.layout-pill .htsc-pill-mobile-card-inner .htsc-variants-wrap .product-variant.htsc_variants:has(.product-variant__radios) {
        flex: 0 1 auto;
        max-width: none;
    }
}

/* Animation Types */
#product .sticky-wrapper.animation-fade {
    transition: opacity 0.3s ease;
}

#product .sticky-wrapper.animation-bounce {
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Enhanced Mobile Styles for New Features */
@media (max-width: 767px) {
    #product .sticky-wrapper .quantity-selector {
        margin-bottom: 0;
    }
    
    #product .sticky-wrapper .product-rating .star {
        font-size: 12px;
    }
    
    #product .sticky-wrapper .stock-status {
        font-size: 11px;
    }
}