/**
 * WooCommerce styles – Inrobe Fashion theme
 */

/* Breadcrumbs */
.ik-breadcrumb,
.woocommerce-breadcrumb {
  font-size: 13px;
  color: var(--ik-text-gray);
  padding: 20px 0 8px;
  margin: 0;
}

.ik-breadcrumb a,
.woocommerce-breadcrumb a {
  color: var(--ik-text-gray);
}

.ik-breadcrumb a:hover,
.woocommerce-breadcrumb a:hover {
  color: var(--ik-primary);
}

.ik-bc-sep {
  margin: 0 6px;
  opacity: 0.6;
}

/* Shop / archive */
.ik-woocommerce .woocommerce-products-header {
  padding: 12px 0 24px;
}

.ik-woocommerce .woocommerce-products-header h1 {
  font-size: 28px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce ul.products.columns-5,
.ik-explore-grid.products {
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.woocommerce ul.products li.product,
.woocommerce ul.products li.ik-product-card {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
}

/* Full-width text ATC (fallback) — homepage uses .ik-card-atc icon instead */
.woocommerce ul.products .button:not(.ik-card-atc),
.woocommerce ul.products .add_to_cart_button:not(.ik-card-atc),
.woocommerce ul.products .product_type_simple:not(.ik-card-atc),
.woocommerce ul.products .product_type_variable:not(.ik-card-atc) {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-align: center;
  border: 1.5px solid var(--ik-black);
  background: #fff;
  color: var(--ik-black);
  border-radius: 6px;
  transition: var(--ik-transition);
}

.woocommerce ul.products .button:not(.ik-card-atc):hover,
.woocommerce ul.products .add_to_cart_button:not(.ik-card-atc):hover {
  background: var(--ik-black);
  color: #fff;
}

.woocommerce ul.products li.product .img-wrap,
.woocommerce ul.products li.ik-product-card .img-wrap {
  position: relative;
  aspect-ratio: 5 / 4;
  background: var(--ik-off-white, #F5F1EB);
  overflow: hidden;
  margin-bottom: 0;
  border-radius: 0;
}

.woocommerce ul.products li.product .img-wrap img,
.woocommerce ul.products li.ik-product-card .img-wrap img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center;
}

.woocommerce ul.products li.product,
.woocommerce ul.products li.ik-product-card {
  background: var(--ik-white, #FAF8F5);
  border: 1px solid var(--ik-mid-gray, #DDD5CA);
  border-radius: 24px;
  overflow: hidden;
}

.woocommerce ul.products li.product .ik-wc-card-link,
.woocommerce ul.products li.ik-product-card .ik-wc-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 0;
}

.woocommerce ul.products .ik-card-atc,
.ik-explore-grid .ik-card-atc,
.ik-product-grid .ik-card-atc,
.ik-spotlight-card .ik-card-atc {
  position: static !important;
  right: auto;
  bottom: auto;
  top: auto;
  z-index: auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 999px !important;
  background: var(--ik-primary, #4A3F35) !important;
  color: #fff !important;
  font-size: 0 !important;
  letter-spacing: 0 !important;
  text-indent: 0 !important;
  box-shadow: none !important;
  flex: 0 0 auto;
}

.woocommerce ul.products .ik-card-atc:hover,
.ik-explore-grid .ik-card-atc:hover,
.ik-spotlight-card .ik-card-atc:hover {
  background: var(--ik-primary-dark, #352C24) !important;
  color: #fff !important;
}

.woocommerce ul.products .ik-card-atc.added,
.woocommerce ul.products .ik-card-atc.loading {
  background: var(--ik-accent, #C4A574) !important;
  color: var(--ik-near-black, #2C2620) !important;
}

.woocommerce ul.products .ik-card-atc svg,
.ik-card-atc svg {
  display: block;
  width: 16px;
  height: 16px;
}

.woocommerce ul.products .ik-card-footer,
.ik-product-card .ik-card-footer,
.ik-spotlight-card .ik-card-footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px 12px;
}

.woocommerce ul.products .ik-card-price-row,
.ik-product-card .ik-card-price-row,
.ik-spotlight-card .ik-card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
}

.woocommerce ul.products .ik-card-price-row .ik-card-price-link,
.ik-product-card .ik-card-price-row .ik-card-price-link {
  flex: 1;
  min-width: 0;
  padding: 0;
  color: inherit;
  text-decoration: none;
}

.woocommerce ul.products .price {
  font-size: 14px;
  font-weight: 600;
  color: var(--ik-black);
}

.woocommerce ul.products .price del {
  color: var(--ik-text-gray);
  font-weight: 400;
  margin-right: 6px;
}

.woocommerce ul.products .price ins {
  text-decoration: none;
  color: var(--ik-sale);
}

/* Single product – compact gallery (not huge) */
.woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding: 16px 0 64px;
  overflow: visible;
  position: relative;
}

.woocommerce div.product .woocommerce-product-gallery {
  position: relative;
  max-width: 600px;
  width: 100%;
  margin: 0 !important;
  float: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: hidden !important;
  z-index: 1;
  isolation: isolate;
}

.woocommerce div.product div.summary {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0;
  position: relative;
  z-index: 50;
  isolation: isolate;
  pointer-events: auto !important;
}

.woocommerce-product-gallery__wrapper {
  margin: 0;
  max-width: 100%;
  width: 100% !important;
}

.woocommerce-product-gallery__image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ik-off-white, #F5F1EB);
  width: 100% !important;
  float: none !important;
  margin: 0 0 10px !important;
}

.woocommerce-product-gallery__image a {
  display: block;
  width: 100%;
}

.woocommerce-product-gallery__image img,
.woocommerce-product-gallery__image img.wp-post-image,
.woocommerce div.product div.images img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  border-radius: 8px;
  object-fit: contain;
  background: var(--ik-off-white, #F5F1EB);
}

/* Kill WC zoom / flexslider leftovers that steal clicks */
.woocommerce-product-gallery .zoomImg,
.woocommerce-product-gallery__trigger,
.woocommerce-product-gallery .flex-direction-nav,
.woocommerce div.product .flex-control-thumbs {
  display: none !important;
  pointer-events: none !important;
}

.pswp,
.pswp[aria-hidden="true"] {
  pointer-events: none !important;
  visibility: hidden !important;
  z-index: -1 !important;
}

.pswp--open {
  pointer-events: auto !important;
  visibility: visible !important;
  z-index: 100000 !important;
}

/* Manual gallery: large main + clickable thumbs (no lightbox on thumbs) */
.woocommerce-product-gallery.ik-manual-gallery .woocommerce-product-gallery__wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.woocommerce-product-gallery.ik-manual-gallery .ik-gallery-main {
  flex: 0 0 100%;
  width: 100% !important;
  margin: 0 !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.woocommerce-product-gallery.ik-manual-gallery .ik-gallery-main a {
  cursor: zoom-in;
  position: relative;
  z-index: 2;
  display: block;
}

.woocommerce-product-gallery.ik-manual-gallery .ik-gallery-thumb {
  flex: 0 0 calc(20% - 7px);
  width: calc(20% - 7px) !important;
  max-width: 88px;
  margin: 0 !important;
  cursor: pointer;
  border: 1px solid var(--ik-mid-gray, #DDD5CA);
  border-radius: 6px;
  opacity: 0.8;
}

.woocommerce-product-gallery.ik-manual-gallery .ik-gallery-thumb.ik-thumb-active,
.woocommerce-product-gallery.ik-manual-gallery .ik-gallery-thumb:hover {
  opacity: 1;
  border-color: var(--ik-accent, #C4A574);
}

.woocommerce-product-gallery.ik-manual-gallery .ik-gallery-thumb a {
  cursor: pointer;
}

/* Contained hover zoom (inside main image only — never covers Add to cart) */
.ik-zoom-lens {
  display: none;
  position: absolute;
  z-index: 4;
  border: 1px solid rgba(45, 52, 54, 0.35);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  pointer-events: none !important;
  border-radius: 2px;
}

.ik-zoom-pane {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  left: 0;
  top: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
  z-index: 3;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.woocommerce-product-gallery.is-zooming .ik-zoom-pane,
.ik-gallery-main.is-zooming-main .ik-zoom-pane {
  opacity: 1;
  visibility: visible;
}

.woocommerce-product-gallery.is-zooming .ik-gallery-main > a img {
  opacity: 0 !important;
}

@media (max-width: 900px) {
  .ik-zoom-pane,
  .ik-zoom-lens {
    display: none !important;
  }
}

/* Theme lightbox for main image only */
.ik-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.ik-image-lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ik-image-lightbox img {
  max-width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.ik-image-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

body.ik-image-lightbox-open {
  overflow: hidden;
}

.woocommerce div.product .product_title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 6px;
}

.woocommerce div.product .ik-single-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0 0 12px;
  font-size: 13px;
}

.woocommerce div.product .ik-single-rating .ik-star {
  font-size: 15px;
}

.woocommerce div.product .ik-single-rating .ik-rating-value {
  font-weight: 600;
  color: var(--ik-black, #2D3436);
}

.woocommerce div.product .ik-single-rating .ik-rating-count {
  color: var(--ik-text-gray, #7A736A);
  text-decoration: none;
  font-weight: 500;
}

.woocommerce div.product .ik-single-rating .ik-rating-count:hover {
  color: var(--ik-primary, #00897B);
  text-decoration: underline;
}

.woocommerce #reviews .ik-optional {
  color: var(--ik-text-gray, #7A736A);
  font-weight: 400;
  font-size: 12px;
}

.woocommerce div.product .woocommerce-product-rating {
  display: none; /* use theme ik-single-rating under title instead */
}

.woocommerce div.product p.price {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--ik-black);
}

.woocommerce div.product p.price del {
  color: var(--ik-text-gray);
  font-size: 16px;
  font-weight: 400;
}

.woocommerce div.product p.price ins {
  text-decoration: none;
  color: var(--ik-sale);
}

.woocommerce div.product form.cart {
  margin-top: 16px;
  margin-bottom: 0;
  position: relative;
  z-index: 60;
  pointer-events: auto !important;
  isolation: isolate;
}

.woocommerce div.product form.cart .variations {
  width: 100%;
  margin-bottom: 16px;
}

.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
  padding: 8px 0;
  vertical-align: middle;
  border: 0;
}

.woocommerce div.product form.cart .variations label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.woocommerce div.product form.cart .variations select {
  width: 100%;
  max-width: 280px;
  padding: 10px 12px;
  border: 1px solid var(--ik-mid-gray);
  border-radius: 6px;
  background: #fff;
}

.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce div.product .ik-btn-primary {
  background: var(--ik-primary) !important;
  border-color: var(--ik-primary) !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 11px 18px;
  border-radius: 6px;
  width: auto;
  min-width: 180px;
  max-width: 280px;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 51;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
  background: var(--ik-primary-dark) !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button:disabled {
  cursor: not-allowed !important;
  opacity: 0.55;
}

.woocommerce div.product .quantity {
  margin-right: 10px;
}

.woocommerce div.product .quantity .qty {
  padding: 8px;
  border: 1px solid var(--ik-mid-gray);
  border-radius: 6px;
  width: 64px;
}

.ik-wc-actions {
  margin-top: 10px;
  position: relative;
  z-index: 20;
}

.ik-wc-whatsapp,
.ik-wc-whatsapp-qr {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto !important;
  min-width: 180px;
  max-width: 280px;
  padding: 11px 18px !important;
  font-size: 12px !important;
  border: none;
  cursor: pointer;
}

/* Single-item WhatsApp QR modal */
.ik-wa-qr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ik-wa-qr-overlay.open {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ik-wa-qr-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%);
  width: min(360px, calc(100% - 32px));
  background: var(--ik-white, #FAF8F5);
  border-radius: 12px;
  padding: 28px 24px 24px;
  z-index: 3001;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  text-align: center;
}

.ik-wa-qr-modal.open {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.ik-wa-qr-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--ik-text-gray, #7A736A);
}

.ik-wa-qr-modal h3 {
  font-size: 18px;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ik-wa-qr-summary {
  font-size: 13px;
  color: var(--ik-text-gray, #7A736A);
  margin: 0 0 12px;
  line-height: 1.45;
}

.ik-wa-qr-label {
  font-size: 12px;
  color: var(--ik-text-gray, #7A736A);
  margin: 0 0 14px;
}

.ik-wa-qr-box {
  display: flex;
  justify-content: center;
  margin: 0 auto 16px;
  min-height: 180px;
}

.ik-wa-qr-box img {
  display: block;
  margin: 0 auto;
}

body.ik-wa-qr-open {
  overflow: hidden;
}

/* Variation swatches / colour attribute table spacing */
.woocommerce-variation-price {
  margin-bottom: 12px;
}

.woocommerce-tabs {
  margin-top: 40px;
  clear: both;
}

.woocommerce-Tabs-panel {
  padding: 20px 0;
}

.related.products > h2,
.upsells.products > h2 {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 40px 0 20px;
}

/* Cart / checkout: full desktop width (page.php uses .ik-content @ 800px by default) */
body.woocommerce-cart .ik-content,
body.woocommerce-checkout .ik-content,
body.woocommerce-account .ik-content,
body.woocommerce-cart .ik-page-wide,
body.woocommerce-checkout .ik-page-wide,
body.woocommerce-account .ik-page-wide {
  max-width: var(--ik-max, 1680px) !important;
  width: 100% !important;
  margin-left: auto;
  margin-right: auto;
  padding: 32px var(--ik-page-gutter, 40px) 80px;
  box-sizing: border-box;
}

body.woocommerce-cart .entry-content,
body.woocommerce-checkout .entry-content,
body.woocommerce-account .entry-content {
  max-width: none !important;
  width: 100% !important;
}

body.woocommerce-cart .ik-page-header h1,
body.woocommerce-checkout .ik-page-header h1 {
  margin-bottom: 1.25rem;
}

/* Soft Inrobe brand canvas behind cart (image URL set via inline CSS var) */
body.woocommerce-cart {
  background-color: var(--ik-off-white, #F5F1EB);
}

body.woocommerce-cart::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--ik-cart-bg, none);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.34;
  filter: saturate(0.92);
}

body.woocommerce-cart::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% 18%, rgba(250, 248, 245, 0.35) 0%, transparent 70%),
    linear-gradient(
      180deg,
      rgba(250, 248, 245, 0.55) 0%,
      rgba(245, 241, 235, 0.82) 42%,
      rgba(245, 241, 235, 0.94) 100%
    );
}

body.woocommerce-cart .ik-header,
body.woocommerce-cart .site-main,
body.woocommerce-cart .ik-footer {
  position: relative;
  z-index: 1;
}

body.woocommerce-cart .ik-content {
  background: transparent;
}

body.woocommerce-cart .woocommerce-cart-form table.shop_table,
body.woocommerce-cart .cart_totals,
body.woocommerce-cart .ik-wc-cart-whatsapp,
body.woocommerce-cart .ik-cart-table-scroll {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 32px rgba(45, 38, 32, 0.07);
}

body.woocommerce-cart .cart_totals {
  padding: 18px 16px;
  border: 1px solid var(--ik-mid-gray, #DDD5CA);
  border-radius: 10px;
}

body.woocommerce-cart .ik-wc-cart-whatsapp {
  border-radius: 10px;
}

.woocommerce-cart .ik-container,
.woocommerce-checkout .ik-container {
  padding-top: 24px;
  padding-bottom: 64px;
}

/* Desktop: wide items + sticky totals/QR; page scrolls up/down only */
@media (min-width: 960px) {
  .woocommerce-cart .woocommerce {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    column-gap: clamp(28px, 3vw, 56px);
    align-items: start;
    width: 100%;
  }

  .woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
  .woocommerce-cart .woocommerce > .woocommerce-info,
  .woocommerce-cart .woocommerce > .woocommerce-message,
  .woocommerce-cart .woocommerce > .woocommerce-error,
  .woocommerce-cart .woocommerce > .woocommerce-form-login-toggle,
  .woocommerce-cart .woocommerce > .coupon-error-notice {
    grid-column: 1 / -1;
  }

  .woocommerce-cart .woocommerce-cart-form {
    grid-column: 1;
    grid-row: 1;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    float: none !important;
  }

  .woocommerce-cart .cart-collaterals {
    grid-column: 2;
    grid-row: 1;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    position: sticky;
    top: calc(var(--ik-header-h, 70px) + 24px);
  }

  .woocommerce-cart .cart-collaterals .cart_totals {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
  }

  /* Remove the caged scroll box on desktop — no left/right scroll */
  .woocommerce-cart .ik-cart-table-scroll {
    max-height: none !important;
    overflow: visible !important;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .woocommerce-cart .woocommerce-cart-form table.shop_table {
    border: 1px solid var(--ik-mid-gray, #DDD5CA);
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    table-layout: auto !important;
    width: 100% !important;
  }

  .woocommerce-cart table.cart th {
    white-space: nowrap;
  }

  .woocommerce-cart table.cart .product-name {
    width: auto;
    min-width: 180px;
  }

  .woocommerce-cart table.cart .product-price,
  .woocommerce-cart table.cart .product-quantity,
  .woocommerce-cart table.cart .product-subtotal {
    width: 1%;
    white-space: nowrap;
  }
}

.woocommerce-cart .woocommerce-cart-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Mobile/tablet only: vertical scroll for long item lists */
.woocommerce-cart .ik-cart-table-scroll {
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.woocommerce-cart .woocommerce-cart-form table.shop_table,
.woocommerce-cart .ik-cart-table-scroll table.shop_table {
  display: table !important;
  width: 100% !important;
  max-width: 100%;
  table-layout: fixed !important;
  margin: 0 !important;
}

.woocommerce-cart .woocommerce-cart-form table.shop_table thead {
  display: table-header-group;
  background: var(--ik-off-white, #F5F1EB);
}

.woocommerce-cart .woocommerce-cart-form table.shop_table tbody {
  display: table-row-group;
}

.woocommerce-cart .woocommerce-cart-form table.shop_table tfoot {
  display: table-footer-group;
}

.woocommerce-cart table.cart th,
.woocommerce-cart table.cart td {
  padding: 16px 14px !important;
  vertical-align: middle;
  border-color: var(--ik-light-gray, #EDE8E0);
}

.woocommerce-cart table.cart th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.woocommerce-cart table.cart .product-remove {
  width: 40px;
  padding-left: 12px !important;
  padding-right: 4px !important;
}

.woocommerce-cart table.cart .product-thumbnail {
  width: 80px;
}

.woocommerce-cart table.cart .product-name {
  width: auto;
  min-width: 0;
}

.woocommerce-cart table.cart .product-name a {
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.woocommerce-cart table.cart .product-name .variation {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ik-text-gray, #7A736A);
}

.woocommerce-cart table.cart .product-price {
  width: 120px;
  white-space: nowrap;
  text-align: right;
}

.woocommerce-cart table.cart .product-quantity {
  width: 120px;
  text-align: center;
}

.woocommerce-cart table.cart .product-subtotal {
  width: 120px;
  white-space: nowrap;
  text-align: right;
}

.woocommerce-cart table.cart .product-quantity .qty {
  width: 64px;
  max-width: 100%;
  padding: 8px;
  text-align: center;
}

.woocommerce-cart .woocommerce-cart-form .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 4px 0 0;
}

.woocommerce-cart .woocommerce-cart-form .actions .coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  float: none !important;
  margin: 0 !important;
}

.woocommerce-cart .woocommerce-cart-form .actions .coupon .input-text {
  min-width: 160px;
  max-width: 220px;
}

.woocommerce-cart-form .product-thumbnail img,
.woocommerce-cart-form .product-thumbnail img.ik-cart-thumb,
.woocommerce table.cart img,
.woocommerce-page table.cart img,
.wc-block-cart-item__image img,
.wc-block-components-order-summary-item__image img,
.wc-block-components-product-image img,
.wp-block-woocommerce-cart img.wc-block-components-product-image__image,
.wp-block-woocommerce-checkout img.wc-block-components-product-image__image {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  object-fit: cover;
  border-radius: 6px;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: var(--ik-off-white, #F5F1EB);
}

.ik-wc-cart-whatsapp {
  margin: 16px 0 0;
  padding: 18px 16px;
  border: 1px solid var(--ik-mid-gray, #DDD5CA);
  border-radius: 10px;
  background: #fff;
  color: #2C2620;
  text-align: center;
  position: relative;
  z-index: 5;
}

.wp-block-woocommerce-checkout .ik-wc-cart-whatsapp,
.wp-block-woocommerce-cart .ik-wc-cart-whatsapp,
.wc-block-components-sidebar .ik-wc-cart-whatsapp {
  margin: 0 0 20px;
}

.ik-wc-cart-whatsapp-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #2C2620;
}

.ik-wc-cart-whatsapp-desc {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #5A5048;
}

.ik-wc-cart-qr {
  display: flex;
  justify-content: center;
  margin: 0 auto 14px;
  min-height: 180px;
}

.ik-wc-cart-qr-link {
  display: inline-block;
  line-height: 0;
}

.ik-wc-cart-qr img,
.ik-wc-cart-qr canvas {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
}

.ik-wc-cart-wa-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100% !important;
  max-width: 100%;
  padding: 12px 16px !important;
  font-size: 13px !important;
  border: none;
  margin-bottom: 0;
}

/* Hide Proceed to Checkout when online checkout is off */
body.ik-wa-only-checkout .woocommerce .cart_totals .checkout-button,
body.ik-wa-only-checkout .woocommerce a.checkout-button,
body.ik-wa-only-checkout .woocommerce-cart .wc-proceed-to-checkout .checkout-button,
body.ik-wa-only-checkout .wp-block-woocommerce-proceed-to-checkout-block,
body.ik-wa-only-checkout .wc-block-cart__submit,
body.ik-wa-only-checkout .wc-block-cart__submit-container,
body.ik-wa-only-checkout .wc-block-cart__submit-button,
body.ik-wa-only-checkout .wc-block-components-button.wc-block-cart__submit-button,
body.ik-wa-only-checkout a.wc-block-cart__submit-button,
body.ik-wa-only-checkout .wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

body.ik-wa-only-checkout .woocommerce-cart .wc-proceed-to-checkout,
.woocommerce-cart .wc-proceed-to-checkout {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  overflow: visible !important;
  margin-top: 0;
  padding: 0;
}

/* OR divider when WhatsApp + online checkout are both on */
body.ik-online-checkout.ik-whatsapp-checkout .ik-wc-cart-whatsapp {
  margin-bottom: 0.75rem;
}

.ik-checkout-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.45rem;
  color: #3D3832;
  font-family: var(--ik-font, system-ui, sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ik-checkout-or::before,
.ik-checkout-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #C9BDB0;
}

.ik-checkout-or span {
  flex-shrink: 0;
  color: #3D3832;
}

.ik-checkout-or-hint {
  margin: 0 0 0.65rem;
  text-align: center;
  font-family: var(--ik-font, system-ui, sans-serif);
  font-size: 0.82rem;
  font-weight: 500;
  color: #4A433C;
  line-height: 1.35;
}

body.ik-online-checkout .woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  overflow: visible !important;
  width: 100%;
  text-align: center;
  margin-top: 0.35rem !important;
  padding: 14px 16px !important;
  pointer-events: auto !important;
  background: var(--ik-primary, #4A3F35) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: none !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-decoration: none !important;
}

body.ik-online-checkout .woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
  background: var(--ik-primary-dark, #352C24) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Cart surfaces stay light (brand canvas) — force dark readable text in both modes */
body.woocommerce-cart .ik-page-header h1,
body.woocommerce-cart .cart_totals,
body.woocommerce-cart .cart_totals h2,
body.woocommerce-cart .cart_totals th,
body.woocommerce-cart .cart_totals td,
body.woocommerce-cart .cart_totals .amount,
body.woocommerce-cart .cart_totals strong,
body.woocommerce-cart .woocommerce-cart-form table.shop_table,
body.woocommerce-cart .woocommerce-cart-form table.shop_table th,
body.woocommerce-cart .woocommerce-cart-form table.shop_table td,
body.woocommerce-cart .woocommerce-cart-form table.shop_table a,
body.woocommerce-cart .ik-wc-cart-whatsapp,
body.woocommerce-cart .ik-wc-cart-whatsapp-title,
body.woocommerce-cart .ik-checkout-or,
body.woocommerce-cart .ik-checkout-or span {
  color: #2C2620 !important;
}

body.woocommerce-cart .woocommerce-cart-form table.shop_table thead {
  background: #F5F1EB !important;
}

body.woocommerce-cart .woocommerce-cart-form table.shop_table thead th {
  color: #2C2620 !important;
  background: #F5F1EB !important;
  -webkit-text-fill-color: #2C2620 !important;
}

body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody {
  background: #fff !important;
}

body.woocommerce-cart .product-quantity .qty {
  background: #fff !important;
  color: #2C2620 !important;
  -webkit-text-fill-color: #2C2620 !important;
  border: 1px solid #DDD5CA !important;
}

body.woocommerce-cart .actions .coupon .input-text {
  background: #fff !important;
  color: #2C2620 !important;
  -webkit-text-fill-color: #2C2620 !important;
  border: 1px solid #DDD5CA !important;
}

body.woocommerce-cart .actions .coupon .input-text::placeholder {
  color: #7A736A !important;
  opacity: 1;
}

body.woocommerce-cart .ik-wc-cart-whatsapp-desc,
body.woocommerce-cart .ik-checkout-or-hint,
body.woocommerce-cart .product-name .variation,
body.woocommerce-cart .woocommerce-shipping-destination,
body.woocommerce-cart .woocommerce-RemoveLink {
  color: #5A5048 !important;
}

body.woocommerce-cart .cart_totals,
body.woocommerce-cart .ik-wc-cart-whatsapp,
body.woocommerce-cart .woocommerce-cart-form table.shop_table {
  background: #fff !important;
}

body.dark-mode.woocommerce-cart {
  background-color: #F5F1EB;
}

body.dark-mode.woocommerce-cart .ik-page-header h1 {
  color: #2C2620 !important;
}

body.dark-mode.woocommerce-cart .ik-checkout-or::before,
body.dark-mode.woocommerce-cart .ik-checkout-or::after {
  background: #C9BDB0;
}

/* Dark mode: keep checkout CTA readable (don't inherit inverted primary gold-on-gold) */
body.dark-mode.ik-online-checkout .woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  background: #4A3F35 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body.dark-mode.ik-online-checkout .woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
  background: #352C24 !important;
  color: #fff !important;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--ik-primary);
  color: #fff !important;
  border-radius: 6px;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--ik-primary-dark);
  color: #fff !important;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--ik-primary);
  color: #fff !important;
}

/* Update cart: disabled was grey-on-grey */
.woocommerce-cart .actions button.button,
.woocommerce-cart button[name="update_cart"],
.woocommerce-cart input[name="update_cart"] {
  background: var(--ik-primary) !important;
  color: #fff !important;
  border: none !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.woocommerce-cart .actions button.button:disabled,
.woocommerce-cart .actions button.button[disabled],
.woocommerce-cart .actions button.button.disabled,
.woocommerce-cart button[name="update_cart"]:disabled,
.woocommerce-cart button[name="update_cart"][disabled],
.woocommerce-cart button[name="update_cart"].disabled,
.woocommerce-cart input[name="update_cart"]:disabled {
  background: #cfc6b8 !important;
  color: #2c2620 !important;
  opacity: 1 !important;
  cursor: not-allowed;
  -webkit-text-fill-color: #2c2620 !important;
}

.woocommerce-cart .actions button.button:not(:disabled):hover,
.woocommerce-cart button[name="update_cart"]:not(:disabled):hover {
  background: var(--ik-primary-dark) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.woocommerce-cart .coupon .button {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/*
 * Mobile / tablet: stack vertically.
 * Best place for WhatsApp = BOTTOM (after items + totals).
 * Side is too cramped; top would ask to order before reviewing the cart.
 */
@media (max-width: 959px) {
  .woocommerce-cart .cart-collaterals {
    margin-top: 28px;
    width: 100% !important;
    float: none !important;
    position: static;
  }

  .woocommerce-cart .ik-cart-table-scroll {
    max-height: min(55vh, 480px);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--ik-mid-gray, #DDD5CA);
    border-radius: 8px;
  }

  .woocommerce-cart table.cart .product-name {
    min-width: 140px;
    width: auto;
  }

  /* On phones, the green button is the main action; keep QR smaller */
  .ik-wc-cart-qr {
    min-height: 140px;
  }

  .ik-wc-cart-qr img,
  .ik-wc-cart-qr canvas {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 640px) {
  .woocommerce-cart table.cart thead {
    display: none;
  }

  /* WC responsive stacked rows — give them breathing room */
  .woocommerce-cart table.cart,
  .woocommerce-cart table.cart tbody,
  .woocommerce-cart table.cart tr,
  .woocommerce-cart table.cart td {
    display: block;
    width: 100% !important;
  }

  .woocommerce-cart table.cart tr.cart_item {
    padding: 14px 12px;
    border-bottom: 1px solid var(--ik-mid-gray, #DDD5CA);
  }

  .woocommerce-cart table.cart td {
    padding: 6px 0 !important;
    text-align: left !important;
    border: 0 !important;
  }

  .woocommerce-cart table.cart td.product-remove {
    position: absolute;
    right: 12px;
    top: 12px;
    width: auto !important;
  }

  .woocommerce-cart table.cart tr.cart_item {
    position: relative;
    padding-right: 36px;
  }

  .woocommerce-cart table.cart td.product-thumbnail img {
    width: 72px !important;
    height: 72px !important;
  }

  .woocommerce-cart .woocommerce-cart-form .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .woocommerce-cart .woocommerce-cart-form .actions .coupon {
    width: 100%;
  }

  .woocommerce-cart .woocommerce-cart-form .actions .coupon .input-text {
    flex: 1;
    max-width: none;
  }

  .woocommerce-cart .actions button.button {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .woocommerce ul.products,
  .woocommerce ul.products.columns-5,
  .ik-explore-grid.products {
    grid-template-columns: repeat(3, 1fr);
  }

  .woocommerce div.product {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .woocommerce div.product .woocommerce-product-gallery {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .woocommerce ul.products,
  .woocommerce ul.products.columns-5,
  .ik-explore-grid.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 10px;
  }
}
