/**
 * Stoneleaf — Full UI redesign
 * Minimal unisex streetwear layer over Clotya + WooCommerce
 * Deploy to: wp-content/themes/clotya-child/stoneleaf-ui.css
 */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Sans:wght@500;600;700&display=swap");

/* =========================================================
   Design tokens
   ========================================================= */
:root {
  --sl-bg: #f4f2ee;
  --sl-bg-elevated: #ffffff;
  --sl-ink: #121412;
  --sl-ink-muted: #5c635e;
  --sl-line: #e4e0d8;
  --sl-line-strong: #cdc7bb;
  --sl-accent: #1f3d2b;
  --sl-accent-hover: #163022;
  --sl-sand: #e8e2d6;
  --sl-sale: #9a3412;
  --sl-radius: 12px;
  --sl-radius-sm: 8px;
  --sl-shadow: 0 1px 2px rgba(18, 20, 18, 0.04), 0 8px 24px rgba(18, 20, 18, 0.06);
  --sl-shadow-hover: 0 4px 12px rgba(18, 20, 18, 0.08), 0 16px 40px rgba(18, 20, 18, 0.1);
  --sl-font: "DM Sans", system-ui, sans-serif;
  --sl-display: "Instrument Sans", "DM Sans", system-ui, sans-serif;
  --sl-container: 1240px;
  --sl-header-h: 72px;
  --sl-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   Base
   ========================================================= */
html {
  scroll-behavior: smooth;
}

body,
.site-content,
.woocommerce,
button,
input,
select,
textarea,
.button {
  font-family: var(--sl-font) !important;
  color: var(--sl-ink);
}

body {
  background: var(--sl-bg) !important;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.product_title,
.woocommerce-loop-product__title,
.woocommerce-products-header__title {
  font-family: var(--sl-display) !important;
  letter-spacing: -0.03em;
  color: var(--sl-ink) !important;
  font-weight: 600 !important;
}

a {
  transition: color 0.2s var(--sl-ease);
}

img {
  max-width: 100%;
  height: auto;
}

/* Kill demo purple / loud accents where possible */
.woocommerce span.onsale,
.products .onsale {
  background: var(--sl-ink) !important;
  color: #fff !important;
}

/* =========================================================
   Header
   ========================================================= */
.site-header,
.site-header.header-type1,
.site-header.header-type3,
.site-header.transparent {
  background: rgba(244, 242, 238, 0.92) !important;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--sl-line) !important;
  box-shadow: none !important;
}

.site-header.transparent {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .header-topbar {
  background: var(--sl-ink) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 12px !important;
  letter-spacing: 0.04em;
  border: 0 !important;
}

.site-header .header-topbar a {
  color: rgba(255, 255, 255, 0.9) !important;
}

.site-header .header-main,
.site-header .header-row.header-main {
  min-height: var(--sl-header-h);
  border: 0 !important;
  background: transparent !important;
}

.site-header a,
.site-header .menu-item > a,
.primary-menu a,
.klb-menu-nav a,
.site-header .header-button {
  font-family: var(--sl-font) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  color: var(--sl-ink) !important;
}

.site-header .menu-item > a:hover,
.primary-menu a:hover {
  color: var(--sl-accent) !important;
}

.site-header .custom-logo {
  max-height: 40px !important;
  width: auto !important;
}

.site-header .cart-button,
.site-header .header-button {
  border-radius: 999px !important;
}

.site-header .cart-count.count {
  background: var(--sl-accent) !important;
  color: #fff !important;
  border: 0 !important;
  font-size: 10px !important;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
}

/* =========================================================
   Buttons
   ========================================================= */
.button,
button.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.single_add_to_cart_button,
.checkout-button,
a.checkout-button,
.wp-element-button,
.woocommerce-Button,
button.single_add_to_cart_button {
  background: var(--sl-ink) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-family: var(--sl-font) !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  font-size: 14px !important;
  padding: 14px 28px !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  transition: background 0.25s var(--sl-ease), transform 0.25s var(--sl-ease), opacity 0.2s ease !important;
}

.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.single_add_to_cart_button:hover,
.checkout-button:hover {
  background: var(--sl-accent) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
#place_order {
  background: var(--sl-accent) !important;
  width: 100%;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
#place_order:hover {
  background: var(--sl-accent-hover) !important;
}

/* =========================================================
   FULL-WIDTH CONTAINER (kill Clotya col-lg-10 offset)
   ========================================================= */
body.home .site-primary,
body.home .site-content,
body.home .klb-page.page-content.section {
  width: 100% !important;
  max-width: 100% !important;
}

body.home .klb-page.page-content.section > .container,
body.home .site-content > .container,
body.home .klb-page .container {
  max-width: var(--sl-container) !important;
  width: 100% !important;
  padding-left: clamp(1rem, 3vw, 1.5rem) !important;
  padding-right: clamp(1rem, 3vw, 1.5rem) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.home .klb-page.page-content.section .row,
body.home .site-content .container > .row {
  display: block !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Override Bootstrap/Clotya narrow column */
body.home .klb-page.page-content.section [class*="col-"],
body.home .klb-page.page-content.section .col-12,
body.home .klb-page.page-content.section .col-lg-10,
body.home .klb-page.page-content.section .offset-lg-1,
body.home .site-content .col-lg-10,
body.home .site-content .offset-lg-1 {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}

/* Shop / product archives also use full container */
body.woocommerce-shop .site-content .container,
body.post-type-archive-product .site-content .container,
body.tax-product_cat .site-content .container,
body.single-product .site-content .container,
body.woocommerce-cart .site-content .container,
body.woocommerce-checkout .site-content .container {
  max-width: var(--sl-container) !important;
  width: 100% !important;
}

body.woocommerce-shop .site-content .col-lg-10,
body.woocommerce-shop .site-content .offset-lg-1,
body.post-type-archive-product .col-lg-10,
body.post-type-archive-product .offset-lg-1,
body.single-product .col-lg-10,
body.single-product .offset-lg-1 {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  flex: 0 0 100% !important;
}

/* =========================================================
   PRODUCT CARDS — fixed grid (shop + related + homepage)
   ========================================================= */
.sl-products-wrap,
.sl-products-wrap .woocommerce,
.sl-products-wrap .woocommerce.columns-4 {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  float: none !important;
}

body.stoneleaf-ui ul.products,
body.stoneleaf-ui .woocommerce ul.products,
body.stoneleaf-ui .woocommerce-page ul.products,
.sl-products-wrap ul.products,
ul.products.column-4,
ul.products.columns-4,
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1.25rem 1.1rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

ul.products::before,
ul.products::after {
  display: none !important;
  content: none !important;
}

/* Kill theme float/percentage widths that crush cards */
body.stoneleaf-ui ul.products li.product,
body.stoneleaf-ui ul.products li.product.type-product,
body.stoneleaf-ui .woocommerce ul.products li.product,
body.stoneleaf-ui .woocommerce-page ul.products li.product,
.sl-products-wrap ul.products li.product,
ul.products.column-4 > li.product,
ul.products.columns-4 > li.product,
.woocommerce.columns-4 ul.products li.product,
.products .product {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: none !important;
  flex-basis: auto !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  padding: 0 !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  box-sizing: border-box !important;
}

/* Card shell — Clotya: .product-content > .thumbnail-wrapper + .content-wrapper */
body.stoneleaf-ui ul.products li.product,
body.stoneleaf-ui ul.products li.product.type-product,
.sl-products-wrap ul.products li.product {
  display: flex !important;
  flex-direction: column !important;
  background: var(--sl-bg-elevated) !important;
  border: 1px solid var(--sl-line) !important;
  border-radius: var(--sl-radius) !important;
  overflow: hidden !important;
  transition: border-color 0.25s var(--sl-ease), box-shadow 0.3s var(--sl-ease), transform 0.3s var(--sl-ease);
}

body.stoneleaf-ui ul.products li.product:hover,
.sl-products-wrap ul.products li.product:hover {
  border-color: var(--sl-line-strong) !important;
  box-shadow: var(--sl-shadow-hover);
  transform: translateY(-3px);
}

ul.products li.product .product-content {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  float: none !important;
}

/* Image area */
ul.products li.product .thumbnail-wrapper,
ul.products li.product .thumbnail-wrapper.with-gallery {
  position: relative !important;
  overflow: hidden !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: var(--sl-sand) !important;
  width: 100% !important;
  aspect-ratio: 4 / 5;
  flex: 0 0 auto !important;
}

ul.products li.product .thumbnail-wrapper a.product-images,
ul.products li.product a.product-images {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
}

ul.products li.product .thumbnail-wrapper img,
ul.products li.product a.product-images img,
ul.products li.product img {
  border-radius: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  background: var(--sl-sand);
  transition: transform 0.55s var(--sl-ease) !important;
  margin: 0 !important;
  display: block !important;
}

ul.products li.product:hover .thumbnail-wrapper img {
  transform: scale(1.05);
}

/* Hide wishlist / quickview / compare (keep Select options via content if needed) */
ul.products li.product .product-buttons,
ul.products li.product .product-buttons.style-1,
ul.products li.product .detail-bnt,
ul.products li.product .quick-view-button,
ul.products li.product .klbcp-btn,
ul.products li.product a.wishlist,
ul.products li.product .klbwl-btn {
  display: none !important;
}

/* Title + price block — MUST be full card width (was crushing to ~80px) */
ul.products li.product .content-wrapper {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 0.95rem 1rem 1.15rem !important;
  background: var(--sl-bg-elevated) !important;
  float: none !important;
  flex: 1 1 auto !important;
}

ul.products li.product .product-title,
ul.products li.product h3.product-title,
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2,
ul.products li.product h3 {
  font-family: var(--sl-display) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  margin: 0 0 0.35rem !important;
  padding: 0 !important;
  letter-spacing: -0.02em !important;
  color: var(--sl-ink) !important;
  width: 100% !important;
  max-width: 100% !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: manual !important;
  display: block !important;
}

ul.products li.product .product-title a,
ul.products li.product h3.product-title a {
  display: block !important;
  width: 100% !important;
  color: inherit !important;
  text-decoration: none !important;
  white-space: normal !important;
  word-break: normal !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

/* Global safety: never stack product titles vertically */
body.stoneleaf-ui .product-title,
body.stoneleaf-ui .product-title a,
body.stoneleaf-ui .woocommerce-loop-product__title,
body.stoneleaf-ui li.product h3,
body.stoneleaf-ui li.product h2 {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

/* Prices: force LTR so ₹ amounts never reverse */
body.stoneleaf-ui ul.products li.product .price,
body.stoneleaf-ui ul.products li.product span.price,
body.woocommerce ul.products li.product .price,
ul.products li.product .price,
.products .product .price,
.product-content .price {
  font-family: var(--sl-font) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--sl-ink) !important;
  margin: 0.25rem 0 0 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 0.4rem !important;
  width: 100% !important;
  direction: ltr !important;
  unicode-bidi: isolate !important;
  writing-mode: horizontal-tb !important;
  text-align: left !important;
  float: none !important;
  transform: none !important;
}

body.stoneleaf-ui ul.products li.product .price *,
ul.products li.product .price *,
.product-content .price * {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  transform: none !important;
  float: none !important;
}

ul.products li.product .price del,
.product-content .price del {
  opacity: 0.5 !important;
  font-weight: 400 !important;
  color: #5c635e !important;
  text-decoration: line-through !important;
  order: 1 !important;
  display: inline !important;
}

ul.products li.product .price ins,
.product-content .price ins {
  text-decoration: none !important;
  color: var(--sl-sale) !important;
  font-weight: 700 !important;
  background: none !important;
  order: 2 !important;
  display: inline !important;
}

ul.products li.product .price bdi,
ul.products li.product .price .woocommerce-Price-amount,
ul.products li.product .price .amount {
  display: inline !important;
  unicode-bidi: isolate !important;
  direction: ltr !important;
}

/* Hide WC screen-reader price labels from visual layout */
ul.products li.product .price .screen-reader-text,
.product-content .price .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Hide junk category description / Elementor promo bands on shop */
body.woocommerce-shop .term-description,
body.tax-product_cat .term-description,
body.woocommerce-shop .woocommerce-products-header__description,
body.archive.woocommerce .page-description,
body.woocommerce-shop .klb-category-banner,
body.woocommerce-shop .category-banner,
body.woocommerce .woocommerce-products-header,
.woocommerce-products-header .term-description,
.woocommerce-products-header .term-description p,
.woocommerce-products-header__title + *,
.site-content .term-description,
.archive .term-description,
.product-category-banner,
.klb-module.module-banner,
body.archive .entry-content > p:first-child {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
}

/* Sale badge */
ul.products li.product .onsale,
.single-product .onsale {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  z-index: 3;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 1 !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  background: var(--sl-ink) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 !important;
}

/* Loop add to cart — text under price */
ul.products li.product a.button,
ul.products li.product .button {
  margin-top: 0.65rem !important;
  width: 100% !important;
  text-align: center !important;
  border-radius: 999px !important;
  padding: 10px 14px !important;
  font-size: 12px !important;
  background: transparent !important;
  color: var(--sl-ink) !important;
  border: 1px solid var(--sl-line-strong) !important;
  box-shadow: none !important;
}

ul.products li.product a.button:hover,
ul.products li.product .button:hover {
  background: var(--sl-ink) !important;
  color: #fff !important;
  border-color: var(--sl-ink) !important;
  transform: none;
}

/* Shop header / toolbar */
.woocommerce-products-header,
.shop-page-title,
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  font-family: var(--sl-font) !important;
}

.woocommerce-products-header__title.page-title,
.woocommerce h1.page-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
  margin-bottom: 0.5rem !important;
}

.woocommerce .woocommerce-ordering select {
  border: 1px solid var(--sl-line) !important;
  border-radius: 999px !important;
  min-height: 42px;
  padding: 0 16px !important;
  background: #fff !important;
}

.woocommerce-page .site-content,
.woocommerce .site-content,
#content.site-content,
.container,
.shop-container {
  max-width: var(--sl-container);
}

/* Shop layout breathing room */
.woocommerce-shop .site-primary,
body.post-type-archive-product .content-wrapper,
body.tax-product_cat .content-wrapper {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

/* =========================================================
   SINGLE PRODUCT (Clotya structure)
   IMPORTANT: do NOT grid #product / div.product itself —
   related products is a sibling and was crushed into a skinny column.
   ========================================================= */
.single-product div.product,
.single-product .product.type-product,
.single-product-wrapper .product {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  background: transparent !important;
  padding: 1rem 0 2.5rem !important;
  float: none !important;
}

/* Clotya row: gallery | buy box */
.single-product .single-product-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) !important;
  gap: clamp(1.25rem, 3vw, 2.5rem) !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.single-product .column.product-column {
  display: contents !important;
}

.single-product .product-gallery-column {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  min-width: 0 !important;
}

.single-product .product-info,
.single-product .summary.entry-summary {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  min-width: 0 !important;
}

.single-product .woocommerce-product-gallery {
  background: var(--sl-bg-elevated) !important;
  border: 1px solid var(--sl-line) !important;
  border-radius: var(--sl-radius) !important;
  overflow: hidden !important;
  padding: 0.75rem !important;
  width: 100% !important;
  opacity: 1 !important;
}

.single-product .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery__wrapper {
  width: 100% !important;
}

.single-product .woocommerce-product-gallery img,
.single-product .woocommerce-product-gallery .wp-post-image {
  border-radius: var(--sl-radius-sm) !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  aspect-ratio: 1 / 1;
  background: var(--sl-sand);
}

.single-product .product_title,
.single-product div.product .product_title {
  font-size: clamp(1.6rem, 2.8vw, 2.15rem) !important;
  margin: 0 0 0.75rem !important;
  line-height: 1.15 !important;
  width: 100% !important;
  white-space: normal !important;
  word-break: normal !important;
}

.single-product p.price,
.single-product div.product p.price {
  font-size: 1.25rem !important;
  color: var(--sl-ink) !important;
  margin-bottom: 1rem !important;
}

.single-product p.price del {
  opacity: 0.45;
  font-size: 0.95em;
}

.single-product p.price ins {
  text-decoration: none;
  color: var(--sl-sale);
  background: none;
}

.single-product .woocommerce-product-details__short-description {
  color: var(--sl-ink-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.single-product form.cart {
  background: var(--sl-bg-elevated);
  border: 1px solid var(--sl-line);
  border-radius: var(--sl-radius);
  padding: 1.25rem;
  margin-top: 0.5rem;
  width: 100% !important;
  box-sizing: border-box;
}

.single-product form.cart .variations {
  width: 100%;
}

.single-product form.cart .variations td,
.single-product form.cart .variations th {
  display: block;
  width: 100%;
  padding: 0 0 0.35rem !important;
  border: 0 !important;
  background: transparent !important;
}

.single-product form.cart .variations th.label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sl-ink-muted);
  font-weight: 600;
  padding-top: 0.65rem !important;
}

.single-product form.cart .variations select,
.single-product form.cart .variations .reset_variations {
  width: 100%;
}

.single-product form.cart .variations select {
  border: 1px solid var(--sl-line) !important;
  border-radius: var(--sl-radius-sm) !important;
  min-height: 48px !important;
  padding: 0 14px !important;
  background: #fff !important;
  font-size: 14px !important;
}

.single-product form.cart .single_variation_wrap {
  margin-top: 1rem;
}

.single-product form.cart .quantity {
  margin-right: 0.75rem;
}

.single-product form.cart .quantity .qty {
  border: 1px solid var(--sl-line) !important;
  border-radius: var(--sl-radius-sm) !important;
  min-height: 48px;
  width: 72px !important;
  text-align: center;
}

.single-product form.cart .single_add_to_cart_button {
  min-height: 48px;
  flex: 1;
  width: auto !important;
  border-radius: 999px !important;
}

.single-product .product_meta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sl-line);
  font-size: 13px;
  color: var(--sl-ink-muted);
}

.single-product .woocommerce-tabs {
  margin-top: 2.5rem;
  display: block !important;
  width: 100% !important;
  clear: both !important;
  background: var(--sl-bg-elevated);
  border: 1px solid var(--sl-line);
  border-radius: var(--sl-radius);
  padding: 0.5rem 1.25rem 1.25rem;
  box-sizing: border-box;
}

.single-product .woocommerce-tabs ul.tabs {
  padding: 0 !important;
  margin: 0 0 1rem !important;
  border: 0 !important;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  background: transparent !important;
}

.single-product .woocommerce-tabs ul.tabs::before {
  display: none !important;
}

.single-product .woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.single-product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 12px 16px !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  color: var(--sl-ink-muted) !important;
  background: transparent !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a {
  background: var(--sl-ink) !important;
  color: #fff !important;
}

/* Related / upsells — full width BELOW buy box, never a side column */
.single-product section.related.products,
.single-product section.upsells.products,
.single-product .related.products,
.single-product .upsells.products {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  clear: both !important;
  float: none !important;
  margin: 2.5rem 0 0 !important;
  padding: 1.25rem 0 0 !important;
  box-sizing: border-box;
}

.single-product section.related.products > h2,
.single-product section.upsells.products > h2 {
  font-size: 1.5rem !important;
  margin-bottom: 1.25rem !important;
  width: 100% !important;
}

/* Client-side Recent Views widgets — force normal horizontal cards */
.single-product [class*="recent"],
.single-product [class*="viewed"],
.single-product .klb-recently-viewed,
body .recently-viewed,
body .product-recently-viewed {
  width: 100% !important;
  max-width: 100% !important;
  clear: both !important;
  margin-top: 2rem !important;
}

.single-product [class*="recent"] ul.products,
.single-product [class*="viewed"] ul.products,
body .recently-viewed ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  width: 100% !important;
}

.single-product [class*="recent"] li.product,
.single-product [class*="viewed"] li.product {
  width: 100% !important;
  min-width: 0 !important;
}

.single-product [class*="recent"] .product-title,
.single-product [class*="recent"] .product-title a,
.single-product [class*="viewed"] .product-title,
.single-product [class*="viewed"] .product-title a {
  writing-mode: horizontal-tb !important;
  white-space: normal !important;
  word-break: normal !important;
  width: 100% !important;
}

/* =========================================================
   CART
   ========================================================= */
.woocommerce-cart .woocommerce,
.woocommerce-cart .site-content .woocommerce {
  max-width: var(--sl-container);
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .cart-collaterals .cart_totals {
  background: var(--sl-bg-elevated);
  border: 1px solid var(--sl-line);
  border-radius: var(--sl-radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--sl-shadow);
}

.woocommerce-cart table.shop_table {
  border: 0 !important;
  border-radius: 0 !important;
}

.woocommerce-cart table.shop_table th {
  border: 0 !important;
  border-bottom: 1px solid var(--sl-line) !important;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sl-ink-muted);
  font-weight: 600;
  padding: 0.75rem 0.5rem !important;
  background: transparent !important;
}

.woocommerce-cart table.shop_table td {
  border: 0 !important;
  border-bottom: 1px solid var(--sl-line) !important;
  padding: 1rem 0.5rem !important;
  vertical-align: middle;
  background: transparent !important;
}

.woocommerce-cart table.shop_table img {
  width: 72px !important;
  height: 90px !important;
  object-fit: cover;
  border-radius: var(--sl-radius-sm);
  background: var(--sl-sand);
}

.woocommerce-cart table.shop_table .product-name a {
  font-weight: 600;
  color: var(--sl-ink);
  text-decoration: none;
}

.woocommerce-cart table.cart .quantity .qty {
  border: 1px solid var(--sl-line) !important;
  border-radius: var(--sl-radius-sm) !important;
  min-height: 40px;
  width: 64px;
}

.woocommerce-cart .cart-collaterals {
  margin-top: 1.25rem;
}

.woocommerce-cart .cart_totals h2 {
  font-size: 1.15rem !important;
  margin-bottom: 1rem !important;
}

.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
  border-color: var(--sl-line) !important;
  padding: 0.75rem 0 !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
}

/* =========================================================
   CHECKOUT
   ========================================================= */
.woocommerce-checkout .woocommerce {
  max-width: var(--sl-container);
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.woocommerce-checkout .col2-set,
.woocommerce-checkout #customer_details {
  width: 100%;
}

body.woocommerce-checkout .col2-set {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
}

body.woocommerce-checkout .col2-set .col-1,
body.woocommerce-checkout .col2-set .col-2 {
  width: 100% !important;
  float: none !important;
}

.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
  background: var(--sl-bg-elevated);
  border: 1px solid var(--sl-line);
  border-radius: var(--sl-radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--sl-shadow);
}

.woocommerce-checkout #order_review_heading {
  margin-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 0;
}

.woocommerce-checkout #order_review {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.woocommerce-checkout h3 {
  font-size: 1.1rem !important;
  margin: 0 0 1rem !important;
}

.woocommerce form .form-row {
  margin-bottom: 0.85rem;
}

.woocommerce form .form-row label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sl-ink-muted);
  margin-bottom: 0.35rem;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce form .select2-container .select2-selection--single {
  border: 1px solid var(--sl-line) !important;
  border-radius: var(--sl-radius-sm) !important;
  min-height: 48px !important;
  padding: 10px 14px !important;
  background: #fff !important;
  box-shadow: none !important;
  font-size: 14px !important;
}

.woocommerce form .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 48px !important;
  padding-left: 0 !important;
}

.woocommerce form .select2-container .select2-selection--single .select2-selection__arrow {
  height: 46px !important;
}

.woocommerce-checkout-review-order-table {
  border: 0 !important;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  border-color: var(--sl-line) !important;
  padding: 0.75rem 0 !important;
}

.woocommerce-checkout #payment {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods {
  border: 0 !important;
  padding: 0 0 1rem !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
  background: var(--sl-bg);
  border: 1px solid var(--sl-line);
  border-radius: var(--sl-radius-sm);
  padding: 0.85rem 1rem !important;
  margin-bottom: 0.5rem !important;
}

.woocommerce-checkout #payment div.form-row {
  padding: 0 !important;
}

/* =========================================================
   MY ACCOUNT
   ========================================================= */
.woocommerce-account .woocommerce {
  max-width: var(--sl-container);
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.25rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  background: var(--sl-bg-elevated);
  border: 1px solid var(--sl-line);
  border-radius: var(--sl-radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--sl-shadow);
  width: 100% !important;
  float: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: var(--sl-radius-sm);
  text-decoration: none;
  color: var(--sl-ink);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  background: var(--sl-bg);
  color: var(--sl-accent);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer,
footer#colophon,
.footer-main,
.footer-bottom,
.site-footer .footer-row {
  background: var(--sl-ink) !important;
  color: rgba(255, 255, 255, 0.78) !important;
  border: 0 !important;
}

.site-footer a,
footer a {
  color: rgba(255, 255, 255, 0.88) !important;
  text-decoration: none;
}

.site-footer a:hover,
footer a:hover {
  color: #fff !important;
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
footer h1,
footer h2,
footer h3,
footer h4 {
  color: #fff !important;
  font-family: var(--sl-display) !important;
}

/* =========================================================
   HOMEPAGE custom sections
   ========================================================= */
.sl-home {
  overflow: visible;
  width: 100% !important;
  max-width: 100% !important;
}

/* Full-bleed hero — break out of theme container */
.sl-hero {
  position: relative;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 0 !important;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: center;
  background: var(--sl-ink);
  color: #fff;
  border-radius: 0 !important;
  overflow: hidden;
  box-sizing: border-box;
}

.sl-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 15% 20%, rgba(31, 61, 43, 0.55), transparent 60%),
    radial-gradient(700px 380px at 90% 80%, rgba(232, 226, 214, 0.12), transparent 55%),
    linear-gradient(160deg, #0e120f 0%, #1a2420 45%, #121412 100%);
}

.sl-hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.sl-hero__inner {
  position: relative;
  z-index: 2;
  width: min(var(--sl-container), calc(100% - 2.5rem));
  max-width: var(--sl-container);
  margin: 0 auto;
  padding: clamp(2.75rem, 7vw, 5rem) 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.sl-hero--split .sl-hero__inner {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.sl-hero__copy {
  max-width: 36rem;
}

.sl-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.sl-hero__visual img {
  width: min(100%, 520px) !important;
  height: auto !important;
  max-height: 520px;
  object-fit: contain !important;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
  border-radius: 16px;
  background: transparent !important;
  aspect-ratio: auto !important;
}

@media (max-width: 900px) {
  .sl-hero--split .sl-hero__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .sl-hero__visual {
    order: -1;
  }
  .sl-hero__visual img {
    max-height: 280px;
  }
}

.sl-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.sl-hero__kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.sl-hero h1 {
  color: #fff !important;
  font-size: clamp(2.4rem, 6vw, 4.6rem) !important;
  line-height: 0.95 !important;
  margin: 0 0 1rem !important;
  max-width: 14ch;
  font-weight: 700 !important;
}

.sl-hero p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 38ch;
  opacity: 0.85;
  font-weight: 400;
  line-height: 1.55;
  margin: 0 0 1.75rem;
}

.sl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sl-hero__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.25s var(--sl-ease), background 0.25s ease, color 0.25s ease;
}

.sl-hero__actions a.primary {
  background: #fff;
  color: var(--sl-ink);
}

.sl-hero__actions a.primary:hover {
  transform: translateY(-2px);
  background: var(--sl-sand);
}

.sl-hero__actions a.ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.sl-hero__actions a.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Sections fill container width (no nested shrink) */
.sl-section {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
  box-sizing: border-box;
}

.sl-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.sl-section__head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem) !important;
  margin: 0 !important;
}

.sl-section__head p {
  margin: 0.35rem 0 0;
  color: var(--sl-ink-muted);
  max-width: 40ch;
}

.sl-section__head a {
  color: var(--sl-accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ---- Category cards with 3D product image ---- */
.sl-cats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  width: 100% !important;
}

.sl-cat {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 220px;
  padding: 1.25rem 1rem 1.15rem !important;
  border-radius: 16px !important;
  text-decoration: none !important;
  color: #fff !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  transition: transform 0.3s var(--sl-ease), box-shadow 0.3s var(--sl-ease);
  box-sizing: border-box;
}

.sl-cat:nth-child(1) { background: linear-gradient(160deg, #1a2a22 0%, #2f4a3a 100%); }
.sl-cat:nth-child(2) { background: linear-gradient(160deg, #2a221c 0%, #4a3c32 100%); }
.sl-cat:nth-child(3) { background: linear-gradient(160deg, #1c2430 0%, #334155 100%); }
.sl-cat:nth-child(4) { background: linear-gradient(160deg, #241c20 0%, #4a3038 100%); }

.sl-cat:hover {
  transform: translateY(-4px);
  box-shadow: var(--sl-shadow-hover);
}

.sl-cat__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 130px;
  perspective: 700px;
  margin-bottom: 0.35rem;
}

.sl-cat__img {
  width: auto !important;
  max-width: 120px !important;
  height: 120px !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.45));
  transform: perspective(700px) rotateY(-12deg) rotateX(8deg) translateZ(0);
  transition: transform 0.4s var(--sl-ease);
  background: transparent !important;
  aspect-ratio: auto !important;
}

.sl-cat:hover .sl-cat__img {
  transform: perspective(700px) rotateY(0deg) rotateX(0deg) scale(1.06);
}

.sl-cat__placeholder {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  transform: perspective(700px) rotateY(-10deg) rotateX(8deg);
}

.sl-cat__meta {
  display: block;
  width: 100%;
  text-align: left;
  z-index: 1;
}

.sl-cat__meta strong {
  display: block;
  font-family: var(--sl-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff !important;
}

.sl-cat__meta span {
  display: block;
  font-size: 12px;
  opacity: 0.75;
  margin-top: 0.2rem;
  color: #fff !important;
}

.sl-products-wrap {
  width: 100% !important;
}

.sl-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  width: 100%;
}

.sl-trust article {
  background: var(--sl-bg-elevated);
  border: 1px solid var(--sl-line);
  border-radius: var(--sl-radius);
  padding: 1.35rem 1.25rem;
}

.sl-trust h3 {
  margin: 0 0 0.4rem !important;
  font-size: 1rem !important;
}

.sl-trust p {
  margin: 0;
  color: var(--sl-ink-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.sl-band {
  background: var(--sl-ink);
  color: #fff;
  border-radius: 20px;
  padding: clamp(2.25rem, 5vw, 3.25rem);
  text-align: center;
  margin: 0 0 2rem;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.sl-band h2 {
  color: #fff !important;
  margin: 0 0 0.6rem !important;
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
}

.sl-band p {
  opacity: 0.8;
  margin: 0 auto 1.25rem;
  max-width: 40ch;
}

.sl-band a {
  display: inline-flex;
  background: #fff;
  color: var(--sl-ink);
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--sl-radius-sm) !important;
  border-top: 0 !important;
  border-left: 3px solid var(--sl-accent) !important;
  background: var(--sl-bg-elevated) !important;
  box-shadow: var(--sl-shadow);
}

/* Breadcrumbs */
.woocommerce .woocommerce-breadcrumb {
  font-size: 13px;
  color: var(--sl-ink-muted);
  margin-bottom: 1rem !important;
}

/* Hide default page title "Home" band above hero */
body.home .page-header,
body.home .entry-header,
body.home .klb-page .entry-title,
body.home h1.entry-title,
body.home .page-title,
body.home .woocommerce-products-header,
body.home .page-header-content,
body.home .klb-page.page-content .entry-header,
body.home .klb-page .page-header,
body.home .site-content > .page-header,
body.home .breadcrumb-wrapper,
body.home .woocommerce-breadcrumb,
body.page-id-1624 .entry-title,
body.page-id-1624 .page-header,
body.front-page .entry-title,
body.home .klb-page.page-content.section > .container > .row > [class*="col-"] > .entry-header,
body.home .klb-page.page-content.section h1.page-title,
body.home .empty-klb + .klb-page .entry-title {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
}

/* Collapse empty spacing above hero on home */
body.home .site-content,
body.home .site-primary,
body.home .klb-page.page-content.section {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.home .sl-home {
  margin-top: 0 !important;
}

/* Clotya page title shell (even when empty it reserves space) */
body.home h1.klb-page-title,
body.home .klb-page-title,
body.page-id-1624 h1.klb-page-title,
body.home .empty-klb {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  line-height: 0 !important;
  border: 0 !important;
}

body.home .klb-page.page-content.section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.home .klb-page.page-content.section > .container {
  padding-top: 0 !important;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  body.stoneleaf-ui ul.products,
  .sl-products-wrap ul.products,
  ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .single-product .single-product-row {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  body.woocommerce-checkout .col2-set,
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
  }

  .sl-cats,
  .sl-trust {
    grid-template-columns: 1fr 1fr !important;
  }

  body.stoneleaf-ui ul.products,
  .sl-products-wrap ul.products,
  ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
  }
}

@media (max-width: 560px) {
  .sl-cats {
    grid-template-columns: 1fr 1fr !important;
  }

  .sl-trust {
    grid-template-columns: 1fr !important;
  }

  body.stoneleaf-ui ul.products,
  ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  ul.products li.product .product-title {
    font-size: 12.5px !important;
  }

  .site-header .cart-price {
    display: none !important;
  }

  .sl-cat {
    min-height: 190px;
  }

  .sl-cat__img {
    max-width: 96px !important;
    height: 96px !important;
  }
}


/* =========================================================
   FINAL FIX PASS — mini cart, recent views, shop, headers
   ========================================================= */

/* ---- Unified header (all pages = homepage glass bar) ---- */
body.stoneleaf-ui .site-header,
body.stoneleaf-ui .site-header.header-type1,
body.stoneleaf-ui .site-header.header-type2,
body.stoneleaf-ui .site-header.header-type3,
body.stoneleaf-ui .site-header.header-type4,
body.stoneleaf-ui .site-header.header-type5,
body.stoneleaf-ui .site-header.transparent {
  background: rgba(244, 242, 238, 0.94) !important;
  backdrop-filter: saturate(140%) blur(14px) !important;
  -webkit-backdrop-filter: saturate(140%) blur(14px) !important;
  border-bottom: 1px solid var(--sl-line) !important;
  box-shadow: none !important;
}

body.stoneleaf-ui .site-header .header-topbar {
  display: none !important; /* cleaner like homepage */
}

body.stoneleaf-ui .site-header .header-main,
body.stoneleaf-ui .site-header .header-mobile {
  background: transparent !important;
  border: 0 !important;
}

body.stoneleaf-ui .site-header a,
body.stoneleaf-ui .site-header .menu > li > a {
  color: var(--sl-ink) !important;
}

/* ---- Hide broken Recent Views (Clotya JS widget) ---- */
.single-product .product-recently-viewed,
.single-product .klb-recently-viewed,
.single-product .recently-viewed-products,
.single-product .recent-viewed,
.single-product .widget_recently_viewed_products,
body .product-recently-viewed,
body .klb-recently-viewed,
body .woocommerce .product-recently-viewed,
.single-product-wrapper .product-recently-viewed,
.single-product [class*="recently-viewed"],
.single-product [class*="recent-view"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ---- Mini cart dropdown (header) — SINGLE panel only ---- */
/* Nested .cart-dropdown / .wrapper / .fl-mini-cart were each getting card chrome → triple stack */
.site-header .cart-dropdown {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  z-index: 10050 !important;
}

/* Only the wrapper is the visible card */
.site-header .cart-dropdown .cart-dropdown-wrapper {
  background: #fff !important;
  border: 1px solid var(--sl-line) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 40px rgba(18, 20, 18, 0.16) !important;
  padding: 1rem 1.1rem 1.1rem !important;
  min-width: 320px !important;
  width: 340px !important;
  max-width: min(92vw, 360px) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Inner content: no second/third card */
.site-header .cart-dropdown .fl-mini-cart-content,
.site-header .fl-mini-cart-content {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 0 !important;
}

/* Hide desktop/mobile duplicate when not needed */
@media (min-width: 992px) {
  .site-header .header-mobile .cart-dropdown {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
@media (max-width: 991px) {
  .site-header .header-main .cart-dropdown,
  .site-header .header-row.header-main .cart-dropdown {
    /* keep mobile cart in mobile header */
  }
}

.site-header .cart-dropdown ul.product_list_widget,
.site-header .cart-dropdown .woocommerce-mini-cart,
.site-header .cart-dropdown ul.cart_list,
.fl-mini-cart-content ul.cart_list,
.fl-mini-cart-content ul.product_list_widget {
  display: block !important;
  width: 100% !important;
  margin: 0 0 0.5rem !important;
  padding: 0 !important;
  list-style: none !important;
  max-height: 260px;
  overflow-y: auto;
  overflow-x: hidden;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.site-header .cart-dropdown li,
.site-header .cart-dropdown .mini_cart_item,
.fl-mini-cart-content li,
.woocommerce-mini-cart-item {
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr) 22px !important;
  grid-template-rows: auto auto !important;
  column-gap: 0.75rem !important;
  row-gap: 0.2rem !important;
  align-items: start !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 0.75rem 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--sl-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  float: none !important;
  list-style: none !important;
  position: relative !important;
}

.site-header .cart-dropdown li:last-child,
.woocommerce-mini-cart-item:last-child {
  border-bottom: 0 !important;
}

.site-header .cart-dropdown li > a:not(.remove),
.woocommerce-mini-cart-item > a:not(.remove) {
  grid-column: 1 / 3;
  grid-row: 1;
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr) !important;
  gap: 0.75rem !important;
  align-items: start !important;
  width: 100% !important;
  text-decoration: none !important;
  color: var(--sl-ink) !important;
}

.site-header .cart-dropdown li img,
.fl-mini-cart-content li img,
.woocommerce-mini-cart-item img {
  width: 56px !important;
  height: 70px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  float: none !important;
  margin: 0 !important;
  aspect-ratio: auto !important;
  background: var(--sl-sand) !important;
}

.site-header .cart-dropdown li a,
.fl-mini-cart-content li a:not(.remove),
.woocommerce-mini-cart-item a:not(.remove) {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--sl-ink) !important;
}

.site-header .cart-dropdown .quantity,
.fl-mini-cart-content .quantity,
.woocommerce-mini-cart-item .quantity {
  display: block !important;
  grid-column: 2;
  grid-row: 2;
  width: auto !important;
  font-size: 12px !important;
  color: var(--sl-ink-muted) !important;
  writing-mode: horizontal-tb !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-header .cart-dropdown .remove_from_cart_button,
.site-header .cart-dropdown a.remove,
.woocommerce-mini-cart-item a.remove {
  grid-column: 3 !important;
  grid-row: 1 / span 2 !important;
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: var(--sl-bg) !important;
  color: var(--sl-ink) !important;
  font-size: 14px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  float: none !important;
}

.woocommerce-mini-cart__total,
.site-header .cart-dropdown .total,
.fl-mini-cart-content p.total {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  padding: 0.85rem 0 0.65rem !important;
  margin: 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--sl-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  font-weight: 600 !important;
  color: var(--sl-ink) !important;
  font-size: 14px !important;
}

.site-header .cart-dropdown .total strong,
.woocommerce-mini-cart__total strong {
  color: var(--sl-sale) !important;
  font-weight: 700 !important;
}

.site-header .cart-dropdown .cart-count-text,
.fl-mini-cart-content .cart-count-text,
.site-header .cart-dropdown p:not(.total):not(.buttons) {
  font-size: 12px !important;
  color: var(--sl-ink-muted) !important;
  margin: 0 0 0.65rem !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.woocommerce-mini-cart__buttons,
.site-header .cart-dropdown .buttons,
.fl-mini-cart-content p.buttons,
p.woocommerce-mini-cart__buttons.buttons {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.woocommerce-mini-cart__buttons a,
.site-header .cart-dropdown .buttons a,
.fl-mini-cart-content p.buttons a,
p.woocommerce-mini-cart__buttons.buttons a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 44px !important;
  padding: 12px 16px !important;
  border-radius: 999px !important;
  text-align: center !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  color: #fff !important;
  border: 0 !important;
  box-sizing: border-box !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: none !important;
  margin: 0 !important;
}

p.woocommerce-mini-cart__buttons.buttons a:not(.checkout),
.woocommerce-mini-cart__buttons a:not(.checkout),
.site-header .cart-dropdown .buttons a:not(.checkout) {
  background: var(--sl-ink) !important;
  color: #fff !important;
}

p.woocommerce-mini-cart__buttons.buttons a.checkout,
.woocommerce-mini-cart__buttons a.checkout,
.site-header .cart-dropdown .buttons a.checkout {
  background: var(--sl-accent) !important;
  color: #fff !important;
}

/* Empty cart state inside dropdown */
.site-header .cart-dropdown .cart-empty {
  text-align: center;
  padding: 0.5rem 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Added-to-cart notice / popup (blank white box fix) */
.woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-message,
.single-product .woocommerce-message {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  width: min(100%, 520px) !important;
  max-width: 92vw !important;
  margin: 1rem auto !important;
  padding: 1rem 1.15rem !important;
  background: #fff !important;
  border: 1px solid var(--sl-line) !important;
  border-left: 3px solid var(--sl-accent) !important;
  border-radius: 12px !important;
  box-shadow: var(--sl-shadow-hover) !important;
  color: var(--sl-ink) !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.woocommerce-message a.button,
.woocommerce-message .button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  background: var(--sl-ink) !important;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

/* Some themes use fixed notice */
.global-notification,
.site-header .global-notification,
.klb-notice {
  background: #fff !important;
  color: var(--sl-ink) !important;
  border: 1px solid var(--sl-line) !important;
  border-radius: 12px !important;
  box-shadow: var(--sl-shadow-hover) !important;
  padding: 1rem !important;
  max-width: 360px !important;
}

.global-notification a.button,
.klb-notice a.button {
  display: inline-flex !important;
  background: var(--sl-ink) !important;
  color: #fff !important;
  padding: 10px 16px !important;
  border-radius: 999px !important;
  margin-top: 0.5rem !important;
}

/* ---- Cart page center ---- */
body.sl-commerce-center .site-content,
body.woocommerce-cart .site-content,
body.woocommerce-checkout .site-content {
  display: block !important;
}

body.woocommerce-cart .woocommerce,
body.sl-commerce-center.woocommerce-cart .woocommerce {
  max-width: var(--sl-container) !important;
  width: 100% !important;
  margin: 1.5rem auto 3rem !important;
  padding: 0 clamp(1rem, 3vw, 1.5rem) !important;
  box-sizing: border-box !important;
  float: none !important;
}

body.woocommerce-cart .woocommerce .woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals {
  float: none !important;
}

body.woocommerce-cart .cart-collaterals {
  width: 100% !important;
  max-width: 420px !important;
  margin-left: auto !important;
}

/* Two column cart layout when wide */
@media (min-width: 992px) {
  body.woocommerce-cart .woocommerce {
    display: grid !important;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.75fr) !important;
    gap: 1.25rem !important;
    align-items: start !important;
  }
  body.woocommerce-cart .woocommerce-notices-wrapper {
    grid-column: 1 / -1;
  }
  body.woocommerce-cart .woocommerce-cart-form {
    grid-column: 1;
  }
  body.woocommerce-cart .cart-collaterals {
    grid-column: 2;
    max-width: none !important;
    margin: 0 !important;
  }
}

/* ---- Shop full-width / clean sidebar ---- */
body.sl-shop-clean .shop-container,
body.sl-shop-clean .site-content .container,
body.woocommerce-shop .site-content .container,
body.tax-product_cat .site-content .container {
  max-width: var(--sl-container) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Hide broken post Categories / Archives widgets (spam leftovers) */
body.sl-shop-clean .widget_block .wp-block-categories,
body.sl-shop-clean .widget_categories,
body.sl-shop-clean .widget_archive,
body.sl-shop-clean .wp-block-categories-list,
body.sl-shop-clean .widget.widget_block:has(.wp-block-categories),
body.sl-shop-clean aside .widget_block,
body.woocommerce-shop .widget_block,
body.tax-product_cat .widget_block,
body.sl-shop-clean .widget_klb_product_categories + .widget_block {
  /* hide generic block categories of blog posts */
}

body.woocommerce-shop .widget.widget_block,
body.tax-product_cat .widget.widget_block,
body.sl-shop-clean .widget_archive,
body.sl-shop-clean .widget_categories {
  display: none !important;
}

/* Prefer product catalog full width: collapse empty left sidebar */
body.sl-shop-clean .sidebar,
body.woocommerce-shop .sidebar.shop-sidebar,
body.tax-product_cat .sidebar.shop-sidebar,
body.sl-shop-clean .shop-sidebar,
body.woocommerce-shop #sidebar,
body.tax-product_cat #sidebar {
  display: none !important;
}

body.sl-shop-clean .shop-content,
body.woocommerce-shop .content-wrapper,
body.tax-product_cat .content-wrapper,
body.woocommerce-shop .site-primary,
body.tax-product_cat .site-primary,
body.sl-shop-clean .col-lg-9,
body.woocommerce-shop .col-lg-9,
body.tax-product_cat .col-lg-9,
body.woocommerce-shop .col-12,
body.tax-product_cat .col-12 {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  margin: 0 !important;
  float: none !important;
  padding-left: clamp(1rem, 3vw, 1.5rem) !important;
  padding-right: clamp(1rem, 3vw, 1.5rem) !important;
}

body.woocommerce-shop .col-lg-3,
body.tax-product_cat .col-lg-3,
body.woocommerce-shop .col-md-3,
body.tax-product_cat .col-md-3 {
  display: none !important;
}

/* Shop page header center-ish clean */
body.woocommerce-shop .woocommerce-products-header,
body.tax-product_cat .woocommerce-products-header {
  text-align: left;
  margin-bottom: 1.25rem;
}

/* Hide broken “Archives / No archives” empty widgets */
body.sl-shop-clean .widget_archive,
body.woocommerce-shop .widget_archive {
  display: none !important;
}

/* Product page layout safety: ensure buy box visible */
.single-product .single-product-row {
  min-height: 320px;
}

.single-product .product-info {
  min-width: 280px !important;
}

/* Ensure ATC popup on right is readable */
body .woocommerce-notices-wrapper {
  max-width: var(--sl-container);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

/* =========================================================
   CART PAGE — full rebuild (table + totals side-by-side)
   ========================================================= */
body.woocommerce-cart .site-content,
body.woocommerce-cart .site-primary,
body.woocommerce-cart .content-wrapper {
  width: 100% !important;
  max-width: 100% !important;
}

body.woocommerce-cart .site-content .container,
body.woocommerce-cart .klb-page .container {
  max-width: var(--sl-container) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(1rem, 3vw, 1.5rem) !important;
  padding-right: clamp(1rem, 3vw, 1.5rem) !important;
}

body.woocommerce-cart .site-content .col-lg-10,
body.woocommerce-cart .site-content .offset-lg-1,
body.woocommerce-cart .col-lg-9,
body.woocommerce-cart .col-lg-3 {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}

/* Main cart grid */
body.woocommerce-cart .woocommerce {
  display: grid !important;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr) !important;
  gap: 1.5rem !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 1.75rem auto 3.5rem !important;
  padding: 0 !important;
  float: none !important;
  box-sizing: border-box !important;
}

body.woocommerce-cart .woocommerce-notices-wrapper {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

/* Cart table card */
body.woocommerce-cart form.woocommerce-cart-form,
body.woocommerce-cart .woocommerce-cart-form {
  grid-column: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  float: none !important;
  background: #fff !important;
  border: 1px solid var(--sl-line) !important;
  border-radius: 16px !important;
  padding: 1.25rem 1.35rem 1.35rem !important;
  box-shadow: var(--sl-shadow) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Totals card */
body.woocommerce-cart .cart-collaterals {
  grid-column: 2 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  float: none !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.woocommerce-cart .cart-collaterals .cart_totals {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  float: none !important;
  background: #fff !important;
  border: 1px solid var(--sl-line) !important;
  border-radius: 16px !important;
  padding: 1.35rem 1.4rem 1.5rem !important;
  box-shadow: var(--sl-shadow) !important;
  box-sizing: border-box !important;
}

body.woocommerce-cart .cart_totals h2 {
  font-size: 1.2rem !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Table layout */
body.woocommerce-cart table.shop_table,
body.woocommerce-cart table.cart {
  width: 100% !important;
  table-layout: auto !important;
  border: 0 !important;
  border-collapse: collapse !important;
  margin: 0 0 1rem !important;
  background: transparent !important;
}

body.woocommerce-cart table.shop_table thead th {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--sl-line) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--sl-ink-muted) !important;
  padding: 0.5rem 0.65rem 0.85rem !important;
  text-align: left !important;
  white-space: nowrap !important;
}

body.woocommerce-cart table.shop_table thead th.product-price,
body.woocommerce-cart table.shop_table thead th.product-quantity,
body.woocommerce-cart table.shop_table thead th.product-subtotal {
  text-align: center !important;
}

body.woocommerce-cart table.shop_table thead th.product-subtotal {
  text-align: right !important;
}

body.woocommerce-cart table.shop_table td {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--sl-line) !important;
  padding: 1.1rem 0.65rem !important;
  vertical-align: middle !important;
  color: var(--sl-ink) !important;
}

body.woocommerce-cart table.shop_table tr:last-child td {
  border-bottom: 0 !important;
}

/* Column widths */
body.woocommerce-cart table.cart .product-remove { width: 36px !important; }
body.woocommerce-cart table.cart .product-thumbnail { width: 72px !important; }
body.woocommerce-cart table.cart .product-name { width: auto !important; min-width: 160px !important; }
body.woocommerce-cart table.cart .product-price { width: 100px !important; text-align: center !important; white-space: nowrap !important; }
body.woocommerce-cart table.cart .product-quantity { width: 130px !important; text-align: center !important; }
body.woocommerce-cart table.cart .product-subtotal { width: 110px !important; text-align: right !important; white-space: nowrap !important; font-weight: 700 !important; }

body.woocommerce-cart table.cart .product-name a {
  display: block !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: var(--sl-ink) !important;
  text-decoration: none !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  writing-mode: horizontal-tb !important;
  max-width: 280px !important;
}

body.woocommerce-cart table.cart .product-name .variation {
  font-size: 12px !important;
  color: var(--sl-ink-muted) !important;
  margin-top: 0.25rem !important;
}

body.woocommerce-cart table.cart img {
  width: 64px !important;
  height: 80px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  background: var(--sl-sand) !important;
  display: block !important;
}

body.woocommerce-cart table.cart .product-remove a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 999px !important;
  background: var(--sl-bg) !important;
  color: var(--sl-ink) !important;
  text-decoration: none !important;
  font-size: 14px !important;
}

/* Quantity */
body.woocommerce-cart .quantity {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  border: 1px solid var(--sl-line) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: #fff !important;
  margin: 0 auto !important;
}

body.woocommerce-cart .quantity .qty {
  width: 48px !important;
  min-height: 40px !important;
  border: 0 !important;
  border-left: 1px solid var(--sl-line) !important;
  border-right: 1px solid var(--sl-line) !important;
  border-radius: 0 !important;
  text-align: center !important;
  margin: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.woocommerce-cart .quantity .minus,
body.woocommerce-cart .quantity .plus,
body.woocommerce-cart .quantity button {
  width: 36px !important;
  min-height: 40px !important;
  border: 0 !important;
  background: var(--sl-bg) !important;
  color: var(--sl-ink) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Coupon + update row — clean horizontal layout, no overlap */
body.woocommerce-cart table.cart td.actions {
  padding: 1.15rem 0 0.25rem !important;
  border: 0 !important;
}

body.woocommerce-cart table.cart td.actions .coupon {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.6rem !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

body.woocommerce-cart table.cart td.actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
}

body.woocommerce-cart table.cart td.actions .coupon label {
  display: none !important;
}

body.woocommerce-cart table.cart td.actions .coupon .input-text {
  min-height: 44px !important;
  width: 200px !important;
  max-width: 100% !important;
  border: 1px solid var(--sl-line) !important;
  border-radius: 999px !important;
  padding: 0 1rem !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.woocommerce-cart table.cart td.actions .coupon .button,
body.woocommerce-cart table.cart td.actions .coupon button {
  min-height: 44px !important;
  padding: 0 1.25rem !important;
  border-radius: 999px !important;
  background: var(--sl-ink) !important;
  color: #fff !important;
  border: 0 !important;
  margin: 0 !important;
  float: none !important;
  white-space: nowrap !important;
}

body.woocommerce-cart table.cart td.actions > .button,
body.woocommerce-cart table.cart td.actions button[name="update_cart"] {
  min-height: 44px !important;
  padding: 0 1.25rem !important;
  border-radius: 999px !important;
  background: #e8e6e1 !important;
  color: var(--sl-ink) !important;
  border: 0 !important;
  margin: 0 !important;
  float: none !important;
  position: static !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

body.woocommerce-cart table.cart td.actions > .button:disabled,
body.woocommerce-cart table.cart td.actions button[name="update_cart"]:disabled {
  opacity: 0.55 !important;
}

/* Totals table */
body.woocommerce-cart .cart_totals table {
  width: 100% !important;
  border: 0 !important;
  margin: 0 0 1rem !important;
}

body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td {
  border: 0 !important;
  border-bottom: 1px solid var(--sl-line) !important;
  padding: 0.85rem 0 !important;
  background: transparent !important;
  font-size: 14px !important;
}

body.woocommerce-cart .cart_totals table th {
  text-align: left !important;
  color: var(--sl-ink-muted) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  font-size: 11px !important;
  letter-spacing: 0.06em !important;
  width: 40% !important;
}

body.woocommerce-cart .cart_totals table td {
  text-align: right !important;
}

body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td {
  border-bottom: 0 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--sl-ink) !important;
}

body.woocommerce-cart .wc-proceed-to-checkout {
  padding: 0 !important;
  margin: 0.5rem 0 0 !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  background: var(--sl-accent) !important;
  color: #fff !important;
  font-weight: 600 !important;
  text-align: center !important;
}

/* Cross-sells full width below */
body.woocommerce-cart .cart-collaterals .cross-sells,
body.woocommerce-cart .cross-sells {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin-top: 1.5rem !important;
}

@media (max-width: 991px) {
  body.woocommerce-cart .woocommerce {
    grid-template-columns: 1fr !important;
  }
  body.woocommerce-cart form.woocommerce-cart-form,
  body.woocommerce-cart .cart-collaterals {
    grid-column: 1 !important;
  }
  body.woocommerce-cart table.cart thead {
    display: none !important;
  }
  body.woocommerce-cart table.cart tr {
    display: grid !important;
    grid-template-columns: 28px 64px 1fr !important;
    gap: 0.5rem 0.75rem !important;
    padding: 1rem 0 !important;
    border-bottom: 1px solid var(--sl-line) !important;
  }
  body.woocommerce-cart table.cart td {
    border: 0 !important;
    padding: 0 !important;
  }
  body.woocommerce-cart table.cart .product-remove { grid-column: 1; grid-row: 1; }
  body.woocommerce-cart table.cart .product-thumbnail { grid-column: 2; grid-row: 1 / span 3; }
  body.woocommerce-cart table.cart .product-name { grid-column: 3; grid-row: 1; }
  body.woocommerce-cart table.cart .product-price { grid-column: 3; grid-row: 2; text-align: left !important; }
  body.woocommerce-cart table.cart .product-quantity { grid-column: 3; grid-row: 3; text-align: left !important; }
  body.woocommerce-cart table.cart .product-subtotal { grid-column: 3; grid-row: 4; text-align: left !important; }
  body.woocommerce-cart table.cart td.actions {
    grid-column: 1 / -1 !important;
    display: flex !important;
  }
}

/* =========================================================
   CART PAGE — FINAL FIX (Clotya uses .cart-wrapper)
   ========================================================= */
body.woocommerce-cart .woocommerce {
  display: block !important;
  width: 100% !important;
  max-width: var(--sl-container) !important;
  margin: 1.5rem auto 3rem !important;
  padding: 0 clamp(1rem, 3vw, 1.5rem) !important;
  float: none !important;
  box-sizing: border-box !important;
}

/* THIS is the real layout parent in Clotya cart.php */
body.woocommerce-cart .cart-wrapper {
  display: grid !important;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.7fr) !important;
  gap: 1.5rem !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  float: none !important;
  clear: both !important;
}

body.woocommerce-cart .cart-wrapper::before,
body.woocommerce-cart .cart-wrapper::after {
  display: none !important;
  content: none !important;
}

body.woocommerce-cart .cart-wrapper > .woocommerce-cart-form {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  float: none !important;
  background: #fff !important;
  border: 1px solid var(--sl-line) !important;
  border-radius: 16px !important;
  padding: 1.25rem 1.5rem 1.4rem !important;
  box-shadow: 0 1px 2px rgba(18,20,18,.04), 0 8px 24px rgba(18,20,18,.06) !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

body.woocommerce-cart .cart-wrapper > .cart-collaterals {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  float: none !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.woocommerce-cart .cart-wrapper .cart_totals {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  background: #fff !important;
  border: 1px solid var(--sl-line) !important;
  border-radius: 16px !important;
  padding: 1.35rem 1.4rem 1.5rem !important;
  box-shadow: 0 1px 2px rgba(18,20,18,.04), 0 8px 24px rgba(18,20,18,.06) !important;
  box-sizing: border-box !important;
}

/* Force real TABLE layout (kill WC responsive block mode on desktop) */
@media (min-width: 769px) {
  body.woocommerce-cart table.shop_table_responsive.cart,
  body.woocommerce-cart table.shop_table.cart {
    display: table !important;
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
  }
  body.woocommerce-cart table.shop_table_responsive.cart thead {
    display: table-header-group !important;
  }
  body.woocommerce-cart table.shop_table_responsive.cart tbody {
    display: table-row-group !important;
  }
  body.woocommerce-cart table.shop_table_responsive.cart tr {
    display: table-row !important;
  }
  body.woocommerce-cart table.shop_table_responsive.cart th,
  body.woocommerce-cart table.shop_table_responsive.cart td {
    display: table-cell !important;
    text-align: left !important;
  }
  /* Prevent WC mobile data-title labels on desktop */
  body.woocommerce-cart table.shop_table_responsive.cart td::before {
    display: none !important;
    content: none !important;
  }
}

body.woocommerce-cart table.cart {
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
}

body.woocommerce-cart table.cart thead th {
  border: 0 !important;
  border-bottom: 1px solid var(--sl-line) !important;
  padding: 0.4rem 0.5rem 0.85rem !important;
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--sl-ink-muted) !important;
  font-weight: 600 !important;
  background: transparent !important;
}

body.woocommerce-cart table.cart td {
  border: 0 !important;
  border-bottom: 1px solid var(--sl-line) !important;
  padding: 1rem 0.5rem !important;
  vertical-align: middle !important;
  background: transparent !important;
}

body.woocommerce-cart table.cart .product-remove { width: 40px !important; }
body.woocommerce-cart table.cart .product-thumbnail { width: 80px !important; }
body.woocommerce-cart table.cart .product-name { width: 34% !important; }
body.woocommerce-cart table.cart .product-price { width: 14% !important; text-align: center !important; white-space: nowrap !important; }
body.woocommerce-cart table.cart .product-quantity { width: 18% !important; text-align: center !important; }
body.woocommerce-cart table.cart .product-subtotal { width: 14% !important; text-align: right !important; white-space: nowrap !important; font-weight: 700 !important; }

body.woocommerce-cart table.cart .product-name a {
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: var(--sl-ink) !important;
  text-decoration: none !important;
  white-space: normal !important;
  word-break: normal !important;
  writing-mode: horizontal-tb !important;
}

body.woocommerce-cart table.cart img {
  width: 64px !important;
  height: 80px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  display: block !important;
}

/* Actions row uses .actions-wrapper in Clotya */
body.woocommerce-cart table.cart td.actions {
  display: table-cell !important;
  padding: 1.15rem 0 0.25rem !important;
  border: 0 !important;
}

body.woocommerce-cart table.cart td.actions .actions-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  width: 100% !important;
}

body.woocommerce-cart table.cart td.actions .coupon {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.6rem !important;
  float: none !important;
  margin: 0 !important;
  width: auto !important;
}

body.woocommerce-cart table.cart td.actions .coupon .input-text {
  min-height: 44px !important;
  width: 200px !important;
  border: 1px solid var(--sl-line) !important;
  border-radius: 999px !important;
  padding: 0 1rem !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.woocommerce-cart table.cart td.actions .coupon .button,
body.woocommerce-cart table.cart td.actions .actions-wrapper > .button,
body.woocommerce-cart table.cart td.actions button[name="update_cart"],
body.woocommerce-cart table.cart td.actions button[name="apply_coupon"] {
  min-height: 44px !important;
  padding: 0 1.25rem !important;
  border-radius: 999px !important;
  margin: 0 !important;
  float: none !important;
  position: static !important;
  border: 0 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

body.woocommerce-cart table.cart td.actions button[name="apply_coupon"],
body.woocommerce-cart table.cart td.actions .coupon .button {
  background: var(--sl-ink) !important;
  color: #fff !important;
}

body.woocommerce-cart table.cart td.actions button[name="update_cart"] {
  background: #e8e6e1 !important;
  color: var(--sl-ink) !important;
}

body.woocommerce-cart .cart_totals h2 {
  margin: 0 0 1rem !important;
  font-size: 1.2rem !important;
}

body.woocommerce-cart .cart_totals table {
  width: 100% !important;
  border: 0 !important;
}

body.woocommerce-cart .cart_totals th,
body.woocommerce-cart .cart_totals td {
  border: 0 !important;
  border-bottom: 1px solid var(--sl-line) !important;
  padding: 0.85rem 0 !important;
  background: transparent !important;
}

body.woocommerce-cart .cart_totals th {
  text-align: left !important;
  color: var(--sl-ink-muted) !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

body.woocommerce-cart .cart_totals td {
  text-align: right !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: flex !important;
  width: 100% !important;
  min-height: 48px !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: var(--sl-accent) !important;
  color: #fff !important;
  margin: 0.75rem 0 0 !important;
}

@media (max-width: 991px) {
  body.woocommerce-cart .cart-wrapper {
    grid-template-columns: 1fr !important;
  }
  body.woocommerce-cart .cart-wrapper > .woocommerce-cart-form,
  body.woocommerce-cart .cart-wrapper > .cart-collaterals {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}

/* =========================================================
   CART + MINI-CART polish — absolute remove (×) top-right
   ========================================================= */

/* ---- Cart page table alignment ---- */
body.woocommerce-cart .cart-wrapper > .woocommerce-cart-form {
  overflow: visible !important;
}

body.woocommerce-cart table.shop_table.cart,
body.woocommerce-cart table.cart {
  table-layout: fixed !important;
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

/* Align headers with body cells */
body.woocommerce-cart table.cart thead th {
  padding: 0.65rem 0.75rem 0.9rem !important;
  vertical-align: bottom !important;
  color: var(--sl-ink-muted) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid var(--sl-line) !important;
  background: transparent !important;
}

body.woocommerce-cart table.cart thead th.product-remove,
body.woocommerce-cart table.cart thead th.product-thumbnail {
  color: transparent !important;
  font-size: 0 !important;
}

body.woocommerce-cart table.cart thead th.product-name { text-align: left !important; width: 36% !important; }
body.woocommerce-cart table.cart thead th.product-price { text-align: center !important; width: 14% !important; }
body.woocommerce-cart table.cart thead th.product-quantity { text-align: center !important; width: 18% !important; }
body.woocommerce-cart table.cart thead th.product-subtotal { text-align: right !important; width: 14% !important; }
body.woocommerce-cart table.cart thead th.product-remove { width: 44px !important; }
body.woocommerce-cart table.cart thead th.product-thumbnail { width: 84px !important; }

body.woocommerce-cart table.cart tbody td {
  padding: 1.15rem 0.75rem !important;
  vertical-align: middle !important;
  border-bottom: 1px solid var(--sl-line) !important;
}

body.woocommerce-cart table.cart tbody td.product-name { text-align: left !important; }
body.woocommerce-cart table.cart tbody td.product-price { text-align: center !important; white-space: nowrap !important; }
body.woocommerce-cart table.cart tbody td.product-quantity { text-align: center !important; }
body.woocommerce-cart table.cart tbody td.product-subtotal { text-align: right !important; white-space: nowrap !important; font-weight: 700 !important; }

/* Product cell: relative for absolute × */
body.woocommerce-cart table.cart tbody tr.cart_item {
  position: relative !important;
}

/* Move remove (×) to top-right of the row card-like */
body.woocommerce-cart table.cart td.product-remove {
  position: static !important;
  width: 44px !important;
  padding: 0 !important;
  border: 0 !important;
  vertical-align: top !important;
}

body.woocommerce-cart table.cart td.product-remove a.remove,
body.woocommerce-cart table.cart a.remove {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  z-index: 5 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  border: 1px solid var(--sl-line) !important;
  color: var(--sl-ink) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.08) !important;
  font-size: 14px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  float: none !important;
}

body.woocommerce-cart table.cart td.product-remove a.remove:hover {
  background: var(--sl-ink) !important;
  color: #fff !important;
  border-color: var(--sl-ink) !important;
}

body.woocommerce-cart table.cart td.product-remove a.remove i,
body.woocommerce-cart table.cart td.product-remove a.remove::before {
  font-size: 12px !important;
  line-height: 1 !important;
}

/* Quantity control — clean pill */
body.woocommerce-cart table.cart .quantity {
  display: inline-flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  border: 1px solid var(--sl-line) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  background: #fff !important;
  margin: 0 auto !important;
  width: auto !important;
  max-width: 130px !important;
}

body.woocommerce-cart table.cart .quantity .qty {
  width: 44px !important;
  min-width: 44px !important;
  min-height: 38px !important;
  border: 0 !important;
  border-left: 1px solid var(--sl-line) !important;
  border-right: 1px solid var(--sl-line) !important;
  border-radius: 0 !important;
  text-align: center !important;
  font-weight: 600 !important;
  background: #fff !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  -moz-appearance: textfield !important;
}

body.woocommerce-cart table.cart .quantity .qty::-webkit-outer-spin-button,
body.woocommerce-cart table.cart .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

body.woocommerce-cart table.cart .quantity .minus,
body.woocommerce-cart table.cart .quantity .plus,
body.woocommerce-cart table.cart .quantity button.minus,
body.woocommerce-cart table.cart .quantity button.plus {
  width: 36px !important;
  min-width: 36px !important;
  min-height: 38px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--sl-ink) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

body.woocommerce-cart table.cart .quantity .minus:hover,
body.woocommerce-cart table.cart .quantity .plus:hover {
  background: var(--sl-bg) !important;
}

/* Thumbnail */
body.woocommerce-cart table.cart td.product-thumbnail img {
  width: 72px !important;
  height: 90px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
}

/* Actions row spacing */
body.woocommerce-cart table.cart td.actions {
  padding-top: 1.25rem !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  border-bottom: 0 !important;
}

body.woocommerce-cart table.cart td.actions .actions-wrapper {
  padding-right: 0.25rem !important;
}

/* ---- Mini cart item: × absolute top-right ---- */
.site-header .cart-dropdown .cart-dropdown-wrapper {
  position: relative !important;
}

.site-header .cart-dropdown li.mini_cart_item,
.site-header .cart-dropdown .woocommerce-mini-cart-item,
.fl-mini-cart-content li.mini_cart_item,
.woocommerce-mini-cart-item {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: 0.85rem !important;
  row-gap: 0.25rem !important;
  align-items: start !important;
  padding: 0.9rem 2.1rem 0.9rem 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--sl-line) !important;
  background: transparent !important;
  box-shadow: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.site-header .cart-dropdown li.mini_cart_item > a:not(.remove),
.woocommerce-mini-cart-item > a:not(.remove) {
  grid-column: 1 / 3 !important;
  grid-row: 1 !important;
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  gap: 0.85rem !important;
  align-items: start !important;
  text-decoration: none !important;
  color: var(--sl-ink) !important;
  padding-right: 0.25rem !important;
}

.site-header .cart-dropdown li.mini_cart_item img,
.woocommerce-mini-cart-item img {
  width: 64px !important;
  height: 80px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  margin: 0 !important;
  float: none !important;
}

.site-header .cart-dropdown li.mini_cart_item .quantity,
.woocommerce-mini-cart-item .quantity {
  grid-column: 2 !important;
  grid-row: 2 !important;
  margin: 0 !important;
  padding: 0 0 0 0 !important;
  font-size: 12px !important;
  color: var(--sl-ink-muted) !important;
}

/* Absolute top-right remove on mini cart line */
.site-header .cart-dropdown a.remove_from_cart_button,
.site-header .cart-dropdown a.remove,
.woocommerce-mini-cart-item a.remove,
.fl-mini-cart-content a.remove {
  position: absolute !important;
  top: 10px !important;
  right: 4px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 6 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  border: 1px solid var(--sl-line) !important;
  color: var(--sl-ink) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.08) !important;
  font-size: 14px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  float: none !important;
  grid-column: auto !important;
  grid-row: auto !important;
}

.site-header .cart-dropdown a.remove:hover,
.woocommerce-mini-cart-item a.remove:hover {
  background: var(--sl-ink) !important;
  color: #fff !important;
  border-color: var(--sl-ink) !important;
}

/* Product title in mini cart */
.site-header .cart-dropdown .mini_cart_item a:not(.remove),
.woocommerce-mini-cart-item a:not(.remove) {
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  word-break: normal !important;
  writing-mode: horizontal-tb !important;
}

/* =========================================================
   CLOT YA-AWARE FIX — mini-cart uses .product-content
   Cart table: grid rows + absolute × top-right
   ========================================================= */

/* ---------- MINI-CART (Clotya structure) ----------
   li.woocommerce-mini-cart-item
     > .product-content
         > .thumbnail-wrapper
         > .content-wrapper (title + price)
         > a.remove
*/
.site-header .cart-dropdown .cart-dropdown-wrapper {
  background: #fff !important;
  border: 1px solid var(--sl-line) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 40px rgba(18, 20, 18, 0.16) !important;
  padding: 1rem 1.1rem 1.1rem !important;
  width: 340px !important;
  max-width: min(92vw, 360px) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.site-header .cart-dropdown ul.woocommerce-mini-cart,
.site-header .cart-dropdown ul.cart_list,
.site-header .cart-dropdown ul.product_list_widget {
  display: block !important;
  list-style: none !important;
  margin: 0 0 0.5rem !important;
  padding: 0 !important;
  max-height: 280px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Kill any grid we previously forced on the <li> */
.site-header .cart-dropdown li.woocommerce-mini-cart-item,
.site-header .cart-dropdown li.mini_cart_item,
.site-header .cart-dropdown li.product {
  display: block !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--sl-line) !important;
  background: transparent !important;
  box-shadow: none !important;
  float: none !important;
  width: 100% !important;
  list-style: none !important;
}

.site-header .cart-dropdown li.woocommerce-mini-cart-item:last-child,
.site-header .cart-dropdown li.mini_cart_item:last-child {
  border-bottom: 0 !important;
}

/* Real row container in Clotya */
.site-header .cart-dropdown .woocommerce-mini-cart-item .product-content,
.site-header .cart-dropdown .mini_cart_item .product-content,
.fl-mini-cart-content .product-content {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  column-gap: 0.85rem !important;
  align-items: start !important;
  position: relative !important;
  width: 100% !important;
  padding: 0.85rem 2.25rem 0.85rem 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.site-header .cart-dropdown .product-content .thumbnail-wrapper {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 64px !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

.site-header .cart-dropdown .product-content .thumbnail-wrapper a {
  display: block !important;
  line-height: 0 !important;
}

.site-header .cart-dropdown .product-content .thumbnail-wrapper img,
.site-header .cart-dropdown .woocommerce-mini-cart-item img {
  width: 64px !important;
  height: 80px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  margin: 0 !important;
  float: none !important;
  display: block !important;
}

.site-header .cart-dropdown .product-content .content-wrapper {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.25rem !important;
  align-items: flex-start !important;
}

.site-header .cart-dropdown .product-content .product-title,
.site-header .cart-dropdown .product-content h3.product-title {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--sl-ink) !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  writing-mode: horizontal-tb !important;
}

.site-header .cart-dropdown .product-content .product-title a {
  color: var(--sl-ink) !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

.site-header .cart-dropdown .product-content .price,
.site-header .cart-dropdown .product-content .quantitysa,
.site-header .cart-dropdown .product-content .quantity {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--sl-ink-muted) !important;
  line-height: 1.4 !important;
  writing-mode: horizontal-tb !important;
}

/* × absolute top-right of product-content */
.site-header .cart-dropdown .product-content > a.remove,
.site-header .cart-dropdown .product-content > a.remove_from_cart_button,
.site-header .cart-dropdown .woocommerce-mini-cart-item a.remove,
.site-header .cart-dropdown .woocommerce-mini-cart-item a.remove_from_cart_button {
  position: absolute !important;
  top: 8px !important;
  right: 0 !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 8 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  border: 1px solid var(--sl-line) !important;
  color: var(--sl-ink) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  font-size: 12px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  float: none !important;
  grid-column: unset !important;
  grid-row: unset !important;
}

.site-header .cart-dropdown .product-content > a.remove:hover,
.site-header .cart-dropdown .woocommerce-mini-cart-item a.remove:hover {
  background: var(--sl-ink) !important;
  color: #fff !important;
  border-color: var(--sl-ink) !important;
}

.site-header .cart-dropdown .product-content > a.remove i,
.site-header .cart-dropdown .product-content > a.remove::before {
  font-size: 11px !important;
  line-height: 1 !important;
}

/* Mini-cart footer */
.site-header .cart-dropdown p.woocommerce-mini-cart__total,
.site-header .cart-dropdown p.total {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0.85rem 0 0.55rem !important;
  border-top: 1px solid var(--sl-line) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.site-header .cart-dropdown .cart-total-product,
.site-header .cart-dropdown span.cart-total-product {
  display: block !important;
  margin: 0 0 0.75rem !important;
  font-size: 12px !important;
  color: var(--sl-ink-muted) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.site-header .cart-dropdown p.woocommerce-mini-cart__buttons,
.site-header .cart-dropdown p.buttons {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.site-header .cart-dropdown p.buttons a,
.site-header .cart-dropdown p.woocommerce-mini-cart__buttons a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 44px !important;
  padding: 12px 16px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  border: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.site-header .cart-dropdown p.buttons a:not(.checkout) {
  background: var(--sl-ink) !important;
  color: #fff !important;
}

.site-header .cart-dropdown p.buttons a.checkout {
  background: var(--sl-accent) !important;
  color: #fff !important;
}

/* ---------- CART PAGE — proper columns + × top-right ---------- */
@media (min-width: 769px) {
  /* Force real table for thead + actions row */
  body.woocommerce-cart table.shop_table.cart,
  body.woocommerce-cart table.shop_table_responsive.cart {
    display: table !important;
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
  }

  body.woocommerce-cart table.cart thead {
    display: table-header-group !important;
  }

  body.woocommerce-cart table.cart thead tr {
    display: table-row !important;
  }

  body.woocommerce-cart table.cart thead th {
    display: table-cell !important;
    vertical-align: bottom !important;
  }

  /* Hide empty remove/thumbnail header cells */
  body.woocommerce-cart table.cart thead th.product-remove {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
  }

  body.woocommerce-cart table.cart thead th.product-thumbnail {
    width: 88px !important;
    padding: 0.65rem 0.5rem 0.9rem 0 !important;
    font-size: 0 !important;
    color: transparent !important;
  }

  body.woocommerce-cart table.cart thead th.product-name {
    width: auto !important;
    text-align: left !important;
    padding: 0.65rem 0.75rem 0.9rem !important;
  }

  body.woocommerce-cart table.cart thead th.product-price {
    width: 110px !important;
    text-align: center !important;
    padding: 0.65rem 0.5rem 0.9rem !important;
  }

  body.woocommerce-cart table.cart thead th.product-quantity {
    width: 140px !important;
    text-align: center !important;
    padding: 0.65rem 0.5rem 0.9rem !important;
  }

  body.woocommerce-cart table.cart thead th.product-subtotal {
    width: 120px !important;
    text-align: right !important;
    padding: 0.65rem 2.5rem 0.9rem 0.5rem !important; /* room for × */
  }

  /* Each cart item as CSS grid so absolute × works + columns align */
  body.woocommerce-cart table.cart tbody tr.cart_item,
  body.woocommerce-cart table.cart tbody tr.woocommerce-cart-form__cart-item {
    display: grid !important;
    grid-template-columns: 88px minmax(0, 1fr) 110px 140px 120px !important;
    align-items: center !important;
    column-gap: 0 !important;
    width: 100% !important;
    position: relative !important;
    border-bottom: 1px solid var(--sl-line) !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  /* Remove column out of flow — button absolute top-right */
  body.woocommerce-cart table.cart tbody tr.cart_item > td.product-remove {
    position: absolute !important;
    top: 12px !important;
    right: 8px !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    display: block !important;
    z-index: 6 !important;
    grid-column: unset !important;
    grid-row: unset !important;
  }

  body.woocommerce-cart table.cart tbody tr.cart_item > td.product-thumbnail {
    grid-column: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 1.1rem 0.5rem 1.1rem 0 !important;
    border: 0 !important;
    border-bottom: 0 !important;
    width: auto !important;
  }

  body.woocommerce-cart table.cart tbody tr.cart_item > td.product-name {
    grid-column: 2 !important;
    display: block !important;
    padding: 1.1rem 0.75rem !important;
    border: 0 !important;
    border-bottom: 0 !important;
    text-align: left !important;
    width: auto !important;
    min-width: 0 !important;
  }

  body.woocommerce-cart table.cart tbody tr.cart_item > td.product-price {
    grid-column: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.1rem 0.5rem !important;
    border: 0 !important;
    border-bottom: 0 !important;
    text-align: center !important;
    white-space: nowrap !important;
    width: auto !important;
    font-weight: 500 !important;
    color: var(--sl-ink) !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 14px !important;
  }

  body.woocommerce-cart table.cart tbody tr.cart_item > td.product-quantity {
    grid-column: 4 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.1rem 0.5rem !important;
    border: 0 !important;
    border-bottom: 0 !important;
    width: auto !important;
  }

  body.woocommerce-cart table.cart tbody tr.cart_item > td.product-subtotal {
    grid-column: 5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 1.1rem 2.5rem 1.1rem 0.5rem !important; /* room for × */
    border: 0 !important;
    border-bottom: 0 !important;
    text-align: right !important;
    white-space: nowrap !important;
    font-weight: 700 !important;
    width: auto !important;
    font-size: 14px !important;
    color: var(--sl-ink) !important;
  }

  /* Kill WC mobile ::before labels on desktop */
  body.woocommerce-cart table.cart tbody tr.cart_item > td::before {
    display: none !important;
    content: none !important;
  }

  /* Actions row stays full-width table cell */
  body.woocommerce-cart table.cart tbody > tr:not(.cart_item):not(.woocommerce-cart-form__cart-item) {
    display: table-row !important;
  }

  body.woocommerce-cart table.cart tbody > tr:not(.cart_item) > td.actions {
    display: table-cell !important;
    width: 100% !important;
  }
}

/* × button style — cart page */
body.woocommerce-cart table.cart td.product-remove a.remove,
body.woocommerce-cart table.cart a.remove {
  position: static !important; /* parent td is already absolute positioned */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  border: 1px solid var(--sl-line) !important;
  color: var(--sl-ink) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  font-size: 14px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  float: none !important;
}

body.woocommerce-cart table.cart td.product-remove a.remove:hover {
  background: var(--sl-ink) !important;
  color: #fff !important;
  border-color: var(--sl-ink) !important;
}

body.woocommerce-cart table.cart td.product-remove a.remove i {
  font-size: 12px !important;
  line-height: 1 !important;
}

/* Thumbnail + name */
body.woocommerce-cart table.cart td.product-thumbnail img {
  width: 72px !important;
  height: 90px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  display: block !important;
}

body.woocommerce-cart table.cart td.product-name a {
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: var(--sl-ink) !important;
  text-decoration: none !important;
  white-space: normal !important;
  writing-mode: horizontal-tb !important;
}

body.woocommerce-cart table.cart td.product-name .variation {
  margin-top: 0.35rem !important;
  font-size: 12px !important;
  color: var(--sl-ink-muted) !important;
}

/* Quantity pill */
body.woocommerce-cart table.cart .quantity {
  display: inline-flex !important;
  align-items: stretch !important;
  border: 1px solid var(--sl-line) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  background: #fff !important;
  margin: 0 !important;
  width: auto !important;
}

body.woocommerce-cart table.cart .quantity .qty {
  width: 44px !important;
  min-height: 38px !important;
  border: 0 !important;
  border-left: 1px solid var(--sl-line) !important;
  border-right: 1px solid var(--sl-line) !important;
  border-radius: 0 !important;
  text-align: center !important;
  font-weight: 600 !important;
  background: #fff !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  -moz-appearance: textfield !important;
}

body.woocommerce-cart table.cart .quantity .qty::-webkit-outer-spin-button,
body.woocommerce-cart table.cart .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

body.woocommerce-cart table.cart .quantity .minus,
body.woocommerce-cart table.cart .quantity .plus,
body.woocommerce-cart table.cart .quantity button.minus,
body.woocommerce-cart table.cart .quantity button.plus {
  width: 36px !important;
  min-height: 38px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--sl-ink) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  font-size: 16px !important;
}

/* Coupon + update row */
body.woocommerce-cart table.cart td.actions {
  padding: 1.25rem 0 0.25rem !important;
  border: 0 !important;
  border-bottom: 0 !important;
}

body.woocommerce-cart table.cart td.actions .actions-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  width: 100% !important;
}

body.woocommerce-cart table.cart td.actions .coupon {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.6rem !important;
  float: none !important;
  margin: 0 !important;
}

body.woocommerce-cart table.cart td.actions .coupon .input-text {
  min-height: 44px !important;
  width: 200px !important;
  max-width: 100% !important;
  border: 1px solid var(--sl-line) !important;
  border-radius: 999px !important;
  padding: 0 1rem !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.woocommerce-cart table.cart td.actions .coupon .button,
body.woocommerce-cart table.cart td.actions button[name="apply_coupon"] {
  min-height: 44px !important;
  padding: 0 1.25rem !important;
  border-radius: 999px !important;
  background: var(--sl-ink) !important;
  color: #fff !important;
  border: 0 !important;
  margin: 0 !important;
  float: none !important;
}

body.woocommerce-cart table.cart td.actions button[name="update_cart"],
body.woocommerce-cart table.cart td.actions .actions-wrapper > .button {
  min-height: 44px !important;
  padding: 0 1.25rem !important;
  border-radius: 999px !important;
  background: #e8e6e1 !important;
  color: var(--sl-ink) !important;
  border: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* Cart totals panel */
body.woocommerce-cart .cart-wrapper {
  display: grid !important;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.7fr) !important;
  gap: 1.5rem !important;
  align-items: start !important;
}

body.woocommerce-cart .cart-wrapper > .woocommerce-cart-form {
  background: #fff !important;
  border: 1px solid var(--sl-line) !important;
  border-radius: 16px !important;
  padding: 1.25rem 1.5rem 1.4rem !important;
  box-shadow: var(--sl-shadow) !important;
  overflow: visible !important;
}

body.woocommerce-cart .cart-wrapper .cart_totals {
  background: #fff !important;
  border: 1px solid var(--sl-line) !important;
  border-radius: 16px !important;
  padding: 1.35rem 1.4rem 1.5rem !important;
  box-shadow: var(--sl-shadow) !important;
}

body.woocommerce-cart .cart_totals h2 {
  margin: 0 0 1rem !important;
  font-size: 1.2rem !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: flex !important;
  width: 100% !important;
  min-height: 48px !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: var(--sl-accent) !important;
  color: #fff !important;
  margin: 0.75rem 0 0 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

@media (max-width: 991px) {
  body.woocommerce-cart .cart-wrapper {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile cart items */
@media (max-width: 768px) {
  body.woocommerce-cart table.cart tbody tr.cart_item,
  body.woocommerce-cart table.cart tbody tr.woocommerce-cart-form__cart-item {
    display: grid !important;
    grid-template-columns: 72px 1fr !important;
    grid-template-areas:
      "thumb name"
      "thumb price"
      "thumb qty"
      "thumb sub"
      !important;
    position: relative !important;
    gap: 0.35rem 0.85rem !important;
    padding: 1rem 2.25rem 1rem 0 !important;
    border-bottom: 1px solid var(--sl-line) !important;
  }

  body.woocommerce-cart table.cart tbody tr.cart_item > td.product-remove {
    position: absolute !important;
    top: 10px !important;
    right: 0 !important;
    z-index: 6 !important;
  }

  body.woocommerce-cart table.cart tbody tr.cart_item > td.product-thumbnail {
    grid-area: thumb !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body.woocommerce-cart table.cart tbody tr.cart_item > td.product-name {
    grid-area: name !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body.woocommerce-cart table.cart tbody tr.cart_item > td.product-price {
    grid-area: price !important;
    padding: 0 !important;
    border: 0 !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  body.woocommerce-cart table.cart tbody tr.cart_item > td.product-quantity {
    grid-area: qty !important;
    padding: 0.25rem 0 0 !important;
    border: 0 !important;
    justify-content: flex-start !important;
  }

  body.woocommerce-cart table.cart tbody tr.cart_item > td.product-subtotal {
    grid-area: sub !important;
    padding: 0.15rem 0 0 !important;
    border: 0 !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  body.woocommerce-cart table.cart thead {
    display: none !important;
  }
}

/* =========================================================
   CART NUCLEAR FIX — pure TABLE layout (no grid on <tr>)
   Previous grid-on-table rules stacked product titles vertically.
   ========================================================= */

/* Site header readable */
.site-header .header-main,
.site-header .header-row.header-main {
  background: #f7f5f1 !important;
}
.site-header .menu-item > a,
.site-header .primary-menu a,
.site-header .header-main a,
.site-header .cart-price,
.site-header .cart-button span {
  color: #121412 !important;
  opacity: 1 !important;
}

/* Two-column page shell only (form | totals) */
body.woocommerce-cart .cart-wrapper {
  display: grid !important;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.65fr) !important;
  gap: 1.5rem !important;
  align-items: start !important;
}
@media (max-width: 991px) {
  body.woocommerce-cart .cart-wrapper {
    grid-template-columns: 1fr !important;
  }
}

body.woocommerce-cart .cart-wrapper > .woocommerce-cart-form {
  background: #fff !important;
  border: 1px solid #e4e0d8 !important;
  border-radius: 16px !important;
  padding: 1.25rem 1.4rem 1.35rem !important;
  box-shadow: 0 1px 2px rgba(18, 20, 18, 0.04), 0 8px 24px rgba(18, 20, 18, 0.06) !important;
  overflow: visible !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

body.woocommerce-cart .cart-wrapper .cart_totals {
  background: #fff !important;
  border: 1px solid #e4e0d8 !important;
  border-radius: 16px !important;
  padding: 1.35rem 1.4rem 1.5rem !important;
  box-shadow: 0 1px 2px rgba(18, 20, 18, 0.04), 0 8px 24px rgba(18, 20, 18, 0.06) !important;
}
body.woocommerce-cart .cart_totals h2,
body.woocommerce-cart .cart_totals th {
  color: #121412 !important;
}

/* ---- DESTROY all grid-on-row hacks; use real table ---- */
@media (min-width: 769px) {
  body.woocommerce-cart table.shop_table.cart,
  body.woocommerce-cart table.shop_table_responsive.cart,
  body.woocommerce-cart table.cart {
    display: table !important;
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    margin: 0 !important;
  }

  body.woocommerce-cart table.cart thead,
  body.woocommerce-cart table.cart tbody {
    display: table-header-group !important;
  }
  body.woocommerce-cart table.cart tbody {
    display: table-row-group !important;
  }

  body.woocommerce-cart table.cart thead tr,
  body.woocommerce-cart table.cart tbody tr,
  body.woocommerce-cart table.cart tbody tr.cart_item,
  body.woocommerce-cart table.cart tbody tr.woocommerce-cart-form__cart-item {
    display: table-row !important;
    position: relative !important;
    width: auto !important;
    grid-template-columns: none !important;
    grid-template-areas: none !important;
    gap: 0 !important;
    column-gap: 0 !important;
    align-items: normal !important;
  }

  body.woocommerce-cart table.cart thead th,
  body.woocommerce-cart table.cart tbody td,
  body.woocommerce-cart table.cart tbody tr.cart_item > td,
  body.woocommerce-cart table.cart tbody tr.cart_item > th {
    display: table-cell !important;
    float: none !important;
    clear: none !important;
    position: static !important;
    grid-column: auto !important;
    grid-row: auto !important;
    order: 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    border: 0 !important;
    border-bottom: 1px solid #e4e0d8 !important;
    vertical-align: middle !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  /* Kill WC mobile data-title labels on desktop */
  body.woocommerce-cart table.cart td::before,
  body.woocommerce-cart table.shop_table_responsive.cart td::before {
    display: none !important;
    content: none !important;
  }

  /* Column widths — HTML order: remove | thumb | name | price | qty | subtotal */
  body.woocommerce-cart table.cart .product-remove {
    width: 44px !important;
    padding: 1rem 0.25rem !important;
    text-align: center !important;
  }
  body.woocommerce-cart table.cart .product-thumbnail {
    width: 88px !important;
    padding: 1rem 0.5rem !important;
  }
  body.woocommerce-cart table.cart .product-name {
    width: auto !important;
    padding: 1rem 0.75rem !important;
    text-align: left !important;
  }
  body.woocommerce-cart table.cart .product-price {
    width: 110px !important;
    padding: 1rem 0.5rem !important;
    text-align: center !important;
    white-space: nowrap !important;
    color: #121412 !important;
    font-weight: 500 !important;
  }
  body.woocommerce-cart table.cart .product-quantity {
    width: 140px !important;
    padding: 1rem 0.5rem !important;
    text-align: center !important;
  }
  body.woocommerce-cart table.cart .product-subtotal {
    width: 120px !important;
    padding: 1rem 0.5rem !important;
    text-align: right !important;
    white-space: nowrap !important;
    font-weight: 700 !important;
    color: #121412 !important;
  }

  /* Headers dark + readable */
  body.woocommerce-cart table.cart thead th {
    padding: 0.5rem 0.5rem 0.85rem !important;
    color: #121412 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid #d9d4cb !important;
    opacity: 1 !important;
  }
  body.woocommerce-cart table.cart thead th.product-remove,
  body.woocommerce-cart table.cart thead th.product-thumbnail {
    color: transparent !important;
    font-size: 0 !important;
  }
  body.woocommerce-cart table.cart thead th.product-name { text-align: left !important; }
  body.woocommerce-cart table.cart thead th.product-price { text-align: center !important; }
  body.woocommerce-cart table.cart thead th.product-quantity { text-align: center !important; }
  body.woocommerce-cart table.cart thead th.product-subtotal { text-align: right !important; }

  /* PRODUCT TITLE — never vertical */
  body.woocommerce-cart table.cart td.product-name,
  body.woocommerce-cart table.cart td.product-name a,
  body.woocommerce-cart table.cart td.product-name * {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    direction: ltr !important;
    transform: none !important;
    display: inline !important;
    width: auto !important;
    max-width: 100% !important;
    line-height: 1.4 !important;
    color: #121412 !important;
  }
  body.woocommerce-cart table.cart td.product-name {
    display: table-cell !important;
  }
  body.woocommerce-cart table.cart td.product-name a {
    display: inline !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
  }
  body.woocommerce-cart table.cart td.product-name .variation,
  body.woocommerce-cart table.cart td.product-name dl.variation {
    display: block !important;
    margin-top: 0.3rem !important;
    font-size: 12px !important;
    color: #5c635e !important;
    font-weight: 400 !important;
  }
  body.woocommerce-cart table.cart td.product-name .variation dd,
  body.woocommerce-cart table.cart td.product-name .variation dt {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Thumbnail */
  body.woocommerce-cart table.cart td.product-thumbnail img,
  body.woocommerce-cart table.cart td.product-thumbnail a {
    display: block !important;
    width: 72px !important;
    height: 90px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    margin: 0 !important;
  }
  body.woocommerce-cart table.cart td.product-thumbnail a {
    width: 72px !important;
    height: 90px !important;
    overflow: hidden !important;
  }

  /* Remove × — in first column (native HTML order), clean pill */
  body.woocommerce-cart table.cart td.product-remove a.remove {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border-radius: 999px !important;
    background: #fff !important;
    border: 1px solid #e4e0d8 !important;
    color: #121412 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    float: none !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    font-size: 14px !important;
    line-height: 1 !important;
    text-decoration: none !important;
  }
  body.woocommerce-cart table.cart td.product-remove a.remove:hover {
    background: #121412 !important;
    color: #fff !important;
    border-color: #121412 !important;
  }

  /* Quantity pill */
  body.woocommerce-cart table.cart .quantity {
    display: inline-flex !important;
    align-items: stretch !important;
    border: 1px solid #e4e0d8 !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    background: #fff !important;
    margin: 0 auto !important;
    width: auto !important;
    float: none !important;
  }
  body.woocommerce-cart table.cart .quantity .qty {
    width: 42px !important;
    min-height: 36px !important;
    border: 0 !important;
    border-left: 1px solid #e4e0d8 !important;
    border-right: 1px solid #e4e0d8 !important;
    border-radius: 0 !important;
    text-align: center !important;
    font-weight: 600 !important;
    background: #fff !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    -moz-appearance: textfield !important;
  }
  body.woocommerce-cart table.cart .quantity .qty::-webkit-outer-spin-button,
  body.woocommerce-cart table.cart .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
  }
  body.woocommerce-cart table.cart .quantity .minus,
  body.woocommerce-cart table.cart .quantity .plus,
  body.woocommerce-cart table.cart .quantity button {
    width: 34px !important;
    min-height: 36px !important;
    border: 0 !important;
    background: transparent !important;
    color: #121412 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    cursor: pointer !important;
  }

  /* Actions / coupon row */
  body.woocommerce-cart table.cart td.actions {
    display: table-cell !important;
    padding: 1.15rem 0 0.2rem !important;
    border-bottom: 0 !important;
  }
  body.woocommerce-cart table.cart td.actions .actions-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }
  body.woocommerce-cart table.cart td.actions .coupon {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.55rem !important;
    float: none !important;
    margin: 0 !important;
  }
  body.woocommerce-cart table.cart td.actions .coupon .input-text {
    min-height: 44px !important;
    width: 200px !important;
    max-width: 100% !important;
    border: 1px solid #e4e0d8 !important;
    border-radius: 999px !important;
    padding: 0 1rem !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  body.woocommerce-cart table.cart td.actions .coupon .button,
  body.woocommerce-cart table.cart td.actions button[name="apply_coupon"] {
    min-height: 44px !important;
    padding: 0 1.2rem !important;
    border-radius: 999px !important;
    background: #121412 !important;
    color: #fff !important;
    border: 0 !important;
    margin: 0 !important;
    float: none !important;
  }
  body.woocommerce-cart table.cart td.actions button[name="update_cart"] {
    min-height: 44px !important;
    padding: 0 1.2rem !important;
    border-radius: 999px !important;
    background: #e8e6e1 !important;
    color: #121412 !important;
    border: 0 !important;
    margin: 0 !important;
    float: none !important;
  }
}

/* Mobile: simple stacked cards, horizontal text */
@media (max-width: 768px) {
  body.woocommerce-cart table.cart thead {
    display: none !important;
  }
  body.woocommerce-cart table.cart,
  body.woocommerce-cart table.cart tbody {
    display: block !important;
    width: 100% !important;
  }
  body.woocommerce-cart table.cart tbody tr.cart_item {
    display: grid !important;
    grid-template-columns: 36px 72px minmax(0, 1fr) !important;
    grid-template-areas:
      "remove thumb name"
      "remove thumb price"
      "remove thumb qty"
      "remove thumb sub" !important;
    gap: 0.35rem 0.75rem !important;
    padding: 1rem 0 !important;
    border-bottom: 1px solid #e4e0d8 !important;
    position: relative !important;
  }
  body.woocommerce-cart table.cart tbody tr.cart_item > td {
    display: block !important;
    border: 0 !important;
    padding: 0 !important;
    width: auto !important;
  }
  body.woocommerce-cart table.cart tbody tr.cart_item > td.product-remove { grid-area: remove !important; }
  body.woocommerce-cart table.cart tbody tr.cart_item > td.product-thumbnail { grid-area: thumb !important; }
  body.woocommerce-cart table.cart tbody tr.cart_item > td.product-name { grid-area: name !important; }
  body.woocommerce-cart table.cart tbody tr.cart_item > td.product-price { grid-area: price !important; text-align: left !important; }
  body.woocommerce-cart table.cart tbody tr.cart_item > td.product-quantity { grid-area: qty !important; text-align: left !important; }
  body.woocommerce-cart table.cart tbody tr.cart_item > td.product-subtotal { grid-area: sub !important; text-align: left !important; font-weight: 700 !important; }

  body.woocommerce-cart table.cart td.product-name,
  body.woocommerce-cart table.cart td.product-name a {
    writing-mode: horizontal-tb !important;
    white-space: normal !important;
    word-break: normal !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #121412 !important;
  }
  body.woocommerce-cart table.cart td.product-thumbnail img {
    width: 72px !important;
    height: 90px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
  }
  body.woocommerce-cart table.cart td.actions {
    display: block !important;
    width: 100% !important;
    padding-top: 1rem !important;
  }
}

/* =========================================================
   SHOP / CATEGORY ARCHIVE — clean UI (banner off, prices LTR)
   ========================================================= */

/* Kill Clotya "Plus-Size Styles…" shop banner everywhere */
body.sl-shop-clean .shop-page-banner,
body.woocommerce-shop .shop-page-banner,
body.tax-product_cat .shop-page-banner,
body.post-type-archive-product .shop-page-banner,
.shop-page-banner,
.shop-page-banner .banner,
.shop-page-banner .entry-title,
.shop-page-banner .entry-description {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Archive spacing */
body.sl-shop-clean .site-content,
body.sl-shop-clean .content-wrapper {
  padding-top: 1.25rem !important;
  padding-bottom: 3rem !important;
}

/* Toolbar: results + sort + filter */
body.sl-shop-clean .before-shop-loop,
body.sl-shop-clean .woocommerce-notices-wrapper + .before-shop,
body.sl-shop-clean .shop-control,
body.sl-shop-clean .products-top,
body.sl-shop-clean .woocommerce-result-count,
body.sl-shop-clean ul.products {
  max-width: 100% !important;
}

body.sl-shop-clean .woocommerce-result-count {
  color: #5c635e !important;
  font-size: 13px !important;
  margin: 0 !important;
}

body.sl-shop-clean .woocommerce-ordering select,
body.sl-shop-clean select.orderby {
  border: 1px solid #e4e0d8 !important;
  border-radius: 999px !important;
  min-height: 40px !important;
  padding: 0 1rem !important;
  background: #fff !important;
  color: #121412 !important;
  box-shadow: none !important;
  font-size: 13px !important;
}

/* Clean product cards */
body.sl-shop-clean ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1.25rem 1.1rem !important;
  margin-top: 1.25rem !important;
}

@media (max-width: 991px) {
  body.sl-shop-clean ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 560px) {
  body.sl-shop-clean ul.products {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.85rem !important;
  }
}

body.sl-shop-clean ul.products li.product {
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  border: 1px solid #e4e0d8 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 1px 2px rgba(18, 20, 18, 0.04) !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease !important;
}

body.sl-shop-clean ul.products li.product:hover {
  border-color: #cdc7bb !important;
  box-shadow: 0 8px 28px rgba(18, 20, 18, 0.1) !important;
  transform: translateY(-2px) !important;
}

body.sl-shop-clean ul.products li.product .thumbnail-wrapper {
  aspect-ratio: 4 / 5 !important;
  background: #ebe7df !important;
}

body.sl-shop-clean ul.products li.product .content-wrapper {
  padding: 0.9rem 1rem 1.1rem !important;
  background: #fff !important;
}

body.sl-shop-clean ul.products li.product .product-title,
body.sl-shop-clean ul.products li.product h3.product-title,
body.sl-shop-clean ul.products li.product .product-title a {
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: #121412 !important;
  writing-mode: horizontal-tb !important;
  white-space: normal !important;
  word-break: normal !important;
  margin: 0 0 0.4rem !important;
  text-decoration: none !important;
}

/* New price component — never reverse */
.sl-price,
body.sl-shop-clean .sl-price,
ul.products li.product .sl-price,
.product-content .sl-price {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 0.45rem !important;
  direction: ltr !important;
  unicode-bidi: isolate !important;
  writing-mode: horizontal-tb !important;
  margin: 0.15rem 0 0 !important;
  width: 100% !important;
  float: none !important;
  transform: none !important;
}

.sl-price *,
.sl-price__was,
.sl-price__now,
.sl-price__amt,
.sl-price .amount,
.sl-price bdi {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  transform: none !important;
  float: none !important;
  display: inline !important;
}

.sl-price__was,
.sl-price__was .amount,
.sl-price__was .woocommerce-Price-amount {
  color: #8a8f8b !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  text-decoration: line-through !important;
  opacity: 1 !important;
}

.sl-price__now,
.sl-price__now .amount,
.sl-price__now .woocommerce-Price-amount {
  color: #9a3412 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-decoration: none !important;
}

/* Hide any leftover default price markup inside cards if both present */
ul.products li.product .price:not(.sl-price) del,
ul.products li.product .price:not(.sl-price) ins {
  direction: ltr !important;
  unicode-bidi: isolate !important;
}

/* Pagination clean */
body.sl-shop-clean .woocommerce-pagination ul {
  display: flex !important;
  gap: 0.4rem !important;
  justify-content: center !important;
  margin-top: 2rem !important;
}
body.sl-shop-clean .woocommerce-pagination a,
body.sl-shop-clean .woocommerce-pagination span {
  min-width: 40px !important;
  height: 40px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #e4e0d8 !important;
  background: #fff !important;
  color: #121412 !important;
}
body.sl-shop-clean .woocommerce-pagination .current {
  background: #121412 !important;
  color: #fff !important;
  border-color: #121412 !important;
}
