/* ── Main header logo sizing (mobile) ───────────────────────────
 * The .logo-header img is 110px in base styles.css.
 * On mobile the logo column is col-6 (50% viewport width ≈ 187px).
 * 110px is fine but ensure it's never wider than the column.
 * Also ensure it is vertically centred inside the header row.
 * ─────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .logo-header {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .logo-header img.logo {
    height: 42px !important;   /* explicit height → width scales naturally */
    width: auto  !important;
    max-width: 100%;
    object-fit: contain;
  }
}

/* ── Global: clip overflow so no content bleeds into adjacent Swiper slides ── */
.collection-item-v2 .collection-inner,
.collection-item-v4 .collection-inner {
  overflow: hidden;
}

@media (max-width: 767px) {

  /* ── v2: overlay content ─────────────────────────────────────────────────── */

  /* Tighten the overlay padding on smaller squares */
  .collection-item-v2 .collection-content {
    inset: 10px;
  }

  /* MAIN FIX: hide the decorative extra-image — it has no height constraint
     and expands to full column width on mobile, causing overflow */
  .collection-item-v2 .collection-content .extra-image {
    display: none;
  }

  /* Scale typography down to fit the smaller square */
  .collection-item-v2 .collection-content .heading {
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 3px;
  }

  .collection-item-v2 .collection-content .subheading {
    font-size: 11px;
    line-height: 1.3;
    margin-bottom: 3px;
  }

  /* Compact the Shop Now button */
  .collection-item-v2 .collection-content .tf-btn {
    font-size: 11px;
    padding: 5px 10px;
    line-height: 1.3;
  }

  /* ── v4: bottom overlay ──────────────────────────────────────────────────── */

  /* Hide button — at ~156px card width it is unusable and causes overflow */
  .collection-item-v4 .collection-content .tf-btn {
    display: none;
  }

  /* Scale down text to fit the small square */
  .collection-item-v4 .collection-content .heading {
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 2px;
  }

  .collection-item-v4 .collection-content .subheading {
    font-size: 10px;
    line-height: 1.3;
    margin-bottom: 2px;
  }
}

/* Slightly larger cards on wider mobile — restore button, loosen spacing */
@media (min-width: 480px) and (max-width: 767px) {

  .collection-item-v2 .collection-content .heading   { font-size: 14px; }
  .collection-item-v2 .collection-content .subheading { font-size: 12px; }

  .collection-item-v4 .collection-content .tf-btn    { display: block; }
  .collection-item-v4 .collection-content .heading   { font-size: 14px; }
  .collection-item-v4 .collection-content .subheading { font-size: 11px; }
}



/* ----------------------------------------------------------
   3. WHY CHOOSE US — .wcu-section design system
   ---------------------------------------------------------- */

/* ── Section ───────────────────────────────────────────── */
.wcu-section {
  padding: 80px 0 90px;
  background: var(--site-grey, #F6F6F6);
  border-top: 1px solid var(--line, #ebebeb);
  border-bottom: 1px solid var(--line, #ebebeb);
}

/* ── Section header ────────────────────────────────────── */
.wcu-section-header {
  text-align: center;
  margin-bottom: 52px;
}

.wcu-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--site-primary, #303a99);
  background: var(--site-color1, #eaebf5);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.wcu-heading {
  font-family: var(--font-primary, 'Manrope', sans-serif);
  font-size: 32px;
  font-weight: 800;
  color: var(--site-primary-Dark, #0a0a0c);
  line-height: 1.22;
  margin: 0 0 14px;
}

.wcu-sub {
  font-size: 15px;
  color: var(--text, #545454);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Swiper wrapper — always clipped, no bleed ────────── */
.wcu-swiper-wrap {
  overflow: hidden;
}

.wcu-swiper {
  overflow: hidden !important;
  /* give bottom room for the pagination dots */
  padding-bottom: 40px !important;
}

/* ── Card ──────────────────────────────────────────────── */
.wcu-card {
  background: #fff;
  border: 1px solid var(--line, #ebebeb);
  border-radius: 12px;
  padding: 32px 24px 28px;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

/* Top navy stripe — animates in on hover */
.wcu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--site-primary, #303a99);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s ease;
  border-radius: 12px 12px 0 0;
}

/* Gold decorative blob — bottom-right */
.wcu-card::after {
  content: '';
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--site-btn, #f8d376);
  opacity: 0;
  transform: scale(.5);
  transition: opacity .3s ease, transform .3s ease;
}

.wcu-card:hover {
  border-color: var(--site-border, #979ccc);
  box-shadow: 0 8px 32px rgba(48, 58, 153, .10);
  transform: translateY(-4px);
}

.wcu-card:hover::before { transform: scaleX(1); }
.wcu-card:hover::after  { opacity: .18; transform: scale(1); }

/* ── Step number ───────────────────────────────────────── */
.wcu-step {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--site-btn, #f8d376);
  background: var(--site-primary, #303a99);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  line-height: 32px;
  text-align: center;
  flex-shrink: 0;
  transition: background .25s ease;
}

.wcu-card:hover .wcu-step {
  background: var(--site-color2, #8389c2);
}

/* ── Icon circle ───────────────────────────────────────── */
.wcu-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--site-color1, #eaebf5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .25s ease;
}

.wcu-card:hover .wcu-icon {
  background: var(--site-primary, #303a99);
}

.wcu-icon i {
  font-size: 22px;
  color: var(--site-primary, #303a99);
  transition: color .25s ease;
}

.wcu-card:hover .wcu-icon i {
  color: #fff;
}

/* ── Text ──────────────────────────────────────────────── */
.wcu-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--site-primary-Dark, #0a0a0c);
  margin: 0;
  line-height: 1.3;
  word-break: break-word;
}

.wcu-desc {
  font-size: 14px;
  color: var(--text, #545454);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* ── Pagination dots ───────────────────────────────────── */
.wcu-dots {
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  position: absolute !important;
  text-align: center;
}

.wcu-dots .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--site-color8, #acb0d6);
  opacity: 1;
  transition: all .28s ease;
}

.wcu-dots .swiper-pagination-bullet-active {
  background: var(--site-primary, #303a99);
  width: 22px;
  border-radius: 4px;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 991px) {
  .wcu-section { padding: 64px 0 72px; }
  .wcu-section-header { margin-bottom: 40px; }
  .wcu-heading { font-size: 26px; }
}

@media (max-width: 575px) {
  .wcu-section { padding: 48px 0 60px; }
  .wcu-section-header { margin-bottom: 32px; }
  .wcu-heading { font-size: 22px; }
  .wcu-card { padding: 24px 18px 22px; }
  /* Hide dots above 1 slide on very small */
  .wcu-swiper { padding-bottom: 36px !important; }
}

/* ── 3. WCU HEADING — prevent global h2 crush ───────────────────
   responsive.css global rule: h2 { font-size:20px !important } at ≤479px
   overrides .wcu-heading. Reinstate correct size with !important.
   ─────────────────────────────────────────────────────────────── */
@media (max-width: 479px) {
  .wcu-heading {
    font-size: 22px   !important;
    line-height: 1.25 !important;
  }
}

/* ── 9. WCU SECTION — mobile polish ────────────────────────────
   Hover effects become tap feedback on touch devices.
   Remove side borders (they look like page edges on narrow screens).
   ─────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .wcu-card:active {
    transform: scale(0.98);
    transition: transform .1s ease;
  }

  /* On small screens the <br> in the heading creates orphaned words */
  .wcu-heading br {
    display: none;
  }
}

/* ============================================================
   PRODUCT DETAIL — GALLERY  (mobile)

   Root causes fixed here:
   1. height:600px on .tf-product-media-wrap → column flex → thumbs
      claim height:100%=600px → main image collapses to 0px height.
      Fix: remove fixed height; use aspect-ratio on main image.
   2. responsive CSS targeted .swiper-slide but JS injects .thumb-item.
      Fix: target .thumb-item directly.
   3. .swiper-wrapper { width:100% } from Swiper prevents horizontal
      scroll. Fix: width:auto on the thumb-strip swiper-wrapper.
   ============================================================ */
@media (max-width: 767px) {
  /* ── Outer wrap: drop fixed height, stack vertically ── */
  .tf-product-media-wrap {
    height: auto !important;
    overflow: visible !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  /* ── Slider row: become a column so main is on top, thumbs below ── */
  .thumbs-slider {
    flex-direction: column !important;
    height: auto !important;
    gap: 8px !important;
  }

  /* ── Main image: occupy full width with a fixed aspect ratio ── */
  .tf-product-media-main {
    width: 100% !important;
    height: auto !important;
    flex: none !important;
    aspect-ratio: 1 / 1;
    min-height: 0 !important;
    max-height: 400px;
    overflow: hidden;
    background: #f8f8f8;
    border-radius: 8px;
  }

  /* Swiper-wrapper inside main: fill the aspect-ratio container */
  .tf-product-media-main > .swiper-wrapper {
    height: 100% !important;
    width: 100% !important;
  }

  /* ── Thumbnail strip: fixed height, horizontal scroll ── */
  .tf-product-media-thumbs {
    order: 1;                        /* below main image */
    width: 100% !important;
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    padding: 0 0 4px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;           /* hide scrollbar (Firefox) */
  }
  .tf-product-media-thumbs::-webkit-scrollbar { display: none; }

  /*
   * Target the JS-injected .thumb-item (not .swiper-slide).
   * Each thumb is a fixed 70×70px tile that never shrinks.
   */
  .tf-product-media-thumbs .thumb-item {
    width: 70px !important;
    min-width: 70px !important;
    height: 70px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
  }

  /*
   * Allow the swiper-wrapper inside the thumb strip to grow past
   * the container width so overflow-x: auto scrolling works.
   * Swiper's own CSS locks it to width:100% — override that here.
   */
  .tf-product-media-thumbs > .swiper-wrapper {
    width: auto !important;
    min-width: 100%;
    height: 100% !important;
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-orient: horizontal !important;
    -ms-flex-direction: row !important;
    flex-direction: row !important;
    -ms-flex-wrap: nowrap !important;
    flex-wrap: nowrap !important;
  }

  /* ── Product info text ── */
  .tf-product-info-title {
    font-size: 20px !important;
  }

  .tf-product-info-price .price {
    font-size: 20px !important;
  }

  /* Add-to-cart row */
  .tf-product-info-buy-button {
    flex-direction: column;
    gap: 10px;
  }

  .tf-product-info-buy-button .tf-btn {
    width: 100%;
    justify-content: center;
  }

  /* Quantity input */
  .wg-quantity {
    width: 100%;
    justify-content: space-between;
  }
}


/* ================================================================
   PRODUCT DETAIL GALLERY — Professional UI/UX Enhancement
   Scope: .gallery-main-wrap, .gallery-overlay-bar, .thumb-item,
          .gallery-lightbox and related elements.
   Does NOT touch .tf-product-media-main width/layout rules already
   present in this file — those are preserved as-is.
   ================================================================ */

/* ── 1. THUMBNAIL STRIP — global (desktop vertical, mobile horizontal) ─── */

/*
 * THUMBNAIL TILE — zero-gap image fill
 *
 * Root causes of the previous "space around the image":
 *   1. border: 2px solid transparent → Bootstrap's box-sizing:border-box makes
 *      the border consume 4px from the content area; the background color (#f4f4f4)
 *      fills that 4px ring, creating a visible gray halo around every image.
 *   2. border-radius: 6px on .thumb-img inside a container clipped to 8px →
 *      corner triangles where the image radius (6px) is tighter than the clip
 *      boundary (8px), letting the background show through at all four corners.
 *   3. ::after pseudo-element duplicating the border approach.
 *
 * Fix:
 *   • No border on .thumb-item — selection ring uses box-shadow which draws
 *     OUTSIDE the element and never steals from the content area.
 *   • No border-radius on .thumb-img — the container's overflow:hidden + its own
 *     border-radius clips the image corners cleanly, no inner radius needed.
 *   • Image fills 100% × 100% of content box with object-fit:cover → pixel-perfect
 *     flush fit with zero background showing.
 */
.thumb-item {
  position: relative;
  width: 100%;               /* fills the 14%-wide vertical strip on desktop */
  height: auto !important;   /* beat styles.css height:90px fixed value */
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;          /* clips image corners — replaces img border-radius */
  cursor: pointer;
  background: #e8e8e8;       /* only visible while image is still loading */
  flex-shrink: 0;
  /* kill styles.css flex-centering that creates whitespace around the image */
  display: block !important;
  /* box-shadow ring for hover/active — draws OUTSIDE the element, never steals content space */
  box-shadow: 0 0 0 0 transparent;
  transition: box-shadow 0.2s ease, transform 0.15s ease;

}

/* Kill the styles.css ::after overlay border — we use box-shadow instead */
.thumb-item::after {
  display: none !important;
}

.thumb-item:hover {
  box-shadow: 0 0 0 2px rgba(255, 116, 51, 0.55);
  transform: scale(1.04);
}

.thumb-item.active {
  box-shadow: 0 0 0 2px var(--Main, #FF7433);
}

/*
 * Use 'img.thumb-img' to match styles.css specificity (0,2,1) so object-fit:cover wins.
 * styles.css uses `.thumb-item img.thumb-img` — same specificity but responsive.css
 * loads AFTER, so cascade order ensures our rules take precedence.
 */
.thumb-item img.thumb-img {
  width: 100% !important;
  height: 100% !important;   /* beat the media-query width:60px height:60px in styles.css */
  object-fit: cover !important;  /* fill tile completely — no letterbox whitespace */
  display: block;
  border-radius: 0;          /* no inner radius — container overflow:hidden clips cleanly */
  opacity: 1 !important;     /* override perf.css opacity:0 on lazy images */
  transition: transform 0.25s ease;
}

.thumb-item:hover img.thumb-img {
  transform: scale(1.06);
}

/* ── 2. GALLERY-MAIN-WRAP — desktop flex child replacing the old bare main ─── */

.gallery-main-wrap {
  position: relative;   /* anchor for .gallery-overlay-bar */
  flex: 1;
  min-width: 0;
}

/* Main swiper fills the wrapper (overrides the global width:86% from styles.css) */
.gallery-main-wrap .tf-product-media-main {
  width: 100% !important;
  aspect-ratio: 1 / 1;     /* consistent square canvas on all screen sizes */
  background: #f6f6f6;
  border-radius: 12px;
  overflow: hidden;
}

/* Main product image */
#main-product-image {
  border-radius: 10px;
  cursor: zoom-in;
}

/* ── 3. GALLERY OVERLAY BAR (counter + expand button) ───────────────────── */

.gallery-overlay-bar {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;   /* bar itself is transparent to clicks */
  z-index: 10;
}

/* "1 / 4" pill counter */
.gallery-counter {
  background: rgba(10, 10, 12, 0.54);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  white-space: nowrap;
  line-height: 1.5;
  /* Hidden until initGallery populates it */
  display: none;
}

.gallery-counter:not(:empty) {
  display: block;
}

/* Expand / fullscreen icon button */
.gallery-expand-btn {
  width: 34px;
  height: 34px;
  min-height: unset !important;  /* override global touch-target rule */
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.54);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;   /* re-enable clicks on the button itself */
  transition: background 0.2s ease, transform 0.15s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0;
  flex-shrink: 0;
  /* Hidden until gallery initialises */
  opacity: 0;
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.3s ease;
}

.gallery-expand-btn.ready {
  opacity: 1;
}

.gallery-expand-btn:hover {
  background: rgba(10, 10, 12, 0.80);
  transform: scale(1.1);
}

.gallery-expand-btn svg {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0;
}

/* ── 4. FULL-SCREEN LIGHTBOX ────────────────────────────────────────────── */

.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  /* Fade-in animation */
  opacity: 0;
  transition: opacity 0.22s ease;
}

.gallery-lightbox.is-open {
  display: flex;
  opacity: 0;
  animation: _glbFadeIn 0.22s ease forwards;
}

@keyframes _glbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Full-size image */
.gallery-lb-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  opacity: 1 !important;   /* override any perf.css lazy-load opacity:0 */
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Close button — top-right */
.gallery-lb-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  min-height: unset !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  padding: 0;
  z-index: 1;
}

.gallery-lb-close:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: scale(1.1);
}

/* Prev / Next navigation buttons */
.gallery-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  min-height: unset !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  padding: 0;
  z-index: 1;
}

.gallery-lb-nav:hover {
  background: rgba(255, 255, 255, 0.26);
}

.gallery-lb-prev {
  left: 16px;
}

.gallery-lb-next {
  right: 16px;
}

/* Image counter badge — bottom-center */
.gallery-lb-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  pointer-events: none;
}

/* ── 5. RESPONSIVE OVERRIDES ────────────────────────────────────────────── */

/* On mobile, gallery-main-wrap fills full width (thumbs go horizontal below) */
@media (max-width: 767px) {
  .gallery-main-wrap {
    width: 100% !important;
    order: 0;   /* main image stays on top */
  }

  /* Overlay bar: adjust position to avoid clash with thumb strip */
  .gallery-overlay-bar {
    bottom: 10px;
    left: 10px;
    right: 10px;
  }

  .gallery-counter {
    font-size: 11px;
    padding: 3px 9px;
  }

  .gallery-expand-btn {
    width: 30px;
    height: 30px;
  }

  /* Lightbox nav buttons — closer to edges on small screens */
  .gallery-lb-prev { left: 8px; }
  .gallery-lb-next { right: 8px; }

  .gallery-lb-nav {
    width: 38px;
    height: 38px;
  }
}

/* Hide nav buttons when only 1 image (counter shows "1 / 1") */
.gallery-lightbox[data-count="1"] .gallery-lb-prev,
.gallery-lightbox[data-count="1"] .gallery-lb-next {
  display: none;
}

/* ================================================================
   COMPARE PAGE — Professional Mobile UI/UX
   Scope: .sq-compare-wrap, .sq-row, .sq-col, .sq-label and children.
   Does NOT touch desktop grid layout or theme colors.
   ================================================================ */

/* ── 1. GLOBAL OVERFLOW FIX ─────────────────────────────────────────────────
   perf.css declares overflow-x:auto then overflow:hidden (shorthand).
   The shorthand comes LAST and overrides overflow-x, killing horizontal scroll
   on every screen size. Restore it here without !important conflicts:
   overflow-y:hidden preserves the border-radius clip; overflow-x:auto gives
   the table a scroll container it needs on narrow viewports.               */
.sq-compare-wrap {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* ── 2. STICKY LABEL COLUMN ─────────────────────────────────────────────────
   Without this, the "Min Price / Discount / Mesh…" labels scroll off-screen
   and users lose track of which row they are reading.                       */
.sq-label {
  position: sticky;
  left: 0;
  z-index: 2;
  /* Must be fully opaque — product columns slide under this cell */
  background: #fff;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.04);
}
/* Alt-row label must also be opaque */
.sq-row--alt .sq-label {
  background: #fafafa;
}

/* ── 3. SCROLL-HINT GRADIENT ─────────────────────────────────────────────────
   Right-edge fade tells users there is more to swipe.
   pointer-events:none ensures it never blocks taps on the table.           */
.tf-compare-table {
  position: relative;
}
.tf-compare-table::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 42px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.82));
  pointer-events: none;
  z-index: 5;
  border-radius: 0 12px 12px 0;
  transition: opacity 0.3s ease;
}

/* ── 4. SWIPE HINT LABEL ─────────────────────────────────────────────────────
   Tiny "Swipe to compare →" cue above the table — mobile only.             */
@media (max-width: 767px) {
  .tf-compare-table::before {
    content: 'Swipe to compare \2192';
    display: block;
    text-align: right;
    font-size: 11px;
    color: #b0b0b0;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
    pointer-events: none;
  }
}

/* ── 5. 767px BREAKPOINT — phones and small tablets ─────────────────────────*/
@media (max-width: 767px) {
  /* Narrower sticky label + guaranteed 130px-wide product columns */
  .sq-row {
    grid-template-columns: 76px repeat(4, minmax(130px, 1fr));
  }

  /* Label column */
  .sq-label {
    padding: 10px 8px;
    font-size: 10px;
    letter-spacing: 0.3px;
  }

  /* Data cells */
  .sq-col {
    padding: 12px 10px;
    gap: 5px;
  }

  /* Product header cell */
  .sq-col--product {
    padding: 16px 10px;
    gap: 8px;
  }

  /* Product image — larger for visual recognition on small screens */
  .sq-product-img-link img {
    max-width: 100px;
  }

  .sq-product-title {
    font-size: 12px;
  }

  .sq-price {
    font-size: 14px;
  }

  .sq-badge {
    font-size: 11px;
    padding: 2px 7px;
  }

  /* Chips — slightly larger tap target */
  .sq-chip {
    font-size: 11px;
    padding: 5px 8px;
  }

  /* Remove button — minimum 30×30 tap target on mobile */
  .sq-remove-btn {
    width:  30px !important;
    height: 30px !important;
    font-size: 14px;
    top:  6px;
    right: 6px;
  }

  /* Empty slot placeholder text */
  .sq-empty-slot {
    font-size: 12px;
  }

  /* Show-more link */
  .sq-show-more {
    font-size: 12px;
  }
}

/* ── 6. 575px BREAKPOINT — very small phones ─────────────────────────────────*/
@media (max-width: 575px) {
  /* Tighter label, still sticky */
  .sq-row {
    grid-template-columns: 68px repeat(4, minmax(118px, 1fr));
  }

  .sq-label {
    font-size: 9px;
    padding: 8px 6px;
  }

  .sq-col {
    padding: 10px 8px;
  }

  .sq-col--product {
    padding: 14px 8px;
  }

  .sq-product-img-link img {
    max-width: 88px;
  }

  .sq-product-title {
    font-size: 11px;
  }

  .sq-price {
    font-size: 13px;
  }

  .sq-chip {
    padding: 4px 7px;
    font-size: 10px;
  }
}

/* ── 7. EMPTY STATE ──────────────────────────────────────────────────────────*/
@media (max-width: 767px) {
  .compare-empty-state {
    padding: 32px 16px !important;
  }
  .compare-empty-state p {
    font-size: 15px !important;
  }
}

/* =============================================================================
   CUSTOMER LOGIN PAGE — left panel background
   ============================================================================= */

/* Gradient shown while the image loads or when none is set */
.login-left {
  background: linear-gradient(160deg, #1b78c4 0%, #0f4f8c 55%, #0a3560 100%);
}

/* Image fade-in once loaded */
.login-left-img {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.login-left--loaded .login-left-img {
  opacity: 1;
}
