/* Default storefront: keep the mobile theme independent of desktop window resizing. */
.storefront-layout {
    --storefront-gap: clamp(12px, 1.6vw, 24px);
    --storefront-gutter: clamp(16px, 2.5vw, 32px);
    min-width: 0;
}

.storefront-layout > .column-item > .container {
    width: 100%;
    max-width: 1564px;
    padding-inline: var(--storefront-gutter);
}

/* Keep category gutters continuous across the framework's container breakpoints. */
.container.storefront-category-page {
    width: 100%;
    max-width: 1564px;
    padding-inline: clamp(16px, 2.5vw, 32px);
}

.storefront-category-page .storefront-layout .new_product-layout-row { padding-inline: 0; }

body.common-home .storefront-layout .widget-title {
    margin-top: clamp(24px, 3.3333vw, 48px);
}

.storefront-layout .widget-title_flex {
    gap: 12px;
    flex-wrap: wrap;
}

.storefront-layout .widget-title span,
.storefront-layout .module-title span {
    font-size: clamp(22px, 2vw, 32px);
    overflow-wrap: anywhere;
}

.storefront-layout .widget-title_more {
    flex-shrink: 0;
}

/* Refurbished pages use their own modules inside the shared preorder view. */
.storefront-refurbished section > .max-w-screen-2xl,
.storefront-refurbished .ref-banner > div > .max-w-screen-2xl {
    width: 100%;
    padding-inline: var(--storefront-gutter);
}

.storefront-refurbished :is(h1, h2, h3, h4, p, a) { overflow-wrap: anywhere; }
.storefront-refurbished [id] { scroll-margin-top: 112px; }
.storefront-refurbished .ref-before li > svg,
.storefront-refurbished .ref-after li > svg { flex-shrink: 0; }

.storefront-refurbished .ref-banner-scene {
    display: grid;
    align-items: center;
    min-height: clamp(360px, 31.25vw, 600px);
}
.storefront-refurbished .ref-banner-picture { display: block; position: absolute; inset: 0; }
.storefront-refurbished .ref-banner-picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.storefront-refurbished .ref-banner-copy { min-width: 0; padding-block: clamp(40px, 4.1667vw, 80px); }
.storefront-refurbished .ref-banner h1 { font-size: clamp(30px, 3.3333vw, 64px); line-height: 1.15; }
.storefront-refurbished .ref-banner h1 + :is(p, div) { font-size: clamp(14px, 1.25vw, 20px); line-height: 1.5; }
.storefront-refurbished .ref-banner-actions > :is(a, button) {
    min-width: 0;
    max-width: 100%;
    height: auto;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}
.storefront-refurbished .ref-banner li { min-width: 0; max-width: 100%; }
.storefront-refurbished .ref-banner li span { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 768px) {
    .storefront-refurbished .ref-banner-scene { min-height: 0; align-items: start; }
    .storefront-refurbished .ref-banner-picture { position: relative; grid-area: 1 / 1; }
    .storefront-refurbished .ref-banner-picture img { height: auto; }
    .storefront-refurbished .ref-banner-copy { grid-area: 1 / 1; }
}

.storefront-layout .new_product-layout-row {
    display: grid;
    grid-template-columns: repeat(var(--storefront-product-columns, 4), minmax(0, 1fr));
    gap: var(--storefront-gap);
}

.storefront-layout .new_product-layout-row > .product-layout {
    width: auto;
    min-width: 0;
}

/* Preorder modules share gutters while retaining their individual layouts. */
.storefront-preorder {
    --preorder-gutter: clamp(16px, 2.5vw, 32px);
    --preorder-section-space: clamp(40px, 5vw, 72px);
    min-width: 0;
}
.storefront-preorder .preorder-section-inner {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: var(--preorder-section-space) var(--preorder-gutter);
}
.storefront-preorder :is(h2, h3, h4, p, li, span, a, button) { overflow-wrap: anywhere; }
.storefront-preorder .preorder-section-inner > h3 { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.33; }
.storefront-preorder .pre-highlight-inner { padding-inline: var(--preorder-gutter); }
.storefront-preorder :is(.pre-benefits-grid, .pre-features-grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.storefront-preorder :is(.pre-benefits-grid, .pre-features-grid) > div { min-width: 0; padding: clamp(16px, 2vw, 24px); }
.storefront-preorder .pre-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.storefront-preorder .pre-product-card { display: flex; flex-direction: column; min-width: 0; }
.storefront-preorder .pre-product-badge { max-width: calc(100% - 32px); }
.storefront-preorder .pre-product-body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: clamp(16px, 2vw, 24px); }
.storefront-preorder .pre-product-heading { flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; min-height: 32px; }
.storefront-preorder .pre-product-name { flex: 1 1 240px; min-width: 0; font-size: clamp(20px, 1.6667vw, 24px); line-height: 1.33; }
.storefront-preorder .pre-product-params { min-width: 0; max-width: 100%; }
.storefront-preorder .pre-product-specs {
    height: auto;
    min-height: 56px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    margin-bottom: 16px;
}
.storefront-preorder .pre-product-specs li,
.storefront-preorder .pre-product-specs li > span { min-width: 0; }
.storefront-preorder .pre-product-specs li > span:first-child { margin-top: 5px; }
.storefront-preorder .preorder-open { max-width: 100%; margin-top: auto; padding-inline: 16px; white-space: normal; }
.storefront-preorder .pre-rid { padding: var(--preorder-section-space) var(--preorder-gutter); }
.storefront-preorder .pre-rid-inner { width: min(1024px, 100%); padding: clamp(20px, 3.3333vw, 48px); }
.storefront-preorder :is(.pre-rid-copy, .pre-rid-visual) { min-width: 0; }
.storefront-preorder .pre-rid-label { max-width: 100%; min-height: 28px; height: auto; }
.storefront-preorder .pre-rid-label svg { flex-shrink: 0; }
.storefront-preorder .pre-rid-copy h4 { font-size: clamp(24px, 2.0833vw, 30px); line-height: 1.2; }
.storefront-preorder .pre-rid-copy li > span { min-width: 0; }
.storefront-preorder .pre-rid-badge { width: min(256px, 100%); min-height: 256px; padding: 24px; text-align: center; }
.storefront-preorder .pre-rid-badge svg { flex-shrink: 0; }
.storefront-preorder .pre-rid-badge span { max-width: 100%; }
.storefront-preorder .pre-faq-list { width: min(898px, 100%); }
.storefront-preorder .question-element { min-width: 0; gap: 16px; }
.storefront-preorder .question-element > span { min-width: 0; }
.storefront-preorder .question-element > svg { margin-inline: 4px; }

/* Retain the original product module dimensions on desktop. */
@media (min-width: 992px) {
    .storefront-preorder .pre-product > .preorder-section-inner { padding: 72px 0; }
    .storefront-preorder .pre-product > .preorder-section-inner > h3 { font-size: 36px; line-height: 48px; }
    .storefront-preorder .pre-product-body { padding: 24px; }
    .storefront-preorder .pre-product-name { font-size: 24px; line-height: 32px; }
    .storefront-preorder .pre-product-specs { column-gap: 0; }
    .storefront-preorder .pre-product-specs li { align-items: center; }
    .storefront-preorder .pre-product-specs li > span:first-child { margin-top: 0; }
}

@media (max-width: 991.98px) {
    .storefront-preorder .pre-features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .storefront-preorder .pre-products-grid { grid-template-columns: minmax(0, 1fr); }
    .storefront-preorder .pre-rid-inner { flex-direction: column; align-items: stretch; }
    .storefront-preorder .pre-rid-badge { min-height: 224px; }
}
@media (max-width: 599.98px) {
    .storefront-preorder :is(.pre-benefits-grid, .pre-features-grid) { grid-template-columns: minmax(0, 1fr); }
}

/* Preorder hero: let the copy determine the minimum height over the image. */
.pre-banner {
    display: grid;
    align-items: center;
    min-height: 23.4375vw;
    background-color: #111;
}

.pre-banner .pre-banner-picture { position: absolute; inset: 0; }
.pre-banner .pre-banner-picture img { display: block; }
.pre-banner .pre-banner-content { position: relative; width: 100%; min-width: 0; }
.pre-banner .pre-banner-copy {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: clamp(32px, 3vw, 64px) clamp(16px, 2.5vw, 32px);
}

.pre-banner .pre-banner-label {
    max-width: 100%;
    min-height: 32px;
    height: auto;
    white-space: normal;
    overflow-wrap: anywhere;
}

.pre-banner .pre-banner-title {
    max-width: 100%;
    font-size: clamp(28px, 3.3333vw, 48px);
    line-height: 1.17;
    white-space: normal;
    overflow-wrap: anywhere;
}

.pre-banner .pre-banner-description,
.pre-banner .pre-banner-timer { width: min(672px, 100%); overflow-wrap: anywhere; }
.pre-banner .pre-banner-description { font-size: clamp(14px, 1.1111vw, 16px); line-height: 1.5; }
.pre-banner .pre-banner-timer { margin-top: clamp(20px, 2.2222vw, 32px); }
.pre-banner .countdown { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.1111vw, 16px); }
.pre-banner .countdown > div {
    min-width: 0;
    height: auto;
    min-height: clamp(76px, 6.3889vw, 92px);
    padding: clamp(12px, 1.1111vw, 16px) 8px;
}
.pre-banner [data-countdown-unit] { font-size: clamp(24px, 2.5vw, 36px); line-height: 1.12; }

@media (max-width: 768px) {
    .pre-banner { min-height: 600px; }
    body.page-preorder-view .fixed-shortcut-wrapper { display: none; }
}

/* Reserve the actual price width so controls only wrap when space runs out. */
.storefront-layout .new_product-thumb .new_product-caption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 16px;
}

.storefront-layout .new_product-thumb .new_product-caption .product-tags-list {
    flex: 0 0 100%;
    min-width: 0;
}

.storefront-layout .new_product-thumb .new_product-option {
    flex: 1 1 min-content;
    min-width: 0;
    max-width: 100%;
}

.storefront-layout .new_product-thumb .new_product-option .price,
.storefront-layout .new_product-thumb .new_product-option .price-left,
.storefront-layout .new_product-thumb .new_product-option .price-left > div {
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
}

.storefront-layout .new_product-thumb .new_product-option .price-left > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
}

.storefront-layout .new_product-thumb .new_product-option :is(.price-new, .price-old) {
    white-space: nowrap;
    margin-right: 0;
}

.storefront-layout .new_product-thumb .new_product-caption .button-group {
    position: static;
    display: flex;
    flex: 0 0 auto;
    gap: 4px;
    margin-inline-start: auto;
}

.storefront-layout .new_product-thumb .new_product-caption .button-group .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
}

.storefront-layout .new_product-thumb .new_product-caption .button-group .btn svg {
    display: block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}

.storefront-layout .category-showcase_wrapper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--storefront-gap);
}

.storefront-layout .category-showcase_cover {
    grid-column: span 2;
    min-width: 0;
}

.storefront-layout .category-showcase .part {
    width: auto;
    min-width: 0;
}

.storefront-layout .new_hero-featured {
    overflow: hidden;
}

.storefront-layout .new_hero-featured .heroSwiper {
    width: 100%;
    max-width: 1500px;
    margin-inline: auto;
}

.storefront-layout .new_hero-featured .swiper-slide {
    height: auto;
}

.storefront-layout .new_hero-card {
    height: 100%;
}

.storefront-layout .new_hero-shop,
.storefront-layout .new_merch-shop {
    flex-wrap: wrap;
    gap: 12px;
}

/* Existing wide banners retain their whole image when no portrait asset exists. */
.storefront-layout .new_banner-module .swiper {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
}

.storefront-layout .new_banner-module .swiper-wrapper {
    align-items: flex-start;
}

.storefront-layout .new_banner-module .banner-link {
    height: auto;
}

.storefront-layout .new_banner-module .storefront-banner-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.storefront-banner-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(16px, 4vw, 64px);
    pointer-events: none;
}

.storefront-banner-content.position-center { justify-content: center; }
.storefront-banner-content.position-end { justify-content: flex-end; }
.storefront-banner-copy { max-width: min(540px, 60%); }
.storefront-banner-copy.align-center { text-align: center; }
.storefront-banner-copy.align-end { text-align: right; }
.storefront-banner-copy h2 { font-size: clamp(20px, 3vw, 48px); line-height: 1.2; }
.storefront-banner-copy p { font-size: clamp(14px, 1.2vw, 20px); }
.slideshow-text-luminance-light .storefront-banner-copy { color: #fff; }
.slideshow-text-luminance-dark .storefront-banner-copy { color: #222; }

/* Activity builder modules keep their colors and use the available content width. */
#activity-content {
    --activity-gutter: clamp(16px, 2.5vw, 32px);
    --activity-header-offset: 93px;
    --activity-scroll-offset: 197px;
    min-width: 0;
}
#activity-content > section { scroll-margin-top: var(--activity-scroll-offset); }
#activity-content > :is(.activity-module, .sec-module) { padding-inline: var(--activity-gutter); }
#activity-content :is(h2, h3, h4, p) { overflow-wrap: anywhere; }
#activity-content .activity-module-nav { top: var(--activity-header-offset); }
#activity-content .activity-nav-list { justify-content: safe center; }
#activity-content .activity-new-arrival-inner { width: 100%; }

#activity-content .more-product_item .descbox h3,
#activity-content .activity-clearance-product-grid h3,
#activity-content .activity-second-half article h3,
#activity-content .activity-second-half article > p {
    white-space: normal;
    text-overflow: clip;
}
#activity-content :is(.activity-clearance-product-price, .activity-second-half article > div:not(.activity-second-half-badge), .new-product_prices) {
    flex-wrap: wrap;
}
#activity-content :is(.activity-clearance-buy, .activity-second-half-buy, .activity-seckill-buy, .activity-free-gift .buy-btn) {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 36px;
    padding: 8px 12px;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
}
#activity-content :is(.activity-hot-product-more, .activity-clearance-product-more, .bundles-pack_bottom-btns, .activity-free-gift .buy-btn) { max-width: 100%; }
#activity-content :is(.bundles-pack_products, .bundles-pack_bottom, .bundles-pack_bottom-btns, .activity-free-gift .more-desc) { flex-wrap: wrap; }
#activity-content .bundles-pack_products-info { min-width: 0; }
#activity-content .bundles-pack_bottom-btns button { max-width: 100%; height: auto; min-height: 40px; padding-block: 8px; line-height: 1.4; white-space: normal; }
#activity-content .activity-free-gift :is(.descbox, .gift-item .desc) { min-width: 0; }
#activity-content .activity-free-gift .product-item { height: auto; flex-wrap: wrap; gap: clamp(16px, 2vw, 32px); }
#activity-content .activity-free-gift .product-img_thumb { max-width: 35%; flex-shrink: 0; }
#activity-content .activity-free-gift .gift-item h4 { white-space: normal; }
#activity-content .new-product_prices { white-space: normal; }

#activity-content .dialog { width: min(1000px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; }
#activity-content .dialog .if-content { padding: clamp(16px, 3vw, 32px); }

@media (max-width: 1199.98px) {
    #activity-content :is(.activity-clearance-product-grid, .activity-second-half-grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #activity-content .more-product_item { width: calc((100% - 32px) / 3); }
    #activity-content .bundles-item { flex-direction: column; }
    #activity-content .bundles-item_img { width: 100%; }
    #activity-content .new-product_info { flex-direction: column; gap: 16px; }
    #activity-content .new-product_price { min-width: 0; max-width: 100%; align-items: flex-start; }
}
@media (max-width: 991.98px) {
    #activity-content :is(.activity-clearance-product-grid, .activity-second-half-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #activity-content .more-product_item { width: calc((100% - 16px) / 2); }
}
@media (max-width: 768px) {
    #activity-content .more-product_item { width: calc((100% - 8px) / 2); }
    #activity-content .activity-seckill-price { flex-wrap: wrap; padding-right: 0; }
    #activity-content .activity-seckill-buy { margin-top: 12px; align-self: flex-start; }
    body.page-activity-view .fixed-shortcut-wrapper { display: none; }
    body.page-activity-view .floor-wrap { display: none !important; }
}
@media (max-width: 575.98px) {
    #activity-content :is(.activity-subject-card-grid, .activity-clearance-product-grid, .activity-second-half-grid) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 359.98px) {
    #activity-content .more-product_item { width: 100%; }
}

/* Header uses one breakpoint for Bootstrap and Tailwind navigation. */
.new_header-main #top > div,
.new_menu-wrapper > div,
.new_search-module > div {
    padding-inline: clamp(16px, 2.5vw, 32px);
}

.new_header-main .new_menu-slot,
.new_header-main #menu,
.new_header-main .topTextSwiper {
    min-width: 0;
}

.new_header-main #menu { flex-wrap: nowrap; }
.new_header-main .nav_category-block { padding-inline: 32px; }
.new_header-main .nav_category-overlay { bottom: 0; height: auto; }
.new_header-main .new_search-module #search { width: min(592px, 100%); }
.new_header-main .new_search-module #search .search-keyword { width: 100%; }
.new_header-main .storefront-search .search-keyword {
    max-height: min(400px, 50vh);
    overflow-y: auto;
    background: #fff;
    color: #222;
    border-radius: 8px;
    padding-block: 12px;
    box-shadow: 0 8px 24px rgb(0 0 0 / 10%);
}
.new_header-main .storefront-search .search-keyword-item { gap: 8px; }
.new_header-main .storefront-search .search-keyword-name { white-space: normal; overflow-wrap: anywhere; }
.new_header-main .storefront-search .search-keyword-label { margin-inline-start: 0; }
.new_search-close { padding: 0; border: 0; background: transparent; }
body.storefront-search-open { overflow: hidden; }

.new_footer .new_footer-top,
.new_footer .new_footer-row,
.new_footer .new_footer-bottom,
.new_footer .new_pay-list,
.new_footer .new_footer-social {
    flex-wrap: wrap;
    gap: 24px;
}

.new_footer .subscribe-block { max-width: 100%; }
.new_footer .subscribe-block .form-row { gap: 12px; }
.new_footer .subscribe-block .form-input { width: min(413px, 100%); min-width: 0; }
/* Language selection stays above the fixed header and fits small viewports. */
#languageModal { --bs-modal-zindex: 10050; }
body.storefront-language-open > .modal-backdrop { --bs-backdrop-zindex: 10040; }
#languageModal .modal-dialog {
    width: calc(100% - 32px);
    max-width: 640px;
    min-height: calc(100vh - 32px);
    min-height: calc(100dvh - 32px);
    margin: 16px auto;
}
#languageModal .modal-content {
    min-width: 0;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    border: 0;
    border-radius: 12px;
}
#languageModal .modal-header { gap: 12px; padding: 12px 16px; border-bottom-color: #eee; }
#languageModal .modal-title { flex: 1; min-width: 0; margin: 0; font-size: 16px; line-height: 24px; overflow-wrap: anywhere; }
#languageModal .btn-close { box-sizing: border-box; flex: 0 0 40px; width: 40px; height: 40px; margin: 0; padding: 12px; border-radius: 6px; background-size: 14px; }
#languageModal .btn-close:hover { background-color: #f7f8fa; }
#languageModal .modal-body { min-height: 0; padding: 20px; overflow-y: auto; overscroll-behavior: contain; }
#languageModal .country-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; }
#languageModal .country-list .country-item {
    flex-wrap: wrap;
    gap: 4px 12px;
    width: auto;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 64px;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    color: #555;
    font-size: 14px;
    line-height: 22px;
    overflow-wrap: anywhere;
}
#languageModal .country-item > span { min-width: 0; max-width: 100%; }
#languageModal .country-item > span:first-child { color: #222; font-weight: 500; }
#languageModal .country-item > span:last-child { margin-inline-start: auto; text-align: end; }
#languageModal .country-item:hover { border-color: #96b414; background: #f7f9ef; }
#languageModal .country-item:focus-visible { outline: 2px solid #96b414; outline-offset: 2px; }
@media (max-width: 575.98px) {
    #languageModal .country-list { grid-template-columns: minmax(0, 1fr); }
}

.storefront-layout .coupon-info-wrap .swiper-button-next { right: 0; }
.storefront-layout .coupon-info-wrap .swiper-button-prev { left: 0; }
.storefront-layout .coupon-info-wrap .swiper-button-lock { display: none !important; }
.storefront-layout .coupon-info-wrap .coupons-item > div:last-of-type { min-width: 0; }
.storefront-layout .coupon-info-wrap .coupon-info { overflow-wrap: anywhere; }

/* Checkout coupons need room for both the amount and the selection control. */
body.checkout-checkout #total-section .coupon-radio .coupons-item { min-width: 0; }
body.checkout-checkout #total-section .coupon-radio .coupons-item > div:first-of-type { min-width: 0; overflow-wrap: anywhere; }
body.checkout-checkout #total-section .coupon-radio .coupons-item > div:last-of-type { min-width: 0; padding-inline-end: 36px; }
body.checkout-checkout #total-section .coupon-radio .coupon-info { min-width: 0; overflow-wrap: anywhere; }
body.checkout-checkout #total-section .coupon-radio .coupon-info .coupon-name {
    height: auto;
    max-height: none;
    white-space: normal;
    line-height: 1.4;
}
body.checkout-checkout #total-section .coupon-radio .coupon-info > div > span { white-space: normal; }
body.checkout-checkout #total-section .coupon-radio label .date { padding-right: 0; }

@media (max-width: 575.98px) {
    body.checkout-checkout #total-section .coupon-radio .coupons-item > div:first-of-type { flex-basis: 96px; }
}

/* Search and account pages must fit the available container width. */
.storefront-search-page .new_search-input { width: min(960px, 100%); }
.storefront-search-page .new_search-input input { min-width: 0; }
.storefront-search-page .new_search-input svg,
.storefront-search-page .new_search-btn { flex-shrink: 0; }

.login-bg-wrapper .new_login-container .wp-500,
.login-bg-wrapper .new_login-container .login-wrapper { min-width: 0; max-width: 100%; }
body.account-login .login-bg-wrapper > #content { width: 100%; }
body:is(.account-login, .account-register) .login-bg-wrapper { height: auto; min-height: 100vh; padding-block: 32px; }
.login-bg-wrapper .new_login-logo { max-width: 100%; }

/* Account cards follow their content width instead of shrinking the avatar column. */
.container.storefront-account-page {
    width: 100%;
    max-width: 1564px;
    padding-inline: clamp(16px, 2.5vw, 32px);
}

.storefront-account-page #content,
.storefront-account-page .card,
.storefront-account-page .card-body { min-width: 0; }

.storefront-account-page .storefront-account-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 24px;
    margin: 0 0 24px;
}

.storefront-account-overview > div { width: auto; min-width: 0; padding: 0; }
body.account-account .storefront-account-overview .account-height { height: 100%; min-height: 180px; }
.storefront-account-page .card-header { flex-wrap: wrap; gap: 8px 16px; }
.storefront-account-page .card-header > * { min-width: 0; overflow-wrap: anywhere; }

.storefront-account-profile { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.storefront-account-avatar { flex: 0 0 90px; }
.storefront-account-details { flex: 1 1 160px; min-width: 0; }
body.account-account .storefront-account-profile .avatar-wrapper { margin-bottom: 0; }
.storefront-account-profile #avatar { display: block; width: 100%; height: 100%; object-fit: cover; }
.storefront-account-profile .account-information { overflow-wrap: anywhere; }
.storefront-account-profile .account-information p { margin-bottom: 8px; line-height: 1.6; }
.storefront-account-profile .account-information p:last-child { margin-bottom: 0; }

.storefront-account-page .account-edit-link { container: storefront-account-summary / inline-size; }
.storefront-account-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 8px; }
.storefront-account-order-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; }
body.account-account .storefront-account-page .card-items > a { width: auto; min-width: 0; overflow-wrap: anywhere; }
body.account-account .storefront-account-page .card-items > a .value { max-width: 100%; font-size: clamp(20px, 1.7vw, 28px); line-height: 1.3; }
.storefront-account-page .orders-list .table { min-width: 640px; }
.storefront-account-page .no-order .text { text-align: center; overflow-wrap: anywhere; }

/* Shared account forms and lists keep overflow inside their own content area. */
.storefront-account-page .card-body,
.storefront-account-page .alert { overflow-wrap: anywhere; }
.storefront-account-page .form-horizontal,
.storefront-account-page fieldset,
.storefront-account-page .form-group { min-width: 0; max-width: 100%; }
.storefront-account-page :is(.form-control, .form-select, .input-group) { min-width: 0; max-width: 100%; }
.storefront-account-page .btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.storefront-account-page .form-control-static { overflow-wrap: anywhere; }
.storefront-account-page .form-group .row { row-gap: 12px; }
.storefront-account-page .buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.storefront-account-page .buttons > div { min-width: 0; max-width: 100%; }
.storefront-account-page .radio-inline { display: inline-flex; align-items: baseline; gap: 6px; margin-inline-end: 16px; }
.storefront-account-page .no-items img { max-width: 100%; height: auto; }
.storefront-account-page .nav-tabs { gap: 4px; }
.storefront-account-page .nav-tabs .nav-item { min-width: 0; max-width: 100%; }
.storefront-account-page .nav-tabs .nav-link { white-space: normal; overflow-wrap: anywhere; }
.storefront-account-page .pagination,
.storefront-account-page .new_pagination { flex-wrap: wrap; gap: 4px; }

.storefront-account-code { display: flex; flex-wrap: wrap; gap: 8px; }
.storefront-account-code .form-control { flex: 1 1 120px; width: auto; }
.storefront-account-code #btn-send-code { flex: 0 1 auto; }
.storefront-account-page .storefront-account-location {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 12px;
    margin: 0;
}
.storefront-account-location > div { width: auto; min-width: 0; padding: 0; }

.storefront-account-page .table-responsive { min-width: 0; max-width: 100%; }
.storefront-account-page .table-responsive > .table { min-width: var(--storefront-account-table-width, 480px); }
.storefront-account-page .table-responsive :is(td, th) { overflow-wrap: anywhere; }
body:is(.account-wishlist, .account-order) .storefront-account-page { --storefront-account-table-width: 720px; }
body:is(.account-download, .account-order_review) .storefront-account-page { --storefront-account-table-width: 560px; }
.storefront-account-page .orders-list { --storefront-account-table-width: 640px; }
.storefront-account-page .table-responsive > .storefront-account-addresses { min-width: 0; }
.storefront-account-addresses .address-text { overflow-wrap: anywhere; }
.storefront-account-addresses td:last-child { min-width: 160px; }
.storefront-account-addresses td:last-child .btn { margin-block: 4px; }
.storefront-account-page .order-wrapper .heading td > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.storefront-account-page .order-wrapper .heading .float-end { margin-inline-start: auto; }
.storefront-account-balance { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.storefront-account-balance > div { min-width: 0; max-width: 100%; }
.storefront-account-balance-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.storefront-account-page .storefront-account-coupons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 20px;
    margin: 16px 0 0;
}
.storefront-account-coupons > div { width: auto; min-width: 0; padding: 0; }
body.account-coupon .storefront-account-coupons .account-coupon-item { display: flex; flex-direction: column; height: 100%; margin: 0; }
body.account-coupon .storefront-account-coupons .coupon-head { min-height: 150px; overflow-wrap: anywhere; }
body.account-coupon .storefront-account-coupons .coupon-discount { font-size: clamp(28px, 2.5vw, 40px); }
body.account-coupon .storefront-account-coupons .coupon-name { height: auto; max-height: none; margin-bottom: 8px; white-space: normal; overflow: visible; line-height: 1.5; }
body.account-coupon .storefront-account-coupons .coupon-info { flex: 1; padding-inline: 18px; }
body.account-coupon .storefront-account-coupons .coupon-info-box { flex-wrap: wrap; gap: 0 6px; }
body.account-coupon .storefront-account-coupons .coupon-info-box > span { min-width: 0; max-width: 100%; white-space: normal; text-align: start; }
body.account-coupon .storefront-account-coupons .coupon-info-box > div { flex: 1 1 120px; min-width: 0; overflow-wrap: anywhere; }
.storefront-account-page .name-info { flex-wrap: wrap; gap: 8px; }
.storefront-account-page .review-item { min-width: 0; overflow-wrap: anywhere; }
.storefront-account-page .img-up-box { display: flex; flex-wrap: wrap; gap: 10px; }
.storefront-account-page .img-up-box .upload-img { margin-right: 0; }

@media (max-width: 575.98px) {
    .storefront-account-page .new_page-account-wrapper { margin-top: 24px; }
    .storefront-account-page .h-min-600 { min-height: 0; }
    .storefront-account-page .storefront-account-addresses,
    .storefront-account-addresses tbody,
    .storefront-account-addresses tr,
    .storefront-account-addresses td { display: block; width: 100%; }
    .storefront-account-addresses tr + tr { margin-top: 12px; }
    .storefront-account-addresses td:last-child { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
}

@container storefront-account-summary (min-width: 380px) {
    .storefront-account-totals { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Keep account navigation available when Bootstrap hides the shared sidebar. */
@media (max-width: 991.98px) {
    .storefront-account-page #column-left { display: block !important; width: 100%; }
    .storefront-account-page .account-left .list-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
    .storefront-account-page .account-left .list-group-item {
        display: flex;
        align-items: center;
        min-width: 0;
        min-height: 44px;
        margin: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .storefront-account-page .account-left .list-group-item > :is(i, svg) { flex-shrink: 0; }
}

@media (max-width: 575.98px) {
    .storefront-account-page .account-left .list-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.page-product-product > .row { margin-inline: 0; }
.page-product-product .product-description { min-width: 0; }
.page-product-product .new_product-title { overflow-wrap: anywhere; }
.page-product-product .new_product-order-action .product-cart-action {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}
.page-product-product .new_product-order-action .product-cart-action button {
    flex: 1 1 128px;
    width: auto;
    height: auto;
    min-height: 48px;
    margin: 0;
    padding: 12px;
    white-space: normal;
}
.page-product-product .new_fixedTab { width: 100%; }
.product-product .view_chat_TFjrs { bottom: 132px; }
.page-product-product .new_fixedTab .container { padding-inline: 16px; }
.page-product-product .new_fixedTab .container .new_fixedTab-info { flex: 1; width: auto; min-width: 0; overflow-wrap: anywhere; }
.page-product-product .new_fixedTab .container .product-cart-action { flex-shrink: 0; }

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .new_header-main .storefront-header-row { gap: 12px; }
    .new_header-main .new_store-nav > div > a { padding-inline: 10px; }
    .new_header-main .nav_product-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1199.98px) {
    .new_header-main .new_store-nav { display: none !important; }
    .new_header-main .storefront-header-row { gap: 0; }
    .new_header-main .storefront-header-row > :is(a, h1) { flex: 0 1 auto; min-width: 0; max-width: calc(100% - 184px); }
    .new_header-main .storefront-header-row > :is(a, h1) img { max-width: 100%; height: auto !important; max-height: 24px; }
    .new_header-main .storefront-header-actions { display: flex !important; order: 2; gap: 0; margin-inline-start: auto; }
    .new_header-main .storefront-header-actions > div { flex: 0 0 44px; margin: 0; }
    .new_header-main .storefront-header-actions > div > a,
    .new_header-main .storefront-header-actions #cart > div > a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; color: #fff; }
    .new_header-main .storefront-header-actions .account-wrapper > span,
    .new_header-main .storefront-header-actions .dropdown-menu { display: none !important; }
    .new_header-main .new_menu-slot { order: 3; flex: 0 0 44px; justify-content: flex-end; }
    .new_header-main #menu { width: auto; min-height: 44px; border-bottom: 0; background: transparent; overflow: visible; }
    .new_header-main #menu .navbar-header {
        display: flex !important;
        width: auto;
        height: 44px;
        gap: 0;
    }
    .new_header-main #menu .navbar-header .btn {
        float: none;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #fff;
        font-size: 20px;
    }
    .new_header-main #menu .side-menu {
        display: none !important;
        position: fixed;
        inset: var(--storefront-menu-top, 92px) 0 0;
        z-index: 9000;
        width: 100%;
        height: auto;
        background: #fff;
    }
    .new_header-main #menu .side-menu.is-open { display: block !important; }
    .new_header-main #menu .side-inner {
        position: static;
        width: 100%;
        max-width: 100%;
        height: 100%;
        padding: 12px clamp(16px, 2.5vw, 32px) 24px;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #fff;
        transform: none;
        transition: none;
        box-shadow: none;
    }
    .new_header-main .new_search-module { position: fixed; inset: 0; z-index: 10000; height: 100dvh; background: #fff; color: #222; overflow-y: auto; overscroll-behavior: contain; }
    .new_header-main .new_search-module > div { max-width: none; height: 100%; padding: 0; }
    .new_header-main .new_search-module #search { display: block; width: 100%; margin: 0; padding: 0; }
    .new_header-main .new_search-form { justify-content: flex-start; gap: 8px; min-height: 56px; padding: 0 12px; border-bottom: 1px solid #eee; }
    .new_header-main .new_search-form .input-group { flex: 1; flex-wrap: nowrap; min-width: 0; width: auto; }
    .new_header-main .new_search-form input[name="search"] { min-width: 0; height: 44px; padding: 8px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #222; font-size: 16px; }
    .new_header-main .new_search-form button[type="submit"] { display: flex; align-items: center; justify-content: center; order: -1; flex: 0 0 32px; height: 44px; padding: 0; border: 0; background: transparent; color: #222; }
    .new_header-main .new_search-close { width: 44px; height: 44px; border-radius: 0; color: #222; }
    .new_header-main .new_search-close:hover { background: #f7f8fa; }
    .new_header-main .new_search-module #search .search-keyword { position: static; max-height: none; margin: 0; border-radius: 0; box-shadow: none; }
    .new_header-main #menu .storefront-drawer-nav { display: block !important; width: 100%; margin: 0; padding: 0; list-style: none; }
    .new_header-main #menu .storefront-drawer-nav > li { display: block; position: relative; margin: 0; padding: 0; border-bottom: 1px solid #eee; }
    .new_header-main #menu .storefront-drawer-nav > .storefront-drawer-group { display: grid; grid-template-columns: minmax(0, 1fr) 48px; }
    .new_header-main #menu .storefront-drawer-nav > li > a {
        display: flex;
        align-items: center;
        min-width: 0;
        min-height: 56px;
        padding: 16px 12px;
        color: #222;
        font-size: 16px;
        font-weight: 500;
        line-height: 24px;
        white-space: normal;
        overflow-wrap: anywhere;
        text-decoration: none;
    }
    .new_header-main #menu .storefront-drawer-group > a { grid-area: 1 / 1; margin-inline-end: 0; }
    .new_header-main #menu .storefront-drawer-toggle {
        position: static;
        grid-area: 1 / 2;
        align-self: stretch;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: auto;
        min-height: 56px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #555;
        cursor: pointer;
    }
    .new_header-main #menu .storefront-drawer-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
    .new_header-main #menu .storefront-drawer-nav a:hover,
    .new_header-main #menu .storefront-drawer-toggle:hover { background: #f7f8fa; }
    .new_header-main #menu .storefront-drawer-nav :is(a, button):focus-visible { outline: 2px solid #96b414; outline-offset: -2px; }
    .new_header-main #menu .storefront-drawer-children { grid-column: 1 / -1; min-width: 0; margin: 0 0 8px; padding: 4px 0; border-radius: 6px; background: #f7f8fa; list-style: none; }
    .new_header-main #menu .storefront-drawer-children > li { display: block; margin: 0; padding: 0; }
    .new_header-main #menu .storefront-drawer-children a {
        display: block;
        min-height: 44px;
        padding: 11px 28px;
        color: #555;
        font-size: 14px;
        line-height: 22px;
        white-space: normal;
        overflow-wrap: anywhere;
        text-decoration: none;
    }
    body.storefront-menu-open { overflow: hidden; }

    .page-product-product #product-info-top > .product-photos,
    .page-product-product #product-info-top > .product-description { padding-inline: 12px; }
    .page-product-product .product-gallery { position: static; }

    .storefront-layout .new_product-layout-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .storefront-layout .category-showcase_wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .storefront-layout .category-showcase_cover { height: auto; aspect-ratio: 16 / 9; }
    .storefront-layout .category-showcase .part { height: clamp(280px, 40vw, 400px); }
    .storefront-layout .new_product-card { height: auto; }
    .storefront-layout .new_product-thumb { display: flex; flex-direction: column; height: 100%; margin-bottom: 0; }
    .storefront-layout .new_product-card .new_product-info {
        position: relative;
        padding: 16px 16px 0;
        min-height: 64px;
    }
    .storefront-layout .new_product-image { position: relative; height: auto; aspect-ratio: 4 / 3; }
    .storefront-layout .new_product-image .new_img-thumb { max-height: 100%; object-fit: contain; }
    .storefront-layout .new_product-card .new_product-caption {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: auto;
        padding: 12px 16px;
    }
    .storefront-layout .new_product-caption .product-tags-list {
        width: 100%;
        flex-wrap: wrap;
        margin-top: 0;
        visibility: visible;
        opacity: 1;
    }
    .storefront-layout .new_product-card .new_product-name { overflow-wrap: anywhere; }
    .storefront-layout .new_product-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; height: auto; }
    .storefront-layout .new_product-card-cover { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
    .storefront-layout .new_product-card-small { min-width: 0; flex-direction: column; padding: 16px; gap: 12px; }
    .storefront-layout .new_product-card-small img { width: min(152px, 100%); height: auto; }
    .storefront-layout .new_product-card-title { font-size: 18px; }
    .storefront-layout .benefits-showcase_item { width: calc((100% - 32px) / 2); }
}

@media (max-width: 991.98px) {
    .page-product-product #product-info-top > .product-photos,
    .page-product-product #product-info-top > .product-description { width: 100%; }
    .page-product-product .product-description { margin-top: 24px; }
}

@media (max-width: 767.98px) {
    body:is(.page-refurbished, .page-refurbished-list) .fixed-shortcut-wrapper { display: none; }

    .storefront-search-page .new_search-container { padding-block: 24px; }
    .storefront-search-page .new_search-input { height: auto; min-height: 56px; padding: 8px 12px; }
    .storefront-search-page .new_search-input input { font-size: 16px; }
    .storefront-search-page .new_search-input .new_search-btn { padding: 8px 16px; font-size: 16px; }
    .login-bg-wrapper .new_login-container { justify-content: center; padding-inline: 16px; }
    .login-bg-wrapper .login-wrapper > .card-body { padding: 24px 20px !important; }
    .login-bg-wrapper .input-group > .form-control { min-width: 0; }

    body.product-product { padding-bottom: 180px; }
    body.product-product .view_chat_TFjrs { bottom: 196px; }
    .page-product-product .new_nav-tabs { flex-wrap: nowrap; overflow-x: auto; }
    .page-product-product .new_nav-tabs .nav-item { flex-shrink: 0; height: auto; padding-inline-end: 0; }
    .page-product-product .new_nav-tabs .nav-link { padding: 16px 12px; line-height: 24px; white-space: nowrap; }
    .page-product-product .new_overview-item { flex-direction: column; gap: 16px; padding-block: 24px; }
    .page-product-product .new_overview-title,
    .page-product-product .new_overview-desc { width: 100%; }
    .page-product-product .new_fixedTab .container { flex-wrap: wrap; gap: 8px; padding-block: 12px; }
    .page-product-product .new_fixedTab .container .new_fixedTab-info { flex-basis: 100%; }
    .page-product-product .new_fixedTab-info .total-price-info { font-size: 22px; line-height: 28px; }
    .page-product-product .new_fixedTab-product { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .page-product-product .new_fixedTab .container .product-cart-action { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
    .page-product-product .new_fixedTab .container .product-cart-action button { flex: 1 1 112px; width: auto; height: auto; min-height: 44px; margin: 0; padding: 12px; white-space: normal; }

    .storefront-layout .featured-new-product { flex-direction: column; }
    .storefront-layout .featured-new-product .part,
    .storefront-layout .two-column-products .part { width: 100%; height: clamp(300px, 80vw, 440px); }
    .storefront-layout .featured-new-product .product-video { height: auto; aspect-ratio: 16 / 9; }
    .storefront-layout .featured-new-product .product-video video { display: block; }
    .storefront-layout .two-column-products { gap: var(--storefront-gap); }
    .storefront-layout .product-info_title { padding: 20px 20px 0; }
    .storefront-layout .product-info_price { padding: 16px 20px; }
    .storefront-layout .product-info_price .btn-group .btn { width: 44px; height: 44px; }
    .storefront-layout .category-showcase .product-info_price { padding: 12px; }
    .storefront-layout .category-showcase .product-info_title { padding: 16px 12px 0; }
    .storefront-layout .category-showcase .product-info_price .btn-group { position: relative; display: flex; justify-content: flex-end; }
    .storefront-layout .category-showcase .product-info_title .text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
    .storefront-layout .new_hero-featured .swiper-button-prev,
    .storefront-layout .new_hero-featured .swiper-button-next,
    .storefront-layout .new_banner-module .swiper-pager,
    .storefront-layout ~ .floor-wrap { display: none !important; }
    .storefront-layout .new_hero-text { padding: 20px; }
    .storefront-layout .new_hero-title { font-size: 22px; line-height: 28px; height: 56px; }
    .storefront-layout .new_hero-btn { max-width: 100%; }
    .storefront-layout .new_image-200-text { padding-inline: 20px; }
    .storefront-layout .new_image-200-title { font-size: 24px; line-height: 1.3; }
    .storefront-layout .new_image-200-desc { font-size: 16px; line-height: 1.5; }
    .storefront-layout .benefits-showcase_list { gap: 20px; }
    .storefront-layout .benefits-showcase_item { width: calc((100% - 20px) / 2); padding-block: 12px; }
    .storefront-layout .benefits-showcase_content h3 { font-size: 18px; }
    .storefront-layout .benefits-showcase_content p { font-size: 14px; line-height: 1.6; }
    .storefront-layout .coupon-info-wrap .coupons-item > div:first-of-type { flex-basis: 96px; }

    .storefront-banner-content { position: relative; padding: 20px 16px 32px; justify-content: center; background: #f5f6f7; }
    .storefront-banner-copy { max-width: 100%; text-align: center; color: #222 !important; }
    .storefront-banner-copy h2 { font-size: 24px; }
    .storefront-banner-copy p { margin-bottom: 0; }
    .storefront-layout .new_banner-module .swiper-pagination { bottom: 8px; }
    .new_header-main #top .topTextSwiper { display: none !important; }
    .new_header-main .new_menu-wrapper img { max-width: min(45vw, 180px); height: auto; object-fit: contain; }
    .new_footer .new_footer-top { margin-bottom: 32px; }
    .new_footer .new_footer-top,
    .new_footer .new_footer-row,
    .new_footer .new_footer-bottom { align-items: flex-start; }
    .new_footer .new_footer-row,
    .new_footer .new_footer-bottom { flex-direction: column; }
    .new_footer .subscribe-block { width: 100%; }
    .new_footer .subscribe-block .form-input { flex: 1; }
    .new_footer .subscribe-block .form-btn { min-width: 88px; padding-inline: 16px; }
    .new_footer .top_contact { overflow-wrap: anywhere; }
}

@media (max-width: 359.98px) {
    .storefront-layout .new_product-layout-row,
    .storefront-layout .category-showcase_wrapper,
    .storefront-layout .new_product-card-grid { grid-template-columns: minmax(0, 1fr); }
    .storefront-layout .category-showcase_cover { grid-column: auto; }
    .storefront-layout .benefits-showcase_item { width: 100%; }
}

@media (hover: none) {
    .storefront-layout .new_product-thumb .product-tags-list { visibility: visible; opacity: 1; }
    .storefront-layout .new_product-card .new_img-thumb,
    .storefront-layout .product-info .thumb-img { opacity: 1 !important; transform: none !important; }
    .storefront-layout .new_product-card .new_img-full,
    .storefront-layout .product-info .full-img { display: none; }
    .storefront-layout .new_product-card:hover .new_product-info,
    .storefront-layout .product-info:hover .product-info_title { background: transparent; }
    .storefront-layout .new_product-card .new_product-caption::after,
    .storefront-layout .product-info_price::after { display: none; }
    .storefront-layout .new_product-card:hover .new_product-name,
    .storefront-layout .new_product-card:hover .price .price-new,
    .storefront-layout .product-info:hover .product-info_title .text,
    .storefront-layout .product-info:hover .product-info_price .new { color: #222; }
    .storefront-layout .new_product-card:hover .btn,
    .storefront-layout .product-info:hover .btn { --bs-btn-color: #222; }
}

/* Remaining storefront pages share continuous gutters and content-sized controls. */
.container.storefront-content-page { width: 100%; max-width: 1564px; padding-inline: clamp(16px, 2.5vw, 32px); }
.storefront-content-page :is(#content, .card, .card-body, .panel, .panel-body, fieldset, .form-group, .input-group) { min-width: 0; }
.storefront-content-page :is(h1, h2, h3, h4, h5, p, label, address, .alert, .well, .card-body, .no-items) { overflow-wrap: anywhere; }
.storefront-content-page :is(.form-control, .form-select, textarea, .input-group) { min-width: 0; max-width: 100%; }
.storefront-content-page :is(.btn, .button-code) { max-width: 100%; height: auto; white-space: normal; overflow-wrap: anywhere; }
.storefront-content-page .card-header { flex-wrap: wrap; gap: 8px 16px; }
.storefront-content-page .card-header > * { min-width: 0; }
.storefront-content-page :is(.buttons, .pagination, .new_pagination) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.storefront-content-page .buttons > div { min-width: 0; max-width: 100%; }
.storefront-content-page :is(.table-responsive, .no-items) { min-width: 0; max-width: 100%; }
.storefront-content-page .table-responsive { overflow-x: auto; }
.storefront-content-page .table-responsive > .table { min-width: var(--storefront-table-width, 560px); }
.storefront-content-page :is(td, th) { overflow-wrap: anywhere; }
.storefront-content-page :is(.no-items img, .manufacturer-list img, .category-description img) { max-width: 100%; height: auto; }
.storefront-content-page .no-items { height: auto; padding: clamp(24px, 4vw, 60px) 16px; }
.storefront-content-page .no-items :is(.title, .inner) { max-width: 100%; height: auto; white-space: normal; }

/* Order metadata wraps while product and history tables scroll inside their panels. */
.storefront-account-page .card-body > .table { width: 100%; table-layout: fixed; }
.storefront-account-page .card-body > .table :is(td, th) { overflow-wrap: anywhere; }
.storefront-account-page :is(.buying-share, .group_buying_href, .express-item-title, .station, .time) { min-width: 0; overflow-wrap: anywhere; }
.storefront-account-page .express-item-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.storefront-account-page .express-item-title .btn { margin-inline-start: auto; }
.storefront-account-page .group-buying-members { flex-wrap: wrap; gap: 8px; }
.storefront-account-page .order-btns { min-width: 100px; }
.storefront-account-order-info .product-wrapper > .table { min-width: 720px; }
.storefront-account-page .amount-wrap { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.storefront-account-page .amount-wrap > .btn { flex: 1 1 150px; width: auto; height: auto; min-height: 98px; margin: 0; }
.storefront-account-page .bind-tab-content { width: 100%; max-width: 640px; margin-inline: auto; }
.storefront-account-page .bind-nav-tabs { max-width: 640px; margin-inline: auto; }
.storefront-account-page .bind-nav-tabs .nav-link { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.storefront-account-page .input-group .button-code { flex: 0 1 auto; white-space: normal; }
.storefront-account-page :is(.add-tracking-form, .tracking-status-wrapper) { max-width: 100%; }
body.account-return-info .layui-layer { max-width: calc(100vw - 32px); }

/* Additional catalog routes reuse existing product cards. */
.storefront-content-page .storefront-product-grid { --storefront-product-columns: 4; margin: 0; padding: 0; align-items: stretch; }
.storefront-content-page .storefront-product-grid > * { min-width: 0; padding: 0; }
.storefront-catalog-page:has(> .row > #column-left, > .row > #column-right) .storefront-product-grid { --storefront-product-columns: 3; }
.storefront-content-page .storefront-product-list { grid-template-columns: minmax(0, 1fr); }
.storefront-content-page .storefront-product-grid :is(.new_product-card, .new_product-thumb) { position: relative; }
.storefront-content-page .storefront-product-grid .product-tags-list { max-width: 100%; }
.storefront-content-page .storefront-product-grid .product-tag-item { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.storefront-content-page .storefront-product-grid .custom-btn-link { flex: 0 1 auto !important; width: auto !important; min-width: 44px; padding-inline: 12px !important; }
.storefront-manufacturer-page .manufacturer-list :is(a, h2) { overflow-wrap: anywhere; }
.storefront-manufacturer-page .manufacturer-list img { object-fit: contain; }
.storefront-compare-page { --storefront-table-width: 680px; }
.storefront-compare-page .table { table-layout: fixed; }
.storefront-compare-page .product-name { display: block; max-width: 100%; white-space: normal; }

/* Cart quantities stay usable without compressing every table column. */
.storefront-checkout-cart { --storefront-table-width: 900px; }
.storefront-checkout-cart .product-table .cart-name { min-width: 220px; padding-inline-end: 16px; }
.storefront-checkout-cart .quantity-wrapper { width: 132px; flex-wrap: nowrap; }
.storefront-checkout-cart .quantity-wrapper > .input-group-btn { flex: 0 0 auto; }
.storefront-checkout-cart .quantity-wrapper > .form-control { flex: 1 1 0; width: 0; text-align: center; }
.storefront-checkout-cart .quantity-wrapper .btn { min-width: 34px; }
.storefront-checkout-cart .cart-checkout { min-height: 44px; }
.storefront-checkout-page :is(.success-items, .quick-checkout-connect-wrapper) { padding: clamp(16px, 2vw, 24px); }
.storefront-checkout-page :is(.success-items, .quick-checkout-connect-wrapper) .order-info { display: flex; align-items: flex-start; gap: 16px; width: 100%; }
.storefront-checkout-page :is(.success-items, .quick-checkout-connect-wrapper) .order-info > .icon-wrapper { flex: 0 0 auto; float: none; margin: 0; }
.storefront-checkout-page :is(.success-items, .quick-checkout-connect-wrapper) .inner-wrapper { flex: 1; float: none; min-width: 0; }
#quick-checkout-connect.storefront-checkout-page .view-order { position: static; margin-top: 16px; }
.storefront-checkout-page .order-info > .row:empty { display: none; }
.storefront-checkout-page #payment-confirm-wrapper { min-width: 0; max-width: 100%; }
.storefront-payment-page #qrcode { max-width: 100%; }
.storefront-payment-page #qrcode :is(img, canvas) { max-width: 100%; height: auto; }
.storefront-payment-page #qrcode + .alert { max-width: 100%; }
.storefront-payment-page .btn-block { display: block; width: 100%; }

/* Editorial content may contain pasted images, tables and fixed inline widths. */
.storefront-richtext { min-width: 0; overflow-wrap: anywhere; }
.storefront-information-content { width: 100%; }
.storefront-richtext * { max-width: 100%; }
.storefront-richtext :is(img, video) { max-width: 100%; height: auto; }
.storefront-richtext :is(iframe, embed, object) { max-width: 100%; }
.storefront-richtext :is(table, pre) { display: block; max-width: 100%; overflow-x: auto; }
.storefront-richtext :is(td, th) { overflow-wrap: anywhere; }
.storefront-richtext [style*="white-space: nowrap"],
.storefront-richtext [style*="white-space:nowrap"] { white-space: normal !important; }
.storefront-information-page .accordion-button { min-width: 0; overflow-wrap: anywhere; }
.storefront-information-page .map-wrapper ul { padding-inline-start: 20px; }
.storefront-blog-page :is(.post-card-meta, .post-card-categories, .post-categories, .post-tags) { flex-wrap: wrap; gap: 8px; }
.storefront-blog-page :is(.thumb, .post-card-image img) { max-width: 100%; height: auto; }
.storefront-blog-page :is(.seo, .post-header, .post-card-title, .blog-category-intro) { min-width: 0; overflow-wrap: anywhere; }

/* Coupon center cards reserve room for the amount and let descriptions wrap. */
.storefront-coupon-page .storefront-coupon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; margin: 0; }
.storefront-coupon-grid > div { width: auto; min-width: 0; padding: 0; }
.storefront-coupon-grid .coupons-info { height: 100%; margin: 0; }
.storefront-coupon-grid .coupons-item { display: flex; height: 100%; min-width: 0; }
.storefront-coupon-grid .coupons-item > div:first-child { flex: 0 0 clamp(100px, 10vw, 140px); min-width: 0; overflow-wrap: anywhere; }
.storefront-coupon-grid .coupons-item > div:last-child { flex: 1; min-width: 0; }
.storefront-coupon-grid .coupon-info { min-width: 0; height: auto; padding: 16px; overflow-wrap: anywhere; }
.storefront-coupon-grid .coupon-name { height: auto; max-height: none; white-space: normal; line-height: 1.5; }
.storefront-coupon-grid .get-box { flex-wrap: wrap; gap: 8px; height: auto; }
.storefront-coupon-grid .get-box > * { min-width: 0; max-width: 100%; white-space: normal; }
.storefront-coupon-grid .btn-coupon { height: auto; padding: 6px 12px; white-space: normal; }

/* Points content and dialogs size themselves around translated text. */
.storefront-points { min-width: 0; overflow-wrap: anywhere; }
.storefront-points .storefront-points-inner { width: 100%; min-width: 0; padding-inline: clamp(16px, 2.5vw, 32px); }
.storefront-points [data-point-section] { scroll-margin-top: 160px; }
.storefront-points .point-banner { display: grid; align-items: center; aspect-ratio: auto; min-height: 31.25vw; }
.storefront-points .storefront-points-picture { position: absolute; inset: 0; }
.storefront-points .storefront-points-profile {
    position: relative; left: auto; top: auto; transform: none;
    width: clamp(280px, 25vw, 514px); max-width: calc(100% - 32px); aspect-ratio: auto; gap: 20px;
    margin: clamp(24px, 3vw, 72px) 0 clamp(24px, 3vw, 72px) 25.5859375%;
}
.storefront-points .storefront-points-intro { position: relative; left: auto; top: auto; transform: none; width: min(750px, 70%); margin: clamp(32px, 5vw, 96px) 0 clamp(32px, 5vw, 96px) 21.25%; }
.storefront-points .storefront-points-intro h3 { font-size: clamp(28px, 4.4444vw, 64px); line-height: 1.2; }
.storefront-points .storefront-points-intro > div { flex-wrap: wrap; }
.storefront-points .storefront-points-intro a { height: auto; min-height: 40px; max-width: 100%; padding: 8px 16px; text-align: center; }
.storefront-points .storefront-points-earn > div { min-width: 0; }
.storefront-points .storefront-points-earn > div:last-child { width: 50%; flex-shrink: 1; height: auto; }
.storefront-points .storefront-points-rule { display: flex; flex-direction: column; height: auto; min-height: 282px; padding: 32px 24px; gap: 16px; }
.storefront-points .storefront-points-rule > a { position: relative; inset: auto; align-self: flex-start; max-width: 100%; margin-top: auto; white-space: normal; }
.storefront-points .storefront-points-rule > :is(p, div, h3) { min-width: 0; max-width: 100%; }
.storefront-points .storefront-points-faq { width: min(898px, 100%); }
.storefront-points .question-element > span { min-width: 0; }
.storefront-points :is(#myDialog, #points-spec-dialog, #points-confirm-dialog, #points-activities-dialog) { max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; }
.storefront-points .points-activities-tabs { flex-wrap: wrap; }
.storefront-points :is(.points-activities-item, .points-coupon-ticket) { min-width: 0; overflow-wrap: anywhere; }
.storefront-points-checkout .row { row-gap: 20px; }
.storefront-points-checkout .points-checkout-card { min-width: 0; overflow-wrap: anywhere; }
.storefront-points-checkout .points-checkout-gift-img { max-width: 100%; height: auto; aspect-ratio: 1; }
.storefront-points-checkout .points-checkout-points-row { flex-wrap: wrap; }
.storefront-points-confirm-dialog { max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; }
.storefront-points-confirm-dialog .points-confirm-actions { flex-wrap: wrap; }

@media (max-width: 1199.98px) {
    .storefront-content-page .storefront-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .storefront-content-page .storefront-product-list { grid-template-columns: minmax(0, 1fr); }
    .storefront-points .storefront-points-profile { width: min(360px, calc(100% - 32px)); margin: 32px auto; }
    .storefront-points .storefront-points-intro { width: calc(100% - 32px); margin: 40px 16px; }
}
@media (max-width: 991.98px) {
    .storefront-points .storefront-points-earn { flex-direction: column; align-items: stretch; gap: 24px; }
    .storefront-points .storefront-points-earn > div:last-child { width: 100%; }
    .storefront-points [data-point-section]:not(.point-banner) { padding-block: 40px; }
    .storefront-points .storefront-points-rule { padding: 24px 16px; }
}
@media (max-width: 767.98px) {
    .storefront-checkout-page :is(.success-items, .quick-checkout-connect-wrapper) .order-info { flex-direction: column; }
    .storefront-checkout-page :is(.success-items, .quick-checkout-connect-wrapper) .inner-wrapper { width: 100%; }
    .storefront-checkout-page .checkout-process-wrapper .process-list { display: flex; width: 100%; min-height: 72px; }
    .storefront-checkout-page .checkout-process-wrapper .process-list li { flex: 1; min-width: 0; height: auto; font-size: 12px; }
    .storefront-checkout-page .checkout-process-wrapper .process-list li span { margin: 0; padding: 0 4px; overflow-wrap: anywhere; }
    .storefront-blog-page .post-header h1 { font-size: clamp(24px, 5vw, 32px); }
    .storefront-points-checkout .points-checkout-card { padding: 20px 16px; }
}
@media (max-width: 575.98px) {
    .storefront-content-page .h-min-600 { min-height: 0; }
    .storefront-content-page .buttons > .float-end { float: none !important; }
    .storefront-checkout-cart .buttons { justify-content: flex-end; }
    .storefront-checkout-cart .cart-checkout { width: 100%; }
    .storefront-account-page .traces-list { margin-inline: 0; padding-inline: 0; }
    .storefront-account-page .traces-list .right { min-width: 0; overflow-wrap: anywhere; }
    .storefront-account-page .amount-wrap > .btn { flex-basis: 120px; }
    .storefront-points .storefront-points-rule > img { width: 96px !important; height: 96px !important; }
    .storefront-points .storefront-points-rule:has(> img) { padding-bottom: 112px; }
}
@media (max-width: 359.98px) {
    .storefront-content-page .storefront-product-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Standalone bargain detail also loads this stylesheet. */
body.storefront-bargain-page .container { width: 100%; max-width: 800px; padding-inline: clamp(16px, 2.5vw, 24px); }
body.storefront-bargain-page :is(p, .customer, .title, .btn) { overflow-wrap: anywhere; }
body.storefront-bargain-page img { max-width: 100%; height: auto; }
body.storefront-bargain-page .bargain-top .customer-head img { flex: 0 0 80px; }
body.storefront-bargain-page .bargain-top .product-wrap .right { min-width: 0; }
body.storefront-bargain-page .bargain-top .product-wrap .right .name { white-space: normal; line-height: 1.5; }
body.storefront-bargain-page .bargain-top .product-wrap .right .seconds { flex-wrap: wrap; gap: 4px; }
body.storefront-bargain-page .bargain-top .progress-wrap .top { flex-wrap: wrap; gap: 8px; }
body.storefront-bargain-page .bargain-top .btns-wrap { flex-wrap: wrap; gap: 12px; }
body.storefront-bargain-page .bargain-top .btns-wrap .btn { flex: 1 1 180px; margin: 0; height: auto; white-space: normal; }
body.storefront-bargain-page .bargain-history .customer-wrap { gap: 12px; flex-wrap: wrap; }
body.storefront-bargain-page .bargain-history .customer-wrap .left { min-width: 0; flex-basis: 180px; }
body.storefront-bargain-page .bargain-history .customer-wrap .left .img { flex: 0 0 50px; }
body.storefront-bargain-page .bargain-history .customer-wrap .customer { min-width: 0; }
.storefront-points-confirm-dialog { overflow-wrap: anywhere; }
.storefront-points-confirm-dialog .points-confirm-actions > .btn { max-width: 100%; height: auto; white-space: normal; }

/* Keep decorative step ribbons and artwork clear of the content. */
.storefront-points #works .storefront-points-rule { padding-top: 64px; padding-bottom: 32px; }
.storefront-points #works .storefront-points-rule > img { position: static !important; align-self: flex-end; order: 1; margin-top: 8px; width: 120px !important; height: 120px !important; }
.storefront-points .storefront-points-balance { font-size: clamp(26px, 3vw, 64px); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.storefront-coupon-grid .coupons-item > div:first-child > div:first-child { font-size: clamp(16px, 1.6vw, 22px); }
.storefront-coupon-grid .coupons-item > div:last-child { padding: 0; }
.storefront-coupon-grid .coupons-item > div:last-child .coupon-info .coupon-name { height: auto; white-space: normal; overflow-wrap: anywhere; }
.storefront-coupon-grid .coupons-item > div:last-child .coupon-info > div > span { white-space: normal; }
.storefront-coupon-grid .coupons-item > div:last-child .coupon-info > div.get-box { flex-wrap: wrap; gap: 8px; }
@media (max-width: 767.98px) {
    .storefront-checkout-page .checkout-process-wrapper .process-list li { display: flex; flex-direction: column; align-items: center; }
    .storefront-checkout-page .checkout-process-wrapper .process-list li span { flex: 1; }
    .storefront-checkout-page .checkout-process-wrapper .process-list li div { flex: 0 0 23px; margin-bottom: 0; }
}

body:is(.blog-post, .blog-category, .blog-home) .storefront-blog-page > .row { --bs-gutter-x: clamp(24px, 5vw, 64px); }
body.storefront-bargain-page .bargain-top .customer-head p { min-width: 0; margin-top: 40px; }

@media (max-width: 359.98px) {
    .storefront-account-page #column-left .list-group-item { padding-inline: 4px; }
}
@media (max-width: 767.98px) {
    body.account-order-info .storefront-account-page .buying-wrapper .buying-info::after { display: none; }
}

/* List mode uses the same actions without legacy offsets outside the card. */
.storefront-content-page .storefront-product-list .new_product-thumb { padding: 0; }
.storefront-content-page .storefront-product-list .new_product-caption { margin-left: 0; }
.storefront-content-page .storefront-product-list .price { margin-top: 0; }
@media (min-width: 576px) {
    .storefront-content-page .storefront-product-list .new_product-thumb { display: grid; grid-template-columns: minmax(120px, 24%) minmax(0, 1fr); grid-template-rows: auto 1fr; }
    .storefront-content-page .storefront-product-list .new_product-image { grid-column: 1; grid-row: 1 / 3; align-self: center; }
    .storefront-content-page .storefront-product-list .new_product-info { grid-column: 2; grid-row: 1; }
    .storefront-content-page .storefront-product-list .new_product-caption { grid-column: 2; grid-row: 2; align-self: end; }
}
