/* ── Shop layout ──────────────────────────────────────────────────────────── */
.fabric-woo-layout {
  display: block;
}

.fabric-shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 40px var(--spacing-page-x, 48px);
  align-items: start;
}

.fabric-shop-sidebar {
  position: sticky;
  top: 80px;
}

.fabric-shop-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.fabric-shop-bar__count p {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--color-muted);
  letter-spacing: 1px;
  margin: 0;
}

.woocommerce-ordering select {
  border: 1px solid var(--color-border);
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 1px;
  background: var(--color-bg);
  color: var(--color-primary);
  outline: none;
  cursor: pointer;
}

/* Product grid column overrides */
.fabric-product-grid--2col { grid-template-columns: repeat(2, 1fr); }
.fabric-product-grid--3col { grid-template-columns: repeat(3, 1fr); }
.fabric-product-grid--4col { grid-template-columns: repeat(4, 1fr); }

/* ── Widgets / Sidebar ────────────────────────────────────────────────────── */
.fabric-widget { margin-bottom: 32px; }
.fabric-widget__title {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}
.widget_product_categories ul { display: flex; flex-direction: column; gap: 6px; }
.widget_product_categories ul li a {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-muted);
  transition: color 0.2s;
}
.widget_product_categories ul li a:hover { color: var(--color-primary); }
.widget_product_categories .count { color: var(--color-muted); font-size: 11px; }

/* Price filter */
.widget_price_filter .price_slider_wrapper { padding: 16px 0 0; }
.widget_price_filter .ui-slider {
  background: var(--color-border);
  height: 2px;
  border-radius: 2px;
  position: relative;
  margin: 0 8px;
}
.widget_price_filter .ui-slider-range {
  background: var(--color-primary);
  height: 2px;
  position: absolute;
}
.widget_price_filter .ui-slider-handle {
  width: 14px;
  height: 14px;
  background: var(--color-primary);
  border-radius: 50%;
  position: absolute;
  top: -6px;
  margin-left: -7px;
  cursor: grab;
  outline: none;
}
.widget_price_filter .price_label {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--color-muted);
  margin-top: 12px;
}
.widget_price_filter button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 12px;
  cursor: pointer;
}

/* ── WooCommerce notices ──────────────────────────────────────────────────── */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  padding: 14px 20px;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: 13px;
  border-left: 3px solid;
  list-style: none;
}
.woocommerce-message { background: #f0faf0; border-color: #2d7a2d; color: #1e5c1e; }
.woocommerce-info    { background: #f0f4ff; border-color: #2d4da0; color: #1e3470; }
.woocommerce-error   { background: #fff0f0; border-color: #c0392b; color: #8e2920; }

/* ── Cart ─────────────────────────────────────────────────────────────────── */
.fabric-cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  padding: 40px var(--spacing-page-x, 48px);
  align-items: start;
}
.shop_table.cart { width: 100%; border-collapse: collapse; }
.shop_table.cart th {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 0 0 16px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}
.shop_table.cart td {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.woocommerce-cart-form__cart-item .product-thumbnail img { width: 80px; height: 100px; object-fit: cover; }
.woocommerce-cart-form__cart-item .product-name a {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-primary);
  text-decoration: none;
}
.woocommerce-cart-form__cart-item .product-name dl { font-size: 11px; color: var(--color-muted); margin-top: 4px; }
.woocommerce-cart-form__cart-item .qty {
  width: 60px;
  border: 1px solid var(--color-border);
  padding: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  text-align: center;
}
.product-remove a { font-size: 18px; color: var(--color-muted); text-decoration: none; transition: color 0.2s; }
.product-remove a:hover { color: #c0392b; }
.cart_totals { background: var(--color-surface); padding: 32px; }
.cart_totals h2 {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}
.cart_totals table { width: 100%; border-collapse: collapse; }
.cart_totals table th, .cart_totals table td { padding: 10px 0; font-family: var(--font-body); font-size: 13px; }
.cart_totals table th { color: var(--color-muted); text-align: left; }
.cart_totals .order-total td { font-weight: 700; font-size: 16px; }
.wc-proceed-to-checkout { margin-top: 20px; }
.wc-proceed-to-checkout a.checkout-button {
  display: block;
  text-align: center;
  background: var(--color-accent);
  color: #fff;
  padding: 16px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s;
}
.wc-proceed-to-checkout a.checkout-button:hover { opacity: 0.85; }
.coupon { display: flex; gap: 0; margin-bottom: 20px; }
.coupon input { flex: 1; border: 1px solid var(--color-border); padding: 10px 14px; font-family: var(--font-body); font-size: 12px; border-right: none; outline: none; }
.coupon button { background: var(--color-primary); color: #fff; border: none; padding: 10px 16px; font-family: var(--font-body); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; }

/* ── Checkout ─────────────────────────────────────────────────────────────── */
.fabric-checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  padding: 40px var(--spacing-page-x, 48px);
  align-items: start;
}
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.woocommerce-input-wrapper input,
.woocommerce-input-wrapper select,
.woocommerce-input-wrapper textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.woocommerce-input-wrapper input:focus,
.woocommerce-input-wrapper select:focus { border-color: var(--color-primary); }
.form-row label { font-family: var(--font-body); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--color-muted); display: block; margin-bottom: 6px; }
.woocommerce-checkout-review-order { background: var(--color-surface); padding: 32px; position: sticky; top: 80px; }
.woocommerce-checkout-review-order h3 { font-size: 18px; font-weight: 400; margin-bottom: 20px; }
.woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { padding: 10px 0; font-family: var(--font-body); font-size: 13px; border-bottom: 1px solid var(--color-border); }
.order-total td { font-weight: 700; font-size: 16px; }
#place_order {
  width: 100%;
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 16px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 20px;
  transition: opacity 0.2s;
}
#place_order:hover { opacity: 0.85; }

/* ── My Account ─────────────────────────────────────────────────────────────
   Clean black-and-white design matching the rest of the theme.
   No more blue accents, rounded corners, or squeezed sidebar text.
─────────────────────────────────────────────────────────────────────────── */
.fabric-account-page {
  background: var(--color-bg, #fff);
}
/* Cancel the global .fabric-main min-height: 50vh on the account page —
   without this, short content (like the small dashboard greeting) leaves
   a big empty white gap above the footer. */
.fabric-main.fabric-account-page {
  min-height: 0;
}
.fabric-account-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  box-sizing: border-box;
  width: 100%;
}
.fabric-account-title {
  font-family: var(--font-heading, Georgia, serif);
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin: 0 0 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border, #e8e8e8);
  color: var(--color-primary, #1a1a1a);
}
.fabric-account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: stretch;
}

/* Sidebar */
.fabric-account-sidebar {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-border, #e8e8e8);
}
.woocommerce-MyAccount-navigation ul li {
  margin: 0;
  border-bottom: 1px solid var(--color-border, #e8e8e8);
}
.woocommerce-MyAccount-navigation ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 4px;
  border-radius: 0;
  font-family: var(--font-ui, Arial, sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-muted, #888);
  text-decoration: none;
  transition: color 0.2s, padding 0.2s;
  border: none;
  background: transparent;
  line-height: 1.4;
}
.woocommerce-MyAccount-navigation ul li a:hover {
  background: transparent;
  color: var(--color-primary, #1a1a1a);
  padding-left: 8px;
}
.woocommerce-MyAccount-navigation ul li.is-active > a {
  background: transparent;
  color: var(--color-primary, #1a1a1a);
  font-weight: 700;
  border-left: 2px solid var(--color-primary, #1a1a1a);
  padding-left: 14px;
}
.fabric-account-nav__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: currentColor;
}
.fabric-account-nav__icon svg { width: 100%; height: 100%; }
.woocommerce-MyAccount-navigation ul li.is-active .fabric-account-nav__icon {
  color: var(--color-primary, #1a1a1a);
}

/* Main content panel */
.fabric-account-main {
  background: transparent;
  border: 1px solid var(--color-border, #e8e8e8);
  border-radius: 0;
  padding: 40px 44px;
  box-shadow: none;
}
.fabric-account-main h2,
.woocommerce-MyAccount-content h2 {
  font-family: var(--font-heading, Georgia, serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.3px;
  margin: 0 0 16px;
  color: var(--color-primary, #1a1a1a);
}
.woocommerce-MyAccount-content h3 {
  font-family: var(--font-ui, Arial, sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-muted, #888);
  margin: 32px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border, #e8e8e8);
}
.woocommerce-MyAccount-content p {
  font-family: var(--font-ui, Arial, sans-serif);
  color: #555;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 16px;
}
.woocommerce-MyAccount-content p strong {
  color: var(--color-primary, #1a1a1a);
  font-weight: 600;
}
.woocommerce-MyAccount-content p a {
  color: var(--color-primary, #1a1a1a);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.woocommerce-MyAccount-content p a:hover {
  text-decoration: none;
}
.woocommerce-MyAccount-content .woocommerce-Address,
.woocommerce-MyAccount-content fieldset {
  border: 1px solid var(--color-border, #e8e8e8);
  border-radius: 0;
  padding: 24px;
  margin-bottom: 16px;
}
.woocommerce-MyAccount-content label {
  display: block;
  font-family: var(--font-ui, Arial, sans-serif);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-muted, #888);
  margin: 0 0 8px;
}
.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="tel"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content input[type="date"],
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border, #e8e8e8);
  border-radius: 0;
  font-family: var(--font-ui, Arial, sans-serif);
  font-size: 14px;
  background: #fff;
  color: var(--color-primary, #1a1a1a);
  transition: border-color 0.2s;
}
.woocommerce-MyAccount-content input:focus,
.woocommerce-MyAccount-content select:focus,
.woocommerce-MyAccount-content textarea:focus {
  outline: none;
  border-color: var(--color-primary, #1a1a1a);
  box-shadow: none;
}
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content button[type="submit"] {
  background: var(--color-primary, #1a1a1a);
  color: #fff;
  border: 1px solid var(--color-primary, #1a1a1a);
  padding: 14px 32px;
  border-radius: 0;
  font-family: var(--font-ui, Arial, sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content button[type="submit"]:hover {
  background: transparent;
  color: var(--color-primary, #1a1a1a);
}
.woocommerce-MyAccount-content .form-row { margin-bottom: 16px; }
.woocommerce-MyAccount-content .form-row-first,
.woocommerce-MyAccount-content .form-row-last { width: 48%; display: inline-block; vertical-align: top; }
.woocommerce-MyAccount-content .form-row-first { margin-right: 3%; }
.woocommerce-orders-table { width: 100%; border-collapse: collapse; }
.woocommerce-orders-table th {
  font-family: var(--font-ui, Arial, sans-serif);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 0 0 12px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}
.woocommerce-orders-table td { padding: 14px 0; border-bottom: 1px solid var(--color-border); font-size: 13px; }

/* ── Shop empty ───────────────────────────────────────────────────────────── */
.fabric-shop-empty { text-align: center; padding: 64px 0; }
.fabric-shop-empty p { font-size: 15px; color: var(--color-muted); margin-bottom: 24px; }

/* ── Single Product ───────────────────────────────────────────────────────── */
.fabric-single-product { padding: 0 var(--spacing-page-x, 48px) var(--spacing-section-y, 64px); }
.fabric-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-top: 40px;
  align-items: start;
}

/* Gallery */
.fabric-product-gallery__main {
  position: relative;
  margin-bottom: 12px;
}
.fabric-product-gallery__main-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
.fabric-product-gallery__zoom {
  display: block;
  position: relative;
}
.fabric-product-gallery__zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-muted);
  background: rgba(255,255,255,0.8);
  padding: 4px 8px;
}
.fabric-product-gallery__thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.fabric-product-gallery__thumb {
  width: 76px;
  height: 96px;
  border: 1.5px solid transparent;
  overflow: hidden;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.fabric-product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fabric-product-gallery__thumb.is-active { border-color: var(--color-primary); }

/* Product info */
.fabric-product-info__type {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 10px;
}
.fabric-product-info__title {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.fabric-product-info__price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}
.fabric-product-info__price { font-family: var(--font-body); font-size: 20px; font-weight: 600; }
.fabric-product-info__per  { font-size: 13px; color: var(--color-muted); font-weight: 400; }
.fabric-product-info__total {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-muted);
  background: var(--color-surface);
  padding: 4px 10px;
}

/* Swatches */
.fabric-swatches { margin-bottom: 24px; }
.fabric-swatches__label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.fabric-swatches__label {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-muted);
}
.fabric-swatches__selected {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
}
.fabric-swatches__grid { display: flex; gap: 10px; flex-wrap: wrap; }
.fabric-swatch-item {
  background: none;
  border: 2px solid transparent;
  border-radius: 50%;
  padding: 3px;
  cursor: pointer;
  transition: border-color 0.2s;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fabric-swatch-item:hover   { border-color: var(--color-muted); }
.fabric-swatch-item.is-active { border-color: var(--color-primary); }
.fabric-swatch-item__color {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

/* Yard calculator */
.fabric-yard-calculator {
  background: var(--color-surface);
  padding: 16px;
  margin-bottom: 24px;
}
.fabric-yard-calculator__label {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 12px;
}
.fabric-yard-calculator__controls {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 10px;
}
.fabric-yard-calculator__btn {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.fabric-yard-calculator__btn:hover { opacity: 0.8; }
.fabric-yard-calculator__input {
  width: 80px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-left: none;
  border-right: none;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 16px;
  background: #fff;
  outline: none;
}
.fabric-yard-calculator__unit {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-muted);
  margin-left: 12px;
}
.fabric-yard-calculator__total { font-family: var(--font-body); font-size: 13px; }
.fabric-yard-calculator__total strong { font-size: 15px; }

/* Sample box */
.fabric-sample-box {
  border: 1px dashed var(--color-border);
  padding: 14px 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.fabric-sample-box__icon {
  width: 34px;
  height: 34px;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.fabric-sample-box__text {
  font-family: var(--font-body);
  font-size: 12px;
  color: #555;
  line-height: 1.5;
  flex: 1;
}
.fabric-sample-box__text strong {
  display: block;
  font-size: 11px;
  color: var(--color-primary);
  margin-bottom: 2px;
}
.fabric-sample-box__link {
  font-family: var(--font-body);
  font-size: 11px;
  text-decoration: underline;
  color: var(--color-primary);
  flex-shrink: 0;
  white-space: nowrap;
}

/* Buy Now button */
.fabric-buy-now-btn {
  margin-top: 8px;
}

/* Wishlist button state */
.fabric-wishlist-btn[aria-pressed="true"] .fabric-wishlist-btn__add   { display: none; }
.fabric-wishlist-btn[aria-pressed="true"] .fabric-wishlist-btn__remove { display: inline; }
.fabric-wishlist-btn[aria-pressed="false"] .fabric-wishlist-btn__remove { display: none; }

/* Product accordion */
.fabric-product-accordion { margin-top: 24px; border-top: 1px solid var(--color-border); }

/* Related products */
.fabric-related-products { border-top: 1px solid var(--color-border); }

/* Mobile filter toggle (hidden on desktop) */
.fabric-filter-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 10px 16px;
  cursor: pointer;
  margin-bottom: 16px;
}
@media (max-width: 1199px) {
  .fabric-filter-toggle { display: flex; }
}

/* ─── Product card video ──────────────────────────────────────────────────── */
.fabric-product-card__img-wrap {
  position: relative;
  overflow: hidden;
}

.fabric-product-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.fabric-product-card__img-wrap:hover .fabric-product-card__video {
  opacity: 1;
}

.fabric-product-card__img-wrap:hover .fabric-product-card__img {
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* ─── Product gallery video ───────────────────────────────────────────────── */
.fabric-product-gallery__thumb--video {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  color: #fff;
  border: none;
  cursor: pointer;
  width: 72px;
  height: 90px;
  flex-shrink: 0;
}

.fabric-video-play-icon {
  font-size: 20px;
}

.fabric-product-gallery__video-wrap {
  position: relative;
  aspect-ratio: 4/5;
  background: #000;
}

.fabric-product-gallery__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fabric-gallery-video-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* ─── Category hero video ─────────────────────────────────────────────────── */
.fabric-cat-hero {
  position: relative;
  overflow: hidden;
}

.fabric-cat-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.fabric-cat-hero__video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.fabric-cat-hero__content {
  position: relative;
  z-index: 2;
}

/* ─── Tablet (768–1199px) ────────────────────────────────────────────────── */
@media (max-width: 1199px) {
  /* Shop layout: sidebar collapses */
  .fabric-shop-layout { grid-template-columns: 1fr; }
  .fabric-shop-sidebar { display: none; }
  .fabric-shop-sidebar.is-open { display: block; }

  /* Product layout */
  .fabric-product-layout { grid-template-columns: 1fr; }
  .fabric-product-gallery { border-right: none; border-bottom: 1px solid var(--color-border); }

  /* Cart */
  .fabric-cart-layout { grid-template-columns: 1fr; }

  /* Checkout */
  .fabric-checkout-layout { grid-template-columns: 1fr; }

  /* Related products */
  .fabric-related__grid { grid-template-columns: repeat(2, 1fr); }

  /* My account */
  .fabric-account-layout { grid-template-columns: 1fr; gap: 28px; }
  .fabric-account-sidebar { padding: 0; }
  .woocommerce-MyAccount-navigation ul { flex-direction: row; flex-wrap: wrap; border-top: 0; gap: 0; }
  .woocommerce-MyAccount-navigation ul li {
    flex: 1 1 auto;
    border: 1px solid var(--color-border, #e8e8e8);
    margin: -1px 0 0 -1px;
  }
  .woocommerce-MyAccount-navigation ul li a {
    padding: 14px 16px;
    justify-content: center;
    text-align: center;
  }
  .woocommerce-MyAccount-navigation ul li.is-active > a {
    border-left: 0;
    background: var(--color-primary, #1a1a1a);
    color: #fff;
    padding-left: 16px;
  }
  .woocommerce-MyAccount-navigation ul li.is-active .fabric-account-nav__icon { color: #fff; }
  .fabric-account-main { padding: 28px 24px; }
  .fabric-account-wrap { padding: 32px 24px 64px; }
  .fabric-account-title { font-size: 32px; margin-bottom: 28px; padding-bottom: 20px; }
}

/* ─── Mobile (<768px) ────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  /* Shop */
  .fabric-shop-sort-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .fabric-product-grid--3col,
  .fabric-product-grid--4col { grid-template-columns: repeat(2, 1fr); }
  .fabric-product-grid--2col { grid-template-columns: repeat(2, 1fr); }

  /* Product page */
  .fabric-product-gallery { padding: 16px; }
  .fabric-product-info { padding: 24px 16px; }
  .fabric-product-info__name { font-size: 28px; }
  .fabric-swatch-grid { gap: 6px; }

  /* Cart table */
  .fabric-cart-table thead { display: none; }
  .fabric-cart-table tr { display: grid; grid-template-columns: 80px 1fr; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
  .fabric-cart-table td { border: none; padding: 0; }
  .fabric-cart-table .product-thumbnail { grid-row: 1 / 3; }

  /* Checkout */
  .fabric-checkout-layout { gap: 32px; }

  /* Related */
  .fabric-related { padding: 40px 16px; }
  .fabric-related__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* My account nav */
  .fabric-account-nav { margin-bottom: 24px; }
  .fabric-account-nav ul { display: flex; flex-wrap: wrap; gap: 8px; }
  .fabric-account-nav li { flex: 1 1 auto; }
  .fabric-account-nav a { display: block; text-align: center; padding: 8px; border: 1px solid var(--color-border); }
}

/* ─── Very small phones (<400px) ─────────────────────────────────────────── */
@media (max-width: 399px) {
  .fabric-product-grid--2col,
  .fabric-product-grid--3col,
  .fabric-product-grid--4col { grid-template-columns: 1fr; }
  .fabric-related__grid { grid-template-columns: 1fr; }
}

/* ─── Product card Buy Now button ───────────────────────────────────────── */
.fabric-product-card__buynow {
  margin-top: 6px;
}

/* ─── Product grid mobile padding ───────────────────────────────────────── */
@media (max-width: 767px) {
  .fabric-product-grid {
    padding: 0 16px;
  }
  .woocommerce ul.products {
    padding: 0 16px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   STICKY ADD TO CART BAR
═══════════════════════════════════════════════════════════════════════════ */
.fabric-sticky-atc {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
  z-index: 500;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}

.fabric-sticky-atc.is-visible {
  transform: translateY(0);
}

.fabric-sticky-atc.is-clicked {
  background: var(--color-surface);
}

.fabric-sticky-atc__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.fabric-sticky-atc__product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.fabric-sticky-atc__thumb {
  width: 44px;
  height: 56px;
  object-fit: cover;
  flex-shrink: 0;
}

.fabric-sticky-atc__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fabric-sticky-atc__name {
  font-family: var(--font-heading);
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.fabric-sticky-atc__price {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
}

.fabric-sticky-atc__per {
  font-weight: 400;
  color: var(--color-muted);
  font-size: 12px;
}

.fabric-sticky-atc__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.fabric-sticky-atc__btn,
.fabric-sticky-atc__buynow {
  padding: 10px 20px;
  font-size: 10px;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .fabric-sticky-atc__product { display: none; }
  .fabric-sticky-atc__inner { justify-content: center; }
  .fabric-sticky-atc__btn,
  .fabric-sticky-atc__buynow { flex: 1; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   AJAX COLOR FILTER WIDGET
═══════════════════════════════════════════════════════════════════════════ */
.fabric-color-filter {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.fabric-widget-title {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 14px;
}

.fabric-color-filter__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fabric-cf-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s, transform 0.15s;
  position: relative;
}

.fabric-cf-swatch:hover {
  transform: scale(1.15);
}

.fabric-cf-swatch.is-active {
  border-color: var(--color-primary);
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.fabric-cf-swatch--all {
  background: var(--color-surface);
  color: var(--color-primary);
  font-family: var(--font-ui);
  font-size: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  width: auto;
  border-radius: 0;
  padding: 4px 8px;
  height: auto;
  border: 1px solid var(--color-border);
}

.fabric-cf-swatch--all.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  outline: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   IMAGE ZOOM MAGNIFIER
═══════════════════════════════════════════════════════════════════════════ */

/* The main gallery image container needs to be relative */
.fabric-product-gallery__main {
  position: relative;
  cursor: crosshair;
  overflow: visible !important; /* allow lens to not clip */
}

/* Zoom lens (follows cursor) */
.fabric-zoom-lens {
  display: none;
  position: absolute;
  width: 100px;
  height: 100px;
  border: 2px solid rgba(26, 26, 26, 0.4);
  background: rgba(255, 255, 255, 0.15);
  pointer-events: none;
  z-index: 10;
  border-radius: 2px;
}

/* Zoom result box (shown to the right of the gallery) */
.fabric-zoom-result {
  display: none;
  position: absolute;
  left: calc(100% + 16px);
  top: 0;
  width: 380px;
  height: 460px;
  background-repeat: no-repeat;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  z-index: 100;
  pointer-events: none;
  overflow: hidden;
}

/* On tablet/mobile — show zoom result below instead of beside */
@media (max-width: 1199px) {
  .fabric-zoom-result {
    left: 0;
    top: calc(100% + 8px);
    width: 100%;
    height: 260px;
  }

  /* Disable zoom on touch devices (they have pinch-to-zoom) */
  @media (hover: none) {
    .fabric-product-gallery__main { cursor: default; }
    .fabric-zoom-lens,
    .fabric-zoom-result { display: none !important; }
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CART + CHECKOUT POLISH (modern card/blue theme)
   ═══════════════════════════════════════════════════════════════════════════ */
body.woocommerce-cart,
body.woocommerce-checkout { background: #f4f6f8; }

.fabric-cart-layout,
.fabric-checkout-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.fabric-cart-items,
.fabric-checkout__form {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 2px rgba(15,22,35,0.04);
}

.fabric-cart-totals,
.fabric-checkout__sidebar {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(15,22,35,0.04);
  position: sticky;
  top: 100px;
}

.woocommerce-cart .fabric-page-heading,
.woocommerce-checkout .fabric-page-heading {
  font-size: 32px;
  font-weight: 700;
  color: #0f1623;
  letter-spacing: -0.5px;
  margin: 0 auto 28px;
  max-width: 1200px;
  padding: 48px 24px 0;
}

.fabric-cart-table { width: 100%; border-collapse: collapse; }
.fabric-cart-table thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6b7280;
  font-weight: 600;
  padding: 0 0 16px;
  text-align: left;
  border-bottom: 1px solid #e5e9f0;
}
.fabric-cart-table td {
  padding: 20px 0;
  border-bottom: 1px solid #f0f2f5;
  vertical-align: middle;
  font-size: 14px;
  color: #0f1623;
}
.fabric-cart-table .product-thumbnail img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e5e9f0;
}
.fabric-cart-table .product-name a {
  color: #0f1623;
  font-weight: 600;
  text-decoration: none;
}
.fabric-cart-table .product-name a:hover { color: #1d6dff; }
.fabric-cart-table .product-price,
.fabric-cart-table .product-subtotal { color: #4a5568; font-variant-numeric: tabular-nums; }
.fabric-cart-table .product-remove a,
.fabric-cart-table .remove {
  color: #9ca3af;
  text-decoration: none;
  font-size: 18px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}
.fabric-cart-table .product-remove a:hover,
.fabric-cart-table .remove:hover { background: #fef2f2; color: #b91c1c; }

.fabric-cart-table .quantity input,
.fabric-qty-input {
  width: 64px;
  padding: 8px 10px;
  border: 1px solid #d8dde6;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}
.fabric-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8dde6;
  border-radius: 8px;
  overflow: hidden;
}
.fabric-qty-control button {
  background: #f4f6f8;
  border: none;
  width: 32px;
  height: 36px;
  cursor: pointer;
  font-size: 16px;
  color: #4a5568;
  transition: background 0.15s;
}
.fabric-qty-control button:hover { background: #e5e9f0; }
.fabric-qty-control input {
  width: 44px;
  border: none;
  border-left: 1px solid #d8dde6;
  border-right: 1px solid #d8dde6;
  text-align: center;
  font-size: 14px;
  padding: 8px 0;
  height: 36px;
}

.fabric-cart-coupon,
.coupon {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e9f0;
}
.fabric-cart-coupon input[type="text"],
.coupon input[type="text"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #d8dde6;
  border-radius: 8px;
  font-size: 14px;
}

.fabric-cart-totals h2,
.fabric-checkout__sidebar h2,
.cart_totals h2 {
  font-size: 18px;
  font-weight: 700;
  color: #0f1623;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e9f0;
}
.fabric-cart-totals table,
.cart_totals table { width: 100%; border-collapse: collapse; }
.fabric-cart-totals tr th,
.fabric-cart-totals tr td,
.cart_totals tr th,
.cart_totals tr td {
  padding: 10px 0;
  font-size: 14px;
  color: #4a5568;
  text-align: left;
  border: none;
}
.fabric-cart-totals tr td,
.cart_totals tr td { text-align: right; color: #0f1623; font-weight: 500; }
.fabric-cart-totals tr.order-total td,
.cart_totals tr.order-total td {
  font-size: 18px;
  font-weight: 700;
  color: #0f1623;
  padding-top: 16px;
  border-top: 1px solid #e5e9f0;
}

.checkout-button,
#place_order,
.fabric-checkout-proceed {
  display: block;
  width: 100%;
  background: #1d6dff !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 20px !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-align: center;
  text-decoration: none;
  margin-top: 16px !important;
  cursor: pointer;
  transition: background 0.15s;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.checkout-button:hover,
#place_order:hover { background: #1558d6 !important; }

.woocommerce-checkout h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f1623;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e9f0;
}
.woocommerce-checkout .form-row label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6b7280;
  margin: 0 0 6px;
}
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout select {
  width: 100% !important;
  padding: 11px 14px !important;
  border: 1px solid #d8dde6 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  background: #fff !important;
  color: #0f1623 !important;
  height: auto !important;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout select:focus {
  outline: none !important;
  border-color: #1d6dff !important;
  box-shadow: 0 0 0 3px rgba(29,109,255,0.12) !important;
}
.woocommerce-checkout .form-row { margin-bottom: 16px !important; }

#payment, .woocommerce-checkout-payment {
  background: #f4f6f8 !important;
  border-radius: 10px;
  padding: 20px;
  margin-top: 24px;
}
#payment ul.payment_methods { padding: 0 !important; border: none !important; }
#payment ul.payment_methods li { background: #fff; border: 1px solid #e5e9f0; border-radius: 8px; padding: 12px 14px; margin-bottom: 8px; list-style: none; }
#payment .payment_box { background: #fff !important; border-radius: 8px !important; margin-top: 8px; padding: 12px 14px !important; font-size: 13px; color: #4a5568; }

.cart-empty, .fabric-cart-empty {
  background: #fff;
  border-radius: 12px;
  padding: 80px 32px;
  text-align: center;
  max-width: 600px;
  margin: 48px auto;
  box-shadow: 0 1px 2px rgba(15,22,35,0.04);
  font-size: 16px;
  color: #4a5568;
}
.return-to-shop { text-align: center; }
.return-to-shop .button {
  background: #1d6dff;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 16px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  border-left-width: 4px;
}
.woocommerce-message { background: #ecfdf5; border-left-color: #10b981; color: #065f46; }
.woocommerce-info { background: #eff6ff; border-left-color: #1d6dff; color: #1e40af; }
.woocommerce-error { background: #fef2f2; border-left-color: #ef4444; color: #991b1b; }

@media (max-width: 1023px) {
  .fabric-cart-layout,
  .fabric-checkout-layout { grid-template-columns: 1fr; }
  .fabric-cart-totals,
  .fabric-checkout__sidebar { position: static; }
}
@media (max-width: 640px) {
  .fabric-cart-items,
  .fabric-checkout__form { padding: 20px; }
  .woocommerce-cart .fabric-page-heading,
  .woocommerce-checkout .fabric-page-heading { font-size: 24px; padding: 24px 16px 0; }
}
