/*
 * Aswaf frontend: 08-theme-alignment.css
 * Responsibility: site color alignment, cart hierarchy refresh, product page, storewide page, my-items, and overflow fixes.
 * This file was split from assets/css/frontend.css; keep import order in frontend.css.
 */

/* Site color alignment: group orders, cart, and checkout */
:root {
  --asw-surface-primary: color-mix(in srgb, var(--asw-primary) 4%, #fff);
  --asw-surface-primary-2: color-mix(in srgb, var(--asw-primary) 8%, #fff);
  --asw-surface-secondary: color-mix(in srgb, var(--asw-gold) 12%, #fff);
  --asw-surface-accent: color-mix(in srgb, var(--asw-green) 11%, #fff);
  --asw-surface-info: color-mix(in srgb, var(--asw-blue) 10%, #fff);
  --asw-border-primary: color-mix(in srgb, var(--asw-primary) 18%, transparent);
  --asw-border-secondary: color-mix(in srgb, var(--asw-gold) 22%, transparent);
  --asw-border-accent: color-mix(in srgb, var(--asw-green) 20%, transparent);
}

body .asw-gp.asw-page,
body.woocommerce-cart,
body.woocommerce-checkout {
  background: linear-gradient(
    180deg,
    var(--asw-surface-primary) 0%,
    #fff 32%,
    #fff 100%
  );
}

body .asw-gp .asw-card,
body .asw-gp .asw-hero,
body .asw-gp .asw-ticker,
body .asw-gp .asw-cta-card,
body .asw-jv-card,
body .asw-share-card-pro,
body .asw-next-price-step,
body .asw-co-summary-card,
body .asw-checkout-breakdown,
body .asw-mini-carts,
body .asw-cart-summary,
body .asw-cart-summary-card,
body .asw-cc-group-card,
body .asw-cc-normal-card,
body .asw-cc-empty-shell {
  border-color: var(--asw-border-primary) !important;
  box-shadow: 0 16px 40px color-mix(in srgb, var(--asw-primary) 8%, transparent) !important;
}

body .asw-gp .asw-hero,
body .asw-jv-card,
body .asw-co-summary-card,
body .asw-cart-summary-card,
body .asw-cc-group-card,
body .asw-cc-normal-card,
body .asw-cc-empty-shell {
  background: linear-gradient(
    180deg,
    #fff 0%,
    var(--asw-surface-primary) 100%
  ) !important;
}

body .asw-page a,
body .asw-prod-link:hover,
body .asw-back-link:hover,
body .asw-mc-title:hover,
body .asw-cc-line-name:hover,
body .asw-arc-card-title a:hover,
body .asw-arc-card-product a:hover {
  color: var(--asw-primary);
}

body .asw-badge-gold,
body .asw-timer-badge,
body .asw-cta-deposit,
body .asw-co-price-highlight,
body .asw-co-stage-dep,
body .asw-ct-dep,
body .asw-tag-deposit,
body .asw-cn-pending,
body .asw-cn-warn,
body .asw-mc-open,
body .asw-sh-progress-card,
body .asw-cart-badge,
body .asw-part-qty,
body .asw-cs-hint {
  background: var(--asw-surface-primary) !important;
  border-color: var(--asw-border-primary) !important;
  color: var(--asw-primary-dk) !important;
}

body .asw-cta-deposit-amt,
body .asw-co-stage-dep .asw-co-stage-amt,
body .asw-pp-dep,
body .asw-mc-dep,
body .asw-sh-pc-label,
body .asw-sh-bar-labels,
body .asw-gw-c-price-gold,
body .asw-cb-amt-val.asw-gold-txt,
body .asw-cc-gold,
body .asw-cart-summary-total strong,
body .asw-cc-tot-main strong,
body .asw-cs-row.asw-cs-now strong {
  color: var(--asw-primary) !important;
}

body .asw-badge-open,
body .asw-already-ok,
body .asw-cn-ready,
body .asw-cn-info,
body .asw-tag-neighbor,
body .asw-mc-paid,
body .asw-msg-ok,
body .asw-cart-summary-row.is-success strong,
body .asw-cart-summary-row.is-success span {
  background: var(--asw-surface-accent) !important;
  border-color: var(--asw-border-accent) !important;
  color: var(--asw-green-dk) !important;
}

body .asw-tag-remainder,
body .asw-cn-neighbor,
body .asw-co-stage-rem,
body .asw-ct-rem,
body .asw-msg-info {
  background: var(--asw-surface-info) !important;
  border-color: color-mix(in srgb, var(--asw-blue) 20%, transparent) !important;
  color: var(--asw-blue) !important;
}

body .asw-progress-bar,
body .asw-forecast-progress,
body .asw-jv-prog-bar,
body .asw-sh-bar,
body .asw-cc-progress span {
  background: linear-gradient(
    90deg,
    var(--asw-primary),
    var(--asw-green)
  ) !important;
}

body .asw-progress-green {
  background: linear-gradient(
    90deg,
    var(--asw-green),
    var(--asw-primary)
  ) !important;
}

body .asw-btn-primary,
body .asw-btn-join,
body .asw-btn-checkout,
body .asw-btn-add:hover,
body .asw-btn-add.added,
body .asw-mc-pay-btn,
body .asw-sh-copy-btn,
body .asw-scp-copy,
body .asw-arc-cta-join,
body .asw-arc-empty-btn,
body .asw-cart-coupon-form .asw-btn,
body .asw-cart-summary-actions .asw-btn,
body .asw-cc-group-actions .asw-btn,
body .woocommerce .checkout-button,
body .woocommerce button#place_order,
body .woocommerce-checkout-payment button[type="submit"] {
  background: var(--asw-primary) !important;
  border-color: var(--asw-primary) !important;
  color: var(--asw-text-inv) !important;
  box-shadow: 0 10px 24px var(--asw-primary-shadow) !important;
}

body .asw-btn-primary:hover,
body .asw-btn-join:hover,
body .asw-btn-checkout:hover,
body .asw-mc-pay-btn:hover,
body .asw-sh-copy-btn:hover,
body .asw-scp-copy:hover,
body .asw-arc-cta-join:hover,
body .asw-arc-empty-btn:hover,
body .woocommerce .checkout-button:hover,
body .woocommerce button#place_order:hover {
  background: var(--asw-primary-dk) !important;
  border-color: var(--asw-primary-dk) !important;
  color: var(--asw-text-inv) !important;
}

body .asw-btn-outline:hover,
body .asw-btn-ghost,
body .asw-btn-copy:hover,
body .asw-btn-share:hover,
body .asw-arc-cta-view:hover,
body .asw-gw-acc-copy:hover,
body .asw-gw-acc-copy--done {
  border-color: var(--asw-primary) !important;
  color: var(--asw-primary) !important;
  background: var(--asw-surface-primary) !important;
}

body .asw-input:focus,
body .asw-select:focus,
body .asw-textarea:focus,
body .asw-scp-inp:focus,
body .asw-cart-coupon-input:focus,
body .woocommerce input:focus,
body .woocommerce select:focus,
body .woocommerce textarea:focus {
  border-color: var(--asw-primary) !important;
  box-shadow: 0 0 0 3px var(--asw-primary-shadow) !important;
  outline: none !important;
}

/* Group order page */
body .asw-gp .asw-ticker,
body .asw-price-preview,
body .asw-gw-summary,
body .asw-cart-tots,
body .asw-cart-summary-rows {
  background: var(--asw-surface-primary) !important;
  border-color: var(--asw-border-primary) !important;
}

body .asw-ticker-price,
body .asw-cta-current,
body .asw-jv-prog-cur,
body .asw-next-price-step.asw-current .asw-next-price-val,
body .asw-next-price-final-note strong {
  color: var(--asw-primary) !important;
}

body .asw-ticker-change.down,
body .asw-ticker-change.down span,
body .asw-ticker-next,
body .asw-green,
body .asw-green-bold,
body .asw-green-txt,
body .asw-forecast-to .asw-forecast-price,
body .asw-tier-saving,
body .asw-max-saving-callout,
body .asw-arc-lowest-price,
body .asw-arc-next-hint {
  color: var(--asw-green-dk) !important;
}

body .asw-forecast-bar,
body .asw-cta-next-hint,
body .asw-max-saving-callout,
body .asw-scp-hint {
  background: var(--asw-surface-accent) !important;
  border-color: var(--asw-border-accent) !important;
}

body .asw-tier-row.active,
body .asw-next-price-step.asw-current {
  background: var(--asw-surface-primary) !important;
  border-color: var(--asw-primary) !important;
  box-shadow: 0 12px 28px var(--asw-primary-shadow) !important;
}

body .asw-tier-row.active .asw-tier-ico,
body .asw-tier-row.active .asw-tier-arrow,
body .asw-tier-row.active .asw-tier-price {
  color: var(--asw-primary) !important;
}

body .asw-tier-row.active .asw-tier-disc-badge,
body .asw-callout-disc,
body .asw-jv-tier.cur .asw-jv-tier-disc,
body .asw-next-price-badge {
  background: var(--asw-primary) !important;
  color: var(--asw-text-inv) !important;
}

body .asw-jv-banner {
  border: 1px solid var(--asw-border-primary) !important;
  background: var(--asw-surface-primary) !important;
  box-shadow: 0 18px 42px color-mix(in srgb, var(--asw-primary) 9%, transparent) !important;
}

body .asw-jv-banner-paid {
  border-color: var(--asw-border-accent) !important;
  background: var(--asw-surface-accent) !important;
}

body .asw-jv-banner-pending,
body .asw-jv-pay-row.action {
  border-color: var(--asw-border-primary) !important;
  background: var(--asw-surface-primary) !important;
}

body .asw-jv-badge-gold,
body .asw-jv-badge-blue,
body .asw-jv-pay-btn {
  background: var(--asw-primary) !important;
  color: var(--asw-text-inv) !important;
  border-color: var(--asw-primary) !important;
}

body .asw-jv-badge-green,
body .asw-jv-pay-row.done {
  background: var(--asw-surface-accent) !important;
  border-color: var(--asw-border-accent) !important;
  color: var(--asw-green-dk) !important;
}

body .asw-prod-desc {
  background: var(--asw-surface-primary) !important;
  border-right-color: var(--asw-primary) !important;
}

body .asw-gal-dot.active,
body .asw-gal-thumb.active {
  border-color: var(--asw-primary) !important;
  background: var(--asw-primary) !important;
}

/* Group order cards and archive */
body .asw-arc-hero {
  background: linear-gradient(
    135deg,
    #fff 0%,
    var(--asw-surface-primary) 58%,
    var(--asw-surface-primary-2) 100%
  ) !important;
  border-color: var(--asw-border-primary) !important;
  box-shadow: 0 20px 48px
    color-mix(in srgb, var(--asw-primary) 10%, transparent) !important;
}

body .asw-arc-hero::before {
  background: linear-gradient(
    180deg,
    var(--asw-surface-primary-2),
    transparent 70%
  ) !important;
}

body .asw-arc-hero-badge,
body .asw-cart-hero-kicker,
body .asw-cart-summary-kicker,
body .asw-cc-section-kicker,
body .asw-cc-empty-kicker,
body .asw-cart-layer-pill,
body .asw-cc-type-pill,
body .asw-cc-chip,
body .asw-badge-group {
  background: var(--asw-surface-primary) !important;
  border-color: var(--asw-border-primary) !important;
  color: var(--asw-primary) !important;
}

body .asw-arc-stat-val,
body .asw-arc-price-current,
body .asw-arc-deposit-row strong,
body .asw-arc-tab:hover,
body .asw-groups-slider-kicker,
body .asw-groups-slider-nav {
  color: var(--asw-primary) !important;
}

body .asw-arc-card:hover,
body .asw-arc-tab:hover,
body .asw-groups-slider-nav:hover {
  border-color: var(--asw-primary) !important;
}

body .asw-arc-card-joined,
body .asw-arc-card-joined:hover {
  border-color: var(--asw-green) !important;
}

body .asw-arc-badge-open,
body .asw-arc-badge-done,
body .asw-arc-joined-pill,
body .asw-arc-cta-joined {
  background: var(--asw-green) !important;
  color: #fff !important;
}

body .asw-arc-badge-locked,
body .asw-arc-badge-scheduled {
  background: var(--asw-primary) !important;
  color: var(--asw-text-inv) !important;
}

body .asw-arc-saving-ribbon {
  background: linear-gradient(
    135deg,
    var(--asw-primary),
    var(--asw-primary-dk)
  ) !important;
  color: var(--asw-text-inv) !important;
}

body .asw-arc-deposit-row {
  background: var(--asw-surface-primary) !important;
  border-color: var(--asw-border-primary) !important;
}

body .asw-arc-progress-fill,
body .asw-groups-slider-pagination .swiper-pagination-bullet-active {
  background: linear-gradient(
    90deg,
    var(--asw-primary),
    var(--asw-green)
  ) !important;
}

body .asw-arc-tab.active,
body .asw-groups-slider-nav:hover {
  background: var(--asw-primary) !important;
  color: var(--asw-text-inv) !important;
  box-shadow: 0 8px 20px var(--asw-primary-shadow) !important;
}

/* Cart page */
body .asw-cart-hero,
body .asw-cart-coupon-card,
body .asw-cart-guide-item {
  border-color: var(--asw-border-primary) !important;
  background: linear-gradient(
    180deg,
    #fff 0%,
    var(--asw-surface-primary) 100%
  ) !important;
  box-shadow: 0 18px 42px color-mix(in srgb, var(--asw-primary) 8%, transparent) !important;
}

body .asw-cart-guide-step,
body .asw-cc-group-badge,
body .asw-cc-status-pill.is-scheduled,
body .asw-cart-summary-total {
  background: var(--asw-primary) !important;
  color: var(--asw-text-inv) !important;
  border-color: var(--asw-primary) !important;
}

body .asw-cart-summary-total span,
body .asw-cart-summary-total strong {
  color: var(--asw-text-inv) !important;
}

body .asw-cart-layer-pill.is-store,
body .asw-cc-type-pill.is-store,
body .asw-cc-status-pill.is-open,
body .asw-cc-status-pill.is-completed,
body .asw-cc-chip.is-success,
body .asw-cart-coupon-badge,
body .asw-cart-coupon-chip {
  background: var(--asw-surface-accent) !important;
  border-color: var(--asw-border-accent) !important;
  color: var(--asw-green-dk) !important;
}

body .asw-cart-layer-pill.is-neighbor,
body .asw-cc-type-pill.is-neighbor,
body .asw-cc-chip.is-info,
body .asw-cart-summary-note {
  background: var(--asw-surface-info) !important;
  border-color: color-mix(in srgb, var(--asw-blue) 18%, transparent) !important;
  color: var(--asw-blue) !important;
}

body .asw-cart-layer-pill.is-bundle,
body .asw-cc-type-pill.is-bundle {
  background: var(--asw-surface-secondary) !important;
  color: var(--asw-gold-dk) !important;
}

body .asw-cc-progress,
body .asw-cc-qty-box,
body .asw-cart-summary-rows {
  background: var(--asw-surface-primary) !important;
  border-color: var(--asw-border-primary) !important;
}

body .asw-cc-line,
body .asw-cc-normal-card,
body .asw-cc-bundle-child,
body .asw-cc-side-stat,
body .asw-cc-side-stat.is-soft {
  background: #fff !important;
  border-color: var(--asw-border-primary) !important;
}

body .asw-cc-qty-btn,
body .asw-cc-qty-btn.is-soft {
  background: var(--asw-bg) !important;
  color: var(--asw-primary) !important;
  box-shadow: 0 6px 16px var(--asw-primary-shadow) !important;
}

body .asw-cart-coupon-input {
  border-color: var(--asw-border-primary) !important;
}

/* Checkout and payment */
body .asw-checkout-page,
body .woocommerce-checkout form.checkout {
  color: var(--asw-text);
}

body .asw-co-stage-rem .asw-co-stage-amt,
body .asw-pp-rem,
body .asw-cart-summary-note strong {
  color: var(--asw-blue) !important;
}

body .asw-co-final-price,
body .asw-cb-total-now strong,
body .asw-gw-sum-now strong {
  color: var(--asw-primary) !important;
}

body .asw-pm-opt.sel,
body .asw-pm-opt:has(input:checked),
body .asw-gw-c.sel {
  border-color: var(--asw-primary) !important;
  background: var(--asw-surface-primary) !important;
  box-shadow:
    0 0 0 3px var(--asw-primary-shadow),
    0 8px 22px color-mix(in srgb, var(--asw-primary) 10%, transparent) !important;
}

body .asw-pm-opt input[type="radio"],
body .asw-gw-c.sel .asw-gw-c-radio {
  accent-color: var(--asw-primary);
  border-color: var(--asw-primary) !important;
  background: var(--asw-primary) !important;
}

body .asw-gw-c:hover,
body .asw-gw-acc:hover {
  border-color: var(--asw-primary) !important;
  box-shadow: 0 8px 22px var(--asw-primary-shadow) !important;
}

body .asw-gw-block-num,
body .asw-gw-c-pill {
  background: var(--asw-primary) !important;
  color: var(--asw-text-inv) !important;
}

body .asw-checkout-breakdown,
body .asw-cb-header,
body .asw-cb-totals,
body .asw-gw-summary,
body .asw-cart-summary-hd {
  background: var(--asw-surface-primary) !important;
}

body .asw-cb-group,
body .asw-cb-row.asw-cb-group {
  background: var(--asw-surface-primary) !important;
  border-color: var(--asw-border-primary) !important;
}

body .asw-cb-neighbor,
body .asw-cb-row.asw-cb-neighbor {
  background: var(--asw-surface-accent) !important;
  border-color: var(--asw-border-accent) !important;
}

body .woocommerce-message,
body .woocommerce-info {
  border-top-color: var(--asw-primary) !important;
}

body .woocommerce-error {
  border-top-color: var(--asw-red) !important;
}

body .woocommerce-cart-form table.shop_table,
body .woocommerce-checkout-review-order-table,
body .woocommerce-checkout #customer_details,
body .woocommerce-checkout #order_review,
body .woocommerce-checkout #payment {
  border-color: var(--asw-border-primary) !important;
  border-radius: var(--asw-r3) !important;
}

body .woocommerce-checkout #customer_details h3,
body .woocommerce-checkout #order_review_heading {
  color: var(--asw-primary) !important;
  border-bottom-color: var(--asw-border-primary) !important;
}

body .woocommerce-checkout #payment,
body .woocommerce-checkout-review-order-table tfoot,
body .woocommerce-cart .cart_totals,
body .woocommerce-cart .cart-collaterals .cart_totals {
  background: var(--asw-surface-primary) !important;
}

/* Cart hierarchy refresh */
body .asw-custom-cart {
  --asw-cart-soft-border: color-mix(in srgb, var(--asw-text) 12%, transparent);
  --asw-cart-soft-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

body .asw-custom-cart .asw-cart-layout {
  grid-template-columns: minmax(0, 1fr) minmax(18.5rem, 0.42fr) !important;
  gap: 0.95rem !important;
  align-items: start !important;
}

body .asw-custom-cart .asw-cart-main {
  order: 0 !important;
  min-width: 0;
}

body .asw-custom-cart .asw-cart-summary-card {
  order: 1 !important;
  top: 1rem !important;
  gap: 0.85rem !important;
  padding: 1rem !important;
  border-radius: 8px !important;
  border: 1px solid var(--asw-cart-soft-border) !important;
  background: #fff !important;
  box-shadow: var(--asw-cart-soft-shadow) !important;
}

body .asw-custom-cart .asw-cart-hero {
  padding: 0.95rem 1rem !important;
  border-radius: 8px !important;
  border-color: var(--asw-cart-soft-border) !important;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06) !important;
}

body .asw-custom-cart .asw-cart-guide {
  display: none !important;
}

body .asw-custom-cart .asw-cc-section-head {
  align-items: center !important;
  padding: 0.75rem 0.85rem !important;
  border-radius: 8px !important;
  border: 1px solid var(--asw-border-primary) !important;
  background: #fff !important;
}

body .asw-custom-cart .asw-cc-section-title {
  margin: 0 !important;
  color: var(--asw-text) !important;
  font-size: 1.08rem !important;
  font-weight: 900 !important;
}

body .asw-custom-cart .asw-cc-section-summary {
  border-radius: 8px !important;
  background: var(--asw-surface-primary) !important;
  border-color: var(--asw-border-primary) !important;
  color: var(--asw-primary-dk) !important;
}

body .asw-custom-cart .asw-cc-group-card,
body .asw-custom-cart .asw-cc-normal-card {
  border-radius: 8px !important;
  border: 1px solid var(--asw-cart-soft-border) !important;
  background: #fff !important;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.05) !important;
}

body .asw-custom-cart .asw-cc-group-card {
  border-inline-start: 4px solid var(--asw-primary) !important;
}

body .asw-custom-cart .asw-cc-normal-card {
  border-inline-start: 4px solid var(--asw-green) !important;
}

body .asw-custom-cart .asw-cc-line,
body .asw-custom-cart .asw-cc-bundle-child,
body .asw-custom-cart .asw-cc-side-stat,
body .asw-custom-cart .asw-cc-qty-box,
body .asw-custom-cart .asw-cc-progress,
body .asw-custom-cart .asw-cc-group-media,
body .asw-custom-cart .asw-cc-line-media,
body .asw-custom-cart .asw-cc-normal-media {
  border-radius: 8px !important;
}

body .asw-custom-cart .asw-cart-summary-rows {
  gap: 0.55rem !important;
  padding: 0.65rem !important;
  border-radius: 8px !important;
  border: 1px solid var(--asw-border-primary) !important;
  background: color-mix(in srgb, var(--asw-primary) 4%, #f7f7f7) !important;
}

body .asw-custom-cart .asw-cart-summary-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  padding: 0.7rem 0.75rem !important;
  border-radius: 8px !important;
  border: 1px solid rgba(17, 24, 39, 0.08) !important;
  background: #fff !important;
}

body .asw-custom-cart .asw-cart-summary-row.is-success {
  background: var(--asw-surface-accent) !important;
  border-color: var(--asw-border-accent) !important;
}

body .asw-custom-cart .asw-cart-summary-row.is-muted {
  background: var(--asw-surface-info) !important;
  border-color: color-mix(in srgb, var(--asw-blue) 18%, transparent) !important;
}

body .asw-custom-cart .asw-cart-summary-total {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  padding: 0.9rem 0.95rem !important;
  border-radius: 8px !important;
  background: var(--asw-primary) !important;
  border-color: var(--asw-primary) !important;
}

body .asw-custom-cart .asw-cart-summary-total strong {
  font-size: 1.24rem !important;
}

body .asw-custom-cart .asw-cart-summary-card .asw-cart-coupon-card {
  margin: 0 !important;
  padding: 0.8rem !important;
  border-radius: 8px !important;
  border: 1px dashed var(--asw-border-accent) !important;
  background: var(--asw-surface-accent) !important;
  box-shadow: none !important;
}

body .asw-custom-cart .asw-cart-coupon-copy h2 {
  font-size: 0.95rem !important;
}

body .asw-custom-cart .asw-cart-coupon-copy p,
body .asw-custom-cart .asw-cart-coupon-status {
  font-size: 0.8rem !important;
}

body .asw-custom-cart .asw-cart-coupon-input {
  min-height: 2.75rem !important;
  border-radius: 8px !important;
}

body .asw-custom-cart .asw-cart-coupon-form .asw-btn {
  min-height: 2.75rem !important;
  border-radius: 8px !important;
  background: #fff !important;
  border: 1px solid var(--asw-border-accent) !important;
  color: var(--asw-green-dk) !important;
  box-shadow: none !important;
}

body .asw-custom-cart .asw-cart-summary-actions {
  gap: 0.65rem !important;
}

body .asw-custom-cart .asw-cart-summary-actions .asw-btn {
  min-height: 3.08rem !important;
  border-radius: 8px !important;
  font-size: 0.98rem !important;
  font-weight: 900 !important;
}

body .asw-custom-cart .asw-cart-summary-actions .asw-btn-checkout {
  background: var(--asw-green) !important;
  border-color: var(--asw-green) !important;
  color: var(--asw-text-inv) !important;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--asw-green) 24%, transparent) !important;
}

body .asw-custom-cart .asw-cart-summary-actions .asw-btn-checkout:hover {
  background: var(--asw-green-dk) !important;
  border-color: var(--asw-green-dk) !important;
}

body .asw-custom-cart .asw-cart-summary-actions .asw-btn-outline {
  background: #fff !important;
  border: 1.5px solid var(--asw-border-primary) !important;
  color: var(--asw-text) !important;
  box-shadow: none !important;
}

body .asw-custom-cart .asw-cart-summary-actions .asw-btn-outline:hover {
  background: var(--asw-surface-primary) !important;
  color: var(--asw-primary-dk) !important;
}

body .asw-custom-cart .asw-cart-summary-actions .asw-btn-ghost {
  background: var(--asw-bg-2) !important;
  border-color: var(--asw-border) !important;
  color: var(--asw-text-2) !important;
  box-shadow: none !important;
}

body .asw-custom-cart .asw-cart-summary-note {
  border-radius: 8px !important;
  box-shadow: none !important;
}

/* Simplified cart rows */
body.woocommerce-cart .asw-custom-cart .asw-cart-hero,
body.woocommerce-cart .asw-custom-cart .asw-cart-guide,
body.woocommerce-cart .asw-custom-cart .asw-cart-summary-rows,
body.woocommerce-cart .asw-custom-cart .asw-cart-summary-note,
body.woocommerce-cart
  .asw-custom-cart
  .asw-cart-summary-actions
  .asw-btn-outline,
body.woocommerce-cart
  .asw-custom-cart
  .asw-cart-summary-actions
  .asw-btn-ghost {
  display: none !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cart-layout {
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.32fr) !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-section {
  gap: 0.55rem !important;
  padding: 0.8rem !important;
  border: 1px solid #5e17eb70 !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-section-head {
  padding: 0 0.1rem 0.25rem !important;
  align-items: center !important;
  border: 0 !important;
  background: transparent !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-section-kicker,
body.woocommerce-cart .asw-custom-cart .asw-cc-section-summary {
  display: none !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-section-title {
  font-size: 0.98rem !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-section-store,
body.woocommerce-cart
  .asw-custom-cart
  .asw-cart-main
  > .asw-cc-section:nth-of-type(1) {
  background: color-mix(in srgb, var(--asw-primary) 5%, #fff) !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-section-group,
body.woocommerce-cart
  .asw-custom-cart
  .asw-cart-main
  > .asw-cc-section:nth-of-type(2) {
  background: color-mix(in srgb, var(--asw-green) 5%, #fff) !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-section-neighbor,
body.woocommerce-cart
  .asw-custom-cart
  .asw-cart-main
  > .asw-cc-section:nth-of-type(3) {
  background: color-mix(in srgb, var(--asw-blue) 5%, #fff) !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-section-bundle,
body.woocommerce-cart .asw-custom-cart .asw-cc-section-normal,
body.woocommerce-cart
  .asw-custom-cart
  .asw-cart-main
  > .asw-cc-section:nth-of-type(4),
body.woocommerce-cart
  .asw-custom-cart
  .asw-cart-main
  > .asw-cc-section:nth-of-type(5) {
  background: color-mix(in srgb, var(--asw-gold) 7%, #fff) !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-group-list,
body.woocommerce-cart .asw-custom-cart .asw-cc-normal-list {
  gap: 0.55rem !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-group-card {
  padding: 0 !important;
  border-inline-start-width: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-group-hero {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 0.75rem 0.85rem !important;
  border-bottom: 1px solid var(--asw-cart-soft-border) !important;
  background: #fff !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-group-media {
  width: 3.25rem !important;
  height: 3.25rem !important;
  flex: 0 0 3.25rem !important;
  border-radius: 8px !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-group-main {
  gap: 0.1rem !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-group-title,
body.woocommerce-cart .asw-custom-cart .asw-cc-group-title a {
  font-size: 0.94rem !important;
  line-height: 1.35 !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-group-badges,
body.woocommerce-cart .asw-custom-cart .asw-cc-group-copy,
body.woocommerce-cart .asw-custom-cart .asw-cc-group-stats,
body.woocommerce-cart .asw-custom-cart .asw-cc-progress,
body.woocommerce-cart .asw-custom-cart .asw-cc-group-note,
body.woocommerce-cart .asw-custom-cart .asw-cc-group-side,
body.woocommerce-cart .asw-custom-cart .asw-cc-group-footer,
body.woocommerce-cart .asw-custom-cart .asw-cc-line-chips,
body.woocommerce-cart .asw-custom-cart .asw-cc-line-prices,
body.woocommerce-cart .asw-custom-cart .asw-cc-type-pill,
body.woocommerce-cart .asw-custom-cart .asw-cc-line-meta {
  display: none !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-bundle-card .asw-cc-group-side {
  display: flex !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-lines {
  gap: 0 !important;
  padding: 0 !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-line,
body.woocommerce-cart .asw-custom-cart .asw-cc-normal-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.75rem !important;
  min-height: 5.8rem !important;
  padding: 0.7rem 0.8rem !important;
  border-radius: 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--asw-cart-soft-border) !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-normal-card {
  border-radius: 8px !important;
  border: 1px solid var(--asw-cart-soft-border) !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-line-media,
body.woocommerce-cart .asw-custom-cart .asw-cc-normal-media {
  order: 0 !important;
  width: 4.3rem !important;
  height: 4.3rem !important;
  flex: 0 0 4.3rem !important;
  border-radius: 8px !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-line-media img,
body.woocommerce-cart .asw-custom-cart .asw-cc-normal-media img,
body.woocommerce-cart .asw-custom-cart .asw-cc-group-media img {
  object-fit: cover !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-line-body,
body.woocommerce-cart .asw-custom-cart .asw-cc-normal-body {
  min-width: 0 !important;
  gap: 0.45rem !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-line-top {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 0.65rem !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-line-name {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  color: var(--asw-text) !important;
  font-size: 0.9rem !important;
  line-height: 1.35 !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-line-remove {
  width: 2rem !important;
  height: 2rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  border: 1px solid rgba(192, 57, 43, 0.18) !important;
  background: #fff5f4 !important;
  color: transparent !important;
  font-size: 0 !important;
  overflow: hidden !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-line-remove::before {
  content: "×";
  color: var(--asw-red);
  font-size: 1.25rem;
  font-weight: 900;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-line-bottom {
  justify-content: space-between !important;
  gap: 0.65rem !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-row-total span {
  color: var(--asw-text-3) !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-row-total strong {
  color: var(--asw-text) !important;
  font-size: 0.92rem !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-qty-box {
  padding: 0.18rem !important;
  gap: 0.25rem !important;
  border-radius: 8px !important;
  background: var(--asw-bg-2) !important;
  border-color: var(--asw-cart-soft-border) !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-qty-btn {
  width: 1.85rem !important;
  height: 1.85rem !important;
  border-radius: 7px !important;
  box-shadow: none !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-qty-val {
  min-width: 1.7rem !important;
  font-size: 0.9rem !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cc-qty-note {
  align-items: flex-start !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cart-summary-card {
  gap: 0.7rem !important;
}

body.woocommerce-cart .asw-custom-cart .asw-cart-summary-total {
  margin: 0 !important;
}

body.woocommerce-cart
  .asw-custom-cart
  .asw-cart-summary-actions
  .asw-btn-checkout {
  display: flex !important;
}

@media (max-width: 980px) {
  body .asw-custom-cart .asw-cart-layout {
    grid-template-columns: 1fr !important;
  }

  body .asw-custom-cart .asw-cart-main {
    order: 0 !important;
  }

  body .asw-custom-cart .asw-cart-summary-card {
    order: 1 !important;
    position: static !important;
  }
}

@media (max-width: 640px) {
  body .asw-custom-cart .asw-cart-hero {
    padding: 0.85rem !important;
  }

  body .asw-custom-cart .asw-cart-summary-card {
    padding: 0.85rem !important;
  }

  body .asw-custom-cart .asw-cc-section-title {
    font-size: 1rem !important;
  }

  body.woocommerce-cart .asw-custom-cart .asw-cart-layout {
    grid-template-columns: 1fr !important;
  }

  body.woocommerce-cart .asw-custom-cart .asw-cc-line,
  body.woocommerce-cart .asw-custom-cart .asw-cc-normal-card {
    min-height: 5.4rem !important;
    padding: 0.65rem !important;
  }

  body.woocommerce-cart .asw-custom-cart .asw-cc-line-bottom {
    flex-wrap: wrap !important;
  }

  body.woocommerce-cart .asw-custom-cart .asw-cc-line-media,
  body.woocommerce-cart .asw-custom-cart .asw-cc-normal-media {
    width: 4rem !important;
    height: 4rem !important;
    flex-basis: 4rem !important;
  }
}

/* Product sheet data cleanup */
.asw-product-sheet .asw-product-sheet-info,
.asw-product-sheet .asw-product-sheet-trust,
.asw-product-sheet .asw-product-sheet-info[hidden],
.asw-product-sheet .asw-product-sheet-trust[hidden],
.asw-product-sheet .asw-product-sheet-summary[hidden],
.asw-product-sheet .asw-product-sheet-meta[hidden] {
  display: none !important;
}

.asw-product-sheet .asw-product-sheet-panel {
  min-height: 0 !important;
}

.asw-product-sheet h3,
.asw-sh-scope .asw-sh-pcard-name {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.asw-product-sheet .asw-product-sheet-summary {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asw-product-sheet .asw-product-sheet-meta span.is-wide {
  flex: 1 1 100%;
  align-items: flex-start;
  white-space: normal;
  line-height: 1.5;
}

/* Modern product page */
.asw-product-page {
  --asw-pp-ink: var(--wp--preset--color--contrast, #111827);
  --asw-pp-text: var(--e-global-color-text, #4b5563);
  --asw-pp-primary: var(--asw-primary, var(--e-global-color-primary, #5e17eb));
  --asw-pp-accent: var(--asw-green, var(--e-global-color-accent, #27ae60));
  --asw-pp-line: rgba(17, 24, 39, 0.12);
  color: var(--asw-pp-ink);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--asw-pp-primary) 5%, #fff) 0%,
      #fff 18rem
    ),
    #fff;
  font-family: Cairo, Tajawal, sans-serif;
}

.asw-pp-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.asw-pp-breadcrumb,
.asw-pp-breadcrumb a {
  color: var(--asw-pp-text);
  font-size: 0.82rem;
  text-decoration: none;
}

.asw-pp-breadcrumb {
  margin-bottom: 0.9rem;
}

.asw-pp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.92fr);
  gap: 1rem;
  align-items: start;
}

.asw-pp-gallery,
.asw-pp-summary,
.asw-pp-detail-section,
.asw-pp-related {
  border: 1px solid var(--asw-pp-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.asw-pp-gallery {
  position: sticky;
  top: 1rem;
  padding: 0.75rem;
}

.asw-pp-main-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f7f8fa 100%);
  overflow: hidden;
}

.asw-pp-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(0.65rem, 2vw, 1.3rem);
}

.asw-pp-floating-badges,
.asw-pp-kickers,
.asw-pp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.asw-pp-floating-badges {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

.asw-pp-badge,
.asw-pp-brand,
.asw-pp-chip,
.asw-pp-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.22rem 0.62rem;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.2;
}

.asw-pp-badge.is-sale {
  background: var(--asw-red, #c0392b);
  color: #fff;
}

.asw-pp-badge.is-stock {
  background: color-mix(in srgb, var(--asw-pp-accent) 12%, #fff);
  color: color-mix(in srgb, var(--asw-pp-accent) 72%, #111);
  border: 1px solid color-mix(in srgb, var(--asw-pp-accent) 22%, transparent);
}

.asw-pp-badge.is-out {
  background: #111827;
  color: #fff;
}

.asw-pp-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.2rem, 1fr));
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.asw-pp-thumb {
  aspect-ratio: 1;
  padding: 0.25rem;
  border: 1px solid var(--asw-pp-line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.asw-pp-thumb.is-active {
  border-color: var(--asw-pp-primary);
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--asw-pp-primary) 14%, transparent);
}

.asw-pp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.asw-pp-summary {
  padding: clamp(1rem, 2.3vw, 1.6rem);
}

.asw-pp-brand {
  background: color-mix(in srgb, var(--asw-pp-primary) 9%, #fff);
  color: var(--asw-pp-primary);
  border: 1px solid color-mix(in srgb, var(--asw-pp-primary) 18%, transparent);
}

.asw-pp-chip,
.asw-pp-tags span {
  background: #f7f8fa;
  color: var(--asw-pp-text);
  border: 1px solid var(--asw-pp-line);
}

.asw-pp-title {
  margin: 0.75rem 0 0.55rem;
  color: var(--asw-pp-ink);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 950;
  line-height: 1.25;
  letter-spacing: 0;
}

.asw-pp-rating-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  color: var(--asw-pp-text);
  font-size: 0.88rem;
  font-weight: 800;
}

.asw-pp-rating-row a {
  color: var(--asw-pp-primary);
  text-decoration: none;
}

.asw-pp-stars {
  color: var(--et_yellow-color, #f59e0b);
  letter-spacing: 0;
}

.asw-pp-sku {
  color: color-mix(in srgb, var(--asw-pp-text) 72%, #fff);
}

.asw-pp-share {
  display: grid;
  gap: 0.7rem;
  margin-top: -0.15rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--asw-pp-line);
  border-radius: 8px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--asw-pp-primary) 4%, #fff),
    #fff
  );
}

.asw-pp-share-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.asw-pp-share-title {
  color: var(--asw-pp-ink);
  font-size: 0.83rem;
  font-weight: 950;
  line-height: 1.2;
}

.asw-pp-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.asw-pp-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--asw-pp-primary) 24%, transparent);
  border-radius: 8px;
  background: #fff;
  color: var(--asw-pp-primary);
  font-family: inherit;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.asw-pp-share-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.asw-pp-share-btn.is-facebook svg {
  fill: currentColor;
  stroke: none;
}

.asw-pp-share-btn:hover,
.asw-pp-share-btn.is-copied {
  border-color: var(--asw-pp-primary);
  background: var(--asw-pp-primary);
  color: #fff;
  box-shadow: 0 12px 24px
    color-mix(in srgb, var(--asw-pp-primary) 18%, transparent);
}

.asw-pp-share-btn:active {
  transform: scale(0.98);
}

.asw-pp-share-btn.is-whatsapp {
  border-color: color-mix(in srgb, var(--asw-pp-accent) 28%, transparent);
  background: color-mix(in srgb, var(--asw-pp-accent) 9%, #fff);
  color: color-mix(in srgb, var(--asw-pp-accent) 72%, #111);
}

.asw-pp-share-btn.is-whatsapp:hover {
  border-color: var(--asw-pp-accent);
  background: var(--asw-pp-accent);
  color: #fff;
}

.asw-pp-share-btn.is-facebook {
  border-color: rgba(24, 119, 242, 0.22);
  background: rgba(24, 119, 242, 0.08);
  color: #1877f2;
}

.asw-pp-share-btn.is-facebook:hover {
  border-color: #1877f2;
  background: #1877f2;
  color: #fff;
}

.asw-pp-share-btn.is-telegram {
  border-color: rgba(0, 136, 204, 0.22);
  background: rgba(0, 136, 204, 0.08);
  color: #0088cc;
}

.asw-pp-share-btn.is-telegram:hover {
  border-color: #0088cc;
  background: #0088cc;
  color: #fff;
}

.asw-pp-share-btn.is-copy {
  border-color: color-mix(in srgb, var(--asw-pp-primary) 30%, transparent);
  background: color-mix(in srgb, var(--asw-pp-primary) 9%, #fff);
}

.asw-pp-share-btn.is-native {
  border-color: rgba(21, 23, 25, 0.12);
  background: rgba(21, 23, 25, 0.05);
  color: var(--asw-pp-ink);
}

.asw-pp-share-btn.is-native:hover {
  border-color: var(--asw-pp-ink);
  background: var(--asw-pp-ink);
  color: #fff;
}

.asw-pp-price {
  margin: 0.95rem 0;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 950;
}

.asw-pp-price ins {
  color: var(--asw-pp-ink);
  text-decoration: none;
}

.asw-pp-price del {
  color: color-mix(in srgb, var(--asw-pp-text) 60%, #fff);
  font-size: 0.82em;
  opacity: 0.6;
}

.asw-pp-short {
  color: var(--asw-pp-text);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.85;
}

.asw-pp-short p {
  margin: 0;
}

.asw-pp-tags {
  margin-top: 0.85rem;
}

.asw-pp-group-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid color-mix(in srgb, var(--asw-pp-accent) 22%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--asw-pp-accent) 8%, #fff);
}

.asw-pp-group-strip strong,
.asw-pp-group-strip span {
  display: block;
}

.asw-pp-group-strip strong {
  color: var(--asw-pp-ink);
  font-size: 0.9rem;
}

.asw-pp-group-strip span {
  color: var(--asw-pp-text);
  font-size: 0.78rem;
  line-height: 1.6;
}

.asw-pp-group-strip b {
  color: color-mix(in srgb, var(--asw-pp-accent) 72%, #111);
  white-space: nowrap;
}

.asw-pp-group-strip a {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: var(--asw-pp-accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.asw-pp-buybox {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--asw-pp-line);
}

.asw-pp-buybox form.cart {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.asw-pp-buybox .quantity {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--asw-pp-line);
  border-radius: 8px;
  overflow: hidden;
}

.asw-pp-buybox .quantity input.qty {
  width: 4.5rem;
  min-height: 2.8rem;
  border: 0;
  text-align: center;
  font-weight: 900;
}

.asw-pp-buybox .single_add_to_cart_button,
.asw-pp-buy-now,
.asw-pp-cart-link {
  width: 100%;
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px !important;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.asw-pp-buybox .single_add_to_cart_button {
  background: var(--asw-pp-primary) !important;
  border: 1px solid var(--asw-pp-primary) !important;
  color: #fff !important;
  box-shadow: 0 12px 24px
    color-mix(in srgb, var(--asw-pp-primary) 22%, transparent) !important;
}

.asw-pp-buy-now {
  margin-top: 0.55rem;
  border: 1px solid var(--asw-pp-accent);
  background: var(--asw-pp-accent);
  color: #fff;
}

.asw-pp-cart-link {
  margin-top: 0.55rem;
  border: 1px solid var(--asw-pp-line);
  background: #fff;
  color: var(--asw-pp-ink);
}

.asw-pp-buybox .variations {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.55rem;
}

.asw-pp-buybox .variations th,
.asw-pp-buybox .variations td {
  display: block;
  padding: 0;
  text-align: start;
}

.asw-pp-buybox .variations label {
  color: var(--asw-pp-ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.asw-pp-buybox .variations select {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--asw-pp-line);
  border-radius: 8px;
  background: #fff;
  color: var(--asw-pp-ink);
  font-family: inherit;
  font-weight: 800;
}

.asw-pp-details {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}

.asw-pp-detail-section {
  padding: 1rem;
}

.asw-pp-detail-section h2,
.asw-pp-section-head h2 {
  margin: 0 0 0.75rem;
  color: var(--asw-pp-ink);
  font-size: 1.1rem;
  font-weight: 950;
}

.asw-pp-content,
.asw-pp-attrs {
  color: var(--asw-pp-text);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.85;
}

.asw-pp-attrs table {
  width: 100%;
  border-collapse: collapse;
}

.asw-pp-attrs th,
.asw-pp-attrs td {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--asw-pp-line);
  text-align: start;
}

.asw-pp-attrs th {
  color: var(--asw-pp-ink);
  width: 38%;
}

.asw-pp-related {
  margin-top: 1rem;
  padding: 1rem;
}

.asw-pp-section-head span {
  color: var(--asw-pp-primary);
  font-size: 0.78rem;
  font-weight: 900;
}

.asw-pp-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.asw-pp-related-card {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid var(--asw-pp-line);
  border-radius: 8px;
  background: #fff;
  color: var(--asw-pp-ink);
  text-decoration: none;
}

.asw-pp-related-img {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin-bottom: 0.55rem;
  border-radius: 8px;
  background: #f7f8fa;
}

.asw-pp-related-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.45rem;
}

.asw-pp-related-card strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.65em;
  overflow: hidden;
  font-size: 0.86rem;
  line-height: 1.45;
}

.asw-pp-related-card > span:last-child {
  display: block;
  margin-top: 0.45rem;
  color: var(--asw-pp-primary);
  font-weight: 950;
}

@media (max-width: 980px) {
  .asw-pp-hero,
  .asw-pp-details {
    grid-template-columns: 1fr;
  }

  .asw-pp-gallery {
    position: static;
  }

  .asw-pp-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .asw-pp-shell {
    width: min(100% - 1rem, 1180px);
    padding-bottom: calc(2rem + var(--asw-mobile-panel-height, 0px));
  }

  .asw-pp-gallery,
  .asw-pp-summary,
  .asw-pp-detail-section,
  .asw-pp-related {
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  }

  .asw-pp-title {
    font-size: 1.35rem;
  }

  .asw-pp-main-media {
    aspect-ratio: 1.05;
  }

  .asw-pp-group-strip {
    grid-template-columns: 1fr;
  }

  .asw-pp-share-actions {
    gap: 0.45rem;
  }

  .asw-pp-share-btn {
    width: 2.65rem;
    height: 2.65rem;
  }

  .asw-pp-related-grid {
    gap: 0.5rem;
  }
}

/* Professional product page completion */
.asw-product-page .woocommerce-notices-wrapper {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 0.75rem;
}

.asw-product-page .woocommerce-message,
.asw-product-page .woocommerce-info,
.asw-product-page .woocommerce-error {
  border-radius: 8px;
}

.asw-pp-gallery-col {
  min-width: 0;
}

.asw-pp-summary {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.asw-pp-summary > .asw-pp-kickers {
  order: 10;
}

.asw-pp-summary > .asw-pp-title {
  order: 20;
}

.asw-pp-summary > .asw-pp-rating-row {
  order: 30;
}

.asw-pp-summary > .asw-pp-price {
  order: 40;
}

.asw-pp-summary > .asw-pp-share {
  order: 50;
}

.asw-pp-summary > .asw-pp-buybox {
  order: 60;
  margin-top: 0.15rem;
}

.asw-pp-summary > .asw-pp-short {
  order: 70;
}

.asw-pp-summary > .asw-pp-tags {
  order: 80;
}

.asw-pp-summary > .asw-pp-facts {
  order: 90;
}

.asw-pp-summary > .asw-pp-group-strip {
  order: 100;
}

.asw-pp-title {
  font-size: 2.15rem !important;
}

.asw-pp-price {
  font-size: 1.65rem !important;
}

.asw-pp-brand,
.asw-pp-chip,
.asw-pp-tags a {
  text-decoration: none;
}

.asw-pp-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.22rem 0.62rem;
  border: 1px solid var(--asw-pp-line);
  border-radius: 8px;
  background: #f7f8fa;
  color: var(--asw-pp-text);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.2;
}

.asw-pp-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.asw-pp-facts span {
  min-width: 0;
  min-height: 3.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.18rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--asw-pp-line);
  border-radius: 8px;
  background: #fff;
  color: var(--asw-pp-text);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
}

.asw-pp-facts span.is-wide {
  grid-column: 1 / -1;
}

.asw-pp-facts strong {
  color: var(--asw-pp-ink);
  font-size: 0.74rem;
  font-weight: 950;
}

.asw-pp-buybox {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--asw-pp-primary) 14%, transparent);
  border-radius: 8px;
  padding: 0.9rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.asw-pp-buybox-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
}

.asw-pp-buybox-head strong {
  color: var(--asw-pp-ink);
  font-size: 0.95rem;
  font-weight: 950;
}

.asw-pp-buybox-head span {
  color: var(--asw-pp-text);
  font-size: 0.78rem;
  font-weight: 800;
}

.asw-pp-buybox .quantity::before {
  content: "الكمية";
  display: inline-flex;
  align-items: center;
  padding: 0 0.75rem;
  color: var(--asw-pp-ink);
  font-size: 0.78rem;
  font-weight: 950;
}

.asw-pp-buybox .quantity input.qty {
  background: #fff;
  color: var(--asw-pp-ink);
}

.asw-pp-buybox .quantity input.qty:focus,
.asw-pp-buybox .variations select:focus {
  outline: none;
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--asw-pp-primary) 15%, transparent);
}

.asw-pp-buybox .stock {
  margin: 0.45rem 0 0;
  color: var(--asw-pp-accent);
  font-size: 0.82rem;
  font-weight: 900;
}

.asw-pp-buybox .reset_variations {
  display: inline-flex;
  margin-top: 0.45rem;
  color: var(--asw-pp-primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.asw-pp-buybox .woocommerce-variation-price {
  margin: 0.45rem 0;
  font-size: 1.1rem;
  font-weight: 950;
}

.asw-pp-buybox .single_variation_wrap {
  display: grid;
  gap: 0.55rem;
}

.asw-pp-jump-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
  padding: 0.55rem;
  border: 1px solid var(--asw-pp-line);
  border-radius: 8px;
  background: #fff;
}

.asw-pp-jump-nav a {
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 8px;
  background: #f7f8fa;
  color: var(--asw-pp-ink);
  font-size: 0.82rem;
  font-weight: 950;
  text-decoration: none;
}

.asw-pp-jump-nav a:hover {
  background: color-mix(in srgb, var(--asw-pp-primary) 9%, #fff);
  color: var(--asw-pp-primary);
}

.asw-pp-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.asw-pp-detail-section,
.asw-pp-reviews,
.asw-pp-related {
  border: 1px solid var(--asw-pp-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.asw-pp-reviews {
  margin-top: 1rem;
  padding: 1rem;
}

.asw-pp-section-head {
  margin-bottom: 0.75rem;
}

.asw-pp-section-head span {
  display: inline-flex;
  margin-bottom: 0.2rem;
}

.asw-pp-empty {
  margin: 0;
  color: var(--asw-pp-text);
  font-weight: 800;
}

.asw-pp-reviews #reviews {
  margin: 0;
}

.asw-pp-reviews .woocommerce-Reviews-title,
.asw-pp-reviews .comment-reply-title {
  margin: 0 0 0.75rem;
  color: var(--asw-pp-ink);
  font-size: 1rem;
  font-weight: 950;
}

.asw-pp-reviews .commentlist {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.asw-pp-reviews .comment_container {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.75rem;
  border: 1px solid var(--asw-pp-line);
  border-radius: 8px;
  background: #f8fafc;
}

.asw-pp-reviews .avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

.asw-pp-reviews .comment-text {
  min-width: 0;
}

.asw-pp-reviews .meta,
.asw-pp-reviews .description {
  color: var(--asw-pp-text);
  font-size: 0.86rem;
  line-height: 1.75;
}

.asw-pp-reviews .star-rating {
  float: none;
  color: var(--et_yellow-color, #f59e0b);
  margin-bottom: 0.3rem;
}

.asw-pp-reviews .comment-form {
  display: grid;
  gap: 0.65rem;
}

.asw-pp-reviews .comment-form label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--asw-pp-ink);
  font-size: 0.82rem;
  font-weight: 950;
}

.asw-pp-reviews input[type="text"],
.asw-pp-reviews input[type="email"],
.asw-pp-reviews textarea,
.asw-pp-reviews select {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--asw-pp-line);
  border-radius: 8px;
  background: #fff;
  color: var(--asw-pp-ink);
  font-family: inherit;
  font-weight: 800;
}

.asw-pp-reviews textarea {
  min-height: 7.5rem;
  padding: 0.75rem;
}

.asw-pp-reviews .form-submit .submit {
  min-height: 2.85rem;
  padding: 0.35rem 1.1rem;
  border: 1px solid var(--asw-pp-primary);
  border-radius: 8px;
  background: var(--asw-pp-primary);
  color: #fff;
  font-family: inherit;
  font-weight: 950;
}

.asw-pp-related-card {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.asw-pp-related-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--asw-pp-primary) 20%, transparent);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

@media (max-width: 980px) {
  .asw-pp-title {
    font-size: 1.3rem !important;
  }

  .asw-pp-price {
    font-size: 1.2rem !important;
  }

  .asw-pp-details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .asw-pp-facts {
    grid-template-columns: 1fr;
  }

  .asw-pp-jump-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .asw-pp-jump-nav a {
    white-space: nowrap;
  }

  .asw-pp-reviews .comment_container {
    grid-template-columns: 1fr;
  }
}

/* Product media contain pass */
body .asw-pp-main-media,
body .asw-pp-thumb,
body .asw-pp-related-img,
body .asw-sh-scope .asw-sh-pcard-img,
body .asw-product-sheet-media,
body .asw-gal-main,
body .asw-gal-slide,
body .asw-gal-thumb,
body .asw-gal-float-inner,
body .asw-lb-main,
body .asw-cc-group-media,
body .asw-cc-line-media,
body .asw-cc-normal-media,
body .asw-cc-img-wrap,
body .asw-prod-img,
body .asw-co-prod-img,
body .asw-arc-card-img,
body .asw-ar-card-img-wrap {
  aspect-ratio: 1 / 1 !important;
  overflow: hidden;
}

body .asw-pp-main-media,
body .asw-pp-thumb,
body .asw-pp-related-img,
body .asw-sh-scope .asw-sh-pcard-img,
body .asw-product-sheet-media,
body .asw-gal-main,
body .asw-gal-slide,
body .asw-gal-thumb,
body .asw-gal-float-inner,
body .asw-lb-main,
body .asw-cc-group-media,
body .asw-cc-line-media,
body .asw-cc-normal-media,
body .asw-cc-img-wrap,
body .asw-prod-img,
body .asw-co-prod-img,
body .asw-arc-card-img,
body .asw-ar-card-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

body .asw-pp-main-img,
body .asw-pp-thumb img,
body .asw-pp-related-img img,
body .asw-product-sheet-media img,
body .asw-gal-slide img,
body .asw-gal-thumb img,
body .asw-gal-float img,
body .asw-lb-main img,
body .asw-cc-group-media img,
body .asw-cc-line-media img,
body .asw-cc-normal-media img,
body .asw-cc-img-wrap img,
body .asw-prod-img img,
body .asw-co-prod-img img,
body .asw-arc-card-img img,
body .asw-ar-card-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

body .asw-product-sheet-media img {
  object-fit: contain !important;
}

body .asw-gal-vid {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

body .asw-product-page .asw-pp-gallery.asw-gal-hero .asw-gal-slide img,
body .asw-product-page .asw-pp-gallery.asw-gal-hero .asw-gal-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #fff;
}

@media (max-width: 640px) {
  body .asw-pp-main-media,
  body .asw-gal-main,
  body .asw-gal-slide {
    aspect-ratio: 1 / 1 !important;
  }
}

/* Single product rich gallery */
body .asw-product-page .asw-pp-gallery.asw-gal-hero {
  width: 100% !important;
  aspect-ratio: auto !important;
  flex-shrink: 1 !important;
  gap: 0.65rem;
  padding: 0.75rem !important;
  overflow: visible !important;
  background: #fff !important;
}

body .asw-product-page .asw-pp-gallery .asw-gal-main {
  width: 100%;
  aspect-ratio: 1 / 1 !important;
  border: 1px solid var(--asw-pp-line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f7f8fa 100%);
}

body .asw-product-page .asw-pp-gallery .asw-gal-slide {
  padding: clamp(0.65rem, 2vw, 1.3rem);
  background: transparent;
  cursor: zoom-in;
}

body .asw-product-page .asw-pp-gallery .asw-gal-slide.asw-gal-video {
  padding: 0;
}

body .asw-product-page .asw-pp-gallery .asw-gal-slide img,
body .asw-product-page .asw-pp-gallery .asw-gal-vid {
  border-radius: 8px;
}

body .asw-product-page .asw-pp-gallery .asw-pp-floating-badges {
  z-index: 4;
  pointer-events: none;
}

body .asw-product-page .asw-pp-gallery .asw-gal-arrow,
body .asw-product-page .asw-pp-gallery .asw-gal-dots,
body .asw-product-page .asw-pp-gallery .asw-gal-count {
  z-index: 5;
}

body .asw-product-page .asw-pp-gallery .asw-gal-thumbs {
  margin-top: 0;
  padding-bottom: 0.2rem;
}

body .asw-product-page .asw-pp-gallery .asw-gal-thumb {
  width: 4.25rem;
  height: auto;
  aspect-ratio: 1 / 1 !important;
  padding: 0.25rem;
  border: 1px solid var(--asw-pp-line);
  border-radius: 8px;
  background: #fff;
}

body .asw-product-page .asw-pp-gallery .asw-gal-thumb.active {
  border-color: var(--asw-pp-primary);
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--asw-pp-primary) 14%, transparent);
}

body .asw-product-page .asw-pp-lightbox .asw-lb-main {
  width: min(92vw, 920px);
  height: min(82vh, 920px);
  max-width: none;
  max-height: none;
  aspect-ratio: auto !important;
  overflow: visible !important;
}

body .asw-product-page .asw-pp-lightbox .asw-lb-main img,
body .asw-product-page .asw-pp-lightbox .asw-lb-main video {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
}

@media (max-width: 640px) {
  body .asw-product-page .asw-pp-gallery.asw-gal-hero {
    padding: 0.55rem !important;
  }

  body .asw-product-page .asw-pp-gallery .asw-gal-thumb {
    width: 3.55rem;
  }
}

/* SEO breadcrumbs and shared product cards */
body .asw-seo-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
  color: var(--asw-text-2, #555);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.7;
}

body .asw-seo-breadcrumb a {
  color: var(--asw-primary, currentColor);
  text-decoration: none;
}

body .asw-seo-breadcrumb a:hover {
  text-decoration: underline;
}

body .asw-seo-breadcrumb .current {
  color: var(--asw-text, #1a1a1a);
}

body .asw-breadcrumb-sep {
  color: color-mix(in srgb, var(--asw-text-2, #555) 60%, transparent);
}

body .asw-sh-breadcrumb-wrap {
  padding-top: 0.75rem;
}

body .asw-wc-breadcrumb-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 0.75rem;
}

body .asw-pp-related-grid .asw-sh-pcard {
  width: 100%;
  min-width: 0;
}

body .asw-pp-related.asw-sh-scope {
  --sh-primary: var(--asw-pp-primary);
  --sh-secondary: var(--asw-pp-secondary);
  --sh-accent: var(--asw-pp-accent);
  --sh-text: var(--asw-pp-text);
  --sh-ink: var(--asw-pp-ink);
}

@media (max-width: 640px) {
  body .asw-seo-breadcrumb {
    font-size: 0.78rem;
    margin-bottom: 0.65rem;
  }

  body .asw-wc-breadcrumb-shell {
    width: min(100% - 1rem, 1180px);
  }
}

/* ════════════════════════════════════════════════════════════════════
 * v9.5 — Group order brand alignment + cart bundle restructure
 * - Aligns storewide & group-order pages with site brand (--asw-primary)
 * - Restructures cart group bundle: full-width savings + button grid
 * - Adds soft-primary / success-soft button variants
 * - Differentiates "pending payment" vs "awaiting manual confirmation"
 * - Eligible products → horizontal scroller
 * - My-items horizontal scroller + offcanvas
 * ════════════════════════════════════════════════════════════════════ */

/* ── Brand button variants ─────────────────────────────────────────── */
/* Higher specificity to beat `body .asw-cc-group-actions .asw-btn` rule */
body .asw-btn-soft-primary,
body .asw-cc-group-actions .asw-btn.asw-btn-soft-primary,
body .asw-cart-notice-actions .asw-btn.asw-btn-soft-primary {
  background: var(--asw-primary-soft) !important;
  color: var(--asw-primary-dk) !important;
  border: 1px solid var(--asw-primary-line) !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
body .asw-btn-soft-primary:hover,
body .asw-cc-group-actions .asw-btn.asw-btn-soft-primary:hover,
body .asw-cart-notice-actions .asw-btn.asw-btn-soft-primary:hover {
  background: color-mix(in srgb, var(--asw-primary) 22%, #fff) !important;
  color: var(--asw-primary-dk) !important;
  border-color: var(--asw-primary) !important;
}
body .asw-btn-success-soft,
body .asw-cc-group-actions .asw-btn.asw-btn-success-soft,
body .asw-cart-notice-actions .asw-btn.asw-btn-success-soft {
  background: var(--asw-green-lt) !important;
  color: var(--asw-green-dk) !important;
  border: 1px solid color-mix(in srgb, var(--asw-green) 32%, transparent) !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
body .asw-btn-success-soft:hover,
body .asw-cc-group-actions .asw-btn.asw-btn-success-soft:hover,
body .asw-cart-notice-actions .asw-btn.asw-btn-success-soft:hover {
  background: var(--asw-green) !important;
  color: #fff !important;
  border-color: var(--asw-green) !important;
  box-shadow: var(--asw-sh-green) !important;
}

/* ── Cart group bundle: footer with savings + button grid ─────────── */
body .asw-cc-group-footer {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.1rem 1.1rem;
  border-top: 1px dashed var(--asw-border);
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--asw-primary-wash) 100%
  );
}
body .asw-cc-savings-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--asw-r3);
  background: var(--asw-green-lt);
  border: 1px solid color-mix(in srgb, var(--asw-green) 28%, transparent);
}
body .asw-cc-savings-ico {
  font-size: 1.6rem;
  line-height: 1;
}
body .asw-cc-savings-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
body .asw-cc-savings-text span {
  font-size: 0.78rem;
  color: var(--asw-text-2);
}
body .asw-cc-savings-text strong {
  font-size: 1.2rem;
  color: var(--asw-green-dk);
  font-weight: 900;
}

body .asw-cc-state-banner {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: var(--asw-r3);
  border: 1px solid transparent;
}
body .asw-cc-state-banner.is-pending {
  background: color-mix(in srgb, var(--asw-primary) 7%, #fff);
  border-color: var(--asw-primary-line);
}
body .asw-cc-state-banner.is-awaiting {
  background: var(--asw-gold-lt);
  border-color: color-mix(in srgb, var(--asw-gold) 32%, transparent);
}
body .asw-cc-state-banner .asw-cc-state-ico {
  font-size: 1.4rem;
  line-height: 1.2;
}
body .asw-cc-state-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}
body .asw-cc-state-body strong {
  color: var(--asw-text);
  font-size: 0.95rem;
}
body .asw-cc-state-body span {
  color: var(--asw-text-2);
  font-size: 0.82rem;
  line-height: 1.7;
}

body .asw-cc-group-actions-grid,
body .asw-cart-notice-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.55rem !important;
}
body .asw-cc-group-actions-grid > .asw-btn,
body .asw-cart-notice-actions > .asw-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 0.85rem !important;
  border-radius: var(--asw-r3) !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  transition: var(--asw-tr);
  width: auto !important;
  margin: 0 !important;
}
body .asw-cc-group-actions-grid .asw-cc-btn-wide,
body .asw-cart-notice-actions .asw-cn-wide {
  grid-column: 1 / -1 !important;
}
body .asw-cc-group-actions-grid .asw-cc-inline-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 0.85rem;
  border-radius: var(--asw-r3);
  background: var(--asw-gold-lt);
  color: var(--asw-gold-dk);
  font-weight: 800;
  border: 1px dashed color-mix(in srgb, var(--asw-gold) 40%, transparent);
}
/* Keep 2 + 1 layout on mobile (per user request) */

/* ── Storewide page: brand alignment override ─────────────────────── */
body .asw-store-page {
  background: linear-gradient(
    180deg,
    var(--asw-primary-wash) 0%,
    color-mix(in srgb, var(--asw-primary) 3%, #fff) 35%,
    var(--asw-bg) 100%
  ) !important;
}
body .asw-store-hero,
body .asw-store-panel,
body .asw-store-box {
  border: 1px solid var(--asw-primary-line) !important;
  box-shadow: 0 14px 36px color-mix(in srgb, var(--asw-primary) 8%, transparent) !important;
  background: var(--asw-bg) !important;
}
body .asw-store-hero-main {
  background: linear-gradient(
    135deg,
    #fff 0%,
    var(--asw-primary-wash) 70%,
    var(--asw-primary-soft) 100%
  ) !important;
}
body .asw-store-highlight {
  background: linear-gradient(
    135deg,
    var(--asw-primary-wash),
    #e3e6ff
  ) !important;
  color: var(--asw-text) !important;
  border-color: var(--asw-primary-line) !important;
}
body .asw-store-stats > div,
body .asw-store-cards > div,
body .asw-store-kv > div,
body .asw-store-item,
body .asw-store-member,
body .asw-store-product {
  background: var(--asw-bg) !important;
  border-color: var(--asw-border) !important;
}
body .asw-store-stats span,
body .asw-store-cards span,
body .asw-store-kv span {
  color: var(--asw-text-3) !important;
}
body .asw-store-stats strong,
body .asw-store-cards strong,
body .asw-store-kv strong,
body .asw-store-title,
body .asw-store-panel-head h2,
body .asw-store-box h2,
body .asw-store-box h3,
body .asw-store-member-copy strong {
  color: var(--asw-text) !important;
}
body .asw-store-lead,
body .asw-store-copy,
body .asw-store-box p,
body .asw-store-list li,
body .asw-store-note,
body .asw-store-member-copy span,
body .asw-store-member-meta span,
body .asw-store-panel-head span {
  color: var(--asw-text-2) !important;
}
body .asw-store-list li::before,
body .asw-store-list.ordered li::before {
  background: var(--asw-primary) !important;
  color: #fff !important;
}
body .asw-store-progress {
  background: var(--asw-bg-3) !important;
  margin: 8px 0 !important;
}
body .asw-store-progress span {
  background: linear-gradient(
    90deg,
    var(--asw-primary),
    color-mix(in srgb, var(--asw-primary) 60%, var(--asw-green))
  ) !important;
}
body .asw-store-btn.primary {
  background: var(--asw-primary) !important;
  color: var(--asw-text-inv) !important;
  box-shadow: 0 12px 28px var(--asw-primary-shadow) !important;
}
body .asw-store-btn.secondary {
  background: var(--asw-primary-soft) !important;
  color: var(--asw-primary-dk) !important;
  border: 1px solid var(--asw-primary-line) !important;
}
body .asw-store-btn.ghost {
  background: var(--asw-green-lt) !important;
  color: var(--asw-green-dk) !important;
  border: 1px solid color-mix(in srgb, var(--asw-green) 30%, transparent) !important;
}
body .asw-store-share {
  background: var(--asw-bg-2) !important;
  border-color: var(--asw-border) !important;
}
body .asw-store-share-row input {
  background: var(--asw-bg) !important;
  border-color: var(--asw-border) !important;
  color: var(--asw-text) !important;
}
body .asw-store-share-row button {
  background: var(--asw-primary) !important;
  color: var(--asw-text-inv) !important;
}
body .asw-store-share-links a:nth-child(1) {
  background: var(--asw-green-lt) !important;
  color: var(--asw-green-dk) !important;
}
body .asw-store-share-links a:nth-child(2) {
  background: var(--asw-blue-lt) !important;
  color: var(--asw-blue) !important;
}
body .asw-store-share-links button {
  background: var(--asw-primary-soft) !important;
  color: var(--asw-primary-dk) !important;
}
body .asw-store-badge {
  background: var(--asw-bg-2) !important;
  color: var(--asw-text-2) !important;
  border-color: var(--asw-border) !important;
}
body .asw-store-badge.open {
  background: var(--asw-green-lt) !important;
  color: var(--asw-green-dk) !important;
}
body .asw-store-badge.scheduled {
  background: var(--asw-blue-lt) !important;
  color: var(--asw-blue) !important;
}
body .asw-store-badge.locked,
body .asw-store-badge.completed {
  background: var(--asw-gold-lt) !important;
  color: var(--asw-gold-dk) !important;
}
body .asw-store-badge.expired {
  background: var(--asw-red-lt) !important;
  color: var(--asw-red) !important;
}
body .asw-store-badge.gold {
  background: var(--asw-primary-soft) !important;
  color: var(--asw-primary-dk) !important;
}
body .asw-store-pill.paid {
  background: var(--asw-green-lt) !important;
  color: var(--asw-green-dk) !important;
}
body .asw-store-pill.pending {
  background: var(--asw-gold-lt) !important;
  color: var(--asw-gold-dk) !important;
}
body .asw-store-countdown {
  background: var(--asw-text) !important;
  color: var(--asw-text-inv) !important;
}
body .asw-store-avatar {
  background: var(--asw-primary-soft) !important;
  color: var(--asw-primary-dk) !important;
}
body .asw-store-product-img {
  background: var(--asw-bg-2) !important;
}
body .asw-store-product-body span {
  color: var(--asw-primary-dk) !important;
}
body .asw-store-product-body small {
  color: var(--asw-text-3) !important;
  text-decoration: line-through;
}
body .asw-store-product-btn {
  background: var(--asw-primary) !important;
  color: var(--asw-text-inv) !important;
}
body .asw-store-product-btn:hover {
  background: var(--asw-primary-dk) !important;
  color: var(--asw-text-inv) !important;
}

/* ── Eligible products: scrollbar styling ─────────────────────── */
body .asw-store-products-scroller {
  scrollbar-width: thin;
  scrollbar-color: var(--asw-primary-line) transparent;
}
body .asw-store-products-scroller::-webkit-scrollbar {
  height: 8px;
}
body .asw-store-products-scroller::-webkit-scrollbar-thumb {
  background: var(--asw-primary-line);
  border-radius: 999px;
}
body .asw-store-products-scroller::-webkit-scrollbar-track {
  background: transparent;
}

/* ── My-items: horizontal scroller + offcanvas ──────────────────── */
body .asw-mi-toggle {
  background: var(--asw-primary-soft);
  color: var(--asw-primary-dk);
  border: 1px solid var(--asw-primary-line);
  padding: 0.5rem 0.85rem;
  border-radius: var(--asw-r3);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  margin-inline-start: auto;
  transition: var(--asw-tr);
  display: flex;
  align-items: center;
}
body .asw-mi-toggle:hover {
  background: var(--asw-primary);
  color: var(--asw-text-inv);
  border-color: var(--asw-primary);
}
body .asw-mi-state {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--asw-r3);
  margin-top: 0.85rem;
  border: 1px solid transparent;
  flex-wrap: wrap;
}
body .asw-mi-state.is-paid {
  background: var(--asw-green-lt);
  border-color: color-mix(in srgb, var(--asw-green) 30%, transparent);
}
body .asw-mi-state.is-awaiting {
  background: var(--asw-gold-lt);
  border-color: color-mix(in srgb, var(--asw-gold) 32%, transparent);
}
body .asw-mi-state.is-pending {
  background: color-mix(in srgb, #ff9800 9%, #fff);
  border-color: var(--asw-primary-line);
}
body .asw-mi-state-ico {
  font-size: 1.6rem;
  line-height: 1;
}
body .asw-mi-state-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 200px;
}
body .asw-mi-state-body strong {
  color: var(--asw-text);
  font-size: 0.95rem;
}
body .asw-mi-state-body span {
  color: var(--asw-text-2);
  font-size: 0.82rem;
}
body .asw-mi-state-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: var(--asw-r3);
  background: var(--asw-primary);
  color: var(--asw-text-inv);
  text-decoration: none !important;
  font-weight: 800;
  font-size: 0.85rem;
  white-space: nowrap;
}
body .asw-mi-state-cta:hover {
  background: var(--asw-primary-dk);
  color: var(--asw-text-inv);
}

body .asw-mi-scroller {
  scrollbar-width: thin;
  scrollbar-color: var(--asw-primary-line) transparent;
}
body .asw-mi-scroller::-webkit-scrollbar {
  height: 8px;
}
body .asw-mi-scroller::-webkit-scrollbar-thumb {
  background: var(--asw-primary-line);
  border-radius: 999px;
}

body .asw-mi-card {
  display: flex;
  flex-direction: column;
  background: var(--asw-bg);
  border: 1px solid var(--asw-border);
  border-radius: var(--asw-r3);
  overflow: hidden;
  box-shadow: var(--asw-sh-xs);
  transition: var(--asw-tr);
}
body .asw-mi-card.is-paid {
  border-color: color-mix(in srgb, var(--asw-green) 32%, transparent);
}
body .asw-mi-card.is-awaiting {
  border-color: color-mix(in srgb, var(--asw-gold) 32%, transparent);
}
body .asw-mi-card.is-pending {
  border-color: var(--asw-primary-line);
}
body .asw-mi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--asw-sh-sm);
}
/* Match the general site product card (.asw-sh-pcard-img) image styling */
body .asw-mi-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
  padding: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
body .asw-mi-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
body .asw-mi-card:hover .asw-mi-card-img img {
  transform: scale(1.06);
}
body .asw-mi-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.7rem 0.8rem 0.85rem;
}
body .asw-mi-card-title {
  color: var(--asw-text);
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body .asw-mi-card-meta {
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
  flex-wrap: wrap;
  color: var(--asw-primary-dk);
  font-weight: 800;
  font-size: 0.85rem;
}
body .asw-mi-card-strike {
  color: var(--asw-text-3);
  text-decoration: line-through;
  font-weight: 600;
  font-size: 0.78rem;
}
body .asw-mi-card-line {
  font-size: 0.82rem;
  color: var(--asw-text-2);
}
body .asw-mi-card-line strong {
  color: var(--asw-text);
}
body .asw-mi-card-status {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
body .asw-mi-pill {
  display: inline-flex;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}
body .asw-mi-pill.is-paid {
  background: var(--asw-green-lt);
  color: var(--asw-green-dk);
}
body .asw-mi-pill.is-awaiting {
  background: var(--asw-gold-lt);
  color: var(--asw-gold-dk);
}
body .asw-mi-pill.is-pending {
  background: var(--asw-primary-soft);
  color: var(--asw-primary-dk);
}
body .asw-mi-card-cta {
  display: inline-flex;
  padding: 0.4rem 0.7rem;
  border-radius: var(--asw-r2);
  background: var(--asw-primary);
  color: var(--asw-text-inv);
  text-decoration: none !important;
  font-weight: 800;
  font-size: 0.76rem;
  margin-inline-start: auto;
  transition: var(--asw-tr);
}
body .asw-mi-card-cta:hover {
  background: var(--asw-primary-dk);
  color: var(--asw-text-inv);
}

/* Offcanvas */
body .asw-mi-canvas {
  position: fixed;
  inset: 0;
  z-index: 99990;
}
@media (max-width: 767px) {
  body.asw-mi-canvas-open .asw-mobile-panel {
    transform: translateY(calc(100% + 12px)) !important;
    pointer-events: none;
  }
}
body .asw-mi-canvas[hidden] {
  display: none;
}
body .asw-mi-canvas-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 38, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}
body .asw-mi-canvas.is-open .asw-mi-canvas-overlay {
  opacity: 1;
}
body .asw-mi-canvas-inner {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  height: 100%;
  width: min(440px, 92vw);
  background: var(--asw-bg);
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.22s ease;
}
body[dir="ltr"] .asw-mi-canvas-inner,
html[dir="ltr"] body .asw-mi-canvas-inner {
  transform: translateX(100%);
}
body .asw-mi-canvas.is-open .asw-mi-canvas-inner {
  transform: translateX(0);
}
body .asw-mi-canvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--asw-border);
  background: var(--asw-primary-wash);
}
body .asw-mi-canvas-head h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--asw-text);
}
body .asw-mi-canvas-close {
  background: transparent;
  border: 0;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--asw-text-2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: var(--asw-tr);
}
body .asw-mi-canvas-close:hover {
  background: var(--asw-bg-2);
  color: var(--asw-text);
}
body .asw-mi-canvas-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
body .asw-mi-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border-radius: var(--asw-r3);
  border: 1px solid var(--asw-border);
  background: var(--asw-bg-2);
  flex-wrap: wrap;
}
body .asw-mi-row.is-paid {
  border-color: color-mix(in srgb, var(--asw-green) 30%, transparent);
}
body .asw-mi-row.is-awaiting {
  border-color: color-mix(in srgb, var(--asw-gold) 30%, transparent);
}
body .asw-mi-row.is-pending {
  border-color: var(--asw-primary-line);
}
body .asw-mi-row-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 160px;
}
body .asw-mi-row-info strong {
  color: var(--asw-text);
  font-size: 0.9rem;
}
body .asw-mi-row-info span {
  color: var(--asw-text-2);
  font-size: 0.8rem;
}
body .asw-mi-canvas-foot {
  padding: 0.85rem 1rem 1.1rem;
  border-top: 1px solid var(--asw-border);
  background: var(--asw-bg-2);
}
body .asw-mi-canvas-foot .asw-store-btn {
  width: 100%;
}

/* ── Group order page (page.php): align cart-notice buttons ─────── */
body .asw-cart-notice-card {
  display: grid;
  gap: 0.65rem;
}
body .asw-cart-notice-card .asw-cart-notice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.5rem;
}
body .asw-cart-notice-card .asw-cart-notice-actions .asw-btn {
  margin-top: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 46px;
}
body .asw-cart-notice-card .asw-cart-notice-actions .asw-cn-wide {
  grid-column: 1 / -1;
}
@media (max-width: 480px) {
  /* keep 2 + 1 layout even on tiny screens */
  body .asw-cart-notice-card .asw-cart-notice-actions {
    grid-template-columns: 1fr 1fr !important;
  }
  body .asw-cart-notice-card .asw-cart-notice-actions .asw-cn-wide {
    grid-column: 1 / -1 !important;
  }
}

/* ════════════════════════════════════════════════════════════════════
 * v9.5.1 — Storewide page mobile/overflow fixes
 *  - Prevent horizontal page overflow
 *  - Allow grid children to shrink (min-width:0) so scrollers work
 *  - Force horizontal scrollers to actually scroll on narrow screens
 *  - Word-break long titles, constrain countdown
 * ════════════════════════════════════════════════════════════════════ */
body .asw-store-page {
  overflow-x: hidden;
  max-width: 100vw;
}
body .asw-store-shell {
  width: min(1320px, calc(100% - 1.5rem)) !important;
  max-width: 100%;
  min-width: 0;
}
body .asw-store-shell,
body .asw-store-hero,
body .asw-store-panel,
body .asw-store-box,
body .asw-store-side,
body .asw-store-hero-main,
body .asw-store-hero > *,
body .asw-store-panel > * {
  min-width: 0 !important;
  max-width: 100%;
}
/* Defensive: clip any horizontal overflow inside panels so a misbehaving
   child can never push the page wider than the viewport */
body .asw-store-panel,
body .asw-store-hero,
body .asw-store-box {
  overflow-x: hidden;
}
body .asw-store-hero {
  /* allow main column to shrink instead of pushing off-screen */
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 0.95fr) !important;
}
@media (max-width: 980px) {
  body .asw-store-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
body .asw-store-title,
body .asw-store-lead,
body .asw-store-copy,
body .asw-store-panel-head h2,
body .asw-store-box h2,
body .asw-store-box h3,
body .asw-store-product-body strong,
body .asw-mi-card-title,
body .asw-mi-row-info strong {
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}
body .asw-store-title {
  font-size: clamp(1.4rem, 4.6vw, 2.6rem) !important;
  line-height: 1.18 !important;
}

/* Countdown should not overflow on narrow screens */
body .asw-store-countdown {
  max-width: 100%;
  flex-wrap: wrap;
}

/* Horizontal scrollers — wrapper-based, flex layout (bulletproof) */
/* Wrapper IS the scroller. Inner element just lays cards in a row. */
body .asw-scroller-wrap {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1rem !important;
  margin-top: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--asw-primary-line) transparent;
  position: relative;
}
body .asw-scroller-wrap::-webkit-scrollbar {
  height: 8px;
}
body .asw-scroller-wrap::-webkit-scrollbar-thumb {
  background: var(--asw-primary-line);
  border-radius: 999px;
}
body .asw-scroller-wrap::-webkit-scrollbar-track {
  background: transparent;
}

body .asw-scroller-wrap > .asw-store-products-scroller,
body .asw-scroller-wrap > .asw-mi-scroller {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 0.85rem !important;
  width: max-content !important;
  max-width: none !important;
  min-width: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
  /* Reset any grid props inherited from base CSS */
  grid-template-columns: none !important;
  grid-auto-flow: row !important;
  grid-auto-columns: auto !important;
}
body .asw-scroller-wrap > .asw-store-products-scroller > .asw-store-product,
body .asw-scroller-wrap > .asw-mi-scroller > .asw-mi-card,
body .asw-scroller-wrap > .asw-store-products-scroller > .asw-sh-pcard {
  flex: 0 0 auto !important;
  scroll-snap-align: start;
  width: 200px;
  max-width: 200px;
}
body .asw-scroller-wrap > .asw-eligible-scroller > .asw-sh-pcard {
  width: 220px !important;
  max-width: 220px !important;
  min-width: 0;
}
body .asw-scroller-wrap > .asw-mi-scroller > .asw-mi-card {
  width: 220px;
  max-width: 220px;
}
@media (max-width: 540px) {
  body .asw-scroller-wrap > .asw-store-products-scroller > .asw-store-product,
  body .asw-scroller-wrap > .asw-store-products-scroller > .asw-sh-pcard {
    width: 50vw !important;
    max-width: 280px !important;
  }
  body .asw-scroller-wrap > .asw-mi-scroller > .asw-mi-card {
    width: 50vw;
    max-width: 300px;
  }
}

/* "View all eligible products" link in section head */
body .asw-eligible-head {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
body .asw-eligible-head .asw-eligible-head-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}
body .asw-eligible-head .asw-eligible-head-text h2 {
  margin: 0;
}
body .asw-eligible-view-all {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--asw-r3);
  background: var(--asw-primary-soft);
  color: var(--asw-primary-dk) !important;
  border: 1px solid var(--asw-primary-line);
  font-weight: 800;
  font-size: 0.82rem;
  text-decoration: none !important;
  white-space: nowrap;
  transition: var(--asw-tr);
}
body .asw-eligible-view-all:hover {
  background: var(--asw-primary);
  color: var(--asw-text-inv) !important;
  border-color: var(--asw-primary);
}
body .asw-eligible-view-all svg {
  flex-shrink: 0;
}
body[dir="rtl"] .asw-eligible-view-all svg,
.asw-store-page[dir="rtl"] .asw-eligible-view-all svg {
  transform: scaleX(-1);
}

/* My-items state banner: stack neatly on narrow screens */
body .asw-mi-state {
  flex-wrap: wrap;
}
body .asw-mi-state-cta {
  width: 100%;
  justify-content: center;
}
@media (min-width: 640px) {
  body .asw-mi-state-cta {
    width: auto;
  }
}

/* Stats / cards: full row on mobile so values don't get clipped */
@media (max-width: 540px) {
  body .asw-store-stats,
  body .asw-store-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body .asw-store-actions {
    grid-template-columns: 1fr !important;
  }
  body .asw-store-share-row {
    grid-template-columns: 1fr !important;
  }
}

/* My-items panel head: toggle button can wrap */
body .asw-my-items-panel .asw-store-panel-head {
  flex-wrap: wrap;
  row-gap: 0.5rem;
}
body .asw-my-items-panel .asw-mi-toggle {
  margin-inline-start: auto;
  white-space: nowrap;
}

/* Group order page (page.php) — prevent generic overflow on its containers */
body .asw-page.asw-gp,
body .asw-gp .asw-container {
  overflow-x: hidden;
  max-width: 100vw;
  min-width: 0;
}
body .asw-gp .asw-container > * {
  min-width: 0;
  max-width: 100%;
}

/* Header cart/account shortcodes */
.asw-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  background: transparent;
}

.asw-header-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 34px;
  min-width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  text-decoration: none;
  box-shadow: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.asw-header-action:hover {
  color: #fff;
  opacity: 0.86;
  transform: translateY(-1px);
}

.asw-header-action-icon,
.asw-header-action-icon svg {
  display: block;
  width: 21px;
  height: 21px;
}

.asw-header-action-count {
  position: absolute;
  top: -6px;
  inset-inline-start: -5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #ffcf33;
  color: #111827;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(255, 207, 51, 0.34);
}

.asw-header-action-count[hidden] {
  display: none !important;
}

.asw-header-action-label {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.asw-header-action.has-label {
  width: auto;
  gap: 0.35rem;
  padding-inline: 0;
}

@media (max-width: 767px) {
  .asw-header-action {
    width: 25px;
    min-width: 25px;
    height: 25px;
  }

  .asw-header-action-icon,
  .asw-header-action-icon svg {
    width: 18px;
    height: 18px;
  }

  .asw-header-action-count {
    top: -5px;
    inset-inline-start: -4px;
    min-width: 14px;
    height: 14px;
    padding: 0 0.17rem;
    font-size: 0.5rem;
    box-shadow: 0 2px 5px rgba(255, 207, 51, 0.3);
  }
}

body.asw-header-sheet-open {
  overflow: hidden;
}

.asw-header-sheet {
  position: fixed;
  inset: 0;
  z-index: 100000;
  direction: rtl;
  font-family: Cairo, Tajawal, sans-serif;
  color: var(--asw-text, #111827);
}

.asw-header-sheet[hidden] {
  display: none !important;
}

.asw-header-sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 1;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.asw-header-sheet.is-closing .asw-header-sheet-overlay {
  opacity: 0;
}

.asw-header-sheet-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 560px);
  height: 80vh;
  max-height: 80vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.65rem 1rem
    calc(
      1rem + var(--asw-mobile-panel-height, 68px) +
        env(safe-area-inset-bottom, 0)
    );
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #fff;
  box-shadow: 0 -20px 52px rgba(15, 23, 42, 0.18);
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: pan-y;
  will-change: transform;
}

.asw-header-sheet.is-opening .asw-header-sheet-panel {
  animation: asw-header-sheet-up 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.asw-header-sheet.is-closing .asw-header-sheet-panel {
  transform: translateY(100%);
}

.asw-header-sheet.is-dragging .asw-header-sheet-panel {
  transition: none;
}

@keyframes asw-header-sheet-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.asw-header-sheet-handle {
  width: 40px;
  height: 5px;
  flex: 0 0 auto;
  margin: 0 auto 0.3rem;
  border-radius: 3px;
  background: rgba(17, 24, 39, 0.16);
  cursor: grab;
  touch-action: none;
}

.asw-header-sheet-handle:active {
  cursor: grabbing;
}

.asw-header-sheet-close {
  position: absolute;
  top: 0.65rem;
  inset-inline-start: 0.75rem;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.asw-header-sheet-head {
  display: grid;
  gap: 0.15rem;
  flex: 0 0 auto;
  padding-inline-start: 2.6rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(17, 24, 39, 0.11);
}

.asw-header-sheet-kicker {
  color: var(--asw-primary, #5e17eb);
  font-size: 0.7rem;
  font-weight: 900;
}

.asw-header-sheet-head h3 {
  margin: 0;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1.25;
}

.asw-header-sheet-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 120px;
  overscroll-behavior: contain;
}

.asw-header-sheet-loading {
  display: grid;
  gap: 0.55rem;
  padding: 0.4rem 0;
}

.asw-header-sheet-loading span {
  height: 50px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef2f7, #f8fafc, #eef2f7);
  background-size: 220% 100%;
  animation: asw-header-sheet-loading 1.1s linear infinite;
}

@keyframes asw-header-sheet-loading {
  from {
    background-position: 220% 0;
  }
  to {
    background-position: -220% 0;
  }
}

.asw-header-sheet-list {
  display: grid;
  gap: 0.55rem;
}

.asw-header-cart-sections {
  display: grid;
  gap: 0.7rem;
}

.asw-header-cart-section {
  display: grid;
  gap: 0.55rem;
  padding: 0.6rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.asw-header-cart-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.asw-header-cart-section-head div {
  display: grid;
  gap: 0.08rem;
}

.asw-header-cart-section-head span,
.asw-header-cart-section-head small {
  color: #6b7280;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.5;
}

.asw-header-cart-section-head strong {
  color: #111827;
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1.35;
}

.asw-header-cart-section-head small {
  max-width: 46%;
  text-align: end;
}

.asw-header-cart-containers {
  display: grid;
  gap: 0.58rem;
}

.asw-header-cart-container {
  display: grid;
  gap: 0.55rem;
  padding: 0.55rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #fff;
}

.asw-header-cart-container--group_product {
  border-color: rgba(94, 23, 235, 0.22);
  background: color-mix(in srgb, var(--asw-primary, #5e17eb) 5%, #fff);
}

.asw-header-cart-container--group_store {
  border-color: rgba(245, 158, 11, 0.22);
  background: color-mix(in srgb, #f59e0b 6%, #fff);
}

.asw-header-cart-container--neighbor {
  border-color: rgba(22, 163, 74, 0.2);
  background: color-mix(in srgb, #16a34a 5%, #fff);
}

.asw-header-cart-container-head {
  display: grid;
  gap: 0.42rem;
}

.asw-header-cart-container-head strong,
.asw-header-cart-container-head span {
  display: block;
}

.asw-header-cart-container-head strong {
  color: #111827;
  font-size: 0.84rem;
  font-weight: 950;
  line-height: 1.35;
}

.asw-header-cart-container-head span {
  color: #6b7280;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.5;
}

.asw-header-cart-container-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.asw-header-cart-container-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.15rem 0.42rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1.35;
}

.asw-header-cart-container-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.asw-header-cart-container-grid .asw-header-sheet-cart-item {
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.5rem;
}

.asw-header-cart-container-grid .asw-header-sheet-cart-side {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.asw-header-cart-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(94, 23, 235, 0.2);
  border-radius: 8px;
  background: #fff;
  color: var(--asw-primary, #5e17eb);
  font-size: 0.74rem;
  font-weight: 900;
  text-decoration: none;
}

.asw-header-sheet-cart-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.55rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #fff;
}

.asw-header-sheet-cart-img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.asw-header-sheet-cart-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.25rem;
}

.asw-header-sheet-cart-copy {
  min-width: 0;
  display: grid;
  gap: 0.28rem;
}

.asw-header-sheet-cart-name {
  color: #111827;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.35;
  text-decoration: none;
}

.asw-header-sheet-cart-type {
  width: fit-content;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--asw-primary, #5e17eb) 9%, #fff);
  color: var(--asw-primary, #5e17eb);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.35;
}

.asw-header-sheet-cart-meta {
  color: #6b7280;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.55;
}

.asw-header-sheet-cart-meta dl,
.asw-header-sheet-cart-meta p {
  margin: 0;
}

.asw-header-sheet-cart-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.asw-header-sheet-cart-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.16rem 0.42rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.35;
}

.asw-header-sheet-cart-copy strong {
  color: var(--asw-primary, #5e17eb);
  font-size: 0.82rem;
  font-weight: 950;
}

.asw-header-sheet-cart-side {
  display: grid;
  justify-items: end;
  gap: 0.45rem;
  min-width: 78px;
}

.asw-header-sheet-cart-side strong {
  color: var(--asw-primary, #5e17eb);
  font-size: 0.8rem;
  font-weight: 950;
  text-align: end;
}

.asw-header-sheet-cart-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  color: #e11d48;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.asw-header-sheet-totals {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.asw-header-sheet-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
}

.asw-header-sheet-total--discount strong {
  color: #16a34a;
}

.asw-header-sheet-total--grand {
  background: #111827;
  color: #fff;
}

.asw-header-sheet-total span {
  font-size: 0.78rem;
  font-weight: 800;
}

.asw-header-sheet-total strong {
  font-size: 0.92rem;
  font-weight: 950;
}

.asw-header-sheet-actions {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.asw-header-sheet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.asw-header-sheet-btn--primary {
  background: var(--asw-primary, #5e17eb);
  color: #fff;
}

.asw-header-sheet-btn--ghost {
  border-color: rgba(94, 23, 235, 0.22);
  background: color-mix(in srgb, var(--asw-primary, #5e17eb) 7%, #fff);
  color: var(--asw-primary, #5e17eb);
}

.asw-header-sheet-empty {
  display: grid;
  gap: 0.6rem;
  padding: 1rem 0.2rem;
  text-align: center;
}

.asw-header-sheet-empty strong {
  color: #111827;
  font-size: 0.95rem;
  font-weight: 950;
}

.asw-header-sheet-empty p {
  max-width: 360px;
  margin: 0 auto;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.7;
}

.asw-header-sheet-account {
  display: grid;
  gap: 0.7rem;
}

.asw-header-sheet-account-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: #f8fafc;
}

.asw-header-sheet-account-head .asw-db-avatar,
.asw-header-sheet-account-head img.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.asw-header-sheet-account-head strong,
.asw-header-sheet-account-head span {
  display: block;
}

.asw-header-sheet-account-head strong {
  color: #111827;
  font-size: 0.95rem;
  font-weight: 950;
}

.asw-header-sheet-account-head span {
  overflow: hidden;
  color: #6b7280;
  font-size: 0.74rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asw-header-sheet-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.asw-header-sheet-stats span {
  display: grid;
  gap: 0.12rem;
  min-height: 62px;
  padding: 0.65rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #fff;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 800;
}

.asw-header-sheet-stats strong {
  color: var(--asw-primary, #5e17eb);
  font-size: 1rem;
  font-weight: 950;
}

.asw-header-sheet-links {
  display: grid;
  gap: 0.45rem;
}

.asw-header-sheet-links a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.asw-header-notifications {
  display: grid;
  gap: 0.65rem;
}

.asw-header-notifications-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: #f8fafc;
}

.asw-header-notifications-actions span {
  color: #6b7280;
  font-size: 0.74rem;
  font-weight: 850;
}

.asw-header-notifications-actions button {
  min-height: 32px;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(94, 23, 235, 0.16);
  border-radius: 8px;
  background: #fff;
  color: var(--asw-primary, #5e17eb);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.asw-header-notification-list {
  display: grid;
  gap: 0.5rem;
}

.asw-header-notification {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding: 0.7rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  text-decoration: none;
}

.asw-header-notification.is-unread {
  border-color: rgba(94, 23, 235, 0.18);
  background: color-mix(in srgb, var(--asw-primary, #5e17eb) 5%, #fff);
}

.asw-header-notification-dot {
  width: 9px;
  height: 9px;
  margin-top: 0.38rem;
  border-radius: 999px;
  background: rgba(107, 114, 128, 0.28);
}

.asw-header-notification.is-unread .asw-header-notification-dot {
  background: var(--asw-primary, #5e17eb);
  box-shadow: 0 0 0 4px
    color-mix(in srgb, var(--asw-primary, #5e17eb) 12%, transparent);
}

.asw-header-notification-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.asw-header-notification-copy strong {
  color: #111827;
  font-size: 0.84rem;
  font-weight: 950;
  line-height: 1.35;
}

.asw-header-notification-copy small {
  color: #6b7280;
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.55;
}

.asw-header-notification-copy em {
  color: #9ca3af;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 420px) {
  .asw-header-sheet-panel {
    height: 80vh;
    max-height: 80vh;
    padding-inline: 0.7rem;
  }

  .asw-header-cart-container-grid {
    grid-template-columns: 1fr;
  }

  .asw-header-sheet-cart-item {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 0.5rem;
  }

  .asw-header-cart-container-grid .asw-header-sheet-cart-item {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .asw-header-cart-section-head {
    display: grid;
  }

  .asw-header-cart-section-head small {
    max-width: none;
    text-align: start;
  }

  .asw-header-sheet-cart-side {
    min-width: 58px;
  }

  .asw-header-sheet-actions {
    flex-direction: column;
  }
}

/* Unified bottom-sheet shell shared by header, product, login and group flows. */
body.asw-any-sheet-open,
body.asw-login-sheet-open,
body.asw-guest-join-sheet-open,
body.asw-product-sheet-open,
body.asw-header-sheet-open,
body.asw-parts-sheet-open,
body.asw-savings-sheet-open,
body.asw-mi-canvas-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  body.asw-any-sheet-open .asw-mobile-panel,
  body.asw-login-sheet-open .asw-mobile-panel,
  body.asw-guest-join-sheet-open .asw-mobile-panel,
  body.asw-product-sheet-open .asw-mobile-panel,
  body.asw-header-sheet-open .asw-mobile-panel,
  body.asw-mobile-panel-sheet-open .asw-mobile-panel,
  body.asw-parts-sheet-open .asw-mobile-panel,
  body.asw-savings-sheet-open .asw-mobile-panel,
  body.asw-mi-canvas-open .asw-mobile-panel {
    transform: translateY(calc(100% + 12px)) !important;
    pointer-events: none;
  }
}

@media (max-width: 767px) {
  body.woocommerce-cart.asw-mobile-panel-ready,
  body.asw-checkout-template.asw-mobile-panel-ready {
    padding-bottom: calc(
      var(--asw-mobile-panel-height, 68px) + 80px +
        env(safe-area-inset-bottom, 0)
    ) !important;
    --asw-sticky-cta-bottom: calc(
      var(--asw-mobile-panel-height, 68px) + 0.55rem +
        env(safe-area-inset-bottom, 0)
    );
  }

  body.woocommerce-cart .asw-custom-cart,
  body.asw-checkout-template .asw-checkout-form {
    padding-bottom: 80px !important;
  }

  html:has(.asw-mobile-panel.is-hidden)
    body.woocommerce-cart.asw-mobile-panel-ready,
  html:has(.asw-mobile-panel.is-hidden)
    body.asw-checkout-template.asw-mobile-panel-ready {
    --asw-sticky-cta-bottom: calc(0.55rem + env(safe-area-inset-bottom, 0));
  }

  body.woocommerce-cart.asw-mobile-panel-sheet-open,
  body.woocommerce-cart.asw-product-sheet-open,
  body.woocommerce-cart.asw-header-sheet-open,
  body.woocommerce-cart.asw-theme-offcanvas-open,
  body.asw-checkout-template.asw-mobile-panel-sheet-open,
  body.asw-checkout-template.asw-product-sheet-open,
  body.asw-checkout-template.asw-header-sheet-open,
  body.asw-checkout-template.asw-theme-offcanvas-open {
    --asw-sticky-cta-bottom: calc(0.55rem + env(safe-area-inset-bottom, 0));
  }

  body .asw-mobile-sticky-cta-host {
    position: sticky !important;
    bottom: var(
      --asw-sticky-cta-bottom,
      calc(0.55rem + env(safe-area-inset-bottom, 0))
    ) !important;
    z-index: 9998 !important;
    width: 100% !important;
    max-width: 520px !important;
    margin: 0 auto !important;
    padding: 0.5rem !important;
    border: 1px solid rgba(17, 24, 39, 0.12) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.12) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    transition:
      bottom 0.28s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
      box-shadow 0.2s ease,
      background 0.2s ease !important;
    will-change: bottom, transform;
  }

  body .asw-mobile-sticky-cta-host > .asw-cart-summary-actions,
  body .asw-mobile-sticky-cta-host > .place-order {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.woocommerce-cart
    .asw-custom-cart
    .asw-cart-summary-actions
    .asw-btn-checkout,
  body.asw-checkout-template #place_order {
    width: 100% !important;
    min-height: 50px !important;
    border-radius: 8px !important;
    font-size: 0.98rem !important;
    line-height: 1.2 !important;
  }

  body.asw-checkout-template #payment .place-order {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.45rem !important;
  }

  body.asw-checkout-template #payment .place-order .woocommerce-terms-and-conditions-wrapper {
    max-height: 64px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.72rem;
  }

  body.asw-checkout-template #payment .place-order .woocommerce-privacy-policy-text,
  body.asw-checkout-template #payment .place-order .woocommerce-terms-and-conditions-checkbox-text {
    font-size: 0.72rem;
    line-height: 1.45;
  }
}

body .asw-sh-sheet {
  position: fixed;
  inset: 0;
  z-index: var(--asw-sh-sheet-z, 10120);
  direction: rtl;
  color: var(--asw-text, #111827);
  font-family: Cairo, Tajawal, sans-serif;
  --asw-sh-sheet-width: 640px;
  --asw-sh-sheet-gap: 0.78rem;
  --asw-sh-sheet-min-height: auto;
  --asw-sh-sheet-max-height: min(92vh, 760px);
  --asw-sh-sheet-max-height-dvh: min(92dvh, 760px);
  --asw-sh-sheet-pad-x: 1rem;
  --asw-sh-sheet-pad-top: 0.65rem;
  --asw-sh-sheet-pad-bottom: 1rem;
}

body .asw-sh-sheet[hidden] {
  display: none !important;
}

body .asw-sh-sheet .asw-sh-sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  transition: opacity 0.26s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

body .asw-sh-sheet.is-open .asw-sh-sheet-overlay {
  opacity: var(
    --asw-sheet-overlay-opacity,
    var(
      --asw-savings-overlay-opacity,
      var(--asw-parts-overlay-opacity, var(--asw-mi-overlay-opacity, 1))
    )
  );
}

body .asw-sh-sheet.is-closing .asw-sh-sheet-overlay {
  opacity: 0;
}

body .asw-sh-sheet .asw-sh-sheet-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: var(--asw-sh-sheet-gap);
  width: min(100%, var(--asw-sh-sheet-width));
  height: auto;
  min-height: var(--asw-sh-sheet-min-height);
  max-height: var(--asw-sh-sheet-max-height);
  max-height: var(--asw-sh-sheet-max-height-dvh);
  margin: 0 auto;
  padding: var(--asw-sh-sheet-pad-top) var(--asw-sh-sheet-pad-x)
    calc(var(--asw-sh-sheet-pad-bottom) + env(safe-area-inset-bottom, 0));
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #fff;
  box-shadow: 0 -18px 46px rgba(15, 23, 42, 0.18);
  transform: translateY(105%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: pan-y;
  will-change: transform;
  -webkit-overflow-scrolling: touch;
}

body .asw-sh-sheet.is-open .asw-sh-sheet-content {
  transform: translateY(0);
}

body .asw-sh-sheet.is-opening .asw-sh-sheet-content {
  animation: asw-unified-sheet-up 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

body .asw-sh-sheet.is-closing .asw-sh-sheet-content {
  transform: translateY(105%);
}

body .asw-sh-sheet.is-dragging .asw-sh-sheet-content {
  transition: none !important;
}

@keyframes asw-unified-sheet-up {
  from {
    transform: translateY(105%);
  }
  to {
    transform: translateY(0);
  }
}

body .asw-sh-sheet .asw-sh-sheet-handle {
  width: 42px;
  height: 5px;
  flex: 0 0 auto;
  margin: 0 auto 0.55rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.16);
  cursor: grab;
  touch-action: none;
}

body .asw-sh-sheet .asw-sh-sheet-handle:active {
  cursor: grabbing;
}

body .asw-sh-sheet .asw-sh-sheet-close {
  position: absolute !important;
  top: 0.62rem !important;
  inset-inline-start: 0.72rem !important;
  inset-inline-end: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  flex: 0 0 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(17, 24, 39, 0.1) !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  color: #111827 !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease !important;
}

body .asw-sh-sheet .asw-sh-sheet-close:hover {
  border-color: rgba(104, 28, 226, 0.24) !important;
  background: #fff !important;
  color: var(--asw-primary, #681ce2) !important;
}

body .asw-sh-sheet .asw-sh-sheet-close:active {
  transform: scale(0.96) !important;
}

body .asw-sh-sheet .asw-sh-sheet-close:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--asw-primary, #681ce2) 36%, transparent) !important;
  outline-offset: 2px !important;
}

body .asw-sh-sheet .asw-sh-sheet-head {
  flex: 0 0 auto;
  padding-inline-start: max(2.6rem, 44px);
}

body .asw-sh-sheet .asw-sh-sheet-foot {
  flex: 0 0 auto;
}

body .asw-header-sheet.asw-sh-sheet {
  --asw-sh-sheet-z: 100000;
  --asw-sh-sheet-width: 620px;
  --asw-sh-sheet-min-height: min(44vh, 360px);
  --asw-sh-sheet-max-height: min(88vh, 720px);
  --asw-sh-sheet-max-height-dvh: min(88dvh, 720px);
}

body .asw-product-sheet.asw-sh-sheet {
  --asw-sh-sheet-width: 720px;
  --asw-sh-sheet-min-height: 0;
  --asw-sh-sheet-max-height: min(86vh, 680px);
  --asw-sh-sheet-max-height-dvh: min(86dvh, 680px);
}

body .asw-product-sheet.asw-sh-sheet .asw-sh-sheet-content {
  height: auto !important;
  min-height: 0 !important;
  max-height: var(--asw-sh-sheet-max-height) !important;
  max-height: var(--asw-sh-sheet-max-height-dvh) !important;
}

body .asw-login-sheet.asw-sh-sheet {
  --asw-sh-sheet-width: 520px;
  --asw-sh-sheet-max-height: min(88vh, 700px);
  --asw-sh-sheet-max-height-dvh: min(88dvh, 700px);
}

body .asw-guest-join-sheet.asw-sh-sheet {
  --asw-sh-sheet-width: 560px;
  --asw-sh-sheet-max-height: min(90vh, 720px);
  --asw-sh-sheet-max-height-dvh: min(90dvh, 720px);
}

body .asw-savings-sheet.asw-sh-sheet {
  --asw-sh-sheet-width: 620px;
  --asw-sh-sheet-min-height: auto;
  --asw-sh-sheet-max-height: min(76vh, 620px);
  --asw-sh-sheet-max-height-dvh: min(76dvh, 620px);
}

body .asw-parts-sheet.asw-sh-sheet {
  --asw-sh-sheet-width: 720px;
  --asw-sh-sheet-min-height: min(52vh, 500px);
  --asw-sh-sheet-max-height: min(92vh, 760px);
  --asw-sh-sheet-max-height-dvh: min(92dvh, 760px);
}

@media (min-width: 768px) {
  body .asw-sh-sheet .asw-sh-sheet-content {
    bottom: 16px;
    border-bottom: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 8px;
  }
}

@media (max-width: 420px) {
  body .asw-header-sheet.asw-sh-sheet {
    --asw-sh-sheet-min-height: min(54vh, 430px);
    --asw-sh-sheet-max-height: min(90vh, 720px);
    --asw-sh-sheet-max-height-dvh: min(90dvh, 720px);
    --asw-sh-sheet-pad-x: 0.7rem;
  }
}
