/* =====================================================================
   SKR Mart — Responsive Patch
   Mobile-first refactor: replaces rigid px-based container widths with
   CSS Grid / Flexbox + clamp() fluid values, patches table overflow on
   cart/checkout, and enforces 44 px min touch-target across all inputs,
   buttons and interactive controls.

   Load order: enqueued AFTER skr-woo.css and skr-shop.css so every
   rule here wins the specificity race without !important bloat.

   Breakpoints (min-width, mobile-first):
     xs  < 480 px  — small phones
     sm  ≥ 480 px  — large phones / phablets
     md  ≥ 640 px  — tablets portrait
     lg  ≥ 768 px  — tablets landscape
     xl  ≥ 1025 px — desktops
     2xl ≥ 1280 px — wide desktops
   ===================================================================== */

/* ─────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES — fluid layout tokens
   ───────────────────────────────────────────── */
:root {
  /* Page gutter and content cap: the same 16 px / 1440 px column as the header and footer,
     so every page lines up with them (tokens --skr-page-* in skr-woo.css). */
  --skr-gutter:      16px;
  --skr-container:   min(100%, 1440px);
  /* Sidebar width token (desktop only) */
  --skr-sidebar-w:   280px;
  /* Touch-target floor (WCAG 2.5.5 / Apple HIG) */
  --skr-touch:       44px;
}


/* ─────────────────────────────────────────────
   2. CONTAINER — fluid, 100 % on mobile
   Replaces all hard-coded max-width: 1280px / 1200px / 1440px blocks.
   ───────────────────────────────────────────── */

/* Woo page wrappers */
.woocommerce-cart   .site-main,
.woocommerce-checkout .site-main,
.woocommerce-account  .site-main {
  max-width:     var(--skr-container);
  width:         100%;
  margin-inline: auto;
  padding-inline: var(--skr-gutter);
  box-sizing:    border-box;
}

/* Page heading breadcrumb bar */
.skr-page-head {
  max-width:     var(--skr-container);
  width:         100%;
  margin-inline: auto;
  padding-inline: var(--skr-gutter);
  padding-block: clamp(16px, 3vw, 28px) 8px;
  box-sizing:    border-box;
}

/* Recommendations section below empty-cart */
.skr-recommend {
  max-width:     var(--skr-container) !important;
  padding-inline: var(--skr-gutter) !important;
  box-sizing:    border-box !important;
}

/* Checkout Elementor container.
   No padding-inline here: this container always sits inside the page's Elementor container,
   which already applies the gutter. Adding it again cost 32px of a 390px screen — the form
   fields were 292px wide instead of 326px. */
.woocommerce-checkout .e-checkout__container {
  max-width: var(--skr-container) !important;
  width:     100% !important;
  padding-inline: 0 !important;
  box-sizing:    border-box !important;
}

/* ─────────────────────────────────────────────
   3. GLOBAL TOUCH-TARGET ENFORCEMENT (44 px)
   Every input, button, select and checkbox area
   meets the WCAG 2.5.5 / Apple HIG 44 px minimum.
   ───────────────────────────────────────────── */

/* Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page a.button,
.woocommerce-page button.button,
body.skr-woo .button,
body.skr-woo button[type="submit"],
#place_order,
.single_add_to_cart_button,
.skr-buy-now,
.skr-mcb-btn,
.skr-mcheckout__go,
.skr-mcheckout__summary,
.skr-pbar__btn,
.skr-apply,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.skr-empty-cart__btn {
  min-height: var(--skr-touch) !important;
}

/* Text / tel / email / number / search inputs */
body.skr-woo .input-text,
body.skr-woo input[type="text"],
body.skr-woo input[type="email"],
body.skr-woo input[type="tel"],
body.skr-woo input[type="password"],
body.skr-woo input[type="number"],
body.skr-woo input[type="search"]:not(.elementor-search-form__input),
.woocommerce form .form-row .input-text,
.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
body.skr-woo select:not(.skr-sort__select),
/* Coupon inputs */
.woocommerce-cart table.cart td.actions .coupon .input-text,
.elementor-widget-woocommerce-cart .coupon .coupon-col-start .input-text,
/* Pincode input on product page */
.skr-pincode input[type="text"] {
  min-height: var(--skr-touch) !important;
}

/* Select2 (country/state) */
body.skr-woo .select2-container .select2-selection--single,
body.skr-woo .select2-container .select2-selection--single .select2-selection__rendered,
body.skr-woo .select2-container .select2-selection--single .select2-selection__arrow {
  min-height: var(--skr-touch) !important;
  height:     var(--skr-touch) !important;
  line-height: var(--skr-touch) !important;
}

/* Quantity stepper buttons */
.skr-qty__btn,
.woocommerce-cart .skr-qty__btn {
  min-width:  var(--skr-touch) !important;
  min-height: var(--skr-touch) !important;
  width:      var(--skr-touch) !important;
  height:     var(--skr-touch) !important;
}

/* Quantity stepper wrapper height */
.quantity.skr-qty {
  height: var(--skr-touch) !important;
}

/* Coupon "Apply" quick-pill button */
.skr-quick-coupon-btn {
  min-height: var(--skr-touch);
  padding:    0 16px;
}

/* Checkout mobile bar buttons */
.skr-mcheckout__go,
.skr-mcheckout__summary {
  min-height: var(--skr-touch) !important;
  padding:    0 20px !important;
}

/* Pincode check button */
.skr-pincode__btn {
  min-height: var(--skr-touch);
}

/* Category pills (ecc) */
.skr-ecc-pill {
  min-height: var(--skr-touch);
}

/* Remove button on cart item — keep 44 px tap area via padding */
.woocommerce-cart table.cart td.product-remove a.remove {
  width:  var(--skr-touch);
  height: var(--skr-touch);
}

/* Coupon remove link */
.woocommerce-cart .cart_totals tr.cart-discount .woocommerce-remove-coupon {
  min-height:  var(--skr-touch);
  display:     inline-flex;
  align-items: center;
}

/* ─────────────────────────────────────────────
   4. CART PAGE — responsive grid + table overflow
   ───────────────────────────────────────────── */

/* 4a. Two-column grid (desktop), stacked on tablet/mobile */
.woocommerce-cart .woocommerce {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 30vw, 400px);
  gap: clamp(16px, 3vw, 28px);
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
}

.woocommerce-cart .woocommerce-cart-form {
  grid-column: 1;
  min-width: 0; /* prevent grid blowout */
}

.woocommerce-cart .cart-collaterals {
  grid-column: 2;
  grid-row:    2 / span 3;
  position:    sticky;
  top:         clamp(16px, 3vw, 24px);
  width:       auto !important;
}

/* 4b. Prevent the cart TABLE itself from forcing horizontal scroll */
.woocommerce-cart table.cart {
  width:      100% !important;
  table-layout: fixed; /* col widths controlled by grid areas */
  box-sizing: border-box;
}

/* 4c. Item card grid – tighter on mobile */
.woocommerce-cart table.cart tr.cart_item {
  grid-template-columns: clamp(72px, 15vw, 104px) minmax(0, 1fr) auto auto;
  gap: clamp(6px, 2vw, 22px);
  padding: clamp(12px, 3vw, 18px) clamp(36px, 8vw, 52px) clamp(12px, 3vw, 18px) clamp(12px, 3vw, 18px);
}

/* 4d. Thumbnail: fluid size */
.woocommerce-cart table.cart td.product-thumbnail a {
  width:  clamp(72px, 15vw, 104px);
  height: clamp(72px, 15vw, 104px);
}

/* 4e. Table overflow wrapper for totals (prevents bleed on narrow viewports) */
.woocommerce-cart .cart_totals {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.woocommerce-cart .cart_totals table.shop_table {
  min-width: 280px;
}

/* 4f. Actions row coupon: stack on narrow */
.woocommerce-cart table.cart td.actions {
  flex-wrap: wrap;
  gap: clamp(8px, 2vw, 12px);
}

.woocommerce-cart table.cart td.actions .coupon {
  flex: 1 1 100%;   /* full-width on mobile */
  min-width: 0;
}

/* ─────────────────────────────────────────────
   5. CHECKOUT PAGE — responsive grid + table overflow
   ───────────────────────────────────────────── */

/* 5a. Two-column layout: form | order summary */
.woocommerce-checkout .e-checkout__container {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(clamp(280px, 30vw, 380px), 1fr) !important;
  gap: clamp(16px, 3vw, 28px) !important;
  align-items: start !important;
}

/* 5b. Checkout review table.
   It holds no wide content (a thumbnail, a name, an amount), so it stays a real table and
   wraps instead of scrolling. "display: block" here used to stop the cells filling the table
   width, which squeezed the product name into ~78px and wrapped it over four lines. */
.woocommerce-checkout table.woocommerce-checkout-review-order-table {
  display:      table !important;
  width:        100% !important;
  table-layout: auto !important;
  overflow:     visible !important;
  white-space:  normal !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table thead,
.woocommerce-checkout table.woocommerce-checkout-review-order-table tbody,
.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot {
  display: table-row-group;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tr {
  display: table-row;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table td {
  display:    table-cell;
  white-space: normal; /* allow product names to wrap */
}

/* Give the label/name column the slack and let the amount keep its own line. */
.woocommerce-checkout table.woocommerce-checkout-review-order-table .product-name,
.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot th { width: auto !important; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table .product-total,
.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot td {
  width: 1% !important;
  padding-left: 10px !important;
  white-space: nowrap !important;
}

/* 5c. Customer details inner cards — no bleed */
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
  padding-inline: clamp(16px, 4vw, 32px) !important;
  padding-block:  clamp(16px, 3vw, 28px) !important;
  box-sizing:     border-box !important;
}

/* 5d. Half-width fields (first/last name, postcode/city) */
@media (min-width: 640px) {
  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last {
    width: calc(50% - 10px) !important;
  }
}

/* 5e. Mobile checkout bar overflow safety */
.skr-mcheckout {
  box-sizing:    border-box;
  padding-inline: var(--skr-gutter);
  width:         100%;
}


/* ─────────────────────────────────────────────
   6. PRODUCT ARCHIVE (archive-product / shop)
   ───────────────────────────────────────────── */

/* 6a. Product grid: mobile-first column ramp */
body.skr-woo ul.products {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(10px, 2vw, 16px) !important;
}

@media (min-width: 640px) {
  body.skr-woo ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1025px) {
  body.skr-woo ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
   body.skr-woo ul.products.columns-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

/* 6b. Recommendation grid inside empty cart */
.skr-recommend ul.products {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (min-width: 640px) {
  .skr-recommend ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

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

/* 6c. Category tiles: mobile-first column ramp */
.skr-cats__list {
  grid-template-columns: repeat(var(--skr-cat-cols-xs, 3), minmax(0, 1fr)) !important;
}

@media (min-width: 480px) {
  .skr-cats__list {
    grid-template-columns: repeat(var(--skr-cat-cols-sm, 4), minmax(0, 1fr)) !important;
  }
}

@media (min-width: 768px) {
  .skr-cats__list {
    grid-template-columns: repeat(var(--skr-cat-cols, 6), minmax(0, 1fr)) !important;
  }
}

/* ─────────────────────────────────────────────
   7. SINGLE PRODUCT (single-product)
   ───────────────────────────────────────────── */

/* 7a. Ensure product form columns don't overflow */
.single-product .woocommerce-product-gallery,
.single-product .product .summary {
  min-width: 0;
  box-sizing: border-box;
}

/* 7b. Tabs — horizontal scroll fallback on narrow screens */
.single-product .woocommerce-tabs ul.tabs {
  display:  flex;
  flex-wrap: wrap;
  gap:      4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 7c. Assurances row — wrap gracefully on mobile */
.skr-assure {
  display:   flex;
  flex-wrap: wrap;
  gap:       clamp(12px, 3vw, 20px);
}

.skr-assure__delivery,
.skr-assure__badges {
  flex:     1 1 clamp(240px, 40%, 340px);
  min-width: 0;
}

/* 7d. Pincode row input + button: full-width row on mobile */
.skr-pincode__row {
  display:   flex;
  flex-wrap: wrap;
  gap:       8px;
}

.skr-pincode__row input[type="text"] {
  flex:      1 1 160px;
  min-width: 0;
}

.skr-pincode__btn {
  flex:       0 0 auto;
  min-height: var(--skr-touch);
  padding:    0 16px;
}

/* ─────────────────────────────────────────────
   8. FORM FIELD RESPONSIVE ADJUSTMENTS
   ───────────────────────────────────────────── */

/* form-row-first / form-row-last: stack below md */
@media (max-width: 639px) {
  .woocommerce form .form-row-first,
  .woocommerce form .form-row-last {
    width: 100% !important;
    float: none !important;
    clear: both !important;
  }
}

/* ─────────────────────────────────────────────
   9. MOBILE-FIRST BREAKPOINT STACK
   min-width media queries only (no max-width except
   where layout strictly needs a ceiling)
   ───────────────────────────────────────────── */

/* ── xs: < 480 px — phones ── */
/* (base styles above are already mobile-first) */

/* ── sm: ≥ 480 px ── */
@media (min-width: 480px) {

  .woocommerce-cart table.cart td.actions .coupon {
    flex: 1 1 280px; /* allow coupon row to expand alongside button */
  }

  /* Empty cart: slightly wider graphic */
  .skr-empty-cart__graphic {
    width:  clamp(100px, 20vw, 130px);
    height: clamp(100px, 20vw, 130px);
  }
}

/* ── md: ≥ 640 px ── */
@media (min-width: 640px) {

  /* Cart item card: restore 4-column grid */
  .woocommerce-cart table.cart tr.cart_item {
    grid-template-columns: clamp(82px, 12vw, 104px) minmax(0, 1fr) auto auto;
    grid-template-areas: "img name qty sub" "img price qty sub";
  }

  /* Checkout form half-width fields */
  .woocommerce-checkout .form-row-first {
    float: left !important;
    width: calc(50% - 10px) !important;
  }
  .woocommerce-checkout .form-row-last {
    float: right !important;
    width: calc(50% - 10px) !important;
  }
  .woocommerce-checkout .form-row-wide {
    clear: both !important;
    width: 100% !important;
  }
}

/* ── lg: ≥ 768 px ── */
@media (min-width: 768px) {

  /* Cart: restore two-column layout */
  .woocommerce-cart .woocommerce {
    grid-template-columns: minmax(0, 1fr) clamp(300px, 30vw, 400px);
  }

  .woocommerce-cart .cart-collaterals {
    grid-column: 2;
    grid-row:    2 / span 3;
    position:    sticky;
    top:         clamp(16px, 3vw, 24px);
  }

  /* Coupon action row: side-by-side */
  .woocommerce-cart table.cart td.actions .coupon {
    flex: 1 1 320px;
  }
}

/* ── xl: ≥ 1025 px ── */
@media (min-width: 1025px) {

  /* Checkout two-column */
  .woocommerce-checkout .e-checkout__container {
    grid-template-columns: minmax(0, 1.45fr) minmax(clamp(320px, 28vw, 400px), 1fr) !important;
  }

  /* Page head: full gutter */
  .skr-page-head {
    padding-inline: var(--skr-gutter);
  }

  /* Sticky order summary */
  .woocommerce-checkout .e-checkout__column-2 {
    position: sticky !important;
    top:      clamp(16px, 3vw, 24px) !important;
  }
}

/* ── 2xl: ≥ 1280 px — wide screens ── */
@media (min-width: 1280px) {
  /* Cart sidebar can flex to 420 px on very wide viewports */
  .woocommerce-cart .woocommerce {
    grid-template-columns: minmax(0, 1fr) clamp(360px, 28vw, 420px);
  }
}


/* ─────────────────────────────────────────────
   10. OVERRIDE max-width breakpoints that originally
       used max-width: 1024px / 768px / 767px (now
       expressed as min-width complements).
   ───────────────────────────────────────────── */

/* Collapse cart to single column when narrower than lg */
@media (max-width: 767px) {

  .woocommerce-cart .woocommerce {
    grid-template-columns: 1fr !important;
  }

  .woocommerce-cart .cart-collaterals {
    grid-column: 1 !important;
    grid-row:    auto !important;
    position:    static !important;
  }

  /* Item card: 2-col compact grid */
  .woocommerce-cart table.cart tr.cart_item {
    grid-template-columns: clamp(68px, 20vw, 82px) minmax(0, 1fr) !important;
    grid-template-areas: "img name" "img price" "qty sub" !important;
    padding: 14px 42px 14px 12px !important;
    gap: 6px 12px !important;
  }

  .woocommerce-cart table.cart td.product-thumbnail a {
    width:  clamp(68px, 20vw, 82px) !important;
    height: clamp(68px, 20vw, 82px) !important;
  }

  .woocommerce-cart table.cart td.product-subtotal {
    min-width: 0 !important;
  }

  /* Totals table: prevent overflow  */
  .woocommerce-cart .cart_totals {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Checkout collapses to single column */
  .woocommerce-checkout .e-checkout__container {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Mobile cart bar safe-area padding */
  .skr-mobile-cart-bar {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  body.woocommerce-cart {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  /* Mobile checkout bar */
  .skr-mcheckout {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}

/* Checkout collapse at 1024 px */
@media (max-width: 1024px) {
  .woocommerce-checkout .e-checkout__container {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .woocommerce-checkout .e-checkout__column-2 {
    position: static !important;
  }
}


/* ─────────────────────────────────────────────
   11. CHECKOUT REVIEW TABLE — mobile card view
   On narrow viewports the standard table layout
   causes horizontal overflow; switch to a stacked
   card-per-row layout.
   ───────────────────────────────────────────── */

/* The rows are "label + amount", which a two-column table already renders well at any width.
   Switching them to flex blocks made the cells size to content instead of filling the row, so
   the layout model stays a table and only the spacing tightens here. */
@media (max-width: 480px) {

  .woocommerce-checkout table.woocommerce-checkout-review-order-table thead {
    display: none !important;
  }

  .woocommerce-checkout table.woocommerce-checkout-review-order-table th,
  .woocommerce-checkout table.woocommerce-checkout-review-order-table td {
    padding-block: 10px !important;
    vertical-align: middle !important;
  }

  /* Thumbnail + name block: smaller image, tighter gap, name uses the rest of the row. */
  .skr-checkout-product { gap: 10px !important; }
  .skr-checkout-thumb { width: 52px !important; height: 52px !important; }
  .skr-checkout-product__name { font-size: 13.5px !important; }
}


/* ─────────────────────────────────────────────
   12. SHOP TABLE (order details, account pages)
       — full-width table on desktop/tablet,
         clean responsive behavior on mobile
   ───────────────────────────────────────────── */

.woocommerce .shop_table {
  display: table;
  width: 100%;
  table-layout: auto;
}

.woocommerce-cart .cart_totals .shop_table {
  display: table;
  overflow-x: visible;
}

@media (max-width: 767px) {
  .woocommerce .shop_table:not(.cart_totals .shop_table):not(.woocommerce-orders-table):not(.order_details):not(.woocommerce-checkout-review-order-table) {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }
}


/* ─────────────────────────────────────────────
   13. ACCOUNT PAGES
   ───────────────────────────────────────────── */

/* Login/register split + switched card: comfortable tablet/mobile spacing */
@media (max-width: 900px) {
  .skr-account-out .skr-account-split {
    flex-direction: column !important;
    padding: 4px 0 24px;
  }
  .skr-account-out .skr-auth-media,
  .skr-account-out .skr-auth-main {
    width: 100% !important;
    max-width: 480px !important;
    margin-inline: auto !important;
  }
  .skr-account-out .skr-auth-media img {
    max-height: 240px;
    object-fit: cover;
  }
  .skr-account-out .elementor-widget-woocommerce-my-account .woocommerce {
    margin: 0 auto;
  }
}
@media (max-width: 767px) {
  .skr-account-out .site-main > .woocommerce {
    padding: 24px 16px 48px;
  }
  .skr-account-out .woocommerce > .u-columns.col2-set,
  .skr-account-out #customer_login,
  .skr-account-out .woocommerce > .woocommerce-form-login,
  .woocommerce-ResetPassword {
    padding: 22px 18px !important;
  }
}

/* Orders table on account page: full-width table on desktop/tablet, stacked cards on mobile */
.woocommerce .woocommerce-MyAccount-content table.woocommerce-orders-table {
  display: table !important;
  width: 100% !important;
  min-width: 0;
}

@media (max-width: 767px) {
  .woocommerce .woocommerce-MyAccount-content table.woocommerce-orders-table,
  .woocommerce .woocommerce-MyAccount-content table.woocommerce-orders-table tbody {
    display: block !important;
    width: 100% !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
  }
  .woocommerce .woocommerce-MyAccount-content table.woocommerce-orders-table thead {
    display: none !important;
  }
  .woocommerce .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr {
    display: block !important;
    margin-bottom: 14px !important;
    padding: 4px 14px !important;
    background: #fff !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
  }
  .woocommerce .woocommerce-MyAccount-content table.woocommerce-orders-table tbody td {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 10px 0 !important;
    text-align: right !important;
    border-top: 1px solid #EEF2F7 !important;
  }
  .woocommerce .woocommerce-MyAccount-content table.woocommerce-orders-table tbody td:first-child {
    border-top: 0 !important;
  }
  .woocommerce .woocommerce-MyAccount-content table.woocommerce-orders-table tbody td::before {
    content: attr(data-title);
    font: 700 11.5px/1.2 var(--skr-font, Inter, sans-serif);
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748B;
    text-align: left;
    flex: 0 0 auto;
  }
  .woocommerce .woocommerce-MyAccount-content table.woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-actions {
    flex-wrap: wrap;
    justify-content: flex-end !important;
  }
}


/* ─────────────────────────────────────────────
   14. EMPTY CART RESPONSIVE POLISH
   ───────────────────────────────────────────── */

.skr-empty-cart {
  max-width:     clamp(300px, 90vw, 620px) !important;
  padding-inline: clamp(20px, 6vw, 48px) !important;
  padding-block:  clamp(28px, 5vw, 48px) !important;
  margin-inline:  auto !important;
  box-sizing:     border-box !important;
}

.skr-ecc-pills {
  gap: clamp(6px, 2vw, 8px);
}

.skr-ecc-pill {
  font-size: clamp(12px, 2.5vw, 13px);
}


/* ─────────────────────────────────────────────
   15. FREE SHIPPING METER — mobile spacing
   ───────────────────────────────────────────── */

.skr-free-shipping-card {
  padding-inline: clamp(12px, 3vw, 20px);
  padding-block:  clamp(12px, 2.5vw, 16px);
}

.skr-fsc-header {
  gap: clamp(8px, 2vw, 14px);
}


/* ─────────────────────────────────────────────
   16. TRUST + PAYMENT BADGES — flex wrap on mobile
   ───────────────────────────────────────────── */

.skr-cart-trust-wrapper .skr-trust-line {
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .skr-cart-trust-wrapper .skr-trust-line {
    grid-template-columns: 1fr 1fr;
  }
}

.skr-payments-chips {
  gap: clamp(4px, 1.5vw, 6px);
}


/* ─────────────────────────────────────────────
   17. MOBILE STICKY BARS — safe-area aware
   ───────────────────────────────────────────── */

/* Cart sticky bar */
.skr-mobile-cart-bar {
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  /* Ensure it never goes narrower than content */
  min-height: calc(var(--skr-touch) + 24px + env(safe-area-inset-bottom));
}

/* Checkout mobile bar */
.skr-mcheckout[data-skr-mcheckout] {
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}


/* ─────────────────────────────────────────────
   18. PRINT — remove sticky bars, restore widths
   ───────────────────────────────────────────── */

@media print {
  .skr-mobile-cart-bar,
  .skr-mcheckout,
  .skr-mbar--float { display: none !important; }

  .woocommerce-cart .woocommerce,
  .woocommerce-checkout .e-checkout__container {
    display: block !important;
    max-width: 100% !important;
  }
}


/* ─────────────────────────────────────────────
   19. REDUCED MOTION — respect user preference
   ───────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .woocommerce-cart table.cart tr.cart_item,
  .skr-free-shipping-card,
  .skr-mobile-cart-bar,
  .skr-mcheckout {
    transition: none !important;
    animation:  none !important;
  }
}


/* ─────────────────────────────────────────────
   20. CHECKOUT — field ergonomics on phones
   Measured on the live page at 390px before these
   rules: fields 292px wide, 14px text, shipment
   choices squeezed into a 70px cell, step pill
   wrapped onto three lines.
   ───────────────────────────────────────────── */

/* Columns stack their cards; PRO Elements 4.3 names them "__column-start" / "__column-end",
   older builds "-1" / "-2". Both are listed so the gap survives either. */
.woocommerce-checkout .e-checkout__column-1,
.woocommerce-checkout .e-checkout__column-2,
.woocommerce-checkout .e-checkout__column-start,
.woocommerce-checkout .e-checkout__column-end,
.woocommerce-checkout .e-checkout__column-inner {
  display:        flex !important;
  flex-direction: column !important;
  gap:            clamp(14px, 2.5vw, 20px) !important;
  width:          100% !important;
  float:          none !important;
}

@media (max-width: 767px) {

  /* One padding value for every card on the page, so the fields line up edge to edge. */
  .woocommerce-checkout #customer_details .col-1,
  .woocommerce-checkout #customer_details .col-2,
  .woocommerce-checkout .e-checkout__order_review,
  .woocommerce-checkout .e-checkout__order_review-2,
  .woocommerce-checkout .e-coupon-box,
  .woocommerce-checkout .e-woocommerce-login-section {
    padding-inline: 16px !important;
    padding-block:  18px !important;
    border-radius:  14px !important;
  }

  /* Shipment choices were crushed into the 70px amount column, clipping "Free shipping".
     Dropping the row header moves the cell into the wide first column and WooCommerce's own
     data-title attribute supplies the label back, so nothing is lost.
     (Switching the row's display mode instead creates anonymous table boxes — the cell then
     ignores width:100% and lands at 70px, which is what this replaced.) */
  .woocommerce-checkout .woocommerce-shipping-totals.shipping > th { display: none !important; }
  .woocommerce-checkout .woocommerce-shipping-totals.shipping > td {
    text-align: left !important;
    padding-right: 0 !important;
  }
  .woocommerce-checkout .woocommerce-shipping-totals.shipping > td::before {
    content:     attr(data-title);
    display:     block;
    margin-bottom: 6px;
    font:        700 14px/1.3 var(--skr-font, inherit);
    color:       var(--skr-text, inherit);
  }
  .woocommerce-checkout-review-order-table .woocommerce-shipping-totals ul#shipping_method li {
    justify-content: flex-start !important;
    gap:             10px !important;
    padding:         10px 12px !important;
  }
  .woocommerce-checkout-review-order-table .woocommerce-shipping-totals ul#shipping_method li label {
    display: flex !important;
    flex:    1 !important;
    justify-content: space-between !important;
    gap:     8px !important;
  }

  /* Payment method descriptions sat in a narrow box with 4-word lines. */
  .woocommerce-checkout #payment ul.payment_methods li .payment_box { padding: 12px 14px !important; }
  .woocommerce-checkout #payment ul.payment_methods li .payment_box p { font-size: 13px !important; }
}

/* Breadcrumb step pill: compact single row that fits cleanly on mobile without clipping. */
@media (max-width: 600px) {
  .skr-steps-list {
    display:         inline-flex !important;
    max-width:       100% !important;
    padding:         6px 12px !important;
    overflow-x:      auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
  }
  .skr-steps-list::-webkit-scrollbar { display: none; }
  .skr-steps-list .elementor-icon-list-items { flex-wrap: nowrap !important; gap: 0 !important; }
  .skr-steps-list .elementor-icon-list-item {
    flex:        none !important;
    gap:         5px !important;
    font-size:   12px !important;
    white-space: nowrap !important;
  }
  .skr-steps-list .elementor-icon-list-item .elementor-icon-list-icon {
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px !important;
  }
  .skr-steps-list .elementor-icon-list-item + .elementor-icon-list-item::before {
    flex: 0 0 12px !important;
    width: 12px !important;
    margin: 0 4px 0 8px !important;
  }
}

/* ─────────────────────────────────────────────
   21. SELECT2 — keep the hidden native select hidden
   Select2 leaves the real <select> in the DOM for
   assistive tech, clipped to 1px. The generic
   "width: 100%" / "min-height: 44px" select rules
   re-inflated it to the full column width; being
   absolutely positioned and only *clipped*, it still
   counted towards the document width and pushed the
   checkout 7-8px wider than the viewport at 768px
   and 1024px (horizontal scroll on tablets).
   ───────────────────────────────────────────── */
body.skr-woo select.select2-hidden-accessible,
.woocommerce-checkout select.select2-hidden-accessible,
.woocommerce select.select2-hidden-accessible {
  position:    absolute !important;
  width:       1px !important;
  height:      1px !important;
  min-height:  0 !important;
  margin:      -1px !important;
  padding:     0 !important;
  border:      0 !important;
  overflow:    hidden !important;
  clip:        rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

/* Row labels: <th> defaults to text-align: center in every browser, and Storefront's reset
   is deliberately not loaded, so "Subtotal" / "Shipment" / "Total" sat centred in their
   column at every width. */
.woocommerce-checkout table.woocommerce-checkout-review-order-table th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout .woocommerce-shipping-totals.shipping > td::before {
  text-align: left !important;
}

/* ─────────────────────────────────────────────
   22. ORDER SUMMARY — column balance on phones
   The amount column is as wide as its widest cell,
   and that was the 22px grand total plus its inline
   "includes GST" note: 159px of a 358px card, which
   pushed product names onto three or four lines.
   ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .woocommerce-checkout table.woocommerce-checkout-review-order-table .order-total th {
    font-size: 16px !important;
  }
  .woocommerce-checkout table.woocommerce-checkout-review-order-table .order-total td {
    font-size: 19px !important;
  }
  /* The tax note on its own line keeps it out of the column's width calculation. */
  .woocommerce-checkout table.woocommerce-checkout-review-order-table .order-total td small,
  .woocommerce-checkout table.woocommerce-checkout-review-order-table .order-total td .includes_tax {
    display:     block !important;
    white-space: normal !important;
    margin-top:  2px !important;
  }
  .woocommerce-checkout table.woocommerce-checkout-review-order-table .cart_item .product-total {
    font-size: 14px !important;
  }
}

/* ─────────────────────────────────────────────
   23. TOUCH FIELD TEXT — 16px up to the desktop breakpoint
   iOS Safari zooms the page when a focused field's text
   is under 16px, which drops the shopper out of the
   layout mid-checkout. 14px is also small for typing an
   address on a touch screen, so this covers tablets too.
   The 48px control height is unchanged.
   ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .woocommerce-checkout input.input-text,
  .woocommerce-checkout textarea.input-text,
  .woocommerce-checkout textarea,
  .woocommerce-checkout select:not(.select2-hidden-accessible),
  .woocommerce-checkout .select2-container .select2-selection__rendered,
  .woocommerce-account input.input-text,
  .woocommerce-cart .coupon .input-text {
    font-size: 16px !important;
  }
}

/* ─────────────────────────────────────────────
   30. SINGLE PRODUCT POLISH (buy box, badges, gallery, tabs)
   ───────────────────────────────────────────── */
/* Buy box rhythm: price block sits tight above the short description. */
.single-product .skr-pprice .price { line-height: 1.1; }
.single-product .woocommerce-product-details__short-description { margin: 0; color: var(--skr-body, #334155); }
.single-product .skr-offer-strip { padding: 14px 16px; }

/* Assurances: one column inside the narrow buy box; badge card is a 2x2 grid of aligned tiles. */
.single-product .skr-assure { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 20px; }
.single-product .skr-assure__delivery, .single-product .skr-assure__badges { flex: none; width: 100%; }
.single-product .skr-pincode__row { max-width: none; flex-wrap: nowrap; }
.single-product .skr-assure__list { margin: 0; }
.single-product .skr-assure__list li { align-items: center; }
.single-product .skr-assure__badges { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; }
.single-product .skr-assure__badges li { align-items: flex-start; gap: 10px; padding: 10px; background: #fff; border: 1px solid #EEF2F7; border-radius: 12px; }
.single-product .skr-assure__badges li span:last-child { min-width: 0; overflow-wrap: anywhere; }
.single-product .skr-assure__ico { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #EEF2FF; color: var(--skr-primary, #1E22AA); font-size: 16px; line-height: 1; }
.single-product .skr-assure__list .skr-assure__ico { width: 28px; height: 28px; font-size: 14px; }
@media (max-width: 480px) { .single-product .skr-assure__badges { grid-template-columns: 1fr; } }

/* Duplicate trust strip (genuine / secure / GST) repeats the badge card above it. */
.single-product .skr-trust-badges { display: none; }

/* Wishlist + compare: same height pill, aligned on one row. */
.single-product .skr-compare-btn--toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--skr-border, #E2E8F0); border-radius: 999px; background: #fff; font: 700 13px/1 var(--skr-font); color: var(--skr-text, #0F172A); cursor: pointer; transition: border-color .2s, background-color .2s; }
.single-product .skr-compare-btn--toggle:hover { border-color: var(--skr-primary, #1E22AA); }
.single-product .skr-compare-btn--toggle input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border: 2px solid #94A3B8; border-radius: 5px; background: #fff; display: inline-grid; place-items: center; cursor: pointer; }
.single-product .skr-compare-btn--toggle input:checked { background: var(--skr-primary, #1E22AA); border-color: var(--skr-primary, #1E22AA); }
.single-product .skr-compare-btn--toggle input:checked::after { content: ''; width: 4px; height: 8px; margin-top: -2px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.single-product .skr-compare-btn--toggle input:focus-visible { outline: 2px solid var(--skr-primary, #1E22AA); outline-offset: 2px; }

/* Gallery: remove the nested border so the image does not look double-framed. */
.single-product .woocommerce-product-gallery .flex-viewport,
.single-product .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:only-child { border: 0; background: transparent; }

/* Tabs: one scrollable row, never wrapping to a second line. */
.single-product .woocommerce-tabs ul.tabs { flex-wrap: nowrap !important; overflow-x: auto; }
.single-product .woocommerce-tabs ul.tabs li { flex: none; }
.single-product .skr-heart--label { min-height: 40px; padding-top: 0; padding-bottom: 0; box-shadow: none; border: 1px solid var(--skr-border, #E2E8F0); }
.single-product .skr-pextras { gap: 10px; }
.single-product .elementor-widget-woocommerce-product-short-description { margin-block: -8px; }
/* Elementor's sticky script injects a width-matched spacer next to the (now native-sticky) gallery
   column. For a frame it doubles the column and pushes the page ~150px wider (horizontal scrollbar
   flash, buy box jumps right). The column is position:sticky, so no spacer is needed. */
.single-product .elementor-sticky__spacer { display: none !important; }
body.single-product { overflow-x: clip; }

/* Cart: the Elementor cart grid sized its single column to the item row's
   min-content (457px on a 390px phone). Let the column shrink. */
@media (max-width: 767px) {
  .woocommerce-cart .e-cart__container {
    grid-template-columns: minmax(0, 1fr);
  }
  .woocommerce-cart .e-cart__column,
  .woocommerce-cart .e-cart__column .e-shop-table,
  .woocommerce-cart table.cart td {
    min-width: 0;
  }
}

/* Phones: 16px minimum so iOS Safari does not zoom on focus. */
@media (max-width: 767px) {
  .woocommerce-Input.input-text,
  .woocommerce form .input-text,
  .skr-sort__select,
  .skr-filter__search,
  .skr-price__num {
    font-size: 16px;
  }
}

/* 404 page: Storefront's default markup, laid out to match the site. */
.error404 .site-main {
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px 56px;
}
.error404 .page-title {
  margin: 0 0 8px;
  font-size: clamp(24px, 5vw, 36px);
}
.error404 .error-404 > .page-content > p {
  margin: 0 0 20px;
  color: #64748B;
}
.error404 .woocommerce-product-search {
  display: flex;
  gap: 8px;
  max-width: 560px;
  margin: 0 0 32px;
}
.error404 .woocommerce-product-search .search-field {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 16px;
}
.error404 .woocommerce-product-search button {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 22px;
  border-radius: 8px;
}
.error404 .fourohfour-columns-2,
.error404 .fourohfour-columns-2 > section {
  min-width: 0;
  max-width: 100%;
  float: none;
  width: 100%;
}
.error404 .fourohfour-columns-2 > section > h2 {
  margin: 0 0 16px;
  font-size: 22px;
}
.error404 .product-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.error404 .product-categories > li {
  margin: 0;
}
.error404 .product-categories > li > a {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  color: #0F172A;
  text-decoration: none;
}
.error404 .product-categories > li > a:hover {
  border-color: #1E22AA;
  color: #1E22AA;
}
.error404 .product-categories .count,
.error404 .product-categories .children,
.error404 .product-categories .dropdown-toggle {
  display: none;
}
.error404 ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 16px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.error404 ul.products::before,
.error404 ul.products::after {
  display: none;
}
.error404 ul.products > li {
  width: auto;
  margin: 0;
  float: none;
}
.error404 ul.products > li .button {
  box-sizing: border-box;
  max-width: 100%;
}
@media (max-width: 767px) {
  .single-product input.qty,
  .single-product #skr-pincode-input,
  .error404 .woocommerce-product-search .search-field {
    font-size: 16px;
  }
}
@media (max-width: 767px) {
  body.error404 .woocommerce-product-search input.search-field,
  body.woocommerce-cart table.cart td.product-quantity input.qty,
  body.single-product form.cart div.quantity input.qty {
    font-size: 16px;
  }
}

/* Checkout: field and alignment fixes. The base checkout rules use !important,
   so these match that and win on the body.woocommerce-checkout prefix. */
body.woocommerce-checkout .select2-container .select2-selection--single {
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 48px !important;
  min-height: 48px !important;
  line-height: normal !important;
}
body.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered {
  flex: 1 1 auto;
  min-width: 0;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 40px 0 16px !important;
  line-height: 1.3 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow {
  top: 0 !important;
  right: 12px !important;
  height: 48px !important;
}
body.woocommerce-checkout input.input-text::placeholder,
body.woocommerce-checkout textarea::placeholder {
  text-overflow: ellipsis;
}
body.woocommerce-checkout #ship-to-different-address {
  padding: 0 !important;
}
body.woocommerce-checkout #ship-to-different-address label {
  padding: 0 !important;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table td,
body.woocommerce-checkout .woocommerce-checkout-review-order-table th {
  vertical-align: middle;
}
body.woocommerce-checkout .woocommerce-privacy-policy-text {
  margin-top: 0 !important;
}
body.woocommerce-checkout #customer_details .col-2:not(:has(.shipping_address:not([style*="display: none"]))) {
  padding: 20px 32px !important;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total {
  vertical-align: middle !important;
}
body.woocommerce-checkout #payment ul.wc_payment_methods {
  margin-bottom: 0 !important;
}
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  margin-top: 12px !important;
}
@media (max-width: 767px) {
  body.woocommerce-checkout #customer_details .col-2:not(:has(.shipping_address:not([style*="display: none"]))) {
    padding: 16px 18px !important;
  }
  body.woocommerce-checkout input.input-text::placeholder {
    font-size: 14px;
  }
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name {
  font-size: 0;
  line-height: 0;
}
body.woocommerce-checkout #customer_details .col-2 .woocommerce-additional-fields {
  margin: 10px 0 0 !important;
}
body.woocommerce-checkout #customer_details .col-2 .woocommerce-additional-fields .skr-add-row {
  margin-bottom: 0;
}
body.woocommerce-checkout #customer_details .col-2 .woocommerce-additional-fields .skr-add-row[aria-expanded="true"] {
  margin-bottom: 12px;
}

/* =====================================================================
   31. GLOBAL MOBILE-FIRST OVERFLOW & TYPOGRAPHY GUARD
   ===================================================================== */
html,
body {
  overflow-x: clip;
  max-width: 100%;
}

/* Consistent 2-line product title clamping across Home & Shop cards */
body.skr-woo ul.products li.product .woocommerce-loop-product__title,
.elementor-widget-woocommerce-products .woocommerce-loop-product__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.35;
}

/* =====================================================================
   32. COMPACT RESPONSIVE FOOTER (.elementor-116) — MOBILE & TABLET ONLY
   Scoped to <= 1024px so the desktop footer (>= 1025px) remains
   completely unchanged from its original Elementor layout.
   ===================================================================== */
@media (max-width: 1024px) {
  /* --- Band 1: Newsletter Strip --- */
  .elementor-116 .skr-footer > .e-con:nth-child(1) {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }

  .elementor-116 .skr-footer > .e-con:nth-child(1) .e-con-inner {
    gap: 12px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .elementor-116 .skr-footer > .e-con:nth-child(1) .elementor-widget-icon-box .elementor-icon-box-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    gap: 12px !important;
  }

  .elementor-116 .skr-footer > .e-con:nth-child(1) .elementor-widget-icon-box .elementor-icon {
    font-size: 18px !important;
    padding: 10px !important;
    border-radius: 10px !important;
  }

  .elementor-116 .skr-footer > .e-con:nth-child(1) .elementor-icon-box-title {
    font-size: clamp(15px, 3.8vw, 19px) !important;
    line-height: 1.25 !important;
    margin-bottom: 2px !important;
  }

  .elementor-116 .skr-footer > .e-con:nth-child(1) .elementor-icon-box-description {
    font-size: clamp(12px, 3vw, 13.5px) !important;
    line-height: 1.35 !important;
  }

  .elementor-116 .skr-newsletter-form .elementor-form-fields-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .elementor-116 .skr-newsletter-form .elementor-field-group {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
  }

  .elementor-116 .skr-newsletter-form .elementor-field-type-submit {
    flex: 0 0 auto !important;
    width: auto !important;
  }

  .elementor-116 .skr-newsletter-form .elementor-field,
  .elementor-116 .skr-newsletter-form .elementor-button {
    height: 44px !important;
    min-height: 44px !important;
  }

  .elementor-116 .skr-newsletter-form .elementor-button {
    padding: 0 18px !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
  }

  /* --- Band 2: Main Dark Footer (Mobile 2-col Link Grid) --- */
  .elementor-116 .skr-footer > .e-con:nth-child(2) {
    padding-top: 24px !important;
    padding-bottom: 20px !important;
  }

  .elementor-116 .skr-footer > .e-con:nth-child(2) > .e-con-inner {
    gap: 16px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .elementor-116 .elementor-element.elementor-element-ad3dc1c,
  .elementor-116 .skr-footer .e-con:has(> .e-con .skr-footer-links) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 16px !important;
    --width: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: start !important;
  }

  .elementor-116 .elementor-element-ad3dc1c > .e-con,
  .elementor-116 .skr-footer .e-con:has(> .e-con .skr-footer-links) > .e-con {
    --width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* Brand column spans full width on mobile/tablet */
  .elementor-116 .elementor-element-ad3dc1c > .e-con:first-child,
  .elementor-116 .skr-footer .e-con:has(> .e-con .skr-footer-links) > .e-con:first-child {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 8px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  /* Compact brand row, tagline, social icons, and app badges */
  .elementor-116 .skr-footer .skr-logo img {
    width: 36px !important;
    height: 36px !important;
    padding: 2px !important;
  }

  .elementor-116 .elementor-element-c9b7149 .elementor-widget-text-editor p,
  .elementor-116 .skr-footer .e-con:has(> .e-con .skr-footer-links) > .e-con:first-child .elementor-widget-text-editor p {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    margin-bottom: 0 !important;
  }

  .elementor-116 .elementor-widget-social-icons .elementor-social-icon {
    --icon-size: 14px !important;
    --icon-padding: 0.55em !important;
  }

  .elementor-116 .elementor-element-80fe21f {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .elementor-116 .elementor-element-80fe21f .elementor-button {
    padding: 7px 12px !important;
    font-size: 12px !important;
    min-height: 36px !important;
  }

  /* Link columns */
  .elementor-116 .elementor-element-ad3dc1c > .e-con:nth-child(n+2),
  .elementor-116 .skr-footer .e-con:has(> .e-con .skr-footer-links) > .e-con:nth-child(n+2) {
    width: 100% !important;
    max-width: 100% !important;
    gap: 4px !important;
  }

  .elementor-116 .skr-footer .e-con:has(> .skr-footer-links) .elementor-heading-title {
    font-size: 11px !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 4px !important;
    line-height: 1.3 !important;
  }

  .elementor-116 .skr-footer-links .elementor-nav-menu--main .elementor-nav-menu,
  .elementor-116 .skr-footer-links .elementor-nav-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
  }

  .elementor-116 .skr-footer-links .elementor-nav-menu a {
    padding: 3px 0 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  /* --- Band 3: Legal Bar (with clearance for bottom-right chat FAB) --- */
  .elementor-116 .skr-footer > .e-con:nth-child(3) {
    padding-top: 10px !important;
    padding-bottom: 14px !important;
  }

  .elementor-116 .skr-footer > .e-con:nth-child(3) .e-con-inner {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px 16px !important;
    padding-left: 16px !important;
    padding-right: 76px !important; /* Keeps Refunds link clear of floating Chat FAB */
  }

  .elementor-116 .skr-footer > .e-con:nth-child(3) .elementor-nav-menu {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px 12px !important;
  }

  .elementor-116 .skr-footer > .e-con:nth-child(3) .elementor-nav-menu a {
    padding: 4px 0 !important;
    font-size: 12px !important;
  }
}

/* Tablet footer (768px - 1024px): Brand row + 4 link columns side by side */
@media (min-width: 768px) and (max-width: 1024px) {
  .elementor-116 .skr-footer > .e-con:nth-child(1) {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

  .elementor-116 .skr-newsletter-form .elementor-button {
    padding: 0 22px !important;
  }

  .elementor-116 .elementor-element.elementor-element-ad3dc1c,
  .elementor-116 .skr-footer .e-con:has(> .e-con .skr-footer-links) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px 18px !important;
  }
}

/* =====================================================================
   33. PAGE-WIDE MOBILE-FIRST LAYOUT IMPROVEMENTS
   ===================================================================== */

/* Shop page: prevent mobile tag/chip list from pushing products below the fold */
@media (max-width: 767px) {
  .skr-tags,
  .skr-chips,
  .skr-quick-tags,
  .skr-tag-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px !important;
    padding-bottom: 4px !important;
  }
  .skr-tags::-webkit-scrollbar,
  .skr-chips::-webkit-scrollbar,
  .skr-quick-tags::-webkit-scrollbar,
  .skr-tag-bar::-webkit-scrollbar {
    display: none;
  }
  .skr-tags > *,
  .skr-chips > *,
  .skr-quick-tags > *,
  .skr-tag-bar > * {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  /* Keep floating mobile Filter/Sort pill clear of the bottom-right Chat FAB */
  .skr-mbar--float {
    left: 16px !important;
    transform: none !important;
    max-width: calc(100vw - 96px) !important;
  }
}

/* Shop page desktop: keep Sort control clean without colliding with adjacent quick-sort pills */
.skr-toolbar__sort {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 8px;
}

/* Single Product page: compact breadcrumb, title, and balanced CTA buttons on mobile */
@media (max-width: 767px) {
  .single-product .woocommerce-breadcrumb {
    white-space: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px !important;
    margin-bottom: 8px !important;
    font-size: 12px !important;
  }
  .single-product .woocommerce-breadcrumb::-webkit-scrollbar {
    display: none;
  }

  .single-product .product_title,
  .single-product h1.entry-title {
    font-size: clamp(18px, 4.8vw, 22px) !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
  }

  .single-product .woocommerce-variation-add-to-cart,
  .single-product form.cart {
    flex-wrap: wrap !important;
  }

  .single-product form.cart .single_add_to_cart_button,
  .single-product form.cart .skr-buy-now {
    flex: 1 1 140px !important;
    min-width: 130px !important;
  }
}

/* My Account page: hide tall decorative illustration on mobile so login form is above the fold */
@media (max-width: 767px) {
  .skr-account-out .skr-auth-media {
    display: none !important;
  }
}

/* Cart page: suppress misleading minimum-order error banner when cart is empty */
body.skr-cart-empty .woocommerce-error {
  display: none !important;
}
