/*
Theme Name: Astra Child
Template: astra
Version: 1.0
*/

/* ==========================================================================
   Maxx Design Foundation
   ========================================================================== */

:root {
    --maxx-color-black: #111111;
    --maxx-color-gray-900: #1f1f1f;
    --maxx-color-gray-700: #4a4a4a;
    --maxx-color-gray-500: #777777;
    --maxx-color-gray-300: #d8d8d8;
    --maxx-color-gray-200: #eeeeee;
    --maxx-color-gray-100: #f5f5f5;
    --maxx-color-gray-50: #fafafa;
    --maxx-color-white: #ffffff;

    --maxx-font-body: inherit;
    --maxx-letter-tight: 0;
    --maxx-radius: 0;

    --maxx-space-xs: 6px;
    --maxx-space-sm: 10px;
    --maxx-space-md: 16px;
    --maxx-space-lg: 24px;
    --maxx-space-xl: 36px;
    --maxx-space-2xl: 56px;

    --maxx-container-gap: clamp(16px, 4vw, 40px);
    --maxx-card-gap: 14px;
    --maxx-grid-row-gap: clamp(36px, 7vw, 76px);
    --maxx-grid-column-gap: clamp(14px, 3.5vw, 36px);

    --maxx-button-height: 48px;
    --maxx-tap-target: 44px;

    /* Brand font: Poppins for Latin, Tajawal auto-fallback for Arabic glyphs. */
    --maxx-font: 'Poppins', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ==========================================================================
   Store-wide Brand Typography (Poppins / Tajawal)
   Applied with !important to override Astra's inline typography CSS.
   ========================================================================== */

body,
button,
input,
select,
optgroup,
textarea,
.ast-container,
.site-title,
.site-title a,
.main-header-menu,
.ast-header-break-point .main-header-menu,
.menu-link,
.widget,
.entry-title,
.entry-content,
h1, h2, h3, h4, h5, h6,
.woocommerce,
.woocommerce-page,
.woocommerce button,
.woocommerce input,
.woocommerce select,
.woocommerce .button,
.elementor-widget-container {
    font-family: var(--maxx-font) !important;
}

/* ==========================================================================
   Base Typography / WooCommerce Text
   ========================================================================== */

body,
.woocommerce,
.woocommerce-page {
    color: var(--maxx-color-black);
    font-family: var(--maxx-font-body);
    letter-spacing: var(--maxx-letter-tight);
}

.woocommerce-products-header__title,
.woocommerce div.product .product_title,
.woocommerce-loop-product__title {
    color: var(--maxx-color-black);
    font-weight: 500;
    letter-spacing: 0;
}

.woocommerce-loop-product__title {
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
    text-transform: none;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--maxx-color-gray-700);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

/* ==========================================================================
   Shop / Category Layout
   ========================================================================== */

.woocommerce .site-main {
    padding-top: var(--maxx-space-lg);
}

.woocommerce-products-header {
    margin-bottom: var(--maxx-space-xl);
}

.woocommerce .woocommerce-notices-wrapper {
    margin-bottom: var(--maxx-space-lg);
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
    color: var(--maxx-color-gray-500);
    font-size: 13px;
}

.woocommerce .woocommerce-result-count {
    margin: 0 0 var(--maxx-space-md);
}

.woocommerce .woocommerce-ordering {
    margin: 0 0 var(--maxx-space-lg);
}

.woocommerce .woocommerce-ordering select {
    min-height: 42px;
    border: 1px solid var(--maxx-color-gray-200);
    border-radius: 0;
    background-color: var(--maxx-color-white);
    color: var(--maxx-color-gray-700);
    font-size: 13px;
    line-height: 1.2;
    padding: 10px 34px 10px 12px;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--maxx-grid-row-gap) var(--maxx-grid-column-gap);
}

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

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

/* ==========================================================================
   Product Cards
   ========================================================================== */

.woocommerce ul.products li.product {
    background: transparent;
    text-align: start;
}

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

.woocommerce ul.products li.product a img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center center;
    background: #fbfbfb;
    padding: 8px;
    border-radius: 6px;
    margin: 0 auto;
    transition: transform 0.25s ease;
}

.woocommerce ul.products li.product:hover a img {
    transform: scale(1.03);
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
    position: relative;
    overflow: hidden;
    background: #fbfbfb;
    border-radius: 6px;
    margin-bottom: var(--maxx-card-gap);
    border: 1px solid #f0f0f0;
}

.woocommerce ul.products li.product .astra-shop-summary-wrap {
    padding: 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    max-width: 92%;
    padding: 0;
}

.woocommerce ul.products li.product .price {
    display: block;
    margin-top: 4px;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    margin-top: var(--maxx-space-sm);
    padding: 0 0 2px;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: var(--maxx-color-black);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    text-transform: uppercase;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .added_to_cart:hover {
    background: transparent;
    color: var(--maxx-color-gray-500);
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
    color: var(--maxx-color-gray-700);
}

.woocommerce span.onsale,
.woocommerce-page span.onsale,
.woocommerce ul.products li.product .onsale,
.woocommerce div.product span.onsale,
.ast-onsale-card,
.onsale {
    min-height: 0 !important;
    min-width: 0 !important;
    border-radius: 4px !important;
    background: #e50914 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    line-height: 1 !important;
    padding: 6px 12px !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 6px rgba(229, 9, 20, 0.35) !important;
    border: none !important;
    z-index: 9 !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce div.product form.cart .button {
    min-height: var(--maxx-button-height);
    border-radius: var(--maxx-radius);
    background: var(--maxx-color-black);
    color: var(--maxx-color-white);
    border: 1px solid var(--maxx-color-black);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
    padding: 14px 22px;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce div.product form.cart .button:hover {
    background: var(--maxx-color-white);
    color: var(--maxx-color-black);
    border-color: var(--maxx-color-black);
}

/* ==========================================================================
   Product Page
   ========================================================================== */

.woocommerce div.product {
    margin-top: var(--maxx-space-lg);
}

.woocommerce div.product div.images img {
    background: var(--maxx-color-gray-100);
}

.woocommerce div.product .summary {
    padding-top: var(--maxx-space-sm);
}

.woocommerce div.product .product_title {
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.1;
    margin-bottom: var(--maxx-space-md);
}

.woocommerce div.product form.cart {
    margin-top: var(--maxx-space-lg);
}

.woocommerce div.product form.cart .variations {
    margin-bottom: var(--maxx-space-lg);
}

.woocommerce div.product form.cart .variations label {
    color: var(--maxx-color-black);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
}

/* ==========================================================================
   Variation Swatches
   ========================================================================== */

.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
    display: block;
    padding: 0;
    text-align: start;
}

.woocommerce div.product form.cart .variations tr {
    display: block;
    margin-bottom: var(--maxx-space-md);
}

.woo-variation-swatches .variable-items-wrapper {
    gap: 8px;
}

.woo-variation-swatches .variable-items-wrapper .variable-item {
    min-width: var(--maxx-tap-target);
    min-height: var(--maxx-tap-target);
    border-radius: 0;
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 544px) {
    .woocommerce .site-main {
        padding-top: var(--maxx-space-md);
    }

    .woocommerce-products-header {
        margin-bottom: var(--maxx-space-lg);
    }

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

    .woocommerce-loop-product__title,
    .woocommerce ul.products li.product .price {
        font-size: 12px;
    }

    .woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
        margin-bottom: 10px;
    }

    .woocommerce ul.products li.product .button,
    .woocommerce ul.products li.product .added_to_cart {
        font-size: 10px;
        margin-top: 8px;
    }

    .woocommerce .woocommerce-result-count,
    .woocommerce .woocommerce-ordering {
        float: none;
        width: 100%;
        text-align: start;
    }

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

    .woocommerce div.product .summary {
        padding-top: var(--maxx-space-lg);
    }

    .woocommerce div.product form.cart .button,
    .woocommerce a.button,
    .woocommerce button.button {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .woocommerce .woocommerce-result-count {
        float: left;
        margin: 0 0 var(--maxx-space-xl);
        padding-top: 10px;
    }

    .woocommerce .woocommerce-ordering {
        float: right;
        margin: 0 0 var(--maxx-space-xl);
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1025px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ==========================================================================
   Phase 3: Fashion Archive Layout
   ========================================================================== */

.woocommerce.archive .site-content,
.woocommerce-page.archive .site-content {
    padding-inline: clamp(14px, 3vw, 48px);
}

.woocommerce.archive .ast-container,
.woocommerce-page.archive .ast-container {
    max-width: 1680px;
}

.woocommerce.archive .site-main,
.woocommerce-page.archive .site-main {
    padding-top: clamp(28px, 5vw, 72px);
}

.woocommerce.archive .woocommerce-products-header,
.woocommerce-page.archive .woocommerce-products-header {
    max-width: 760px;
    margin-bottom: clamp(32px, 6vw, 72px);
}

.woocommerce.archive .woocommerce-products-header__title,
.woocommerce-page.archive .woocommerce-products-header__title {
    font-size: clamp(34px, 6vw, 76px);
    font-weight: 500;
    line-height: 0.98;
    margin-bottom: 0;
}

.woocommerce.archive .term-description,
.woocommerce-page.archive .term-description {
    max-width: 620px;
    margin-top: var(--maxx-space-md);
    color: var(--maxx-color-gray-500);
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.65;
}

.woocommerce.archive .woocommerce-result-count,
.woocommerce-page.archive .woocommerce-result-count {
    color: var(--maxx-color-gray-500);
    font-size: 12px;
    line-height: 1.2;
    text-transform: uppercase;
}

.woocommerce.archive .woocommerce-ordering select,
.woocommerce-page.archive .woocommerce-ordering select {
    min-width: 220px;
    border-color: transparent;
    border-bottom-color: var(--maxx-color-gray-300);
    color: var(--maxx-color-black);
    font-size: 12px;
    text-transform: uppercase;
}

.woocommerce.archive ul.products,
.woocommerce-page.archive ul.products {
    clear: both;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(38px, 7vw, 90px) clamp(14px, 3.2vw, 42px);
}

.woocommerce.archive ul.products li.product .astra-shop-thumbnail-wrap,
.woocommerce-page.archive ul.products li.product .astra-shop-thumbnail-wrap {
    margin-bottom: clamp(12px, 1.8vw, 20px);
    background: #fbfbfb;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
}

.woocommerce.archive ul.products li.product a img,
.woocommerce-page.archive ul.products li.product a img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center center;
    background: #fbfbfb;
    padding: 8px;
    border-radius: 6px;
}

.woocommerce.archive ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page.archive ul.products li.product .woocommerce-loop-product__title {
    max-width: 100%;
    color: var(--maxx-color-gray-900);
    font-size: clamp(13px, 1.15vw, 16px);
    font-weight: 500;
    line-height: 1.35;
}

.woocommerce.archive ul.products li.product .price,
.woocommerce-page.archive ul.products li.product .price {
    margin-top: 6px;
    color: var(--maxx-color-black);
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 500;
}

.woocommerce.archive ul.products li.product .button,
.woocommerce.archive ul.products li.product .added_to_cart,
.woocommerce-page.archive ul.products li.product .button,
.woocommerce-page.archive ul.products li.product .added_to_cart {
    margin-top: 12px;
    color: var(--maxx-color-gray-900);
    font-size: 11px;
    letter-spacing: 0.02em;
}

.woocommerce.archive ul.products li.product .button:hover,
.woocommerce.archive ul.products li.product .added_to_cart:hover,
.woocommerce-page.archive ul.products li.product .button:hover,
.woocommerce-page.archive ul.products li.product .added_to_cart:hover {
    color: var(--maxx-color-gray-500);
}

@media (max-width: 544px) {
    .woocommerce.archive .site-content,
    .woocommerce-page.archive .site-content {
        padding-inline: 12px;
    }

    .woocommerce.archive .site-main,
    .woocommerce-page.archive .site-main {
        padding-top: 24px;
    }

    .woocommerce.archive .woocommerce-products-header,
    .woocommerce-page.archive .woocommerce-products-header {
        margin-bottom: 28px;
    }

    .woocommerce.archive .woocommerce-products-header__title,
    .woocommerce-page.archive .woocommerce-products-header__title {
        font-size: 36px;
        line-height: 1;
    }

    .woocommerce.archive .woocommerce-result-count,
    .woocommerce.archive .woocommerce-ordering,
    .woocommerce-page.archive .woocommerce-result-count,
    .woocommerce-page.archive .woocommerce-ordering {
        margin-bottom: 16px;
    }

    .woocommerce.archive .woocommerce-ordering select,
    .woocommerce-page.archive .woocommerce-ordering select {
        min-width: 0;
        min-height: 40px;
        padding-left: 0;
    }

    .woocommerce.archive ul.products,
    .woocommerce-page.archive ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 12px;
    }

    .woocommerce.archive ul.products li.product .woocommerce-loop-product__title,
    .woocommerce-page.archive ul.products li.product .woocommerce-loop-product__title {
        font-size: 12px;
        line-height: 1.35;
    }

    .woocommerce.archive ul.products li.product .price,
    .woocommerce-page.archive ul.products li.product .price {
        font-size: 12px;
        margin-top: 5px;
    }

    .woocommerce.archive ul.products li.product .button,
    .woocommerce.archive ul.products li.product .added_to_cart,
    .woocommerce-page.archive ul.products li.product .button,
    .woocommerce-page.archive ul.products li.product .added_to_cart {
        margin-top: 8px;
        font-size: 10px;
    }
}

@media (min-width: 768px) {
    .woocommerce.archive .woocommerce-result-count,
    .woocommerce-page.archive .woocommerce-result-count {
        margin-bottom: 44px;
        padding-top: 12px;
    }

    .woocommerce.archive .woocommerce-ordering,
    .woocommerce-page.archive .woocommerce-ordering {
        margin-bottom: 44px;
    }

    .woocommerce.archive ul.products,
    .woocommerce-page.archive ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .woocommerce.archive ul.products,
    .woocommerce-page.archive ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ==========================================================================
   Phase 4: Dice-style WooCommerce Archive Architecture
   ========================================================================== */

.woocommerce.archive,
.woocommerce-page.archive {
    --maxx-archive-sidebar-width: clamp(190px, 18vw, 260px);
    --maxx-archive-content-gap: clamp(28px, 4vw, 64px);
    --maxx-archive-control-height: 46px;
}

.woocommerce.archive .site-content,
.woocommerce-page.archive .site-content {
    background: var(--maxx-color-white);
}

.woocommerce.archive .ast-woocommerce-container,
.woocommerce-page.archive .ast-woocommerce-container {
    width: 100%;
}

.woocommerce.archive .woocommerce-breadcrumb,
.woocommerce-page.archive .woocommerce-breadcrumb {
    margin: 0 0 clamp(18px, 2.4vw, 34px);
    color: var(--maxx-color-gray-500);
    font-size: 11px;
    line-height: 1.4;
    text-transform: uppercase;
}

.woocommerce.archive .woocommerce-breadcrumb a,
.woocommerce-page.archive .woocommerce-breadcrumb a {
    color: var(--maxx-color-gray-700);
    text-decoration: none;
}

.woocommerce.archive .woocommerce-breadcrumb a:hover,
.woocommerce-page.archive .woocommerce-breadcrumb a:hover {
    color: var(--maxx-color-black);
}

.woocommerce.archive .woocommerce-products-header,
.woocommerce-page.archive .woocommerce-products-header {
    display: grid;
    gap: var(--maxx-space-md);
    max-width: min(860px, 100%);
}

.woocommerce.archive .woocommerce-products-header__title,
.woocommerce-page.archive .woocommerce-products-header__title {
    max-width: 11ch;
    font-size: clamp(42px, 7.2vw, 96px);
    font-weight: 500;
    line-height: 0.94;
}

.woocommerce.archive .term-description,
.woocommerce-page.archive .term-description {
    max-width: 54ch;
    margin-top: 0;
}

.woocommerce.archive .woocommerce-notices-wrapper,
.woocommerce-page.archive .woocommerce-notices-wrapper {
    clear: both;
}

.woocommerce.archive .woocommerce-result-count,
.woocommerce.archive .woocommerce-ordering,
.woocommerce-page.archive .woocommerce-result-count,
.woocommerce-page.archive .woocommerce-ordering {
    float: none;
}

.woocommerce.archive .woocommerce-result-count,
.woocommerce-page.archive .woocommerce-result-count {
    margin: 0;
    padding: 0;
    color: var(--maxx-color-gray-500);
    letter-spacing: 0.04em;
}

.woocommerce.archive .woocommerce-ordering,
.woocommerce-page.archive .woocommerce-ordering {
    margin: 0;
}

.woocommerce.archive .woocommerce-ordering select,
.woocommerce-page.archive .woocommerce-ordering select {
    height: var(--maxx-archive-control-height);
    min-height: var(--maxx-archive-control-height);
    min-width: 238px;
    border: 0;
    border-bottom: 1px solid var(--maxx-color-gray-300);
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
    color: var(--maxx-color-black);
    letter-spacing: 0.04em;
}

.woocommerce.archive .woocommerce-ordering select:focus,
.woocommerce-page.archive .woocommerce-ordering select:focus {
    border-bottom-color: var(--maxx-color-black);
    outline: 1px solid transparent;
}

.woocommerce.archive .woocommerce-result-count + .woocommerce-ordering,
.woocommerce-page.archive .woocommerce-result-count + .woocommerce-ordering {
    margin-top: var(--maxx-space-md);
}

.woocommerce.archive ul.products,
.woocommerce-page.archive ul.products {
    margin-top: clamp(30px, 4vw, 56px);
    align-items: start;
}

.woocommerce.archive ul.products li.product,
.woocommerce-page.archive ul.products li.product {
    min-width: 0;
}

.woocommerce.archive ul.products li.product .astra-shop-thumbnail-wrap,
.woocommerce-page.archive ul.products li.product .astra-shop-thumbnail-wrap {
    background: var(--maxx-color-gray-50);
}

.woocommerce.archive ul.products li.product a img,
.woocommerce-page.archive ul.products li.product a img {
    min-height: 0;
    object-position: center top;
}

.woocommerce.archive ul.products li.product .star-rating,
.woocommerce-page.archive ul.products li.product .star-rating {
    display: none;
}

.woocommerce.archive ul.products li.product .astra-shop-summary-wrap,
.woocommerce-page.archive ul.products li.product .astra-shop-summary-wrap {
    display: grid;
    gap: 4px;
}

.woocommerce.archive ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page.archive ul.products li.product .woocommerce-loop-product__title {
    letter-spacing: 0;
}

.woocommerce.archive ul.products li.product .price,
.woocommerce-page.archive ul.products li.product .price {
    letter-spacing: 0;
}

.woocommerce.archive ul.products li.product .price del,
.woocommerce-page.archive ul.products li.product .price del {
    color: var(--maxx-color-gray-500);
    font-weight: 400;
}

.woocommerce.archive ul.products li.product .price ins,
.woocommerce-page.archive ul.products li.product .price ins {
    color: var(--maxx-color-black);
    font-weight: 500;
    text-decoration: none;
}

.woocommerce.archive ul.products li.product .button,
.woocommerce.archive ul.products li.product .added_to_cart,
.woocommerce-page.archive ul.products li.product .button,
.woocommerce-page.archive ul.products li.product .added_to_cart {
    justify-self: start;
    min-height: var(--maxx-tap-target);
    padding-top: 12px;
}

.woocommerce.archive nav.woocommerce-pagination,
.woocommerce-page.archive nav.woocommerce-pagination {
    margin-top: clamp(44px, 7vw, 88px);
}

.woocommerce.archive nav.woocommerce-pagination ul,
.woocommerce-page.archive nav.woocommerce-pagination ul {
    border: 0;
}

.woocommerce.archive nav.woocommerce-pagination ul li,
.woocommerce-page.archive nav.woocommerce-pagination ul li {
    border: 0;
}

.woocommerce.archive nav.woocommerce-pagination ul li a,
.woocommerce.archive nav.woocommerce-pagination ul li span,
.woocommerce-page.archive nav.woocommerce-pagination ul li a,
.woocommerce-page.archive nav.woocommerce-pagination ul li span {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: transparent;
    color: var(--maxx-color-gray-700);
    font-size: 13px;
}

.woocommerce.archive nav.woocommerce-pagination ul li span.current,
.woocommerce.archive nav.woocommerce-pagination ul li a:hover,
.woocommerce-page.archive nav.woocommerce-pagination ul li span.current,
.woocommerce-page.archive nav.woocommerce-pagination ul li a:hover {
    background: var(--maxx-color-black);
    color: var(--maxx-color-white);
}

.woocommerce.archive #secondary,
.woocommerce-page.archive #secondary {
    color: var(--maxx-color-black);
}

.woocommerce.archive #secondary .sidebar-main,
.woocommerce-page.archive #secondary .sidebar-main {
    display: grid;
    gap: clamp(26px, 3vw, 42px);
}

.woocommerce.archive #secondary .widget,
.woocommerce-page.archive #secondary .widget {
    margin: 0;
    padding: 0 0 clamp(22px, 2.4vw, 34px);
    border-bottom: 1px solid var(--maxx-color-gray-200);
    background: transparent;
}

.woocommerce.archive #secondary .widget:last-child,
.woocommerce-page.archive #secondary .widget:last-child {
    border-bottom: 0;
}

.woocommerce.archive #secondary .widget-title,
.woocommerce.archive #secondary .wp-block-heading,
.woocommerce-page.archive #secondary .widget-title,
.woocommerce-page.archive #secondary .wp-block-heading {
    margin: 0 0 14px;
    color: var(--maxx-color-black);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.woocommerce.archive #secondary ul,
.woocommerce-page.archive #secondary ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce.archive #secondary li,
.woocommerce-page.archive #secondary li,
.woocommerce.archive #secondary .wc-layered-nav-term,
.woocommerce-page.archive #secondary .wc-layered-nav-term {
    margin: 0;
    padding: 0;
}

.woocommerce.archive #secondary li + li,
.woocommerce-page.archive #secondary li + li,
.woocommerce.archive #secondary .wc-layered-nav-term + .wc-layered-nav-term,
.woocommerce-page.archive #secondary .wc-layered-nav-term + .wc-layered-nav-term {
    margin-top: 10px;
}

.woocommerce.archive #secondary a,
.woocommerce-page.archive #secondary a,
.woocommerce.archive #secondary label,
.woocommerce-page.archive #secondary label {
    color: var(--maxx-color-gray-700);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    text-decoration: none;
}

.woocommerce.archive #secondary a:hover,
.woocommerce-page.archive #secondary a:hover,
.woocommerce.archive #secondary .current-cat > a,
.woocommerce-page.archive #secondary .current-cat > a,
.woocommerce.archive #secondary .chosen a,
.woocommerce-page.archive #secondary .chosen a {
    color: var(--maxx-color-black);
}

.woocommerce.archive #secondary .count,
.woocommerce-page.archive #secondary .count {
    color: var(--maxx-color-gray-500);
    font-size: 12px;
}

.woocommerce.archive #secondary .widget_layered_nav .chosen a::before,
.woocommerce-page.archive #secondary .widget_layered_nav .chosen a::before,
.woocommerce.archive #secondary .woocommerce-widget-layered-nav-list .chosen a::before,
.woocommerce-page.archive #secondary .woocommerce-widget-layered-nav-list .chosen a::before {
    color: var(--maxx-color-black);
}

.woocommerce.archive #secondary .widget_price_filter .price_slider_wrapper,
.woocommerce-page.archive #secondary .widget_price_filter .price_slider_wrapper {
    padding-top: 4px;
}

.woocommerce.archive #secondary .widget_price_filter .ui-slider,
.woocommerce-page.archive #secondary .widget_price_filter .ui-slider {
    margin: 0 0 22px;
}

.woocommerce.archive #secondary .widget_price_filter .price_slider,
.woocommerce-page.archive #secondary .widget_price_filter .price_slider {
    height: 2px;
    background: var(--maxx-color-gray-200);
}

.woocommerce.archive #secondary .widget_price_filter .ui-slider-range,
.woocommerce-page.archive #secondary .widget_price_filter .ui-slider-range {
    background: var(--maxx-color-black);
}

.woocommerce.archive #secondary .widget_price_filter .ui-slider-handle,
.woocommerce-page.archive #secondary .widget_price_filter .ui-slider-handle {
    width: 14px;
    height: 14px;
    top: -6px;
    border-radius: 50%;
    background: var(--maxx-color-black);
}

.woocommerce.archive #secondary .widget_price_filter .button,
.woocommerce-page.archive #secondary .widget_price_filter .button {
    min-height: 40px;
    padding: 10px 16px;
    font-size: 11px;
}

.woocommerce.archive #secondary .woocommerce-widget-layered-nav-dropdown select,
.woocommerce-page.archive #secondary .woocommerce-widget-layered-nav-dropdown select,
.woocommerce.archive #secondary select,
.woocommerce-page.archive #secondary select {
    min-height: 44px;
    border: 1px solid var(--maxx-color-gray-300);
    border-radius: 0;
    box-shadow: none;
    background: var(--maxx-color-white);
    color: var(--maxx-color-black);
    font-size: 13px;
}

.woocommerce.archive #secondary .variable-items-wrapper,
.woocommerce-page.archive #secondary .variable-items-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.woocommerce.archive #secondary .variable-item,
.woocommerce-page.archive #secondary .variable-item {
    min-width: 38px;
    min-height: 38px;
    border-radius: 0;
    box-shadow: none;
}

@media (min-width: 922px) {
    .woocommerce.archive.ast-left-sidebar .site-content > .ast-container,
    .woocommerce-page.archive.ast-left-sidebar .site-content > .ast-container,
    .woocommerce.archive.ast-right-sidebar .site-content > .ast-container,
    .woocommerce-page.archive.ast-right-sidebar .site-content > .ast-container {
        display: grid;
        align-items: start;
        gap: var(--maxx-archive-content-gap);
    }

    .woocommerce.archive.ast-left-sidebar .site-content > .ast-container,
    .woocommerce-page.archive.ast-left-sidebar .site-content > .ast-container {
        grid-template-columns: var(--maxx-archive-sidebar-width) minmax(0, 1fr);
    }

    .woocommerce.archive.ast-right-sidebar .site-content > .ast-container,
    .woocommerce-page.archive.ast-right-sidebar .site-content > .ast-container {
        grid-template-columns: minmax(0, 1fr) var(--maxx-archive-sidebar-width);
    }

    .woocommerce.archive.ast-left-sidebar #primary,
    .woocommerce-page.archive.ast-left-sidebar #primary,
    .woocommerce.archive.ast-right-sidebar #primary,
    .woocommerce-page.archive.ast-right-sidebar #primary,
    .woocommerce.archive.ast-left-sidebar #secondary,
    .woocommerce-page.archive.ast-left-sidebar #secondary,
    .woocommerce.archive.ast-right-sidebar #secondary,
    .woocommerce-page.archive.ast-right-sidebar #secondary {
        float: none;
        width: auto;
        margin: 0;
        padding: 0;
        border: 0;
    }

    .woocommerce.archive.ast-left-sidebar #secondary,
    .woocommerce-page.archive.ast-left-sidebar #secondary,
    .woocommerce.archive.ast-right-sidebar #secondary,
    .woocommerce-page.archive.ast-right-sidebar #secondary {
        position: sticky;
        top: 28px;
        align-self: start;
    }

    .woocommerce.archive.ast-right-sidebar #secondary,
    .woocommerce-page.archive.ast-right-sidebar #secondary {
        grid-column: 2;
        grid-row: 1;
    }

    .woocommerce.archive.ast-right-sidebar #primary,
    .woocommerce-page.archive.ast-right-sidebar #primary {
        grid-column: 1;
        grid-row: 1;
    }

    .woocommerce.archive .woocommerce-result-count,
    .woocommerce-page.archive .woocommerce-result-count {
        clear: none;
        display: inline-flex;
        align-items: center;
        min-height: var(--maxx-archive-control-height);
        margin-bottom: 0;
    }

    .woocommerce.archive .woocommerce-ordering,
    .woocommerce-page.archive .woocommerce-ordering {
        float: right;
        margin-bottom: 0;
    }

    .woocommerce.archive .woocommerce-result-count + .woocommerce-ordering,
    .woocommerce-page.archive .woocommerce-result-count + .woocommerce-ordering {
        margin-top: 0;
    }

    .woocommerce.archive.ast-no-sidebar ul.products,
    .woocommerce-page.archive.ast-no-sidebar ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .woocommerce.archive.ast-left-sidebar ul.products,
    .woocommerce-page.archive.ast-left-sidebar ul.products,
    .woocommerce.archive.ast-right-sidebar ul.products,
    .woocommerce-page.archive.ast-right-sidebar ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: clamp(48px, 6vw, 82px) clamp(18px, 2.6vw, 34px);
    }
}

@media (min-width: 1440px) {
    .woocommerce.archive.ast-no-sidebar ul.products,
    .woocommerce-page.archive.ast-no-sidebar ul.products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 921px) {
    .woocommerce.archive #secondary,
    .woocommerce-page.archive #secondary {
        display: none;
    }

    .woocommerce.archive .woocommerce-products-header__title,
    .woocommerce-page.archive .woocommerce-products-header__title {
        max-width: 10ch;
    }

    .woocommerce.archive .woocommerce-result-count,
    .woocommerce.archive .woocommerce-ordering,
    .woocommerce-page.archive .woocommerce-result-count,
    .woocommerce-page.archive .woocommerce-ordering {
        width: 100%;
        text-align: start;
    }

    .woocommerce.archive .woocommerce-ordering select,
    .woocommerce-page.archive .woocommerce-ordering select {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 430px) {
    .woocommerce.archive .site-content,
    .woocommerce-page.archive .site-content {
        padding-inline: 10px;
    }

    .woocommerce.archive .woocommerce-products-header__title,
    .woocommerce-page.archive .woocommerce-products-header__title {
        font-size: 34px;
        line-height: 0.98;
    }

    .woocommerce.archive ul.products,
    .woocommerce-page.archive ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 10px;
    }

    .woocommerce.archive ul.products li.product .button,
    .woocommerce.archive ul.products li.product .added_to_cart,
    .woocommerce-page.archive ul.products li.product .button,
    .woocommerce-page.archive ul.products li.product .added_to_cart {
        min-height: 38px;
        padding-top: 9px;
    }
}

/* ==========================================================================
   Phase 4C: Premium WooCommerce Filter Sidebar
   ========================================================================== */

.woocommerce.archive,
.woocommerce-page.archive {
    --maxx-filter-sidebar-width: clamp(260px, 20vw, 300px);
    --maxx-filter-title-size: 11px;
    --maxx-filter-body-size: 13px;
    --maxx-filter-divider: #e5e5e5;
    --maxx-filter-muted: #6f6f6f;
}

.woocommerce.archive #secondary,
.woocommerce-page.archive #secondary {
    background: transparent;
}

.woocommerce.archive #secondary .sidebar-main,
.woocommerce-page.archive #secondary .sidebar-main {
    gap: 0;
}

.woocommerce.archive #secondary .widget,
.woocommerce-page.archive #secondary .widget {
    position: relative;
    margin: 0;
    padding: 0 0 clamp(24px, 3vw, 38px);
    border: 0;
    border-bottom: 1px solid var(--maxx-filter-divider);
}

.woocommerce.archive #secondary .widget + .widget,
.woocommerce-page.archive #secondary .widget + .widget {
    padding-top: clamp(24px, 3vw, 38px);
}

.woocommerce.archive #secondary .widget-title,
.woocommerce.archive #secondary .wp-block-heading,
.woocommerce-page.archive #secondary .widget-title,
.woocommerce-page.archive #secondary .wp-block-heading {
    margin: 0 0 18px;
    color: var(--maxx-color-black);
    font-size: var(--maxx-filter-title-size);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.woocommerce.archive #secondary .widget_product_categories .widget-title,
.woocommerce-page.archive #secondary .widget_product_categories .widget-title,
.woocommerce.archive #secondary .wc-block-product-categories__title,
.woocommerce-page.archive #secondary .wc-block-product-categories__title {
    font-size: 12px;
}

.woocommerce.archive #secondary ul,
.woocommerce-page.archive #secondary ul,
.woocommerce.archive #secondary ol,
.woocommerce-page.archive #secondary ol {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce.archive #secondary li,
.woocommerce-page.archive #secondary li,
.woocommerce.archive #secondary .wc-layered-nav-term,
.woocommerce-page.archive #secondary .wc-layered-nav-term,
.woocommerce.archive #secondary .wc-block-product-categories-list-item,
.woocommerce-page.archive #secondary .wc-block-product-categories-list-item {
    margin: 0;
    padding: 0;
}

.woocommerce.archive #secondary li + li,
.woocommerce-page.archive #secondary li + li,
.woocommerce.archive #secondary .wc-layered-nav-term + .wc-layered-nav-term,
.woocommerce-page.archive #secondary .wc-layered-nav-term + .wc-layered-nav-term {
    margin-top: 0;
}

.woocommerce.archive #secondary a,
.woocommerce-page.archive #secondary a,
.woocommerce.archive #secondary label,
.woocommerce-page.archive #secondary label,
.woocommerce.archive #secondary .wc-block-components-checkbox__label,
.woocommerce-page.archive #secondary .wc-block-components-checkbox__label {
    color: var(--maxx-filter-muted);
    font-size: var(--maxx-filter-body-size);
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0;
    text-decoration: none;
}

.woocommerce.archive #secondary a,
.woocommerce-page.archive #secondary a {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    min-height: 28px;
}

.woocommerce.archive #secondary a:hover,
.woocommerce-page.archive #secondary a:hover,
.woocommerce.archive #secondary .current-cat > a,
.woocommerce-page.archive #secondary .current-cat > a,
.woocommerce.archive #secondary .chosen a,
.woocommerce-page.archive #secondary .chosen a,
.woocommerce.archive #secondary .wc-block-product-categories-list-item.current-cat > a,
.woocommerce-page.archive #secondary .wc-block-product-categories-list-item.current-cat > a {
    color: var(--maxx-color-black);
}

.woocommerce.archive #secondary .children,
.woocommerce-page.archive #secondary .children,
.woocommerce.archive #secondary .wc-block-product-categories-list-item ul,
.woocommerce-page.archive #secondary .wc-block-product-categories-list-item ul {
    gap: 9px;
    margin-top: 9px;
    padding-left: 13px;
}

.woocommerce.archive #secondary .children a,
.woocommerce-page.archive #secondary .children a,
.woocommerce.archive #secondary .wc-block-product-categories-list-item ul a,
.woocommerce-page.archive #secondary .wc-block-product-categories-list-item ul a {
    font-size: 12px;
}

.woocommerce.archive #secondary .count,
.woocommerce-page.archive #secondary .count,
.woocommerce.archive #secondary mark.count,
.woocommerce-page.archive #secondary mark.count,
.woocommerce.archive #secondary .wc-block-product-categories-list-item-count,
.woocommerce-page.archive #secondary .wc-block-product-categories-list-item-count {
    margin-left: auto;
    background: transparent;
    color: var(--maxx-color-gray-500);
    font-size: 11px;
    font-weight: 400;
}

.woocommerce.archive #secondary .woocommerce-widget-layered-nav-list,
.woocommerce-page.archive #secondary .woocommerce-widget-layered-nav-list,
.woocommerce.archive #secondary .wc-block-attribute-filter-list,
.woocommerce-page.archive #secondary .wc-block-attribute-filter-list {
    gap: 10px;
}

.woocommerce.archive #secondary .woocommerce-widget-layered-nav-list a,
.woocommerce-page.archive #secondary .woocommerce-widget-layered-nav-list a,
.woocommerce.archive #secondary .wc-block-attribute-filter-list a,
.woocommerce-page.archive #secondary .wc-block-attribute-filter-list a {
    min-height: 30px;
}

.woocommerce.archive #secondary input[type="checkbox"],
.woocommerce-page.archive #secondary input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 0 10px 0 0;
    border: 1px solid var(--maxx-color-gray-300);
    border-radius: 0;
    box-shadow: none;
    accent-color: var(--maxx-color-black);
}

.woocommerce.archive #secondary .wc-block-components-checkbox,
.woocommerce-page.archive #secondary .wc-block-components-checkbox {
    align-items: center;
    min-height: 32px;
    margin: 0;
}

.woocommerce.archive #secondary .wc-block-components-checkbox .wc-block-components-checkbox__input,
.woocommerce-page.archive #secondary .wc-block-components-checkbox .wc-block-components-checkbox__input {
    margin-right: 10px;
}

.woocommerce.archive #secondary .chosen a::before,
.woocommerce-page.archive #secondary .chosen a::before {
    color: var(--maxx-color-black);
    font-size: 12px;
}

.woocommerce.archive #secondary .widget_price_filter .price_slider_wrapper,
.woocommerce-page.archive #secondary .widget_price_filter .price_slider_wrapper {
    padding-top: 2px;
}

.woocommerce.archive #secondary .widget_price_filter .price_slider,
.woocommerce-page.archive #secondary .widget_price_filter .price_slider,
.woocommerce.archive #secondary .wc-block-price-filter__range-input-wrapper,
.woocommerce-page.archive #secondary .wc-block-price-filter__range-input-wrapper {
    margin: 0 0 24px;
}

.woocommerce.archive #secondary .widget_price_filter .ui-slider,
.woocommerce-page.archive #secondary .widget_price_filter .ui-slider {
    height: 1px;
    margin: 8px 7px 28px;
    border: 0;
    background: var(--maxx-color-gray-300);
}

.woocommerce.archive #secondary .widget_price_filter .ui-slider-range,
.woocommerce-page.archive #secondary .widget_price_filter .ui-slider-range {
    height: 1px;
    background: var(--maxx-color-black);
}

.woocommerce.archive #secondary .widget_price_filter .ui-slider-handle,
.woocommerce-page.archive #secondary .widget_price_filter .ui-slider-handle {
    width: 15px;
    height: 15px;
    top: -7px;
    margin-left: -7px;
    border: 1px solid var(--maxx-color-black);
    border-radius: 50%;
    background: var(--maxx-color-white);
    box-shadow: none;
}

.woocommerce.archive #secondary .widget_price_filter .price_slider_amount,
.woocommerce-page.archive #secondary .widget_price_filter .price_slider_amount {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
    color: var(--maxx-filter-muted);
    font-size: 12px;
    line-height: 1.4;
    text-align: start;
}

.woocommerce.archive #secondary .widget_price_filter .price_label,
.woocommerce-page.archive #secondary .widget_price_filter .price_label {
    color: var(--maxx-filter-muted);
    font-size: 12px;
}

.woocommerce.archive #secondary .widget_price_filter .button,
.woocommerce-page.archive #secondary .widget_price_filter .button {
    justify-self: end;
    min-height: 36px;
    padding: 9px 15px;
    border: 1px solid var(--maxx-color-black);
    background: var(--maxx-color-black);
    color: var(--maxx-color-white);
    font-size: 10px;
    letter-spacing: 0.1em;
}

.woocommerce.archive #secondary .widget_price_filter .button:hover,
.woocommerce-page.archive #secondary .widget_price_filter .button:hover {
    background: var(--maxx-color-white);
    color: var(--maxx-color-black);
}

.woocommerce.archive #secondary select,
.woocommerce-page.archive #secondary select,
.woocommerce.archive #secondary .woocommerce-widget-layered-nav-dropdown select,
.woocommerce-page.archive #secondary .woocommerce-widget-layered-nav-dropdown select {
    min-height: 44px;
    border: 0;
    border-bottom: 1px solid var(--maxx-filter-divider);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    color: var(--maxx-color-black);
    font-size: 13px;
    padding-inline: 0 28px;
}

.woocommerce.archive #secondary select:focus,
.woocommerce-page.archive #secondary select:focus {
    border-bottom-color: var(--maxx-color-black);
}

.woocommerce.archive #secondary .widget_layered_nav_filters ul,
.woocommerce-page.archive #secondary .widget_layered_nav_filters ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.woocommerce.archive #secondary .widget_layered_nav_filters a,
.woocommerce-page.archive #secondary .widget_layered_nav_filters a {
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--maxx-filter-divider);
    color: var(--maxx-color-black);
    font-size: 11px;
    text-transform: uppercase;
}

.woocommerce.archive #secondary .widget_layered_nav_filters a:hover,
.woocommerce-page.archive #secondary .widget_layered_nav_filters a:hover {
    border-color: var(--maxx-color-black);
}

@media (min-width: 922px) {
    .woocommerce.archive,
    .woocommerce-page.archive {
        --maxx-archive-sidebar-width: var(--maxx-filter-sidebar-width);
    }

    .woocommerce.archive.ast-left-sidebar .site-content > .ast-container,
    .woocommerce-page.archive.ast-left-sidebar .site-content > .ast-container {
        grid-template-columns: var(--maxx-filter-sidebar-width) minmax(0, 1fr);
    }

    .woocommerce.archive.ast-right-sidebar .site-content > .ast-container,
    .woocommerce-page.archive.ast-right-sidebar .site-content > .ast-container {
        grid-template-columns: minmax(0, 1fr) var(--maxx-filter-sidebar-width);
    }

    .woocommerce.archive #secondary,
    .woocommerce-page.archive #secondary {
        padding-top: 6px;
    }

    .woocommerce.archive.ast-left-sidebar #secondary,
    .woocommerce-page.archive.ast-left-sidebar #secondary,
    .woocommerce.archive.ast-right-sidebar #secondary,
    .woocommerce-page.archive.ast-right-sidebar #secondary {
        top: 34px;
    }

    .woocommerce.archive.ast-left-sidebar ul.products,
    .woocommerce-page.archive.ast-left-sidebar ul.products,
    .woocommerce.archive.ast-right-sidebar ul.products,
    .woocommerce-page.archive.ast-right-sidebar ul.products {
        gap: clamp(48px, 6vw, 86px) clamp(18px, 2.2vw, 32px);
    }
}

@media (max-width: 921px) {
    .woocommerce.archive #secondary,
    .woocommerce-page.archive #secondary {
        display: block;
        width: 100%;
        margin: 0 0 clamp(28px, 6vw, 44px);
        padding: 0;
        border: 0;
    }

    .woocommerce.archive #secondary .sidebar-main,
    .woocommerce-page.archive #secondary .sidebar-main {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 clamp(22px, 5vw, 36px);
    }

    .woocommerce.archive #secondary .widget,
    .woocommerce-page.archive #secondary .widget {
        padding-bottom: 24px;
    }

    .woocommerce.archive #secondary .widget + .widget,
    .woocommerce-page.archive #secondary .widget + .widget {
        padding-top: 0;
    }
}

@media (max-width: 640px) {
    .woocommerce.archive #secondary,
    .woocommerce-page.archive #secondary {
        margin-bottom: 30px;
    }

    .woocommerce.archive #secondary .sidebar-main,
    .woocommerce-page.archive #secondary .sidebar-main {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .woocommerce.archive #secondary .widget,
    .woocommerce-page.archive #secondary .widget {
        padding: 0 0 22px;
    }

    .woocommerce.archive #secondary .widget + .widget,
    .woocommerce-page.archive #secondary .widget + .widget {
        padding-top: 22px;
    }

    .woocommerce.archive #secondary a,
    .woocommerce-page.archive #secondary a,
    .woocommerce.archive #secondary label,
    .woocommerce-page.archive #secondary label,
    .woocommerce.archive #secondary .wc-block-components-checkbox,
    .woocommerce-page.archive #secondary .wc-block-components-checkbox {
        min-height: 36px;
    }

    .woocommerce.archive #secondary .widget_price_filter .price_slider_amount,
    .woocommerce-page.archive #secondary .widget_price_filter .price_slider_amount {
        grid-template-columns: 1fr;
    }

    .woocommerce.archive #secondary .widget_price_filter .button,
    .woocommerce-page.archive #secondary .widget_price_filter .button {
        justify-self: start;
    }
}

/* Phase 4F: Final archive sidebar + product grid polish */
.woocommerce.archive,
.woocommerce-page.archive {
    --maxx-filter-sidebar-width: clamp(270px, 21vw, 300px);
    --maxx-archive-content-gap: clamp(34px, 4.5vw, 68px);
    --maxx-filter-rule: #e8e8e8;
    --maxx-filter-muted: #777;
    --maxx-filter-text: #171717;
}

.woocommerce.archive .site-main,
.woocommerce-page.archive .site-main {
    padding-top: clamp(24px, 4vw, 54px);
}

.woocommerce.archive .woocommerce-products-header,
.woocommerce-page.archive .woocommerce-products-header {
    margin-bottom: clamp(28px, 4vw, 50px);
}

.woocommerce.archive .woocommerce-products-header__title,
.woocommerce-page.archive .woocommerce-products-header__title {
    margin-bottom: 12px;
    font-size: clamp(42px, 6.5vw, 88px);
    line-height: .92;
}

.woocommerce.archive .term-description,
.woocommerce-page.archive .term-description {
    max-width: 52ch;
    margin-top: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}

.woocommerce.archive .woocommerce-result-count,
.woocommerce-page.archive .woocommerce-result-count {
    min-height: 44px;
    display: flex;
    align-items: center;
    margin: 0;
    color: #777;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.woocommerce.archive .woocommerce-ordering,
.woocommerce-page.archive .woocommerce-ordering {
    margin-bottom: 0;
}

.woocommerce.archive .woocommerce-ordering select,
.woocommerce-page.archive .woocommerce-ordering select {
    min-width: 230px;
    min-height: 44px;
    padding-top: 0;
    padding-bottom: 0;
    border-color: #d8d8d8;
    color: #171717;
    font-size: 12px;
    letter-spacing: .03em;
    background-color: #fff;
}

.woocommerce.archive ul.products,
.woocommerce-page.archive ul.products {
    margin-top: clamp(26px, 3.2vw, 44px);
}

.woocommerce.archive #secondary,
.woocommerce-page.archive #secondary {
    color: var(--maxx-filter-text);
}

.woocommerce.archive #secondary .sidebar-main,
.woocommerce-page.archive #secondary .sidebar-main {
    font-size: 13px;
    line-height: 1.45;
}

.woocommerce.archive #secondary .widget,
.woocommerce-page.archive #secondary .widget,
.woocommerce.archive #secondary .wp-block-woocommerce-product-filter-taxonomy,
.woocommerce-page.archive #secondary .wp-block-woocommerce-product-filter-taxonomy,
.woocommerce.archive #secondary .wp-block-woocommerce-product-filter-attribute,
.woocommerce-page.archive #secondary .wp-block-woocommerce-product-filter-attribute,
.woocommerce.archive #secondary .wp-block-woocommerce-product-filter-price,
.woocommerce-page.archive #secondary .wp-block-woocommerce-product-filter-price,
.woocommerce.archive #secondary .wp-block-woocommerce-product-filter-active,
.woocommerce-page.archive #secondary .wp-block-woocommerce-product-filter-active {
    margin: 0;
    padding: 0 0 22px;
    border-bottom: 1px solid var(--maxx-filter-rule);
}

.woocommerce.archive #secondary .widget + .widget,
.woocommerce-page.archive #secondary .widget + .widget,
.woocommerce.archive #secondary .wp-block-woocommerce-product-filter-taxonomy + .wp-block-woocommerce-product-filter-attribute,
.woocommerce-page.archive #secondary .wp-block-woocommerce-product-filter-taxonomy + .wp-block-woocommerce-product-filter-attribute,
.woocommerce.archive #secondary .wp-block-woocommerce-product-filter-attribute + .wp-block-woocommerce-product-filter-attribute,
.woocommerce-page.archive #secondary .wp-block-woocommerce-product-filter-attribute + .wp-block-woocommerce-product-filter-attribute,
.woocommerce.archive #secondary .wp-block-woocommerce-product-filter-attribute + .wp-block-woocommerce-product-filter-price,
.woocommerce-page.archive #secondary .wp-block-woocommerce-product-filter-attribute + .wp-block-woocommerce-product-filter-price,
.woocommerce.archive #secondary .wp-block-woocommerce-product-filter-price + .wp-block-woocommerce-product-filter-active,
.woocommerce-page.archive #secondary .wp-block-woocommerce-product-filter-price + .wp-block-woocommerce-product-filter-active {
    padding-top: 22px;
}

.woocommerce.archive #secondary .wp-block-heading,
.woocommerce-page.archive #secondary .wp-block-heading,
.woocommerce.archive #secondary .widget-title,
.woocommerce-page.archive #secondary .widget-title,
.woocommerce.archive #secondary h2,
.woocommerce-page.archive #secondary h2,
.woocommerce.archive #secondary h3,
.woocommerce-page.archive #secondary h3 {
    margin: 0 0 14px;
    color: #111;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .14em;
    line-height: 1.25;
    text-transform: uppercase;
}

.woocommerce.archive #secondary .wp-block-woocommerce-product-filters > .wp-block-heading:first-child,
.woocommerce-page.archive #secondary .wp-block-woocommerce-product-filters > .wp-block-heading:first-child {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #111;
    font-size: 12px;
    letter-spacing: .16em;
}

.woocommerce.archive #secondary ul,
.woocommerce-page.archive #secondary ul,
.woocommerce.archive #secondary .wc-block-product-filter-checkbox-list,
.woocommerce-page.archive #secondary .wc-block-product-filter-checkbox-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce.archive #secondary li,
.woocommerce-page.archive #secondary li,
.woocommerce.archive #secondary .wc-block-product-filter-checkbox-list__item,
.woocommerce-page.archive #secondary .wc-block-product-filter-checkbox-list__item,
.woocommerce.archive #secondary .wc-block-components-checkbox,
.woocommerce-page.archive #secondary .wc-block-components-checkbox {
    min-height: 32px;
    margin: 0;
    padding: 0;
}

.woocommerce.archive #secondary a,
.woocommerce-page.archive #secondary a,
.woocommerce.archive #secondary label,
.woocommerce-page.archive #secondary label,
.woocommerce.archive #secondary .wc-block-components-checkbox__label,
.woocommerce-page.archive #secondary .wc-block-components-checkbox__label {
    color: #555;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    text-decoration: none;
}

.woocommerce.archive #secondary a:hover,
.woocommerce-page.archive #secondary a:hover,
.woocommerce.archive #secondary label:hover,
.woocommerce-page.archive #secondary label:hover {
    color: #111;
}

.woocommerce.archive #secondary input[type="checkbox"],
.woocommerce-page.archive #secondary input[type="checkbox"],
.woocommerce.archive #secondary .wc-block-components-checkbox__input,
.woocommerce-page.archive #secondary .wc-block-components-checkbox__input {
    width: 15px;
    height: 15px;
    margin: 0 10px 0 0;
    border: 1px solid #c9c9c9;
    border-radius: 0;
    box-shadow: none;
    accent-color: #111;
}

.woocommerce.archive #secondary .wc-block-components-checkbox,
.woocommerce-page.archive #secondary .wc-block-components-checkbox,
.woocommerce.archive #secondary .wc-block-components-checkbox label,
.woocommerce-page.archive #secondary .wc-block-components-checkbox label {
    display: flex;
    align-items: center;
    gap: 0;
}

.woocommerce.archive #secondary .wc-block-product-filter-checkbox-list__item-count,
.woocommerce-page.archive #secondary .wc-block-product-filter-checkbox-list__item-count,
.woocommerce.archive #secondary .count,
.woocommerce-page.archive #secondary .count {
    margin-left: auto;
    color: #999;
    font-size: 11px;
}

.woocommerce.archive #secondary .wc-block-components-price-slider,
.woocommerce-page.archive #secondary .wc-block-components-price-slider,
.woocommerce.archive #secondary .wc-block-price-filter,
.woocommerce-page.archive #secondary .wc-block-price-filter {
    margin-top: 4px;
}

.woocommerce.archive #secondary .wc-block-components-price-slider__range-input-wrapper,
.woocommerce-page.archive #secondary .wc-block-components-price-slider__range-input-wrapper {
    margin: 12px 0 16px;
}

.woocommerce.archive #secondary .wc-block-components-price-slider__range-input-progress,
.woocommerce-page.archive #secondary .wc-block-components-price-slider__range-input-progress,
.woocommerce.archive #secondary .widget_price_filter .ui-slider .ui-slider-range,
.woocommerce-page.archive #secondary .widget_price_filter .ui-slider .ui-slider-range {
    background: #111;
}

.woocommerce.archive #secondary .wc-block-components-price-slider__range-input,
.woocommerce-page.archive #secondary .wc-block-components-price-slider__range-input {
    accent-color: #111;
}

.woocommerce.archive #secondary .wc-block-components-price-slider__range-text,
.woocommerce-page.archive #secondary .wc-block-components-price-slider__range-text,
.woocommerce.archive #secondary .price_slider_amount,
.woocommerce-page.archive #secondary .price_slider_amount {
    color: #666;
    font-size: 12px;
    line-height: 1.5;
}

.woocommerce.archive #secondary .wc-block-active-filters__list,
.woocommerce-page.archive #secondary .wc-block-active-filters__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.woocommerce.archive #secondary .wc-block-active-filters__list-item,
.woocommerce-page.archive #secondary .wc-block-active-filters__list-item,
.woocommerce.archive #secondary .wc-block-components-chip,
.woocommerce-page.archive #secondary .wc-block-components-chip {
    border: 1px solid #ddd;
    border-radius: 0;
    background: #fff;
    color: #333;
    font-size: 11px;
}

.woocommerce.archive ul.products li.product,
.woocommerce-page.archive ul.products li.product {
    padding-bottom: 4px;
}

.woocommerce.archive ul.products li.product a img,
.woocommerce-page.archive ul.products li.product a img {
    margin-bottom: 16px;
    background: #f7f7f7;
}

.woocommerce.archive ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page.archive ul.products li.product .woocommerce-loop-product__title {
    margin: 0 0 7px;
    color: #171717;
    font-size: clamp(13px, 1.05vw, 15px);
    font-weight: 450;
    line-height: 1.35;
    letter-spacing: 0;
}

.woocommerce.archive ul.products li.product .price,
.woocommerce-page.archive ul.products li.product .price {
    margin: 0 0 11px;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.woocommerce.archive ul.products li.product .button,
.woocommerce-page.archive ul.products li.product .button,
.woocommerce.archive ul.products li.product .added_to_cart,
.woocommerce-page.archive ul.products li.product .added_to_cart {
    min-height: auto;
    padding: 0 0 3px;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    background: transparent;
    color: #111;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .1em;
    line-height: 1.4;
    text-transform: uppercase;
}

.woocommerce.archive ul.products li.product .button:hover,
.woocommerce-page.archive ul.products li.product .button:hover,
.woocommerce.archive ul.products li.product .added_to_cart:hover,
.woocommerce-page.archive ul.products li.product .added_to_cart:hover {
    color: #666;
    background: transparent;
}

@media (min-width: 922px) {
    .woocommerce.archive.ast-left-sidebar #content .ast-container,
    .woocommerce-page.archive.ast-left-sidebar #content .ast-container,
    .woocommerce.archive.ast-right-sidebar #content .ast-container,
    .woocommerce-page.archive.ast-right-sidebar #content .ast-container {
        column-gap: var(--maxx-archive-content-gap);
        align-items: start;
    }

    .woocommerce.archive #secondary,
    .woocommerce-page.archive #secondary {
        width: var(--maxx-filter-sidebar-width);
        min-width: var(--maxx-filter-sidebar-width);
        padding-top: 8px;
    }

    .woocommerce.archive #primary,
    .woocommerce-page.archive #primary {
        min-width: 0;
    }

    .woocommerce.archive.ast-left-sidebar #secondary,
    .woocommerce-page.archive.ast-left-sidebar #secondary {
        margin-right: 0;
    }

    .woocommerce.archive.ast-right-sidebar #secondary,
    .woocommerce-page.archive.ast-right-sidebar #secondary {
        margin-left: 0;
    }

    .woocommerce.archive.ast-left-sidebar ul.products,
    .woocommerce-page.archive.ast-left-sidebar ul.products,
    .woocommerce.archive.ast-right-sidebar ul.products,
    .woocommerce-page.archive.ast-right-sidebar ul.products {
        gap: clamp(50px, 6vw, 84px) clamp(20px, 2.3vw, 34px);
    }
}

@media (max-width: 921px) {
    .woocommerce.archive #secondary,
    .woocommerce-page.archive #secondary {
        overflow-x: hidden;
    }

    .woocommerce.archive #secondary .sidebar-main,
    .woocommerce-page.archive #secondary .sidebar-main {
        gap: 0 clamp(24px, 5vw, 38px);
    }

    .woocommerce.archive #secondary .wp-block-woocommerce-product-filters,
    .woocommerce-page.archive #secondary .wp-block-woocommerce-product-filters {
        width: 100%;
    }

    .woocommerce.archive .woocommerce-result-count,
    .woocommerce-page.archive .woocommerce-result-count {
        min-height: 0;
        margin-bottom: 12px;
    }

    .woocommerce.archive .woocommerce-ordering select,
    .woocommerce-page.archive .woocommerce-ordering select {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .woocommerce.archive .site-main,
    .woocommerce-page.archive .site-main {
        padding-top: 18px;
    }

    .woocommerce.archive .woocommerce-products-header,
    .woocommerce-page.archive .woocommerce-products-header {
        margin-bottom: 26px;
    }

    .woocommerce.archive .woocommerce-products-header__title,
    .woocommerce-page.archive .woocommerce-products-header__title {
        font-size: clamp(38px, 15vw, 58px);
    }

    .woocommerce.archive #secondary .widget,
    .woocommerce-page.archive #secondary .widget,
    .woocommerce.archive #secondary .wp-block-woocommerce-product-filter-taxonomy,
    .woocommerce-page.archive #secondary .wp-block-woocommerce-product-filter-taxonomy,
    .woocommerce.archive #secondary .wp-block-woocommerce-product-filter-attribute,
    .woocommerce-page.archive #secondary .wp-block-woocommerce-product-filter-attribute,
    .woocommerce.archive #secondary .wp-block-woocommerce-product-filter-price,
    .woocommerce-page.archive #secondary .wp-block-woocommerce-product-filter-price,
    .woocommerce.archive #secondary .wp-block-woocommerce-product-filter-active,
    .woocommerce-page.archive #secondary .wp-block-woocommerce-product-filter-active {
        padding-bottom: 20px;
    }

    .woocommerce.archive #secondary .widget + .widget,
    .woocommerce-page.archive #secondary .widget + .widget,
    .woocommerce.archive #secondary .wp-block-woocommerce-product-filter-taxonomy + .wp-block-woocommerce-product-filter-attribute,
    .woocommerce-page.archive #secondary .wp-block-woocommerce-product-filter-taxonomy + .wp-block-woocommerce-product-filter-attribute,
    .woocommerce.archive #secondary .wp-block-woocommerce-product-filter-attribute + .wp-block-woocommerce-product-filter-attribute,
    .woocommerce-page.archive #secondary .wp-block-woocommerce-product-filter-attribute + .wp-block-woocommerce-product-filter-attribute,
    .woocommerce.archive #secondary .wp-block-woocommerce-product-filter-attribute + .wp-block-woocommerce-product-filter-price,
    .woocommerce-page.archive #secondary .wp-block-woocommerce-product-filter-attribute + .wp-block-woocommerce-product-filter-price,
    .woocommerce.archive #secondary .wp-block-woocommerce-product-filter-price + .wp-block-woocommerce-product-filter-active,
    .woocommerce-page.archive #secondary .wp-block-woocommerce-product-filter-price + .wp-block-woocommerce-product-filter-active {
        padding-top: 20px;
    }

    .woocommerce.archive #secondary li,
    .woocommerce-page.archive #secondary li,
    .woocommerce.archive #secondary .wc-block-product-filter-checkbox-list__item,
    .woocommerce-page.archive #secondary .wc-block-product-filter-checkbox-list__item,
    .woocommerce.archive #secondary .wc-block-components-checkbox {
        min-height: 36px;
    }

    .woocommerce.archive ul.products,
    .woocommerce-page.archive ul.products {
        gap: 34px 12px;
        margin-top: 28px;
    }

    .woocommerce.archive ul.products li.product a img,
    .woocommerce-page.archive ul.products li.product a img {
        margin-bottom: 12px;
    }
}

@media (max-width: 360px) {
    .woocommerce.archive ul.products,
    .woocommerce-page.archive ul.products {
        grid-template-columns: 1fr;
    }
}

/* Dice-inspired single product prototype: Maxx Boxer Cotton Stretch only */
.single-product {
    --maxx-dice-ink: #111;
    --maxx-dice-muted: #626262;
    --maxx-dice-rule: #e7e7e7;
    --maxx-dice-soft: #f7f7f7;
    --maxx-dice-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* Dice-style typography (Poppins) across the product summary. */
.single-product div.product,
.single-product div.product .product_title,
.single-product div.product p.price,
.single-product div.product span.price,
.single-product div.product .woocommerce-product-details__short-description,
.single-product div.product .single-product-category,
.single-product div.product form.cart,
.single-product div.product .variations label,
.single-product div.product .variable-item,
.single-product div.product form.cart .single_add_to_cart_button,
.single-product div.product form.cart .quantity .qty,
.single-product .maxx-dice-product-info,
.single-product .related.products {
    font-family: var(--maxx-dice-font);
}

.single-product .ast-container {
    max-width: 1480px;
}

.single-product .site-main {
    padding-top: clamp(18px, 3vw, 42px);
}

.single-product div.product {
    clear: both;
    margin-top: 0;
}

.single-product div.product div.images,
.single-product div.product .summary {
    float: none !important;
    width: auto !important;
}

.single-product div.product div.images {
    margin: 0;
}


.single-product div.product div.images .woocommerce-product-gallery__wrapper {
    margin: 0;
}

.single-product div.product div.images .woocommerce-product-gallery__image,
.single-product div.product div.images .flex-control-thumbs li {
    background: var(--maxx-dice-soft);
}

.single-product div.product div.images .woocommerce-product-gallery__image:first-child img,
.single-product div.product div.images .flex-viewport img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    background: var(--maxx-dice-soft);
}

.single-product div.product div.images .flex-control-thumbs {
    margin: 0;
    padding: 0;
    list-style: none;
}

.single-product div.product div.images .flex-control-thumbs li {
    float: none;
    width: auto;
    margin: 0;
}

.single-product div.product div.images .flex-control-thumbs img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid transparent;
    object-fit: cover;
    opacity: .58;
    transition: border-color .18s ease, opacity .18s ease;
}

.single-product div.product div.images .flex-control-thumbs img.flex-active,
.single-product div.product div.images .flex-control-thumbs img:hover {
    border-color: var(--maxx-dice-ink);
    opacity: 1;
}

.single-product div.product .summary {
    max-width: 480px;
    padding-top: 0;
}

.single-product div.product .single-product-category {
    display: inline-block;
    margin: 0 0 10px;
    color: var(--maxx-dice-muted);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.single-product div.product .product_title {
    max-width: 15ch;
    margin: 0 0 12px;
    color: var(--maxx-dice-ink);
    font-family: var(--maxx-dice-font);
    font-size: clamp(34px, 2.5vw, 44px);
    font-weight: 600;
    line-height: 1.05;
}

.single-product div.product p.price,
.single-product div.product span.price {
    margin: 0 0 18px;
    color: var(--maxx-dice-ink);
    font-size: 17px;
    font-weight: 550;
}

.single-product div.product .woocommerce-product-details__short-description {
    max-width: 42ch;
    margin: 0 0 24px;
    color: var(--maxx-dice-muted);
    font-size: 14px;
    line-height: 1.7;
}

.single-product div.product form.cart {
    margin: 0;
    padding-top: 22px;
    border-top: 1px solid var(--maxx-dice-rule);
}

.single-product div.product form.cart .variations {
    width: 100%;
    margin: 0 0 20px;
}

.single-product div.product form.cart .variations tbody {
    display: grid;
    gap: 18px;
}

.single-product div.product form.cart .variations tr {
    display: grid;
    gap: 10px;
}

.single-product div.product form.cart .variations th,
.single-product div.product form.cart .variations td {
    display: block;
    padding: 0;
    text-align: start;
}

.single-product div.product form.cart .variations label {
    margin: 0;
    color: var(--maxx-dice-ink);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1;
    text-transform: uppercase;
}

.single-product.woo-variation-swatches .variable-items-wrapper {
    gap: 9px;
}

.single-product.woo-variation-swatches .variable-items-wrapper .variable-item {
    box-shadow: none !important;
}

.single-product.woo-variation-swatches .variable-items-wrapper.color-variable-items-wrapper .variable-item {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 4px;
    border: 1px solid #d8d8d8;
    border-radius: 999px;
    background: #fff;
}

.single-product.woo-variation-swatches .variable-items-wrapper.color-variable-items-wrapper .variable-item .variable-item-span {
    border-radius: 999px;
}

.single-product.woo-variation-swatches .variable-items-wrapper.color-variable-items-wrapper .variable-item.selected,
.single-product.woo-variation-swatches .variable-items-wrapper.color-variable-items-wrapper .variable-item:hover {
    border-color: var(--maxx-dice-ink);
}

.single-product.woo-variation-swatches .variable-items-wrapper.button-variable-items-wrapper .variable-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 52px;
    height: 44px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    background: #fff;
    color: var(--maxx-dice-ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    box-sizing: border-box;
    overflow: visible;
}

.single-product.woo-variation-swatches .variable-items-wrapper.button-variable-items-wrapper .variable-item .variable-item-span {
    display: block;
    width: auto;
    max-width: none;
    overflow: visible;
    white-space: nowrap;
    text-overflow: clip;
    line-height: 1;
}

.single-product.woo-variation-swatches .variable-items-wrapper.button-variable-items-wrapper .variable-item.selected,
.single-product.woo-variation-swatches .variable-items-wrapper.button-variable-items-wrapper .variable-item:hover {
    border-color: var(--maxx-dice-ink);
    background: var(--maxx-dice-ink);
    color: #fff;
}

.single-product div.product form.cart .single_variation_wrap {
    width: 100%;
}

.single-product div.product form.cart .woocommerce-variation {
    margin: 0 0 14px;
}

.single-product div.product form.cart .woocommerce-variation-add-to-cart,
.single-product div.product form.cart:not(.variations_form) {
    display: grid !important;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    width: 100%;
}

.single-product div.product form.cart div.quantity {
    margin: 0 !important;
}

.single-product div.product form.cart .quantity .qty {
    width: 82px;
    min-height: 54px;
    border: 1px solid var(--maxx-dice-rule);
    border-radius: 0;
    background: #fff;
    color: var(--maxx-dice-ink);
    font-size: 14px;
}

.single-product div.product form.cart .single_add_to_cart_button {
    width: 100%;
    min-height: 54px;
    min-width: 0;
    border: 1px solid var(--maxx-dice-ink);
    border-radius: 0;
    background: var(--maxx-dice-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.single-product div.product form.cart .single_add_to_cart_button:hover,
.single-product div.product form.cart .single_add_to_cart_button:focus {
    border-color: #333;
    background: #333;
    color: #fff;
}

.single-product div.product form.cart .single_add_to_cart_button.disabled,
.single-product div.product form.cart .single_add_to_cart_button:disabled,
.single-product div.product form.cart .single_add_to_cart_button.wc-variation-selection-needed {
    border-color: var(--maxx-dice-ink);
    background: var(--maxx-dice-ink);
    color: #fff;
    opacity: 1;
    cursor: pointer;
}

.single-product .woocommerce-tabs {
    display: none !important;
}

.single-product .maxx-dice-product-info {
    margin-top: 28px;
    border-top: 1px solid var(--maxx-dice-rule);
}

.single-product .maxx-dice-product-info__item {
    border-bottom: 1px solid var(--maxx-dice-rule);
}

.single-product .maxx-dice-product-info__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    color: var(--maxx-dice-ink);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    list-style: none;
    text-transform: uppercase;
}

.single-product .maxx-dice-product-info__item summary::-webkit-details-marker {
    display: none;
}

.single-product .maxx-dice-product-info__item summary::after {
    content: "+";
    font-size: 17px;
    font-weight: 400;
}

.single-product .maxx-dice-product-info__item[open] summary::after {
    content: "-";
}

.single-product .maxx-dice-product-info__content {
    max-width: 44ch;
    padding: 0 0 18px;
    color: var(--maxx-dice-muted);
    font-size: 14px;
    line-height: 1.75;
}

.single-product .maxx-dice-product-info__content p {
    margin: 0 0 12px;
}

.single-product .maxx-dice-product-info__content p:last-child {
    margin-bottom: 0;
}

.single-product .related.products {
    clear: both;
    margin-top: clamp(44px, 6vw, 86px);
    padding-top: clamp(28px, 4vw, 46px);
    border-top: 1px solid var(--maxx-dice-rule);
}

.single-product .related.products > h2 {
    margin-bottom: 24px;
    color: var(--maxx-dice-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.single-product .related.products ul.products li.product:nth-child(n+5) {
    display: none !important;
}

@media (min-width: 922px) {
    .single-product div.product {
        display: grid;
        grid-template-columns: minmax(0, 60%) minmax(360px, 38%);
        column-gap: clamp(34px, 4.5vw, 74px);
        align-items: start;
    }

    .single-product div.product div.images {
        display: grid;
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 16px;
        grid-column: 1;
    }

    /* Keep the photo in view beside the long details column. --maxx-gallery-top is
       set in maxx-color-image.js. Extra classes outrank Astra's "position: relative". */
    .woocommerce-js.single-product div.product div.images.woocommerce-product-gallery {
        position: sticky;
        top: var(--maxx-gallery-top, 24px);
        align-self: start;
    }

    .single-product div.product div.images .flex-viewport,
    .single-product div.product div.images .woocommerce-product-gallery__wrapper {
        grid-column: 2;
        grid-row: 1;
    }

    .single-product div.product div.images .flex-control-thumbs {
        display: grid;
        grid-column: 1;
        grid-row: 1;
        grid-template-columns: 1fr;
        align-content: start;
        gap: 10px;
    }

    .single-product div.product .summary {
        grid-column: 2;
        align-self: start;
    }

    .single-product .related.products {
        grid-column: 1 / -1;
    }
}

@media (max-width: 921px) {
    .single-product div.product {
        display: block;
    }

    .single-product div.product div.images {
        margin-bottom: 28px;
    }

    .single-product div.product div.images .flex-control-thumbs {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 9px;
        margin-top: 10px;
    }

    .single-product div.product .summary {
        max-width: none;
    }

    .single-product div.product .product_title {
        max-width: 16ch;
        font-size: clamp(32px, 5.6vw, 38px);
    }
}

@media (max-width: 544px) {
    .single-product .site-main {
        padding-top: 12px;
    }

    .single-product div.product .product_title {
        max-width: 100%;
        font-size: clamp(28px, 8vw, 32px);
    }

    .single-product div.product .woocommerce-product-details__short-description {
        font-size: 13.5px;
    }

    .single-product .maxx-dice-product-info__item summary {
        min-height: 52px;
    }
}

/* ==========================================================================
   Cart actions row: Quantity label, qty, Add to Cart, Wishlist, Buy It Now
   ========================================================================== */

.single-product div.product form.cart .woocommerce-variation-add-to-cart,
.single-product div.product form.cart:not(.variations_form) {
    display: grid !important;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    grid-template-areas:
        "vol vol vol"
        "qtylabel qtylabel qtylabel"
        "qty cart wish"
        "buynow buynow buynow";
    column-gap: 12px;
    row-gap: 12px;
    align-items: center;
    width: 100%;
}

.single-product div.product form.cart .maxx-volume-box {
    grid-area: vol;
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 0 12px 0;
}

.single-product div.product form.cart .maxx-qty-label {
    grid-area: qtylabel;
    margin: 0 0 -2px;
    color: var(--maxx-dice-ink);
    font-family: var(--maxx-font);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1;
    text-transform: uppercase;
}

.single-product div.product form.cart div.quantity {
    grid-area: qty;
    margin: 0 !important;
}

.single-product div.product form.cart .single_add_to_cart_button {
    grid-area: cart;
}

/* Wishlist heart (TI Wishlist) styled as a circular icon button like Dice */
.single-product div.product form.cart .tinv-wraper.tinvwl-after-add-to-cart {
    grid-area: wish;
    margin: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-product div.product form.cart .tinv-wishlist-clear {
    display: none;
}

.single-product div.product form.cart .tinvwl_add_to_wishlist_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    min-width: 54px;
    height: 54px;
    min-height: 54px;
    padding: 0;
    border: 1px solid var(--maxx-dice-rule);
    border-radius: 999px;
    background: #fff no-repeat center / 21px 21px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='1.7'%3E%3Cpath d='M12 20.5C12 20.5 3.5 15.6 3.5 9.5 3.5 6.9 5.5 5 7.9 5 9.6 5 11 6 12 7.6 13 6 14.4 5 16.1 5 18.5 5 20.5 6.9 20.5 9.5 20.5 15.6 12 20.5 12 20.5Z'/%3E%3C/svg%3E");
    color: transparent;
    font-size: 0;
    line-height: 0;
    transition: border-color .18s ease, background-image .18s ease;
}

.single-product div.product form.cart .tinvwl_add_to_wishlist_button .tinvwl_add_to_wishlist-text {
    display: none;
}

.single-product div.product form.cart .tinvwl_add_to_wishlist_button:hover,
.single-product div.product form.cart .tinvwl-product-make-remove .tinvwl_add_to_wishlist_button {
    border-color: var(--maxx-dice-ink);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23111111'%3E%3Cpath d='M12 20.5C12 20.5 3.5 15.6 3.5 9.5 3.5 6.9 5.5 5 7.9 5 9.6 5 11 6 12 7.6 13 6 14.4 5 16.1 5 18.5 5 20.5 6.9 20.5 9.5 20.5 15.6 12 20.5 12 20.5Z'/%3E%3C/svg%3E");
}

/* Buy It Now: full-width outlined button under the Add to Cart row */
.single-product div.product form.cart .maxx-buy-now {
    grid-area: buynow;
    width: 100%;
    min-height: 54px;
    margin: 0;
    border: 1px solid var(--maxx-dice-ink);
    border-radius: 0;
    background: #fff;
    color: var(--maxx-dice-ink);
    font-family: var(--maxx-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, opacity .18s ease;
}

.single-product div.product form.cart .maxx-buy-now:hover {
    background: var(--maxx-dice-ink);
    color: #fff;
}

.single-product div.product form.cart .maxx-buy-now[disabled],
.single-product div.product form.cart .maxx-buy-now.disabled {
    opacity: .45;
    cursor: default;
}

/* Wishlist heart: always a pointer cursor, never the blocked icon */
.single-product div.product form.cart .tinvwl_add_to_wishlist_button,
.single-product div.product form.cart .tinvwl_add_to_wishlist_button.disabled-add-wishlist {
    cursor: pointer !important;
}

/* Keep qty box, Add to Cart, and the heart the same height & aligned */
.single-product div.product form.cart div.quantity,
.single-product div.product form.cart .quantity .qty {
    height: 54px;
    min-height: 54px;
}

.single-product div.product form.cart .quantity {
    display: flex;
    align-items: center;
}

.single-product div.product form.cart .tinv-wraper .tinvwl_add_to_wishlist_button {
    margin: 0 !important;
}

.single-product div.product form.cart .single_add_to_cart_button {
    margin: 0;
}

.single-product div.product form.cart .maxx-buy-now[disabled]:hover {
    background: #fff;
    color: var(--maxx-dice-ink);
}

@media (max-width: 544px) {
    .single-product div.product form.cart .woocommerce-variation-add-to-cart,
    .single-product div.product form.cart:not(.variations_form) {
        grid-template-columns: 66px minmax(0, 1fr) auto;
        column-gap: 8px;
    }

    .single-product div.product form.cart .quantity .qty {
        width: 66px;
    }

    .single-product div.product form.cart .tinvwl_add_to_wishlist_button {
        width: 50px;
        min-width: 50px;
        height: 50px;
        min-height: 50px;
    }
}

/* ==========================================================================
   Shop sidebar: order the Size attribute filter S -> M -> L -> XL -> 2XL -> 3XL
   (the filter block sorts alphabetically; we reorder visually by slug)
   ========================================================================== */

.wc-block-product-filter-checkbox-list__items:has(input[value="3xl"]) {
    display: flex;
    flex-direction: column;
}

.wc-block-product-filter-checkbox-list__items:has(input[value="3xl"]) .wc-block-product-filter-checkbox-list__item:has(input[value="s"])   { order: 1; }
.wc-block-product-filter-checkbox-list__items:has(input[value="3xl"]) .wc-block-product-filter-checkbox-list__item:has(input[value="m"])   { order: 2; }
.wc-block-product-filter-checkbox-list__items:has(input[value="3xl"]) .wc-block-product-filter-checkbox-list__item:has(input[value="l"])   { order: 3; }
.wc-block-product-filter-checkbox-list__items:has(input[value="3xl"]) .wc-block-product-filter-checkbox-list__item:has(input[value="xl"])  { order: 4; }
.wc-block-product-filter-checkbox-list__items:has(input[value="3xl"]) .wc-block-product-filter-checkbox-list__item:has(input[value="2xl"]) { order: 5; }
.wc-block-product-filter-checkbox-list__items:has(input[value="3xl"]) .wc-block-product-filter-checkbox-list__item:has(input[value="3xl"]) { order: 6; }

/* ==========================================================================
   Maxx Home Page Experience (Dice-inspired Minimal Aesthetic)
   ========================================================================== */

/* Universal Button Styles */
.maxx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 32px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    border-radius: 0;
    cursor: pointer;
    box-sizing: border-box;
    font-family: var(--maxx-font) !important;
}

.maxx-btn--primary {
    background: #111111 !important;
    color: #ffffff !important;
    border: 1.5px solid #111111 !important;
}

.maxx-btn--primary:hover {
    background: #333333 !important;
    border-color: #333333 !important;
    color: #ffffff !important;
}

.maxx-btn--secondary {
    background: transparent !important;
    color: #111111 !important;
    border: 1.5px solid #111111 !important;
}

.maxx-btn--secondary:hover {
    background: #111111 !important;
    color: #ffffff !important;
}

/* 1. Hero Banner */
.maxx-hero-section {
    background: #fafafa;
    padding: clamp(36px, 5vw, 64px) 20px;
    width: 100%;
    box-sizing: border-box;
}

.maxx-hero-inner,
.maxx-hero-inner > .e-con-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 40px !important;
    width: 100% !important;
}

.maxx-hero-text-col {
    flex: 1 1 52%;
    max-width: 600px;
}

.maxx-hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #777777;
    margin-bottom: 16px;
}

.maxx-hero-title h1,
.maxx-hero-title {
    font-size: clamp(30px, 4.2vw, 50px) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #111111 !important;
    margin: 0 0 16px 0 !important;
    letter-spacing: -0.5px;
}

.maxx-hero-subtext p,
.maxx-hero-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #555555;
    margin: 0 0 28px 0;
}

.maxx-hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.maxx-hero-image-col {
    flex: 1 1 48%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.maxx-hero-main-img img {
    max-width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    filter: drop-shadow(0 14px 35px rgba(0, 0, 0, 0.06));
}

/* 2. Trust Bar */
.maxx-trust-section {
    background: #ffffff;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    padding: 24px 20px;
    width: 100%;
    box-sizing: border-box;
}

.maxx-trust-bar {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.maxx-trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.maxx-trust-icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}

.maxx-trust-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 2px;
}

.maxx-trust-text span {
    display: block;
    font-size: 12px;
    color: #777777;
    line-height: 1.4;
}

/* 3. Section Commons */
.maxx-section {
    padding: clamp(48px, 6vw, 80px) 20px;
    max-width: 1240px;
    margin: 0 auto;
    box-sizing: border-box;
}

.maxx-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 40px;
}

.maxx-section-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888888;
    margin-bottom: 10px;
}

.maxx-section-title {
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 700;
    color: #111111;
    margin: 0 0 12px;
    line-height: 1.3;
}

.maxx-section-desc {
    font-size: 15px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* 4. Category Grid */
.maxx-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.maxx-cat-card {
    display: block;
    text-decoration: none !important;
    color: #111111;
    background: #fafafa;
    border: 1px solid #eeeeee;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.maxx-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    border-color: #111111;
}

.maxx-cat-media {
    aspect-ratio: 1/1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fefefe;
    padding: 16px;
    box-sizing: border-box;
}

.maxx-cat-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.maxx-cat-card:hover .maxx-cat-media img {
    transform: scale(1.04);
}

.maxx-cat-body {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #eeeeee;
    background: #ffffff;
}

.maxx-cat-name {
    font-size: 14px;
    font-weight: 600;
    color: #111111;
}

.maxx-cat-link {
    font-size: 13px;
    font-weight: 500;
    color: #888888;
    transition: color 0.2s ease;
}

.maxx-cat-card:hover .maxx-cat-link {
    color: #111111;
}

/* 5. Promotional Bundle Banner */
.maxx-promo-section {
    background: #f6f6f6;
    padding: clamp(48px, 6vw, 76px) 20px;
    width: 100%;
    box-sizing: border-box;
}

.maxx-promo-inner,
.maxx-promo-inner > .e-con-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 48px !important;
    width: 100% !important;
}

.maxx-promo-img-col {
    flex: 1 1 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.maxx-promo-img img {
    max-width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.06));
}

.maxx-promo-txt-col {
    flex: 1 1 55%;
}

.maxx-promo-card-content {
    max-width: 540px;
}

.maxx-promo-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #888888;
    margin-bottom: 12px;
}

.maxx-promo-title {
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 700;
    color: #111111;
    margin: 0 0 16px;
    line-height: 1.25;
}

.maxx-promo-desc {
    font-size: 15px;
    color: #555555;
    line-height: 1.6;
    margin: 0 0 24px;
}

.maxx-promo-features {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 32px 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.maxx-promo-features li {
    font-size: 14px;
    color: #222222;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.maxx-promo-features li span {
    color: #111111;
    font-weight: 700;
}

/* 6. Featured Products Grid (WooCommerce Loop Override) */
.maxx-home-products-grid .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    margin: 0 0 36px 0 !important;
    padding: 0 !important;
}

.maxx-home-products-grid .woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    background: #ffffff;
    border: 1px solid #eeeeee;
    padding: 14px;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.maxx-home-products-grid .woocommerce ul.products li.product:hover {
    border-color: #111111;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.maxx-view-all-wrapper {
    text-align: center;
    margin-top: 10px;
}

/* 7. Quality Standards */
.maxx-quality-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.maxx-quality-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    padding: 36px 28px;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.maxx-quality-card:hover {
    border-color: #111111;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.maxx-quality-num {
    display: block;
    font-size: 34px;
    font-weight: 800;
    color: #e0e0e0;
    margin-bottom: 16px;
    line-height: 1;
}

.maxx-quality-title {
    font-size: 17px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 12px;
    line-height: 1.4;
}

.maxx-quality-desc {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* 8. Newsletter Section */
.maxx-newsletter-section {
    background: #111111;
    color: #ffffff;
    padding: clamp(52px, 6vw, 80px) 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.maxx-newsletter-inner {
    max-width: 640px;
    margin: 0 auto;
}

.maxx-newsletter-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #999999;
    margin-bottom: 12px;
}

.maxx-newsletter-title {
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 14px;
    line-height: 1.3;
}

.maxx-newsletter-desc {
    font-size: 15px;
    color: #bbbbbb;
    line-height: 1.6;
    margin: 0 0 32px;
}

.maxx-newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.maxx-newsletter-input {
    flex: 1;
    height: 50px;
    padding: 0 18px;
    border: 1px solid #333333 !important;
    background: #222222 !important;
    color: #ffffff !important;
    font-size: 14px;
    font-family: var(--maxx-font) !important;
    outline: none;
    border-radius: 0 !important;
    box-sizing: border-box;
}

.maxx-newsletter-input:focus {
    border-color: #ffffff !important;
}

.maxx-newsletter-form button {
    background: #ffffff !important;
    color: #111111 !important;
    border: 1.5px solid #ffffff !important;
    flex-shrink: 0;
}

.maxx-newsletter-form button:hover {
    background: #dddddd !important;
    border-color: #dddddd !important;
    color: #111111 !important;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 991px) {
    .maxx-hero-inner,
    .maxx-hero-inner > .e-con-inner {
        flex-direction: column-reverse !important;
        text-align: center;
        gap: 32px;
    }

    .maxx-hero-text-col {
        max-width: 100%;
    }

    .maxx-hero-cta-group {
        justify-content: center;
    }

    .maxx-trust-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .maxx-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .maxx-promo-inner,
    .maxx-promo-inner > .e-con-inner {
        flex-direction: column !important;
        text-align: center;
        gap: 32px;
    }

    .maxx-promo-card-content {
        max-width: 100%;
    }

    .maxx-promo-features {
        align-items: center;
    }

    .maxx-home-products-grid .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    .maxx-quality-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 575px) {
    .maxx-hero-section {
        padding: 32px 16px;
    }

    .maxx-hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .maxx-hero-cta-group .maxx-btn {
        width: 100%;
    }

    .maxx-trust-bar {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .maxx-category-grid {
        grid-template-columns: 1fr;
    }

    .maxx-home-products-grid .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }

    .maxx-newsletter-form {
        flex-direction: column;
    }

    .maxx-newsletter-form button {
        width: 100%;
    }
}

/* ==========================================================================
   MAXX REDESIGN — 1:1 Mockup Implementation Styles
   ========================================================================== */

/* Header & Official Logo Constraint */
.custom-logo-link img,
.site-logo-img img,
.ast-site-identity .custom-logo {
    max-width: 135px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto;
}

.main-header-bar {
    border-bottom: 1px solid #f0f0f0 !important;
    background: #ffffff !important;
}

.main-header-menu .menu-link {
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #111111 !important;
}

.main-header-menu .menu-link:hover {
    color: #d1d5db !important;
}

/* Hide Astra Default Footer in favor of our modern 4-column footer */
.site-footer {
    display: none !important;
}

/* Hide Text Site Title Next To Header Logo */
.site-branding .ast-site-title-wrap,
.ast-site-title-wrap,
.site-title,
.site-description {
    display: none !important;
}

.site-branding {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.site-logo-img .custom-logo-link img {
    max-width: 140px !important;
    height: auto !important;
    display: block !important;
}

/* Top Announcement Bar */
.maxx-top-bar {
    background: #07080a;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 500;
    padding: 9px 16px;
    border-bottom: 1px solid #1a1e26;
    letter-spacing: 0.2px;
    position: relative;
    z-index: 99;
}

.maxx-top-bar-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.maxx-top-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.maxx-top-cyan {
    color: #00d2ff;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}

/* 1. Hero Section */
.elementor-element-hero_sec,
.maxx-hero-section {
    background: #07080a !important;
    padding: 60px 20px !important;
    position: relative;
    overflow: hidden;
}

.elementor-element-hero_inner {
    max-width: 1240px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

.elementor-element-hero_inner > .e-con-inner,
.maxx-hero-inner {
    max-width: 1240px !important;
    width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 40px !important;
}

.elementor-element-hero_text_col,
.maxx-hero-text-col {
    flex: 1 1 50% !important;
    max-width: 560px !important;
    width: 50% !important;
}

.elementor-element-hero_img_col,
.maxx-hero-img-col {
    flex: 1 1 50% !important;
    max-width: 560px !important;
    width: 50% !important;
    display: flex !important;
    justify-content: flex-end !important;
}

.maxx-hero-watermark {
    font-size: 13px;
    letter-spacing: 4px;
    color: #6c7a89;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.maxx-hero-main-title,
.elementor-element-hero_sec .elementor-heading-title,
.maxx-hero-main-title .elementor-heading-title {
    font-size: 46px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 20px 0 !important;
    letter-spacing: -0.5px;
}

.maxx-cyan-glow-text {
    color: #00d2ff;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.55);
}

.maxx-hero-lead {
    font-size: 15px;
    line-height: 1.65;
    color: #a0aab8;
    margin-bottom: 30px;
}

.maxx-hero-btn-wrap {
    display: flex;
    gap: 16px;
    align-items: center;
}

.maxx-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.maxx-pill-btn-white {
    background: #ffffff;
    color: #07080a !important;
    border: 1px solid #ffffff;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.maxx-pill-btn-white:hover {
    background: #00d2ff;
    color: #07080a !important;
    border-color: #00d2ff;
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.6);
    transform: translateY(-2px);
}

.maxx-pill-btn-outline {
    background: transparent;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.maxx-pill-btn-outline:hover {
    border-color: #00d2ff;
    color: #00d2ff !important;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
    transform: translateY(-2px);
}

.maxx-btn-arrow {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.maxx-pill-btn:hover .maxx-btn-arrow {
    transform: translateX(4px);
}

.maxx-hero-img-col {
    flex: 1 1 50%;
    display: flex;
    justify-content: center;
}

.maxx-hero-banner-img img {
    max-width: 520px;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 210, 255, 0.2);
    border: 1px solid rgba(0, 210, 255, 0.25);
}

/* 2. Trust Bar Section */
.maxx-trust-bar-section {
    background: #ffffff !important;
    border-bottom: 1px solid #ebebeb !important;
    padding: 22px 20px !important;
}

.maxx-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1240px;
    margin: 0 auto;
}

.maxx-trust-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    background: #fafafa;
    transition: all 0.3s ease;
}

.maxx-trust-card:hover {
    border-color: #00bcd4;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.08);
}

.maxx-trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.maxx-trust-info h4 {
    font-size: 13.5px;
    font-weight: 700;
    margin: 0 0 2px 0;
    color: #111111;
}

.maxx-trust-info p {
    font-size: 12px;
    margin: 0;
    color: #666666;
}

/* Section Headers */
.maxx-section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 30px;
}

.maxx-sub-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #00bcd4;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.maxx-sec-title {
    font-size: 28px;
    font-weight: 800;
    color: #111111;
    margin: 0;
    letter-spacing: -0.3px;
}

.maxx-sec-line {
    width: 40px;
    height: 3px;
    background: #00d2ff;
    margin-top: 8px;
}

/* 3. Categories Grid (5 Cards) */
.maxx-categories-section {
    padding: 60px 20px !important;
    background: #ffffff !important;
}

.maxx-cat-5grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 1240px;
    margin: 0 auto;
}

.maxx-cat-card {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #0d1017;
    aspect-ratio: 3/4;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.maxx-cat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.maxx-cat-img-box {
    width: 100%;
    height: 100%;
}

.maxx-cat-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.maxx-cat-card:hover img {
    transform: scale(1.08);
}

.maxx-cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 8, 10, 0.95) 0%, rgba(7, 8, 10, 0.4) 45%, transparent 80%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 18px;
    text-align: center;
}

.maxx-cat-name {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.maxx-cat-action {
    font-size: 11px;
    font-weight: 600;
    color: #00d2ff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* 4. Best Sellers Section */
.maxx-bestsellers-section {
    padding: 60px 20px !important;
    background: #fafafa !important;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.maxx-bs-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 1240px;
    margin: 0 auto 30px;
}

.maxx-view-all-btn {
    font-size: 14px;
    font-weight: 700;
    color: #111111;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.maxx-view-all-btn:hover {
    color: #00d2ff;
}

.maxx-prod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1240px;
    margin: 0 auto;
}

.maxx-p-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #ebebeb;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.maxx-p-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: #00bcd4;
    transform: translateY(-4px);
}

.maxx-p-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 24px;
    margin-bottom: 8px;
}

.maxx-badge-discount {
    background: #d32f2f;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.maxx-badge-red {
    background: #d32f2f;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.maxx-fav-btn {
    margin-left: auto;
    font-size: 18px;
    color: #bbb;
    cursor: pointer;
    line-height: 1;
}

.maxx-p-img-link {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 14px;
    background: #fdfdfd;
}

.maxx-p-img-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.maxx-p-card:hover img {
    transform: scale(1.06);
}

.maxx-p-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.maxx-p-title a {
    color: #111111;
    text-decoration: none;
}

.maxx-p-title a:hover {
    color: #00bcd4;
}

.maxx-p-price {
    font-size: 16px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 10px;
}

.price-old {
    text-decoration: line-through;
    color: #999999;
    font-size: 13px;
    font-weight: 400;
    margin-right: 6px;
}

.maxx-p-colors {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.maxx-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid #d0d0d0;
}

.dot-black { background: #111111; }
.dot-white { background: #ffffff; }
.dot-gray { background: #9e9e9e; }
.dot-navy { background: #1a2a3a; }
.dot-beige { background: #cdb89b; }

.maxx-p-sizes {
    display: flex;
    gap: 6px;
}

.maxx-p-sizes span {
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #e0e0e0;
    padding: 2px 8px;
    border-radius: 4px;
    color: #555555;
    background: #fafafa;
}

/* 5. Dual Promo Banners Section */
.maxx-dual-promo-section {
    padding: 60px 20px !important;
    background: #ffffff !important;
}

.maxx-dual-promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1240px;
    margin: 0 auto;
}

.maxx-promo-banner-card {
    min-height: 340px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.promo-beach,
html body .elementor .maxx-promo-banner-card.promo-beach,
html body .elementor-element .promo-beach,
.e-con.e-parent .promo-beach {
    background-image: url('../../uploads/2026/09/promo_beach_banner_1789319774595.jpg') !important;
}

.promo-beach::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 8, 10, 0.88) 0%, rgba(7, 8, 10, 0.35) 60%, transparent 100%);
}

.promo-boxer,
html body .elementor .maxx-promo-banner-card.promo-boxer,
html body .elementor-element .promo-boxer,
.e-con.e-parent .promo-boxer {
    background-image: url('../../uploads/2026/09/promo_boxer_banner_1789322119951.jpg') !important;
}

.promo-boxer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 8, 10, 0.92) 0%, rgba(7, 8, 10, 0.5) 65%, transparent 100%);
}

.maxx-promo-banner-content {
    position: relative !important;
    z-index: 2 !important;
    max-width: 380px !important;
    background: transparent !important;
    background-image: none !important;
}

.maxx-promo-badge {
    display: inline-block;
    background: #00bcd4;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.maxx-promo-b-title {
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.maxx-promo-b-desc {
    font-size: 14px;
    color: #d0d7e0;
    margin: 0 0 22px 0;
    line-height: 1.5;
}

/* 6. Guides & Value Propositions Section */
.maxx-guides-section {
    padding: 60px 20px !important;
    background: #ffffff !important;
}

.maxx-guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1240px;
    margin: 0 auto;
}

.maxx-guide-card {
    background: #f4f9fd;
    border-radius: 14px;
    padding: 36px 28px;
    border: 1px solid #e3f0f9;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.maxx-guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.12);
    border-color: #00bcd4;
}

.maxx-guide-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.1);
}

.maxx-guide-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #111111;
}

.maxx-guide-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.maxx-guide-link {
    font-size: 14px;
    font-weight: 700;
    color: #00bcd4;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.maxx-guide-link:hover {
    color: #07080a;
}

/* 7. Pre-Footer Brand Banner */
.maxx-brand-banner-section {
    padding: 0 20px 60px 20px !important;
    background: #ffffff !important;
}

.maxx-brand-banner-card,
html body .elementor .maxx-brand-banner-card,
html body .elementor-element .maxx-brand-banner-card,
.e-con.e-parent .maxx-brand-banner-card {
    min-height: 260px;
    border-radius: 16px;
    background-image: url('../../uploads/2026/09/brand_portrait_banner_1789319914840.jpg') !important;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    max-width: 1240px;
    margin: 0 auto;
}

.maxx-brand-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 8, 10, 0.92) 0%, rgba(7, 8, 10, 0.6) 60%, rgba(7, 8, 10, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 60px;
}

.maxx-brand-left {
    max-width: 480px !important;
    z-index: 2 !important;
    position: relative !important;
}

.maxx-brand-logo,
.maxx-brand-banner-card img.maxx-brand-logo {
    max-width: 130px !important;
    width: 130px !important;
    height: auto !important;
    display: block !important;
    margin: 0 0 14px 0 !important;
    filter: brightness(0) invert(1) !important;
}

.maxx-brand-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: 1px !important;
    line-height: 1.25 !important;
}

.maxx-brand-sub {
    font-size: 14px !important;
    color: #00d2ff !important;
    margin: 0 !important;
    font-weight: 600 !important;
}

.maxx-brand-watermark {
    font-size: 26px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 2px;
    text-align: right;
    line-height: 1.2;
}

.maxx-brand-cyan-bar {
    width: 60px;
    height: 3px;
    background: #00d2ff;
    margin-top: 10px;
    margin-left: auto;
    box-shadow: 0 0 10px #00d2ff;
}

/* Global 4-Column Footer */
.maxx-global-footer {
    background: #07080a;
    color: #ffffff;
    padding: 60px 20px 0;
    border-top: 1px solid #1a1e26;
    font-family: var(--maxx-font);
}

.maxx-footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

.maxx-global-footer .maxx-f-logo,
.woocommerce .maxx-global-footer .maxx-f-logo,
.woocommerce-page .maxx-global-footer .maxx-f-logo,
img.maxx-f-logo {
    width: 120px !important;
    max-width: 120px !important;
    min-width: 120px !important;
    height: auto !important;
    display: block !important;
    margin: 0 0 16px 0 !important;
    filter: brightness(0) invert(1);
}

.maxx-f-tagline {
    font-size: 13.5px;
    line-height: 1.6;
    color: #8a96a3;
    margin-bottom: 22px;
    max-width: 320px;
}

.maxx-f-socials {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.maxx-f-socials a {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 50% !important;
    background: #15181f !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    border: 1px solid #232732 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.maxx-f-socials a:hover {
    background: #00d2ff !important;
    color: #07080a !important;
    border-color: #00d2ff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4) !important;
}

.maxx-f-socials a svg {
    display: block !important;
    margin: auto !important;
    pointer-events: none;
}

.maxx-f-heading {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 10px;
}

.maxx-f-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 28px;
    height: 2px;
    background: #ffffff;
}

.maxx-f-contact-list,
.maxx-f-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.maxx-f-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: #a0aab8;
    margin-bottom: 14px;
}

.maxx-f-contact-list a,
.maxx-f-menu a {
    color: #a0aab8;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 13.5px;
}

.maxx-f-contact-list a:hover,
.maxx-f-menu a:hover {
    color: #ffffff;
    padding-inline-start: 4px;
}

.maxx-f-menu li {
    margin-bottom: 10px;
}

.maxx-footer-bottom {
    border-top: 1px solid #15181f;
    padding: 22px 0;
}

.maxx-fb-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.maxx-fb-copy {
    margin: 0;
    font-size: 12.5px;
    color: #6b7785;
}

.maxx-fb-payment {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.maxx-pay-pill {
    font-size: 11px;
    font-weight: 600;
    background: #15181f;
    color: #a0aab8;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #232732;
}

/* Floating Back-To-Top Button */
button.maxx-back-to-top,
#maxxBackToTop {
    position: fixed !important;
    bottom: 28px !important;
    right: 28px !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #07080a !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 18px rgba(255, 255, 255, 0.45) !important;
    line-height: 1 !important;
}

button.maxx-back-to-top.is-visible,
#maxxBackToTop.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
}

button.maxx-back-to-top:hover,
#maxxBackToTop:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.7) !important;
    background: #14dcff !important;
}

button.maxx-back-to-top svg,
#maxxBackToTop svg {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    stroke: #07080a !important;
    stroke-width: 2.8 !important;
    fill: none !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Mobile & Tablet Responsive Adjustments */
@media (max-width: 991px) {
    .maxx-hero-inner {
        flex-direction: column !important;
        text-align: center;
        gap: 30px;
    }

    .maxx-hero-text-col {
        max-width: 100%;
    }

    .maxx-hero-btn-wrap {
        justify-content: center;
    }

    .maxx-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .maxx-cat-5grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .maxx-prod-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .maxx-dual-promo-grid {
        grid-template-columns: 1fr;
    }

    .maxx-guides-grid {
        grid-template-columns: 1fr;
    }

    .maxx-brand-banner-overlay {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px;
    }

    .maxx-brand-cyan-bar {
    width: 60px;
    height: 3px;
    background: #00d2ff;
    margin-top: 10px;
    margin-left: auto;
    box-shadow: 0 0 10px #00d2ff;
}

    .maxx-footer-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .maxx-top-bar-inner {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .maxx-top-delivery,
    .maxx-top-quality {
        display: none;
    }

    .maxx-hero-main-title,
    .maxx-hero-main-title .elementor-heading-title {
        font-size: 32px !important;
    }

    .maxx-trust-grid {
        grid-template-columns: 1fr;
    }

    .maxx-cat-5grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .maxx-prod-grid {
        grid-template-columns: 1fr;
    }

    .maxx-footer-inner {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   MAXX Content Pages Styling (Size Guide, Contact, About, Policies)
   ========================================================================== */

.page:not(.woocommerce-page):not(.woocommerce) .entry-header {
    display: none !important;
}

.maxx-page-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 30px 20px 80px;
    font-family: var(--maxx-font);
    color: #111111;
}

.maxx-page-hero {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px;
}

.maxx-sub-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #111111;
    background: #e8f9fd;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.maxx-hero-title {
    font-size: 38px;
    font-weight: 800;
    color: #0b0d11;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.maxx-hero-desc {
    font-size: 15.5px;
    line-height: 1.7;
    color: #5a6573;
    margin: 0;
}

/* Guide Cards & Tables */
.maxx-guide-card {
    background: #ffffff;
    border: 1px solid #e3e7eb;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 36px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.maxx-guide-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.maxx-guide-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.1);
}

.maxx-guide-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #111111;
}

.maxx-guide-subtitle {
    font-size: 13.5px;
    color: #717d8a;
    margin: 0;
}

.maxx-table-responsive {
    overflow-x: auto;
}

.maxx-size-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.maxx-size-table th {
    background: #f7f9fa;
    color: #0b0d11;
    font-weight: 600;
    padding: 14px 18px;
    border-bottom: 2px solid #e1e5e8;
}

.maxx-size-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #edf0f2;
    color: #333d47;
}

.maxx-size-table tbody tr:hover {
    background: #fbfcfd;
}

.maxx-tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.maxx-tip-box {
    background: #f8fafc;
    border: 1px solid #e9edf0;
    border-radius: 10px;
    padding: 24px;
}

.maxx-tip-icon {
    font-size: 24px;
    margin-bottom: 12px;
}

.maxx-tip-box h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #111111;
}

.maxx-tip-box p {
    font-size: 13px;
    line-height: 1.6;
    color: #616e7c;
    margin: 0;
}

/* Contact Page Grid & Form */
.maxx-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.maxx-contact-card {
    background: #ffffff;
    border: 1px solid #e3e7eb;
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.maxx-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.maxx-contact-card-icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.maxx-contact-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #111111;
}

.maxx-contact-card > p {
    font-size: 13px;
    color: #616e7c;
    margin: 0 0 18px;
    flex-grow: 0;
}

.maxx-contact-detail {
    margin-bottom: 12px;
    font-size: 13px;
    color: #333d47;
}

.maxx-contact-detail strong {
    display: block;
    color: #111111;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.maxx-contact-detail a {
    color: #111111;
    text-decoration: none;
    font-weight: 600;
}

.maxx-contact-detail a:hover {
    text-decoration: underline;
}

.maxx-btn-action {
    display: inline-block;
    margin-top: auto;
    padding-top: 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: #111111;
    text-decoration: none;
}

.maxx-contact-form-section {
    background: #f8fafc;
    border: 1px solid #e3e7eb;
    border-radius: 14px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.maxx-form-header {
    text-align: center;
    margin-bottom: 28px;
}

.maxx-form-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
}

.maxx-form-header p {
    font-size: 14px;
    color: #616e7c;
    margin: 0;
}

.maxx-contact-form .maxx-form-row {
    display: flex;
    gap: 20px;
}

.maxx-contact-form .maxx-form-group {
    flex: 1;
    margin-bottom: 18px;
}

.maxx-contact-form label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1a1e24;
}

.maxx-contact-form input,
.maxx-contact-form select,
.maxx-contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 13.5px;
    border: 1px solid #ced5db;
    border-radius: 6px;
    background: #ffffff;
    font-family: inherit;
    box-sizing: border-box;
}

.maxx-contact-form input:focus,
.maxx-contact-form select:focus,
.maxx-contact-form textarea:focus {
    border-color: #d1d5db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.maxx-form-submit-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #0b0d11;
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.maxx-form-submit-btn:hover {
    background: #d1d5db;
}

/* About Page */
.maxx-about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 60px;
}

.maxx-about-text h2 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 18px;
    color: #0b0d11;
}

.maxx-about-text p {
    font-size: 15px;
    line-height: 1.75;
    color: #4b5563;
    margin-bottom: 18px;
}

.maxx-stats-row {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.maxx-stat-item {
    display: flex;
    flex-direction: column;
}

.maxx-stat-num {
    font-size: 32px;
    font-weight: 800;
    color: #111111;
    line-height: 1;
    margin-bottom: 6px;
}

.maxx-stat-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.maxx-about-feature-box {
    background: #f8fafc;
    border: 1px solid #e3e7eb;
    border-radius: 12px;
    padding: 30px;
}

.maxx-about-feature-box h3 {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 10px;
}

.maxx-factory-desc {
    font-size: 13.5px;
    color: #616e7c;
    margin-bottom: 18px;
}

.maxx-factory-badge {
    display: flex;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.maxx-fb-icon {
    font-size: 26px;
}

.maxx-factory-badge strong {
    font-size: 12.5px;
    color: #111111;
}

.maxx-factory-badge p {
    font-size: 12.5px;
    color: #4b5563;
    margin: 4px 0 0;
}

.maxx-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.maxx-check-list li {
    position: relative;
    padding-left: 24px;
    font-size: 13.5px;
    color: #374151;
    margin-bottom: 12px;
    line-height: 1.5;
}

.maxx-check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #111111;
    font-weight: bold;
}

.maxx-fabric-section {
    background: #0b0d11;
    color: #ffffff;
    border-radius: 16px;
    padding: 50px 40px;
    margin-top: 40px;
}

.maxx-fabric-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.maxx-fabric-intro h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 10px;
}

.maxx-fabric-intro p {
    color: #94a3b8;
    font-size: 15px;
    margin: 0;
}

.maxx-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.maxx-pillar-card {
    background: #161a22;
    border: 1px solid #232a36;
    border-radius: 10px;
    padding: 24px;
}

.maxx-pillar-icon {
    font-size: 26px;
    margin-bottom: 12px;
}

.maxx-pillar-card h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
}

.maxx-pillar-card p {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* Policy Pages */
.maxx-policy-wrap .maxx-policy-body {
    background: #ffffff;
    border: 1px solid #e3e7eb;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.maxx-policy-sec {
    margin-bottom: 36px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f2f5;
}

.maxx-policy-sec:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.maxx-policy-sec h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0b0d11;
    margin: 0 0 14px;
}

.maxx-policy-sec p {
    font-size: 14.5px;
    line-height: 1.7;
    color: #4b5563;
    margin: 0 0 14px;
}

.maxx-policy-sec ul {
    margin: 0 0 14px 20px;
    color: #4b5563;
}

.maxx-policy-sec li {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 8px;
}

.maxx-shipping-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.maxx-ship-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.maxx-ship-icon {
    font-size: 22px;
    margin-bottom: 8px;
}

.maxx-ship-box h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
}

.maxx-ship-lead {
    font-size: 15px;
    color: #008fa8 !important;
    margin-bottom: 6px !important;
}

.maxx-ship-box p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.maxx-alert-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 14px 18px;
    color: #1e40af;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 991px) {
    .maxx-contact-grid,
    .maxx-tips-grid,
    .maxx-pillars-grid,
    .maxx-shipping-cards-grid {
        grid-template-columns: 1fr;
    }
    .maxx-about-grid {
        grid-template-columns: 1fr;
    }
}



/* Native Astra Scroll to Top & Joinchat clean placement */
#ast-scroll-top {
    background-color: #111111 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    width: 42px !important;
    height: 42px !important;
    line-height: 42px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
    right: 25px !important;
    bottom: 25px !important;
    z-index: 99999 !important;
}
#ast-scroll-top:hover {
    background-color: #333333 !important;
    color: #ffffff !important;
}
.joinchat {
    left: 25px !important;
    right: auto !important;
    bottom: 25px !important;
    z-index: 99998 !important;
}
#maxxBackToTop,
.maxx-back-to-top {
    display: none !important;
    visibility: hidden !important;
}

/* ==========================================================================
   Apply "FROM WITHIN" Cyan (#00d2ff) to Theme Blue Elements (Search & Cart)
   ========================================================================== */

:root {
    --ast-global-color-0: #00d2ff;
    --ast-global-color-1: #00b8e6;
}

/* Header Search, Cart & Account Icons (Matching FROM WITHIN #00d2ff) */
.astra-search-icon,
.astra-search-icon .ast-icon,
.astra-search-icon svg,
.astra-search-icon svg path,
.cart-container,
.cart-container .ast-icon,
.cart-container svg,
.cart-container svg path,
.ast-header-account-link,
.ast-header-account-link svg,
.ast-header-account-link svg path,
.ast-addon-cart-wrap i,
.ast-addon-cart-wrap span {
    color: #00d2ff !important;
    fill: #00d2ff !important;
    stroke: #00d2ff;
    transition: all 0.25s ease;
}

.astra-search-icon:hover,
.astra-search-icon:hover svg,
.astra-search-icon:hover svg path,
.cart-container:hover,
.cart-container:hover svg,
.cart-container:hover svg path,
.ast-header-account-link:hover,
.ast-header-account-link:hover svg,
.ast-header-account-link:hover svg path {
    color: #38e1ff !important;
    fill: #38e1ff !important;
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.7));
}

/* Checkout Page Blue Links (Replacing default blue with FROM WITHIN #00d2ff) */
.woocommerce-checkout .showcoupon,
.woocommerce-checkout .showlogin,
.woocommerce-checkout .woocommerce-privacy-policy-link,
.woocommerce-checkout .woocommerce-terms-and-conditions-link {
    color: #00d2ff !important;
}

.woocommerce-checkout .showcoupon:hover,
.woocommerce-checkout .showlogin:hover,
.woocommerce-checkout .woocommerce-privacy-policy-link:hover,
.woocommerce-checkout .woocommerce-terms-and-conditions-link:hover {
    color: #38e1ff !important;
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
}

/* ==========================================================================
   MAXX Shop Filters Component (Dice / Modern Mockup Style)
   ========================================================================== */

.ast-left-sidebar #secondary,
.widget-area.secondary {
    padding-right: 20px !important;
    border-right: none !important;
}

.maxx-shop-filter-widget {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eef0f2;
    padding: 22px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    font-family: var(--maxx-font, inherit);
    margin-bottom: 30px;
    box-sizing: border-box;
}

/* Header */
.maxx-sf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f2f5;
    margin-bottom: 16px;
}

.maxx-sf-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #111111;
    letter-spacing: -0.2px;
}

.maxx-sf-icon-main {
    color: #00d2ff;
    flex-shrink: 0;
}

.maxx-sf-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    color: #00d2ff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s ease, transform 0.15s ease;
}

.maxx-sf-reset-btn:hover {
    color: #00a8cc;
    transform: scale(1.03);
}

.maxx-sf-reset-btn svg {
    color: #00d2ff;
}

/* Active Filters Section */
.maxx-sf-active-section {
    display: none;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f2f5;
}

.maxx-sf-active-section.is-visible {
    display: block;
}

.maxx-sf-active-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.maxx-sf-active-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #222222;
    letter-spacing: 0.3px;
}

.maxx-sf-clear-link {
    background: transparent;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: #00d2ff;
    cursor: pointer;
    padding: 0;
}

.maxx-sf-clear-link:hover {
    text-decoration: underline;
}

.maxx-sf-active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.maxx-sf-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.maxx-sf-tag:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

.maxx-tag-x {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.55;
    margin-left: 2px;
}

.maxx-sf-tag:hover .maxx-tag-x {
    opacity: 1;
}

/* Accordion Groups */
.maxx-sf-group {
    border-bottom: 1px solid #f0f2f5;
}

.maxx-sf-group:last-of-type {
    border-bottom: none;
}

.maxx-sf-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #111111;
}

.maxx-sf-gt-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.maxx-sf-gt-icon {
    color: #374151;
    flex-shrink: 0;
}

.maxx-sf-gt-title {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #111111;
}

.maxx-sf-chevron {
    color: #64748b;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.maxx-sf-group.is-open .maxx-sf-chevron {
    transform: rotate(0deg);
}

.maxx-sf-group:not(.is-open) .maxx-sf-chevron {
    transform: rotate(180deg);
}

.maxx-sf-group-content {
    display: none;
    padding-bottom: 16px;
}

.maxx-sf-group.is-open .maxx-sf-group-content {
    display: block;
}

/* List Items & Checkboxes */
.maxx-sf-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.maxx-sf-list-item {
    margin: 0 !important;
    padding: 0 !important;
}

.maxx-sf-checkbox-label {
    display: flex !important;
    align-items: center !important;
    cursor: pointer;
    user-select: none;
    font-size: 13.5px;
    color: #333333;
    gap: 8px;
    margin: 0 !important;
    position: relative;
    line-height: 1.4;
}

.maxx-sf-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.maxx-sf-custom-checkbox {
    width: 17px;
    height: 17px;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.maxx-sf-custom-checkbox svg {
    display: none;
    color: #ffffff;
}

.maxx-sf-input:checked + .maxx-sf-custom-checkbox {
    background: #00d2ff;
    border-color: #00d2ff;
}

.maxx-sf-input:checked + .maxx-sf-custom-checkbox svg {
    display: block;
}

.maxx-sf-item-name {
    font-weight: 500;
    color: #333333;
    transition: color 0.15s ease;
}

.maxx-sf-checkbox-label:hover .maxx-sf-item-name {
    color: #000000;
}

.maxx-sf-item-count {
    font-size: 11.5px;
    color: #94a3b8;
    margin-left: 2px;
}

/* Color Swatches */
.maxx-sf-color-swatch-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.16);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: inline-block;
    flex-shrink: 0;
    margin-left: 2px;
}

/* Size Pills Grid */
.maxx-sf-size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 2px;
}

.maxx-sf-size-pill {
    min-width: 44px;
    height: 36px;
    padding: 0 12px;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
    margin: 0 !important;
}

.maxx-sf-size-pill:hover {
    border-color: #00d2ff;
    color: #00d2ff;
}

.maxx-sf-size-pill.is-selected {
    background: #00d2ff;
    border-color: #00d2ff;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 210, 255, 0.35);
    font-weight: 700;
}

/* Footer Action Buttons */
.maxx-sf-footer {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.maxx-sf-apply-btn {
    width: 100%;
    height: 46px;
    background: #00d2ff;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 210, 255, 0.3);
    letter-spacing: 0.2px;
}

.maxx-sf-apply-btn:hover {
    background: #00bce6;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 210, 255, 0.4);
}

.maxx-sf-apply-arrow {
    font-size: 16px;
    line-height: 1;
    transition: transform 0.15s ease;
}

.maxx-sf-apply-btn:hover .maxx-sf-apply-arrow {
    transform: translateX(3px);
}

.maxx-sf-clear-bottom {
    background: transparent;
    border: none;
    color: #00d2ff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.maxx-sf-clear-bottom:hover {
    color: #00a8cc;
}

/* Mobile & Tablet Adjustments */
@media (max-width: 921px) {
    .ast-left-sidebar #secondary,
    .widget-area.secondary {
        padding-right: 0 !important;
        margin-bottom: 24px !important;
        width: 100% !important;
    }

    .maxx-shop-filter-widget {
        padding: 18px 16px;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .maxx-sf-size-pill {
        min-width: 40px;
        height: 34px;
        font-size: 12.5px;
    }
}






/* ==========================================================================
   MAXX CRO: Free Shipping Progress Bar
   ========================================================================== */
.maxx-free-shipping-bar-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    text-align: center;
    direction: rtl;
}

.maxx-shipping-message {
    font-size: 14.5px;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 10px;
}

.maxx-shipping-message strong {
    color: #0f172a;
    font-weight: 700;
}

.maxx-shipping-progress-track {
    width: 100%;
    height: 10px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.maxx-shipping-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.maxx-free-shipping-bar-wrap.maxx-shipping-free-unlocked {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.maxx-free-shipping-bar-wrap.maxx-shipping-free-unlocked .maxx-shipping-message {
    color: #15803d;
}

.maxx-free-shipping-bar-wrap.maxx-shipping-free-unlocked .maxx-shipping-progress-fill {
    background: linear-gradient(90deg, #10b981, #059669);
}

/* ==========================================================================
   MAXX CRO: Volume Tier Savings Box (Single Product)
   ========================================================================== */
.maxx-volume-box {
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 14px;
    padding: 16px 18px;
    margin: 0 0 16px 0;
    width: 100%;
    box-sizing: border-box;
}

.maxx-volume-box.is-ltr {
    direction: ltr;
    text-align: left;
}

.maxx-volume-box.is-rtl {
    direction: rtl;
    text-align: right;
}

.maxx-volume-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.maxx-volume-tiers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.maxx-tier-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.maxx-tier-card:hover {
    border-color: #94a3b8;
}

.maxx-tier-card.active {
    border-color: #0f172a;
    background: #ffffff;
    box-shadow: 0 0 0 1px #0f172a, 0 4px 12px rgba(15, 23, 42, 0.06);
}

.maxx-tier-card input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #0f172a;
    cursor: pointer;
    flex-shrink: 0;
}

.maxx-tier-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.maxx-tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.maxx-tier-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.maxx-tier-price {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.maxx-tier-sub {
    font-size: 12px;
    color: #64748b;
}

.maxx-tier-badge {
    position: absolute;
    top: -9px;
    background: #e11d48;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.25);
    white-space: nowrap;
}

.maxx-volume-box.is-ltr .maxx-tier-badge {
    right: 14px;
    left: auto;
}

.maxx-volume-box.is-rtl .maxx-tier-badge {
    left: 14px;
    right: auto;
}

.maxx-tier-badge.free-ship-badge {
    background: #059669;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

/* ==========================================================================
   MAXX CRO: WhatsApp Order Confirmation (Thank You Page)
   ========================================================================== */
.maxx-thankyou-whatsapp-wrap {
    margin: 30px 0;
    direction: rtl;
}

.maxx-wa-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1.5px solid #86efac;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.08);
}

.maxx-wa-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.maxx-wa-icon {
    font-size: 32px;
    line-height: 1;
}

.maxx-wa-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #14532d;
    margin: 0 0 6px 0 !important;
}

.maxx-wa-header p {
    font-size: 13.5px;
    color: #166534;
    margin: 0 !important;
    line-height: 1.5;
}

.maxx-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.maxx-wa-btn:hover {
    background: #1eb855;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.maxx-wa-arrow {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.maxx-wa-btn:hover .maxx-wa-arrow {
    transform: translateX(-4px);
}

/* ==========================================================================
   MAXX Multilingual: Language Switcher & Direction Adaptations
   ========================================================================== */
.maxx-header-lang-switch-item {
    display: inline-flex !important;
    align-items: center !important;
}

.maxx-header-lang-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 5px 13px !important;
    border-radius: 999px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15) !important;
    margin: 0 8px !important;
}

.maxx-header-lang-btn:hover {
    background: #e11d48 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3) !important;
}

.maxx-header-lang-btn .maxx-lang-flag {
    font-size: 14px !important;
    line-height: 1 !important;
}

/* LTR Direction overrides for CRO components */
.maxx-free-shipping-bar-wrap.is-ltr {
    direction: ltr;
    text-align: center;
}

.maxx-volume-box.is-ltr {
    direction: ltr;
}

.maxx-volume-box.is-ltr .maxx-tier-badge {
    left: auto;
    right: 14px;
}

.maxx-thankyou-whatsapp-wrap.is-ltr {
    direction: ltr;
}

/* ==========================================================================
   MAXX Checkout Payment Icons & Styling
   ========================================================================== */
.wc_payment_methods .payment_method_kashier_card label,
.wc_payment_methods .payment_method_kashier_wallet label,
.wc_payment_methods li label {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.wc_payment_methods img.kashier-icon,
.wc_payment_methods label img {
    height: 24px !important;
    max-height: 24px !important;
    width: auto !important;
    vertical-align: middle !important;
    display: inline-block !important;
    border-radius: 4px !important;
    margin: 0 4px 0 0 !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.06)) !important;
}

/* ==========================================================================
   MAXX Interactive Package Builder (Easy Orders Style)
   ========================================================================== */
.has-maxx-bundle-builder .variations_form.cart .variations,
.has-maxx-bundle-builder .variations_form.cart .single_variation_wrap .woocommerce-variation-price,
.has-maxx-bundle-builder .variations_form.cart .quantity,
.has-maxx-bundle-builder .variations_form.cart .maxx-qty-label,
body:has(.maxx-bundle-builder-container) .variations_form.cart .variations,
body:has(.maxx-bundle-builder-container) .variations_form.cart .single_variation_wrap .woocommerce-variation-price,
body:has(.maxx-bundle-builder-container) .variations_form.cart .quantity,
body:has(.maxx-bundle-builder-container) .variations_form.cart .maxx-qty-label {
    display: none !important;
}

.maxx-bundle-builder-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin: 0 0 24px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.has-maxx-bundle-builder.single-product div.product form.cart .single_variation_wrap,
body:has(.maxx-bundle-builder-container).single-product div.product form.cart .single_variation_wrap,
.has-maxx-bundle-builder .single_variation_wrap,
body:has(.maxx-bundle-builder-container) .single_variation_wrap {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    margin: 0 auto !important;
    display: block !important;
}

body.has-maxx-bundle-builder.single-product div.product form.cart .woocommerce-variation-add-to-cart,
body:has(.maxx-bundle-builder-container).single-product div.product form.cart .woocommerce-variation-add-to-cart,
.has-maxx-bundle-builder .woocommerce-variation-add-to-cart,
body:has(.maxx-bundle-builder-container) .woocommerce-variation-add-to-cart {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin: 20px auto 0 !important;
    padding: 0 !important;
    float: none !important;
    text-align: center !important;
    grid-template-columns: none !important;
    grid-template-areas: none !important;
}

body.has-maxx-bundle-builder.single-product div.product form.cart .woocommerce-variation-add-to-cart .single_add_to_cart_button,
body.has-maxx-bundle-builder.single-product div.product form.cart .woocommerce-variation-add-to-cart .maxx-buy-now,
body:has(.maxx-bundle-builder-container).single-product div.product form.cart .woocommerce-variation-add-to-cart .single_add_to_cart_button,
body:has(.maxx-bundle-builder-container).single-product div.product form.cart .woocommerce-variation-add-to-cart .maxx-buy-now,
.has-maxx-bundle-builder .single_add_to_cart_button,
.has-maxx-bundle-builder .maxx-buy-now,
body:has(.maxx-bundle-builder-container) .single_add_to_cart_button,
body:has(.maxx-bundle-builder-container) .maxx-buy-now {
    width: 100% !important;
    max-width: 360px !important;
    height: 52px !important;
    min-height: 52px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    border-radius: 999px !important;
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    float: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
    box-sizing: border-box !important;
    justify-self: center !important;
    align-self: center !important;
}

body.has-maxx-bundle-builder.single-product div.product form.cart .woocommerce-variation-add-to-cart .single_add_to_cart_button,
body:has(.maxx-bundle-builder-container).single-product div.product form.cart .woocommerce-variation-add-to-cart .single_add_to_cart_button,
.has-maxx-bundle-builder .single_add_to_cart_button,
body:has(.maxx-bundle-builder-container) .single_add_to_cart_button {
    order: 1 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 2px solid #0f172a !important;
}

body.has-maxx-bundle-builder.single-product div.product form.cart .woocommerce-variation-add-to-cart .maxx-buy-now,
body:has(.maxx-bundle-builder-container).single-product div.product form.cart .woocommerce-variation-add-to-cart .maxx-buy-now,
.has-maxx-bundle-builder .maxx-buy-now,
body:has(.maxx-bundle-builder-container) .maxx-buy-now {
    order: 2 !important;
    background: #0f172a !important;
    color: #ffffff !important;
    border: 2px solid #0f172a !important;
}

body.has-maxx-bundle-builder.single-product div.product form.cart .woocommerce-variation-add-to-cart .single_add_to_cart_button:hover,
body:has(.maxx-bundle-builder-container).single-product div.product form.cart .woocommerce-variation-add-to-cart .single_add_to_cart_button:hover,
.has-maxx-bundle-builder .single_add_to_cart_button:hover,
body:has(.maxx-bundle-builder-container) .single_add_to_cart_button:hover {
    background: #f1f5f9 !important;
}

body.has-maxx-bundle-builder.single-product div.product form.cart .woocommerce-variation-add-to-cart .maxx-buy-now:hover,
body:has(.maxx-bundle-builder-container).single-product div.product form.cart .woocommerce-variation-add-to-cart .maxx-buy-now:hover,
.has-maxx-bundle-builder .maxx-buy-now:hover,
body:has(.maxx-bundle-builder-container) .maxx-buy-now:hover {
    background: #1e293b !important;
}

.maxx-bb-step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.maxx-bb-step-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    font-weight: 800;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.maxx-bb-step-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #0f172a;
    text-transform: uppercase;
}

.maxx-bb-offers-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.maxx-bb-offer-card {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
}

.maxx-bb-offer-card:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    transform: translateY(-1px);
}

.maxx-bb-offer-card.is-active {
    border-color: #0f172a;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.maxx-bb-card-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s ease;
}

.maxx-bb-radio-circle {
    width: 0;
    height: 0;
    border-radius: 50%;
    background: #0f172a;
    transition: all 0.2s ease;
}

.maxx-bb-offer-card.is-active .maxx-bb-card-radio {
    border-color: #0f172a;
}

.maxx-bb-offer-card.is-active .maxx-bb-radio-circle {
    width: 10px;
    height: 10px;
}

.maxx-bb-card-details {
    flex: 1;
    min-width: 0;
}

.maxx-bb-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.maxx-bb-card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}

.maxx-bb-card-pricing {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.maxx-bb-price-old {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
}

.maxx-bb-price-current {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.maxx-bb-price-current small {
    font-size: 12px;
    font-weight: 700;
}

.maxx-bb-card-sub-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #64748b;
    gap: 8px;
}

.maxx-bb-card-sub {
    color: #16a34a;
    font-weight: 600;
}

.maxx-bb-card-unit {
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

.maxx-bb-badge {
    position: absolute;
    top: -11px;
    right: 16px;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.badge-popular {
    background: #e11d48;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.35);
}

.badge-shipping {
    background: #059669;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}

/* STEP 2: PIECES CUSTOMIZER */
.maxx-bb-step-pieces {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.maxx-bb-pieces-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.maxx-bb-piece-row {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.maxx-bb-piece-row:hover {
    background: #f1f5f9;
}

.maxx-bb-piece-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.maxx-bb-piece-title {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.maxx-bb-piece-summary {
    font-size: 12px;
    font-weight: 700;
    color: #0284c7;
    background: #e0f2fe;
    padding: 3px 9px;
    border-radius: 6px;
}

.maxx-bb-piece-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.maxx-bb-control-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.maxx-bb-group-label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    min-width: 46px;
}

.maxx-bb-color-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.maxx-bb-color-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 3px 10px 3px 4px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.15s ease;
    outline: none;
    font-family: inherit;
}

.maxx-bb-color-chip:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.maxx-bb-color-chip.is-active {
    border-color: #0f172a;
    background: #0f172a;
    color: #ffffff;
}

.maxx-bb-color-chip.is-active .maxx-bb-color-name {
    color: #ffffff;
}

.maxx-bb-color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.18);
    display: inline-block;
    flex-shrink: 0;
}

.maxx-bb-color-name {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

.maxx-bb-size-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.maxx-bb-size-pill {
    min-width: 40px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none;
    font-family: inherit;
}

.maxx-bb-size-pill:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.maxx-bb-size-pill.is-active {
    border-color: #0f172a;
    background: #0f172a;
    color: #ffffff;
}

/* RTL adapt */
.maxx-bundle-builder-container.is-rtl {
    direction: rtl;
    text-align: right;
}

.maxx-bundle-builder-container.is-rtl .maxx-bb-badge {
    right: auto;
    left: 16px;
}

.maxx-bundle-builder-container.is-rtl .maxx-bb-color-chip {
    padding: 3px 4px 3px 10px;
}
/* ==========================================================================
   Variation selection feedback (Add to Cart / Buy It Now without a chosen
   size or color previously failed silently — see maxx-color-image.js)
   ========================================================================== */
.maxx-variation-notice {
    display: none;
    margin: 10px 0;
    padding: 11px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: 6px;
    color: #991b1b;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
}

.rtl .maxx-variation-notice,
[dir="rtl"] .maxx-variation-notice {
    border-left: 1px solid #fecaca;
    border-right: 4px solid #dc2626;
}

.maxx-field-missing {
    animation: maxx-field-shake 0.4s ease;
    outline: 2px solid #dc2626;
    outline-offset: 4px;
    border-radius: 8px;
}

@keyframes maxx-field-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

/* ==========================================================================
   Language switcher (top bar) + Arabic / RTL refinements
   ========================================================================== */
.maxx-top-bar .maxx-top-bar-inner {
    padding-inline-end: 96px;
}

.maxx-lang-switch {
    position: absolute;
    inset-inline-end: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    border: 1px solid #2c3340;
    border-radius: 999px;
    padding: 2px 14px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
    text-decoration: none;
    letter-spacing: 0;
    transition: border-color .2s ease, color .2s ease;
}

.maxx-lang-switch:hover,
.maxx-lang-switch:focus {
    color: #00d2ff;
    border-color: #00d2ff;
}

@media (max-width: 600px) {
    .maxx-top-bar .maxx-top-bar-inner {
        padding-inline-end: 84px;
    }
}

/* Arabic: use Tajawal everywhere so Latin-only Poppins never falls back to a system Arabic font */
html[lang^="ar"] body,
html[lang^="ar"] button,
html[lang^="ar"] input,
html[lang^="ar"] select,
html[lang^="ar"] textarea,
html[lang^="ar"] h1,
html[lang^="ar"] h2,
html[lang^="ar"] h3,
html[lang^="ar"] h4,
html[lang^="ar"] h5,
html[lang^="ar"] h6 {
    font-family: 'Tajawal', 'Poppins', sans-serif;
}

/* Uppercase / letter-spacing is a Latin-only styling; it breaks Arabic letter joining */
html[lang^="ar"] * {
    letter-spacing: 0 !important;
}
html[lang^="ar"] .maxx-bb-piece-title,
html[lang^="ar"] [class*="eyebrow"],
html[lang^="ar"] .maxx-hero-eyebrow,
html[lang^="ar"] .elementor-heading-title {
    text-transform: none !important;
}

/* Footer: phone / email must always read left-to-right, even inside RTL pages */
.maxx-f-contact-list a[href^="tel:"],
.maxx-f-contact-list a[href^="mailto:"] {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}

/* ==========================================================================
   Mobile polish (EN + AR) — smaller logo/buttons, no wrapping in pills
   ========================================================================== */
@media (max-width: 600px) {
    .custom-logo-link img,
    .site-logo-img img,
    .ast-site-identity .custom-logo,
    .site-logo-img .custom-logo-link img {
        max-width: 84px !important;
    }
    .maxx-hero-btn-wrap {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .maxx-pill-btn {
        padding: 11px 20px !important;
        font-size: 13px !important;
        white-space: nowrap;
        min-height: 0;
    }
    .maxx-hero-btn-wrap .maxx-pill-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
    .single_add_to_cart_button,
    .maxx-buy-now,
    .woocommerce #place_order {
        min-height: 48px;
        padding: 12px 18px !important;
        font-size: 14px !important;
    }
    .joinchat__button {
        transform: scale(.82);
        transform-origin: bottom left;
        bottom: 12px !important;
    }
    html[dir="rtl"] .joinchat__button { transform-origin: bottom right; }
}

/* 404 page */
.maxx-404 { text-align:center; padding:70px 20px 90px; max-width:640px; margin:0 auto; }
.maxx-404-code { font-size:96px; font-weight:800; line-height:1; color:#0b0d11; letter-spacing:-2px; background:linear-gradient(135deg,#00d2ff,#0b0d11); -webkit-background-clip:text; background-clip:text; color:transparent; }
.maxx-404 h1 { font-size:30px; margin:14px 0 10px; color:#0b0d11; }
.maxx-404 p { color:#5b616b; margin:0 0 26px; }
.maxx-404-actions { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-bottom:26px; }
.maxx-404-btn { background:#0b0d11 !important; color:#fff !important; border:1px solid #0b0d11 !important; }
.maxx-404-btn-alt { background:transparent !important; color:#0b0d11 !important; }
.maxx-404-search { max-width:380px; margin:0 auto; }
html[lang^="ar"] .maxx-404-code { letter-spacing:0 !important; }

/* ===== Thank-you page ===== */
.woocommerce-order-received .woocommerce-notice--success.woocommerce-thankyou-order-received { display:none; }
.maxx-ty-hero { text-align:center; padding:34px 16px 10px; }
.maxx-ty-check { width:68px; height:68px; margin:0 auto 14px; border-radius:50%; background:#0b0d11; color:#00d2ff; display:flex; align-items:center; justify-content:center; box-shadow:0 8px 24px rgba(0,210,255,.25); }
.maxx-ty-title { font-size:30px; margin:0 0 6px; color:#0b0d11; }
.maxx-ty-order { margin:0; color:#5b616b; font-size:15px; }
.maxx-ty-order strong { color:#0b0d11; margin-inline-start:6px; }
.maxx-ty-next { background:#f7f8fa; border:1px solid #eceef1; border-radius:16px; padding:22px 22px 24px; margin:22px 0 28px; }
.maxx-ty-next h2 { font-size:19px; margin:0 0 14px; color:#0b0d11; }
.maxx-ty-steps { list-style:none; margin:0; padding:0; display:grid; gap:14px; }
.maxx-ty-steps li { display:flex; gap:14px; align-items:flex-start; }
.maxx-ty-num { flex:0 0 32px; width:32px; height:32px; border-radius:50%; background:#0b0d11; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; }
.maxx-ty-steps strong { display:block; color:#0b0d11; margin-bottom:2px; }
.maxx-ty-steps p { margin:0; color:#4a505a; font-size:14px; line-height:1.6; }
.maxx-ty-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:20px; }
.maxx-ty-btn { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:10px 22px; border-radius:999px; font-weight:600; font-size:14px; text-decoration:none; }
.maxx-ty-btn-wa { background:#25d366; color:#fff !important; }
.maxx-ty-btn-alt { background:#fff; color:#0b0d11 !important; border:1px solid #0b0d11; }
@media (max-width:600px) {
  .maxx-ty-title { font-size:24px; }
  .maxx-ty-next { padding:18px 16px 20px; }
  .maxx-ty-btn { flex:1 1 100%; }
}
html[lang^="ar"] .maxx-ty-title, html[lang^="ar"] .maxx-ty-next h2 { letter-spacing:0; }

/* Mobile: size-guide / content tables scroll inside their box instead of widening the page */
@media (max-width: 767px){
  .entry-content table, .page .elementor-widget-container table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
}

/* Bundle builder (mobile): keep "1,400 ج.م" / EGP amounts on one line inside offer cards */
@media (max-width: 767px){
  .maxx-bb-card-pricing{display:flex;flex-wrap:wrap;gap:2px 8px;align-items:baseline}
  .maxx-bb-card-pricing *{white-space:nowrap}
}

/* ===== CRO: trust strip, sticky mobile order bar, hidden country field ===== */
.maxx-trust-strip{list-style:none;margin:14px 0 6px;padding:12px 14px;display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;background:#f5f8fb;border:1px solid #e3eaf1;border-radius:12px;font-size:13px;font-weight:600;color:#0f172a}
.maxx-trust-strip li{margin:0;display:flex;align-items:center;gap:6px;line-height:1.35}
.maxx-hidden-field{display:none!important}
.maxx-sticky-buy{position:fixed;left:0;right:0;bottom:0;z-index:9990;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e5e7eb;box-shadow:0 -6px 20px rgba(15,23,42,.08)}
.maxx-sticky-buy[hidden]{display:none}
.maxx-sticky-buy__info{display:flex;flex-direction:column;line-height:1.2}
.maxx-sticky-buy__label{font-size:12px;color:#64748b}
.maxx-sticky-buy__price{font-size:18px;color:#0f172a}
.maxx-sticky-buy__btn{flex:0 0 auto;min-height:46px;padding:0 26px;border:0;border-radius:999px;background:#0f172a;color:#fff;font-weight:800;font-size:15px}
@media (min-width:768px){.maxx-sticky-buy{display:none!important}}
body.maxx-sticky-on .joinchat{bottom:78px!important}
body.maxx-sticky-on .ast-scroll-top-icon,body.maxx-sticky-on #ast-scroll-top{bottom:84px!important}

/* ===== Arabic typography (Oct 2026): Tajawal first, and slightly larger sizes
   (Tajawal has a smaller x-height than Poppins, so equal px sizes read too small) ===== */
html[lang^="ar"]{
  --maxx-font:'Tajawal','Poppins',-apple-system,'Segoe UI',Arial,sans-serif;
  --maxx-font-body:'Tajawal','Poppins',-apple-system,'Segoe UI',Arial,sans-serif;
  --maxx-dice-font:'Tajawal','Poppins',sans-serif;
}
html[lang^="ar"] body{font-size:16px}
html[lang^="ar"] .elementor p,
html[lang^="ar"] .elementor-widget-text-editor,
html[lang^="ar"] .entry-content p,
html[lang^="ar"] .woocommerce-product-details__short-description{font-size:16.5px;line-height:1.75}
html[lang^="ar"] .main-header-menu a,
html[lang^="ar"] .ast-header-break-point .main-navigation a{font-size:15.5px}
html[lang^="ar"] .elementor h4,
html[lang^="ar"] .elementor h5{font-size:16px}
html[lang^="ar"] .elementor h2{font-size:clamp(26px,3vw,32px)}
html[lang^="ar"] .woocommerce-loop-product__title,
html[lang^="ar"] .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:16.5px!important;line-height:1.5}
html[lang^="ar"] ul.products .price,
html[lang^="ar"] .products .price .amount{font-size:15px!important}
html[lang^="ar"] .maxx-cat-name{font-size:18px}
html[lang^="ar"] .maxx-cat-action,
html[lang^="ar"] .elementor a.elementor-button,
html[lang^="ar"] .elementor-widget-html a,
html[lang^="ar"] .button,
html[lang^="ar"] button{font-size:15px}
html[lang^="ar"] footer,
html[lang^="ar"] footer a,
html[lang^="ar"] footer p,
html[lang^="ar"] footer li{font-size:15.5px}
html[lang^="ar"] .ast-above-header,
html[lang^="ar"] [class*="announcement"]{font-size:14.5px}
html[lang^="ar"] .maxx-trust-strip{font-size:14px}
html[lang^="ar"] .maxx-bb-card-sub,
html[lang^="ar"] .maxx-bb-card-unit{font-size:14.5px}
html[lang^="ar"] .woocommerce form .form-row label{font-size:15px}

/* ===== Home: category cards (lifestyle card fills the whole card) + clearer Best Sellers text ===== */
.maxx-cat-card:first-child .maxx-cat-img-box img{width:100%;height:100%;object-fit:cover;object-position:center 20%}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title{color:#0f172a!important}
ul.products li.product .price,
ul.products li.product .price .amount,
ul.products li.product .price ins .amount{color:#0f172a!important;font-weight:700}
ul.products li.product .price del,
ul.products li.product .price del .amount{color:#94a3b8!important;font-weight:500}

/* ===== Home readability (Oct 2026): hero lead text, section eyebrows ===== */
.maxx-hero-lead,
.elementor-element-hero_sub p{color:#fff!important;font-weight:500!important;font-size:17px!important;line-height:1.75!important;text-shadow:0 1px 8px rgba(0,0,0,.55)}
html[lang^="ar"] .maxx-hero-lead,
html[lang^="ar"] .elementor-element-hero_sub p{font-size:18.5px!important}
.maxx-hero-watermark{font-size:14px!important;color:#cbd5e1!important}
html[lang^="ar"] .maxx-hero-watermark{font-size:15.5px!important}
.maxx-sub-pill{font-size:13.5px!important}
html[lang^="ar"] .maxx-sub-pill{font-size:16px!important}
