/* Westeller only. Loaded after the existing theme; payment brands and product swatch fills are intentionally untouched. */
:root {
    /* ==============================
       WESTELLER — WARM LUXURY V1.0
       ============================== */

    /* Brand */
    --color-primary: #49362E;
    --color-primary-hover: #36261F;
    --color-primary-active: #291C17;
    --color-secondary: #EAE2D8;
    --color-accent: #C5B3A1;
    --color-brand-dark: #25211F;

    /* Background */
    --color-bg: #FFFFFF;
    --color-bg-page: #FFFFFF;
    --color-bg-soft: #F8F5F0;
    --color-bg-section: #EAE2D8;
    --color-bg-product: #F5F3EF;
    --color-bg-card: #FFFFFF;
    --color-bg-hover: #F8F5F0;
    --color-bg-selected: #F8F5F0;
    --color-bg-active: #EAE2D8;
    --color-bg-disabled: #E5DED5;
    --color-bg-sale: #FCF0F2;
    --color-bg-success: #EDF7F0;
    --color-bg-error: #FCF0F2;
    --color-bg-warning: #FFF7E8;
    --color-bg-info: #F8F5F0;
    --color-bg-skeleton: #F1EDE7;
    --color-bg-skeleton-highlight: #FAF8F5;

    /* Typography */
    --color-heading: #25211F;
    --color-text: #49413C;
    --color-text-primary: #25211F;
    --color-text-secondary: #746A63;
    --color-text-muted: #746A63;
    --color-text-placeholder: #746A63;
    --color-text-disabled: #746A63;
    --color-text-inverse: #FFFFFF;

    /* Links */
    --color-link: #49362E;
    --color-link-hover: #36261F;
    --color-link-active: #291C17;

    /* Borders */
    --color-border: #E5DED5;
    --color-border-light: #F0EBE5;
    --color-border-strong: #C5B3A1;
    --color-border-input: #92867B;
    --color-border-input-hover: #746A63;
    --color-border-focus: #49362E;
    --color-border-active: #49362E;
    --color-border-selected: #49362E;
    --color-border-disabled: #E5DED5;
    --color-divider: #E5DED5;

    /* Primary Button */
    --color-button-primary: #49362E;
    --color-button-primary-hover: #36261F;
    --color-button-primary-active: #291C17;
    --color-button-primary-text: #FFFFFF;

    /* Secondary Button */
    --color-button-secondary: #FFFFFF;
    --color-button-secondary-hover: #F8F5F0;
    --color-button-secondary-active: #EAE2D8;
    --color-button-secondary-text: #49362E;
    --color-button-secondary-border: #49362E;

    /* Dark Button */
    --color-button-dark: #25211F;
    --color-button-dark-hover: #39322E;
    --color-button-dark-active: #171412;
    --color-button-dark-text: #FFFFFF;

    /* Disabled Button */
    --color-button-disabled: #E5DED5;
    --color-button-disabled-text: #746A63;
    --color-button-disabled-border: #E5DED5;

    /* Sale */
    --color-sale: #A52C42;
    --color-sale-hover: #862136;
    --color-sale-active: #6D192B;
    --color-sale-text: #FFFFFF;
    --color-sale-bg: #FCF0F2;

    /* Product */
    --color-product-title: #25211F;
    --color-product-price: #25211F;
    --color-product-sale-price: #A52C42;
    --color-product-old-price: #746A63;
    --color-product-rating: #AE792C;
    --color-product-rating-empty: #E5DED5;
    --color-product-review-count: #746A63;
    --color-wishlist: #746A63;
    --color-wishlist-hover: #49362E;
    --color-wishlist-active: #A52C42;

    /* Status */
    --color-success: #28704A;
    --color-success-bg: #EDF7F0;
    --color-error: #A52C42;
    --color-error-bg: #FCF0F2;
    --color-warning: #925B17;
    --color-warning-bg: #FFF7E8;
    --color-info: #49362E;
    --color-info-bg: #F8F5F0;

    /* Header */
    --color-header-bg: #FFFFFF;
    --color-header-text: #25211F;
    --color-header-icon: #25211F;
    --color-header-border: #E5DED5;
    --color-announcement-bg: #49362E;
    --color-announcement-text: #FFFFFF;
    --color-navigation-bg: #FFFFFF;
    --color-navigation-text: #25211F;
    --color-navigation-hover: #49362E;
    --color-navigation-active: #49362E;

    /* Footer */
    --color-footer-bg: #49362E;
    --color-footer-bottom-bg: #36261F;
    --color-footer-heading: #FFFFFF;
    --color-footer-text: #EAE2D8;
    --color-footer-muted: #D6C8BB;
    --color-footer-link: #EAE2D8;
    --color-footer-link-hover: #FFFFFF;
    --color-footer-border: #786458;

    /* Form */
    --color-input-bg: #FFFFFF;
    --color-input-text: #25211F;
    --color-input-border: #92867B;
    --color-input-hover-border: #746A63;
    --color-input-focus-border: #49362E;
    --color-input-placeholder: #746A63;
    --color-input-error: #A52C42;
    --color-input-disabled: #F5F3EF;
    --color-input-label: #49413C;
    --color-control-checked: #49362E;
    --color-control-checked-icon: #FFFFFF;

    /* Overlay & Accessibility */
    --color-overlay: rgba(37, 33, 31, 0.45);
    --color-focus-ring: #49362E;
    --color-selection-bg: #EAE2D8;
    --color-selection-text: #25211F;

    /* Typography */
    --font-heading: Georgia, "Times New Roman", serif;
    --font-body: Inter, Arial, Helvetica, sans-serif;
    --font-product: Inter, Arial, Helvetica, sans-serif;
    --font-button: Inter, Arial, Helvetica, sans-serif;

    --font-size-xs: 12px;
    --font-size-sm: 13px;
    --font-size-base: 15px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 22px;
    --font-size-2xl: 26px;
    --font-size-3xl: 32px;
    --font-size-4xl: 40px;
    --font-size-hero: 52px;

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;

    --line-height-heading: 1.2;
    --line-height-body: 1.6;
    --line-height-product: 1.4;

    /* Radius */
    --radius-none: 0px;
    --radius-button: 3px;
    --radius-input: 3px;
    --radius-product: 0px;
    --radius-badge: 2px;
    --radius-modal: 6px;
    --radius-tooltip: 4px;

    /* Size */
    --height-button: 50px;
    --height-input: 46px;
    --height-touch-target: 44px;
    --container-max-width: 1440px;
    --border-width: 1px;
    --border-width-selected: 2px;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;

    --page-padding-desktop: 48px;
    --page-padding-tablet: 24px;
    --page-padding-mobile: 16px;

    --product-gap-desktop: 24px;
    --product-gap-tablet: 16px;
    --product-gap-mobile: 12px;

    --section-gap-desktop: 64px;
    --section-gap-mobile: 36px;

    /* Shadow */
    --shadow-none: none;
    --shadow-sm: 0 2px 8px rgba(37, 33, 31, 0.05);
    --shadow-md: 0 4px 16px rgba(37, 33, 31, 0.08);
    --shadow-lg: 0 8px 32px rgba(37, 33, 31, 0.12);

    /* Transition */
    --transition-fast: 120ms ease;
    --transition-normal: 180ms ease;
    --transition-slow: 280ms ease;
}

/* Foundations */
html body { background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); font-size: 15px; line-height: var(--line-height-body); }
body .wrapper, body .page { background: var(--color-bg); }
body a { color: var(--color-link); }
body a:hover { color: var(--color-link-hover); }
body a:active { color: var(--color-link-active); }
body :is(h1,h2,h3,h4,h5,.h1,.h2,.h3) { color: var(--color-heading); font-family: var(--font-heading); font-weight: 400; line-height: 1.25; }
body .page-title h1 { font-size: clamp(28px,3vw,40px); text-transform: none; border-color: var(--color-border); }
body .std, body .std p, body .std li { font-family: var(--font-body); color: var(--color-text); font-size: 15px; line-height: 1.6; }
body .std p a, body .product-options dt a, body .rating-links a, body .back-link a { text-decoration: underline; text-underline-offset: 3px; }
body ::selection { background: var(--color-selection-bg); color: var(--color-selection-text); }
body :is(a,button,input,select,textarea,[tabindex]):focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 3px; }
body .breadcrumbs { color: var(--color-text-secondary); font-size: 12px; margin: 12px 0 24px; }
body .breadcrumbs a { color: var(--color-link); }
body .breadcrumbs li strong { color: var(--color-heading); }
body .main-container { max-width: var(--container-max-width); padding: 24px 48px 48px; }
body.cms-index-index .main-container { padding: 0; max-width: none; }

/* Existing Jimei header variables are mapped, without modifying the shared module. */
body .jimei-hdr-header, body .jimei-hdr-panel {
 --jimei-hdr-head-bg: var(--color-header-bg); --jimei-hdr-head-fg: var(--color-header-text);
 --jimei-hdr-logo-bg: var(--color-header-bg); --jimei-hdr-mobile-logo-bg: var(--color-header-bg);
 --jimei-hdr-menu-bg: var(--color-bg); --jimei-hdr-menu-link: var(--color-heading);
 --jimei-hdr-menu-link-hover: var(--color-primary); --jimei-hdr-menu-text: var(--color-text);
 --jimei-hdr-menu-hl: var(--color-bg-soft); --jimei-hdr-border: var(--color-border);
 --jimei-hdr-promo-bg: var(--color-primary); --jimei-hdr-promo-bg-end: var(--color-primary);
 --jimei-hdr-promo-fg: var(--color-text-inverse); --jimei-hdr-logo-bg-end: var(--color-bg);
 --jimei-hdr-nav-bg: var(--color-bg); --jimei-hdr-accent: var(--color-primary);
 --jimei-hdr-muted: var(--color-text-secondary); --jimei-hdr-shell-edge: var(--color-bg);
 --jimei-hdr-shell-fill: var(--color-bg); --jimei-hdr-shell-ink: var(--color-heading);
 font-family: var(--font-body); font-weight: 400;
}
body .jimei-hdr-header .jimei-hdr-promo { min-height: 34px; padding: 16px 0; font-size: 14px; font-weight: 400; letter-spacing: .6px; }
body .jimei-hdr-header .jimei-hdr-main { padding-top: 22px; padding-bottom: 22px; max-width: 1440px; margin: auto; }
body .jimei-hdr-header .jimei-hdr-desktop-nav { z-index: 999; border-block: 1px solid var(--color-border); }
body .jimei-hdr-header .jimei-hdr-navigation { max-width: 1440px; }
body .jimei-hdr-header .jimei-hdr-navigation > li > a { font-size: 13px; font-weight: 500; letter-spacing: .5px; padding: 13px 16px; }
body .jimei-hdr-header .jimei-hdr-navigation ul { box-shadow: var(--shadow-sm); }
body .jimei-hdr-header .jimei-hdr-navigation ul a { font-weight: 400; font-size: 14px; }
body .jimei-hdr-header .jimei-hdr-search { border: 1px solid var(--color-border-input); border-radius: var(--radius-input); padding: 0; height: 46px; }
body .jimei-hdr-header .jimei-hdr-search input { font-weight: 400; padding: 0 14px; }
body .jimei-hdr-header .jimei-hdr-search button { width: 44px; height: 44px; border-radius: 0; }
body .jimei-hdr-header .jimei-hdr-search:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary); }
body .jimei-hdr-header .jimei-hdr-search button .jimei-hdr-icon { width: 22px; height: 22px; stroke-width: 1.8; }
body .jimei-hdr-header .jimei-hdr-account-link, body .jimei-hdr-header .jimei-hdr-cart-link { font-weight: 400; min-height: 44px; }
body .jimei-hdr-header .jimei-hdr-count { background: var(--color-primary); color: var(--color-text-inverse); border-color: var(--color-bg); }
body .jimei-hdr-header .jimei-hdr-mobile-bar { border-bottom: 1px solid var(--color-border); padding: 8px 16px; gap: 8px; }
body .jimei-hdr-header .jimei-hdr-menu-toggle, body .jimei-hdr-header .jimei-hdr-bag-link { flex-basis: 44px; height: 44px; }
body .jimei-hdr-header .jimei-hdr-mobile-logo { padding: 12px 20px; border-bottom: 1px solid var(--color-border); }
body .jimei-hdr-header .jimei-hdr-mobile-logo img { width: min(230px,65vw); }
body .jimei-hdr-header .jimei-hdr-hot-search { border-radius: 3px; box-shadow: var(--shadow-md); }
body .jimei-hdr-header .jimei-hdr-hot-search-title { font-family: var(--font-heading); font-weight: 400; }
body .jimei-hdr-header .jimei-hdr-hot-search li > a { border-radius: 3px; }
body .jimei-hdr-panel a { font-weight: 400; }

/* Store-owned buttons only; no generic button selector or payment iframe rules. */
body .button, body .cart .checkout-types .button, body .product-view .add-to-cart-buttons .button {
 background: var(--color-button-primary); color: var(--color-button-primary-text); border: 1px solid var(--color-button-primary);
 border-radius: var(--radius-button); min-height: 50px; padding: 12px 24px; line-height: 24px;
 font-family: var(--font-button); font-size: 14px; font-weight: 500; letter-spacing: .5px; text-transform: none;
 box-shadow: none; transition: background-color var(--transition-normal),border-color var(--transition-normal),color var(--transition-normal);
}
body .button:hover, body .cart .checkout-types .button:hover, body .product-view .add-to-cart-buttons .button:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); color: #fff; }
body .button:active, body .product-view .add-to-cart-buttons .button:active { background: var(--color-primary-active); border-color: var(--color-primary-active); }
body .button span, body .button span span { background: transparent; color: inherit; }
body .button2, body .button.btn-continue, body .button.btn-update, body .button.btn-empty { background: #fff; border: 1px solid var(--color-primary); color: var(--color-primary); border-radius: 3px; }
body .button2:hover, body .button.btn-continue:hover, body .button.btn-update:hover, body .button.btn-empty:hover { background: var(--color-bg-soft); color: var(--color-primary); }
body .button:disabled, body .button.disabled { background: var(--color-bg-disabled); color: var(--color-text-disabled); border-color: var(--color-border-disabled); cursor: not-allowed; }

/* Forms, account, search and validation */
body input.input-text, body textarea, body select, body .form-list input.input-text {
 background-color: var(--color-input-bg); color: var(--color-input-text); border: 1px solid var(--color-input-border);
 border-radius: var(--radius-input); min-height: 46px; padding: 10px 12px; font-family: var(--font-body); font-size: 16px; line-height: 24px; max-width: 100%;
}
body input.input-text:hover, body textarea:hover, body select:hover { border-color: var(--color-input-hover-border); }
body input.input-text:focus, body textarea:focus, body select:focus { border-color: var(--color-input-focus-border); }
body input::placeholder, body textarea::placeholder { color: var(--color-input-placeholder); opacity: 1; }
body input[type=checkbox], body input[type=radio] { accent-color: var(--color-primary); }
body input:disabled, body select:disabled, body textarea:disabled { background-color: var(--color-input-disabled); color: var(--color-text-disabled); }
body .form-list label, body label { color: var(--color-input-label); }
body .validation-advice, body .required em, body p.required { color: var(--color-error); }
body input.validation-failed, body select.validation-failed, body textarea.validation-failed { border-color: var(--color-error); background-color: var(--color-error-bg); }
body .messages .success-msg { background-color: var(--color-success-bg); border-color: var(--color-success); color: var(--color-success); }
body .messages .error-msg { background-color: var(--color-error-bg); border-color: var(--color-error); color: var(--color-error); }
body .messages .notice-msg { background-color: var(--color-bg-soft); border-color: var(--color-primary); color: var(--color-primary); }
body .messages .warning-msg { background-color: var(--color-warning-bg); border-color: var(--color-warning); color: var(--color-warning); }
body .block-account .block-content, body .cart .totals, body .cart .discount, body .cart .shipping { background: var(--color-bg-soft); border-color: var(--color-border); }
body .block-account .block-content li.current { background: var(--color-bg-section); border-left: 2px solid var(--color-primary); padding-left: 12px; color: var(--color-primary); }
body .fieldset, body .buttons-set, body .account-login .content, body .box-account, body .data-table td, body .data-table th { border-color: var(--color-border); }
body .data-table th { background: var(--color-bg-soft); color: var(--color-heading); font-family: var(--font-body); }
body .data-table td { color: var(--color-text); }
body .account-login h2, body .fieldset h2, body .block-title strong { color: var(--color-heading); font-weight: 500; }

/* Existing homepage modules and real product photography */
body.cms-index-index .home-title, body .category-products .home-title { color: var(--color-heading); font-family: var(--font-heading); font-weight: 400; font-size: 34px; line-height: 1.25; padding: 0 0 28px; }
body .home-title span { width: auto; height: auto; background: transparent; color: var(--color-heading); font-family: var(--font-heading); font-size: inherit; line-height: inherit; }
body .home-content .home-content { padding: 48px 0; }
body .home-content .home-cat { background: var(--color-bg-soft); }
body .home-content .home-content .home-block { max-width: 1440px; margin: auto; padding: 0 48px; }
body .home-recmmond { margin: 0; padding: 0; }
body.cms-index-index .home-content .home-cat { padding-bottom: 12px; }
body.cms-index-index .home-content .home-content:has(> .home-block > .home-recmmond > .products-grid) { padding-block: 12px; }
body.cms-index-index .home-title:has(+ .home-recmmond > .products-grid) { padding-bottom: 0; margin-bottom: 10px; }
body.cms-index-index .home-content .home-content:has(> .home-block > .home-recmmond > .products-grid) + .home-content { padding-top: 12px; }
body .home-cat ul { display: flex; flex-wrap: wrap; gap: 24px; width: 100%; }
body .home-cat ul li { float: none; flex: 1 1 240px; min-width: 0; padding: 0; }
body .home-cat ul li img { display: block; width: 100%; height: auto; }
body .home-scoial { background: var(--color-bg-soft); }
body .swiper-pagination-bullet { background: var(--color-accent); opacity: 1; }
body .swiper-pagination-bullet-active { background: var(--color-primary); }

/* Product grids: two / three / four columns, unchanged data and URLs. */
body .category-products .products-grid, body .home-recmmond .products-grid {
 display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px 24px; margin: 0; padding: 0; list-style: none;
}
body .category-products .products-grid::after, body .category-products .products-grid::before, body .home-recmmond .products-grid::after, body .home-recmmond .products-grid::before { display: none; }
body .category-products .products-grid > li.item, body .home-recmmond .products-grid > li.item { float: none; clear: none; width: auto; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; text-align: left; }
body .products-grid .product-image { border: 0; background: var(--color-bg-product); border-radius: 0; overflow: hidden; }
body .products-grid .product-name, body .products-grid .product-name a { font-family: var(--font-product); font-size: 14px; font-weight: 400; line-height: 1.4; text-transform: none; color: var(--color-product-title); }
body .products-grid .product-name { margin: 12px 0 6px; }
body .products-grid .product-name a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body .products-grid .product-name a:hover { color: var(--color-primary); }
body .products-grid .product-info { padding: 0; }
body .price-box .price { color: var(--color-product-price); font-family: var(--font-product); font-size: 16px; font-weight: 600; }
body .price-box .special-price .price, body .price-box .special-price .price-label { color: var(--color-sale); }
body .price-box .old-price .price, body .price-box .old-price .price-label { color: var(--color-product-old-price); font-size: 13px; font-weight: 400; }
body .price-box .old-price .price { text-decoration: line-through; }
body .icon_discount.DiscountBgColor { background: var(--color-sale); color: #fff; font-size: 12px; font-weight: 500; border-radius: 2px; }
body .DiscountBorderColor { border-top-color: var(--color-sale); }
/* The homepage and category cards use the catalog photo's own proportions. */
body .category-products .products-grid > li.item { position: relative; }
body .category-products .products-grid .product-image,
body .home-recmmond .products-grid .product-image { display: block; margin-bottom: 0; }
body .category-products .products-grid .product-image img,
body .home-recmmond .products-grid .product-image img {
 display: block; width: 100%; height: auto; aspect-ratio: auto 1 / 1;
}
/* The legacy grid script gives these text-only cards an inline minimum height. */
body .category-products .products-grid .product-info:not(:has(.actions)) { min-height: 0 !important; }
body .category-products .products-grid .product-name,
body .home-recmmond .products-grid .product-name { height: 2.8em; margin: 6px 0 2px; }
body .category-products .products-grid .product-info > .price-box:last-child,
body .home-recmmond .products-grid .item-text > .price-box:last-child { margin: 0; }
body .category-products .products-grid .icon_discount,
body .category-products .products-grid .icon_discount_foot {
 right: 8px; pointer-events: none; z-index: 1;
}
body .category-products .products-grid .icon_discount {
 top: 8px; width: 44px; height: 30px; box-sizing: border-box;
 padding: 3px 0 0; line-height: 13px; text-align: center; font-style: normal;
 border-radius: 2px 2px 0 0;
}
body .category-products .products-grid .icon_discount b { font-size: 14px; }
body .category-products .products-grid .icon_discount_foot { top: 38px; border-top-width: 5px; }
body .toolbar { background: var(--color-bg); border-color: var(--color-border); padding: 16px 0; color: var(--color-text-secondary); }
body .toolbar a { color: var(--color-primary); }
body .toolbar .sort-by a.active, body .pager .pages .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
body .pager .pages a { min-width: 36px; min-height: 36px; line-height: 34px; border-color: var(--color-border); }
body .pager .pages a:hover { background: var(--color-bg-soft); }
body .block-layered-nav .block-title, body .block-layered-nav .block-content > dl > dt { background: var(--color-bg-soft); color: var(--color-heading); border-color: var(--color-border); }


/* Category sorting and pagination, shared by the upper and lower toolbars. */
.catalog-category-view .toolbar .sort-by {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
}
.catalog-category-view .toolbar .sort-by ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}
.catalog-category-view .toolbar .sort-by li > a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin: 0;
    padding: 4px 8px;
    border-radius: 3px;
    color: var(--color-primary);
    line-height: 1.25;
    white-space: nowrap;
    text-decoration: none;
}
.catalog-category-view .toolbar .sort-by li > a:hover,
.catalog-category-view .toolbar .sort-by li > a:focus-visible {
    color: var(--color-primary-hover);
    background: var(--color-bg-hover);
}
.catalog-category-view .toolbar .sort-by li.active > a {
    color: var(--color-primary);
    background: var(--color-bg-active);
    box-shadow: inset 0 -2px var(--color-primary);
    font-weight: 600;
}
/* The base theme assigns an important color to the selected price link. */
.catalog-category-view .toolbar .sort-by li.active > a.SPrice {
    color: var(--color-primary) !important;
}
.catalog-category-view .toolbar .pager .pages ol {
    display: flex;
    align-items: center;
    gap: 4px;
}
.catalog-category-view .toolbar .pager .pages ol > li {
    float: none;
    margin: 0;
    padding: 0;
}
.catalog-category-view .toolbar .pager .pages li > a,
.catalog-category-view .toolbar .pager .pages li.current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    vertical-align: middle;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    background: var(--color-bg);
    color: var(--color-primary);
    font: inherit;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
}
.catalog-category-view .toolbar .pager .pages li.current {
    color: var(--color-text-inverse);
    background: var(--color-primary);
    border-color: var(--color-primary);
    font-weight: 600;
}
.catalog-category-view .toolbar .pager .pages a:hover,
.catalog-category-view .toolbar .pager .pages a:focus-visible {
    color: var(--color-primary-hover);
    background: var(--color-bg-hover);
    border-color: var(--color-primary);
}
.catalog-category-view .toolbar .pages .next::before {
    border-left-color: currentColor;
}
.catalog-category-view .toolbar .pages .previous::before {
    border-right-color: currentColor;
}
.catalog-category-view .toolbar .sort-by a:focus-visible,
.catalog-category-view .toolbar .pages a:focus-visible {
    outline: 2px solid var(--color-border-focus);
    outline-offset: -3px;
}

/* Product details: preserve swatch colors, image switching and purchase logic. */
body .product-view .product-shop .product-name .h1, body .product-view .product-shop .product-name h1 { font-family: var(--font-heading); font-size: 28px; font-weight: 400; line-height: 1.25; color: var(--color-heading); text-transform: none; }
body .product-view .product-shop .price-box .price { font-size: 26px; }
body .product-view .product-shop .price-box .old-price .price { font-size: 16px; }
body .product-view .product-img-box .product-image { border-color: var(--color-border); background: var(--color-bg-product); }
body .product-view .product-image-thumbs a { border-color: var(--color-border); }
body .product-view .product-image-thumbs a:hover { border-color: var(--color-primary); }
body .product-view .product-options, body .product-view .product-options-bottom, body .product-view .add-to-cart { border-color: var(--color-border); background: var(--color-bg); }
body .product-options dt label { color: var(--color-heading); font-weight: 500; font-size: 15px; }
body .product-options .select_size .options-list label { min-width: 46px; min-height: 44px; border: 1px solid var(--color-border-input); border-radius: 3px; background: #fff; color: var(--color-heading); font-weight: 400; }
body .product-options .select_size .options-list label i { font-style: normal; }
body .product-options .options-list input:checked + .label label, body .product-options .options-list li.selected label { border-color: var(--color-primary); outline: 2px solid var(--color-primary); outline-offset: 2px; font-weight: 600; }
body .product-options .select_size .options-list input:checked + .label label { background: var(--color-bg-soft); color: var(--color-primary); }
body .product-options .options-list input:focus-visible + .label label { outline: 2px solid var(--color-primary); outline-offset: 3px; }
body .product-options .select_color .options-list label { border-color: var(--color-accent); }
body .product-view .add-to-cart .qty-wrapper .qty { border: 1px solid var(--color-border-input); min-height: 44px; height: 44px; padding: 8px; color: var(--color-heading); }
body .stepper-btn-up, body .stepper-btn-dwn { min-height: 44px; min-width: 44px; color: var(--color-primary); background: var(--color-bg); border-color: var(--color-border-input); }
body .product-collateral .toggle-tabs { border-color: var(--color-border); background: var(--color-bg); }
body .product-collateral .toggle-tabs > li > span { color: var(--color-text-secondary); font-weight: 500; }
body .product-collateral .toggle-tabs > li.current > span { color: var(--color-primary); background: var(--color-bg-soft); border-bottom: 2px solid var(--color-primary); }
body .product-collateral > dl > dt, body .product-collateral .collateral-tabs > dt { color: var(--color-heading); border-color: var(--color-border); }
body .product-collateral > dl > dd { border-color: var(--color-border); }
body .jimei-product-wishlist__link { background: var(--color-bg); color: var(--color-primary); border: 1px solid var(--color-primary); box-shadow: none; min-height: 44px; border-radius: 3px; }
body .jimei-product-wishlist__mark { color: inherit; }
body .jimei-product-wishlist__link:hover { background: var(--color-bg-soft); color: var(--color-primary); box-shadow: none; transform: none; }
body .ratings .rating-links, body .rating-links a { color: var(--color-text-secondary); }
body .availability.in-stock { color: var(--color-success); }
body .availability.out-of-stock { color: var(--color-error); }

/* Cart and checkout surfaces. PayPal/Apple Pay/card brand selectors are excluded. */
body .header-minicart .minicart-wrapper, body .header-minicart .block-subtitle, body #header-cart { background: var(--color-bg); color: var(--color-heading); border-color: var(--color-border); }
body .header-minicart .info-wrapper .price, body .header-minicart .subtotal .price { color: var(--color-heading); }
body .header-minicart .subtotal { background: var(--color-bg-soft); }
body .cart .cart-totals-wrapper, body .cart .totals { background: var(--color-bg-soft); }
body .cart .cart-table .product-name a { color: var(--color-heading); font-family: var(--font-product); }
body .jimei-osc { color: var(--color-text); font-family: var(--font-body); }
body .jimei-osc h1, body .jimei-osc h2 { color: var(--color-heading); font-weight: 400; font-family: var(--font-heading); }
body .jimei-osc h1 { font-size: 30px; }
body .jimei-osc h2 { font-size: 22px; }
body .jimei-osc__section { border-color: var(--color-border); border-radius: 3px; box-shadow: none; }
body .jimei-osc__summary .jimei-osc__section { background: var(--color-bg-soft); }
body .jimei-osc__account-link { color: var(--color-primary); text-decoration: underline; font-weight: 500; }
body .jimei-osc label span { color: var(--color-text); }
body .jimei-osc input:not([type=radio]):not([type=checkbox]), body .jimei-osc select, body .jimei-osc textarea { border-color: var(--color-input-border); color: var(--color-heading); background-color: var(--color-bg); border-radius: 3px; min-height: 46px; font-size: 16px; }
body .jimei-osc input:focus, body .jimei-osc select:focus, body .jimei-osc textarea:focus { border-color: var(--color-primary); }
body .jimei-osc input::placeholder { color: var(--color-text-secondary); }

/* Footer: official social/payment graphics retain their original fills. */
body .footer-container { background: var(--color-footer-bg); color: var(--color-footer-text); padding-top: 0; margin-top: 20px; }
body .footer-container .connect-footer { background: var(--color-footer-bg); color: var(--color-footer-text); border-bottom: 1px solid var(--color-footer-border); height: auto; min-height: 0; line-height: 1.6; padding: 6px 24px; }
body .connect-footer .custom-footer { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; max-width: 1344px; }
body .connect-footer .custom-footer .social { display: flex; align-items: center; gap: 16px; float: none; width: auto; padding: 0; }
body .connect-footer .custom-footer .social .text { color: var(--color-footer-text); font-weight: 400; }
body .connect-footer .custom-footer .newsletter { float: none; padding: 0; }
body .connect-footer .social .soc { display: flex; margin: 0; }
body .footer-container .footer { display: flow-root; max-width: 1440px; padding: 18px 48px; border: 0; color: var(--color-footer-text); }
body .footer-container .footer .block-title, body .footer-container .footer .block-title strong, body .footer-container .footer h3 { color: var(--color-footer-heading); font-family: var(--font-body); font-size: 14px; font-weight: 500; letter-spacing: .5px; }
body .footer-container .footer a, body .footer-container .footer li, body .footer-container .footer p { color: var(--color-footer-text); font-size: 13px; line-height: 1.45; }
body .footer-container .footer a:hover { color: var(--color-footer-link-hover); text-decoration: underline; }
body .footer-container .footer .links { margin-bottom: 0; }
body .footer-container .footer .links .block-title { margin: 0 0 4px; padding: 0; }
body .footer-container .footer .links li { padding: 3px 0; margin: 0; }
body .footer-container .footer-address { background: var(--color-footer-bottom-bg); border-color: var(--color-footer-border); padding: 10px 16px; }
body .footer-container .footer-address img { display: block; margin: 6px auto 0; }
body .footer-container .footer-address address { color: var(--color-footer-text); font-size: 12px; }
body .footer-container label, body .footer-container .currency-switcher { color: var(--color-footer-text); }
body .footer-container select { background-color: var(--color-footer-bg); color: var(--color-footer-text); border-color: var(--color-accent); min-height: 44px; }
body .footer-container :focus-visible { outline-color: var(--color-footer-text); }
body #back-top { background: var(--color-primary); color: #fff; border: 1px solid var(--color-accent); border-radius: 3px; width: 44px; height: 44px; line-height: 42px; box-shadow: var(--shadow-sm); }
body #back-top:hover { background: var(--color-primary-hover); }

@media (max-width:1024px) {
 body .main-container { padding: 24px; }
 body .home-content .home-content .home-block { padding: 0 24px; }
 body .category-products .products-grid, body .home-recmmond .products-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px 16px; }
 body .footer-container .footer { padding: 16px 24px; }
}
@media (max-width:767px) {
 body .main-container { padding: 20px 16px 36px; }
 body .home-content .home-content { padding: 36px 0; }
 body .home-content .home-content .home-block { padding: 0 16px; }
 body.cms-index-index .home-title, body .category-products .home-title { font-size: 26px; padding-bottom: 20px; }
 body .category-products .products-grid, body .home-recmmond .products-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 12px; }
 body .products-grid .product-name, body .products-grid .product-name a { font-size: 13px; }
 body .products-grid .price-box .price { font-size: 15px; }
 body .products-grid .price-box .old-price .price { font-size: 12px; }
 body .home-cat ul { gap: 16px; }
 body .product-view .product-shop .product-name .h1, body .product-view .product-shop .product-name h1 { font-size: 24px; }
 body .product-view .product-shop .price-box .price { font-size: 24px; }
 body .product-view .add-to-cart-buttons { margin-right: 0; }
 body .footer-container { margin-top: 16px; }
 body .footer-container .footer { padding: 14px 16px; }
 body .footer-container .footer .links li { padding: 0; }
 body .footer-container .footer .links li a { display: inline-block; min-height: 28px; padding: 4px 0; }
 body .footer-container .footer .links { overflow-wrap: anywhere; }
 body .connect-footer .custom-footer { justify-content: center; gap: 4px 16px; }
 body .connect-footer .custom-footer .social .text { display: none; }
 body .jimei-osc h1 { font-size: 26px; }
 body .jimei-osc h2 { font-size: 21px; }
 body .toolbar .sorter { float: none; max-width: 100%; }
 body .toolbar .sort-by { display: flex; flex-wrap: wrap; gap: 8px; }
}
@media (max-width:359px) {
 body .jimei-hdr-header .jimei-hdr-mobile-bar { padding-inline: 8px; gap: 2px; }
 body .jimei-hdr-header .jimei-hdr-search input { padding-inline: 8px; font-size: 16px; }
 body .jimei-product-actions, body .jimei-product-share__links { gap: 6px; }
}
@media (prefers-reduced-motion:reduce) {
 body .button, body .jimei-product-wishlist__link, body .jimei-hdr-header *, body .jimei-hdr-panel * { animation-duration: .01ms; transition-duration: .01ms; }
}
/* Specific state overrides for legacy rules and inline checkout brand color. */
body .jimei-hdr-header .jimei-hdr-bag-link .jimei-hdr-count { background: var(--color-primary); color: #fff; border-color: #fff; }
body .product-options .options-list label.active { border-color: var(--color-primary); color: var(--color-primary); outline: 2px solid var(--color-primary); outline-offset: 2px; font-weight: 600; }
body .product-options .options-list label.active::after { background: none; content: '\2713'; width: 14px; height: 14px; line-height: 14px; font-size: 11px; background-color: var(--color-primary); color: #fff; }
body .product-options .select_size .options-list label { line-height: 42px; }
body .product-options .custom-input { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
body .product-options .select_color .custom_radio .label i { display: inline; position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body .jimei-osc__method-option { border-color: var(--color-border); border-radius: 3px; }
body .jimei-osc .jimei-osc__payment-option.is-selected { background: var(--color-bg-selected); border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary); }
body .jimei-osc__method-title, body .jimei-osc__method-price, body .jimei-osc__item-name, body .jimei-osc__item-total { color: var(--color-heading); }
body .jimei-osc__method-desc, body .jimei-osc__item-meta, body .jimei-osc__item-options, body .jimei-osc__processing, body .jimei-osc__card-note { color: var(--color-text-secondary); }
body .jimei-osc__items, body .jimei-osc__totals div:last-child { border-color: var(--color-border); }
body .jimei-osc__item-image { object-fit: contain; border-color: var(--color-border); border-radius: 0; background: var(--color-bg-product); }
body .jimei-osc input:focus, body .jimei-osc select:focus, body .jimei-osc textarea:focus { box-shadow: 0 0 0 1px var(--color-primary); outline: 2px solid var(--color-primary); outline-offset: 2px; }
body .jimei-osc .jimei-osc__field.has-error input, body .jimei-osc .jimei-osc__field.has-error select { border-color: var(--color-error); background: var(--color-error-bg); }
body .jimei-osc__field-error { color: var(--color-error); }
body .jimei-osc__messages.is-error { background: var(--color-error-bg); color: var(--color-error); border-color: var(--color-error); }
body .jimei-osc__messages.is-success { background: var(--color-success-bg); color: var(--color-success); border-color: var(--color-success); }
/* The existing template sets background inline. These three declarations only override that store-owned submit button. */
body #jimei-osc-submit { background: var(--color-primary) !important; color: #fff; border-radius: 3px; min-height: 50px; font-size: 14px; font-weight: 500; letter-spacing: .5px; }
body #jimei-osc-submit:hover { background: var(--color-primary-hover) !important; }
body #jimei-osc-submit:active { background: var(--color-primary-active) !important; }
/* Cloud Zoom leaves an inline desktop-sized hit area after viewport rotation. */
body .product-image-zoom .mousetrap { max-width: 100%; max-height: 100%; }
body .product-view .add-to-cart-buttons { width: 100%; }
body .product-view .add-to-cart-buttons .button { width: 100%; min-width: 0; max-width: none; float: none; }
/* Match the product express column, including its full-width mobile layout. */
body .product-view .add-to-cart-buttons:has(> .jimei-express--product) { max-width: 330px; }
body .product-view .add-to-cart-buttons:has(> .jimei-express--product) > .btn-cart {
 box-sizing: border-box; width: 100% !important;
}
@media (max-width:640px) {
 body .product-view .add-to-cart-buttons:has(> .jimei-express--product) { max-width: 100%; }
}
/* Keep the existing percentage rating width; replace only the legacy pink sprite. */
body .ratings .rating-box { background: none; position: relative; color: var(--color-product-rating-empty); text-indent: 0; }
body .ratings .rating-box .rating { background: none; position: relative; z-index: 1; color: var(--color-product-rating); text-indent: 0; overflow: hidden; }
body .ratings .rating-box::before, body .ratings .rating-box .rating::before { content: '\2605\2605\2605\2605\2605'; position: absolute; left: 0; top: 0; width: 65px; font: 13px/13px Arial,sans-serif; letter-spacing: 0; white-space: nowrap; }
/* Fixed-width third-party social widgets stay operable within their own scroll area. */
body .home-scoial .home-recmmond > div { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }

/* Jimei's lazy-loaded mini cart uses its own action links. */
body .jimei-hdr-panel .jimei-hdr-cart-actions a { background: var(--color-bg); color: var(--color-primary); border: 1px solid var(--color-primary); border-radius: 3px; min-height: 50px; font-size: 14px; font-weight: 500; letter-spacing: .5px; }
body .jimei-hdr-panel .jimei-hdr-cart-actions a[href*="/onestepcheckout/"] { background: var(--color-primary); color: #fff; }
body .jimei-hdr-panel .jimei-hdr-cart-actions a:hover { background: var(--color-bg-soft); box-shadow: none; }
body .jimei-hdr-panel .jimei-hdr-cart-actions a[href*="/onestepcheckout/"]:hover { background: var(--color-primary-hover); }

/* Legacy footer rules set colors on nested spans and monochrome inline SVG paths. */
body .footer-container .footer .block-title span { color: var(--color-footer-heading); font-family: var(--font-body); font-size: 14px; font-weight: 500; letter-spacing: .5px; }
body .footer-container .footer .links li { white-space: normal; overflow-wrap: anywhere; }
body .footer-container .connect-footer .soc a { color: var(--color-footer-text); }
body .footer-container .connect-footer .soc a:hover { color: var(--color-footer-link-hover); }
body .footer-container .connect-footer .soc svg, body .footer-container .connect-footer .soc svg path { fill: currentColor; }
