/* ==========================================================================
   MJ CLOTHING — WooCommerce styles
   ========================================================================== */

/* ---------- shop toolbar ---------- */
.mj-shop-bar{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:16px 0;border-bottom:1px solid var(--mj-line);margin-bottom:clamp(20px,2.5vw,34px);flex-wrap:wrap
}
.mj-shop-bar__left{display:flex;align-items:center;gap:18px}
.mj-filter-toggle{
  background:none;border:1px solid var(--mj-line);color:var(--mj-ink);padding:11px 18px;
  font-size:11px;letter-spacing:.18em;text-transform:uppercase;display:inline-flex;align-items:center;gap:9px
}
.mj-filter-toggle:hover{background:var(--mj-ink);color:#fff;border-color:var(--mj-ink)}
.mj-filter-toggle svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.4}
.woocommerce-result-count{margin:0;font-size:12px;letter-spacing:.1em;color:var(--mj-muted);text-transform:uppercase}
.woocommerce-ordering{margin:0}
.woocommerce-ordering select{
  border:1px solid var(--mj-line);font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;
  padding:11px 40px 11px 16px;width:auto;min-width:210px
}
.mj-cols{display:flex;gap:6px}
.mj-cols button{
  width:34px;height:34px;padding:0;background:none;border:1px solid var(--mj-line);color:var(--mj-muted);
  display:flex;align-items:center;justify-content:center;gap:2px
}
.mj-cols button.is-active{border-color:var(--mj-ink);color:var(--mj-ink)}
.mj-cols button:hover{background:none;border-color:var(--mj-ink);color:var(--mj-ink)}
.mj-cols i{display:block;width:3px;height:13px;background:currentColor}
@media(max-width:767px){.mj-cols{display:none}.woocommerce-result-count{display:none}}

/* ---------- filter drawer ---------- */
.mj-filters{
  position:fixed;top:0;bottom:0;left:0;width:min(340px,88vw);background:#fff;z-index:130;
  transform:translateX(-100%);visibility:hidden;
  transition:transform .4s var(--mj-ease),visibility .4s var(--mj-ease);
  overflow-y:auto;padding-bottom:40px
}
.mj-filters.is-open{transform:none;visibility:visible}
.mj-filters__top{
  display:flex;align-items:center;justify-content:space-between;padding:18px 22px;
  border-bottom:1px solid var(--mj-line-soft);position:sticky;top:0;background:#fff;z-index:2
}
.mj-filters__top span{font-size:11px;letter-spacing:.22em;text-transform:uppercase}
.mj-filters__group{padding:22px;border-bottom:1px solid var(--mj-line-soft)}
.mj-filters__group h4{
  font-family:var(--mj-sans);font-size:11px;letter-spacing:.2em;text-transform:uppercase;
  margin:0 0 14px;font-weight:400
}
.mj-filters ul{list-style:none;margin:0;padding:0;font-size:13.5px}
.mj-filters li{margin-bottom:9px}
.mj-filters a{color:var(--mj-ink-soft);display:flex;justify-content:space-between;gap:10px}
.mj-filters a:hover,.mj-filters li.current-cat>a{color:var(--mj-ink)}
.mj-filters .count{color:var(--mj-muted);font-size:12px}
/* Shown when every price band in this collection would match nothing. */
.mj-filters__none span{color:var(--mj-muted);font-size:13px}
.mj-filters__reset{padding:22px}
/*
 * `.mj-filters a` sets justify-content:space-between for the collection and price
 * rows, and it outranks .mj-btn's center — so the label in this full-width button
 * was pinned to the left edge, 35px in on one side and 126px on the other. It reads
 * as a centring bug because that is exactly what it is.
 */
.mj-filters__reset .mj-filters__clear{justify-content:center;text-align:center}

/* ---------- single product ---------- */
.mj-single{padding:clamp(24px,3vw,44px) 0 0}
.mj-single__grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(26px,4vw,72px);align-items:start}
@media(max-width:900px){.mj-single__grid{grid-template-columns:1fr;gap:26px}}

.mj-gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.mj-gallery figure{margin:0;background:var(--mj-cream)}
.mj-gallery img{width:100%;aspect-ratio:3/4;object-fit:cover;cursor:zoom-in}
.mj-gallery figure:first-child{grid-column:1 / -1}
.mj-gallery figure:first-child img{aspect-ratio:4/5}
@media(max-width:900px){
  .mj-gallery{
    display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:6px;
    margin:0 calc(var(--mj-gut) * -1);padding:0 var(--mj-gut);scrollbar-width:none
  }
  .mj-gallery::-webkit-scrollbar{display:none}
  .mj-gallery figure{flex:0 0 84%;scroll-snap-align:center}
  .mj-gallery figure:first-child img,.mj-gallery img{aspect-ratio:3/4}
}
.mj-lightbox{
  position:fixed;inset:0;z-index:200;background:rgba(255,255,255,.97);display:none;
  align-items:center;justify-content:center;padding:30px
}
.mj-lightbox.is-open{display:flex}
.mj-lightbox img{max-width:min(920px,92vw);max-height:88vh;width:auto;object-fit:contain}
.mj-lightbox .mj-x{position:absolute;top:20px;right:24px}

.mj-summary .mj-eyebrow{margin-bottom:8px}
.mj-summary .product_title{
  font-size:clamp(26px,3vw,40px);text-transform:uppercase;letter-spacing:.06em;margin:0 0 12px
}
.mj-summary .price{
  display:block;font-family:var(--mj-sans);font-size:19px;letter-spacing:.05em;color:var(--mj-ink);
  margin:0 0 6px;font-weight:300
}
.mj-summary .price del{color:var(--mj-muted);font-size:16px;margin-right:9px}
.mj-summary .price ins{text-decoration:none;color:var(--mj-sale)}
.mj-tax-note{font-size:12px;color:var(--mj-muted);margin:0 0 20px}
.woocommerce-product-details__short-description{
  color:var(--mj-ink-soft);font-size:14.5px;padding:20px 0;border-top:1px solid var(--mj-line-soft);
  border-bottom:1px solid var(--mj-line-soft);margin:0 0 22px
}
.mj-summary__excerpt p:last-child,.woocommerce-product-details__short-description p:last-child{margin-bottom:0}
.mj-meta-list{list-style:none;margin:0 0 22px;padding:0;font-size:13.5px}
.mj-meta-list li{display:flex;gap:10px;padding:5px 0;color:var(--mj-ink-soft)}
.mj-meta-list strong{
  font-weight:400;min-width:98px;font-size:11px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--mj-muted);padding-top:3px
}

/* woocommerce-layout.css lays the single product out as two floated 48%
   columns. This theme uses its own `.mj-single__grid`, so those widths have
   to be neutralised or the summary collapses to 48% of its grid column —
   which wraps the size pills onto two rows and breaks the buy box.
   WooCommerce's selectors carry 3 classes + 3 elements, so match that. */
.woocommerce div.product div.summary,
.woocommerce #content div.product div.summary,
.woocommerce-page div.product div.summary,
.woocommerce-page #content div.product div.summary,
.woocommerce div.product div.images,
.woocommerce #content div.product div.images,
.woocommerce-page div.product div.images,
.woocommerce-page #content div.product div.images{
  width:auto;float:none;margin-bottom:0
}

/* The same stylesheet lays product listings out as a float grid with a
   clearfix. Both fight the theme's CSS grid: the percentage widths shrink
   each card to about 70px inside its 321px cell, and the ::before clearfix
   becomes a grid item that eats the first cell, so every row starts one
   column late. Attribute selector keeps specificity level with the
   .columns-N rules; this file loads later, so it wins. */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product,
.woocommerce ul.products[class*="columns-"] li.product.first,
.woocommerce ul.products[class*="columns-"] li.product.last{
  width:auto;float:none;clear:none;margin:0;padding:0
}
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after{content:none;display:none}

/* The result count and sort dropdown carry `margin: 0 0 1em` and floats from
   WooCommerce. Inside the toolbar's `align-items:center` flex row it is the
   margin box that gets centred, so those bottom margins lifted each element
   above the shared centre line by half their value — 6px and 8px — which is
   why the toolbar looked out of true. */
.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count,
.woocommerce .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering{margin:0;float:none}

/* variations / size selector */

/* WooCommerce's own stylesheet puts 2em under form.cart; keep the size row,
   the pills and the buy box as one tight block regardless of load order. */
.mj-summary form.cart{margin:0}
.mj-summary form.cart .variations{margin:0 0 16px}
.mj-summary .variations tr:first-child{margin-top:0}
.mj-summary .variations tr:last-child{margin-bottom:0}
.mj-summary .single_variation_wrap{margin:0}
.mj-summary .woocommerce-variation-price{margin:0 0 12px}
.mj-sizeguide-btn{
  background:none;border:0;padding:0;color:var(--mj-ink);font-size:11px;letter-spacing:.14em;
  text-transform:uppercase;border-bottom:1px solid var(--mj-ink);cursor:pointer
}
.mj-sizeguide-btn:hover{background:none;border-width:0 0 1px;color:var(--mj-rose-text);border-color:var(--mj-rose-text)}
.woocommerce div.product form.cart .variations{width:100%;margin-bottom:18px;border:0}
.woocommerce div.product form.cart .variations tr{display:block;margin-bottom:16px}
.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td{display:block;padding:0;border:0;text-align:left}
.woocommerce div.product form.cart .variations label{
  font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--mj-ink-soft);margin-bottom:9px
}
.mj-pills{display:flex;flex-wrap:wrap;gap:8px}
.mj-pills__btn{
  min-width:46px;padding:11px 14px;border:1px solid var(--mj-line-strong);background:#fff;color:var(--mj-ink);
  font-size:12px;letter-spacing:.1em;text-transform:uppercase;line-height:1
}
.mj-pills__btn:hover{background:#fff;border-color:var(--mj-ink);color:var(--mj-ink)}
.mj-pills__btn.is-active{background:var(--mj-ink);border-color:var(--mj-ink);color:#fff}
.mj-pills__btn.is-oos{color:var(--mj-muted);border-color:var(--mj-line);text-decoration:line-through;cursor:not-allowed}
/*
 * The dupatta <select> stays in the DOM — it is the field WooCommerce actually
 * submits — but the pills are what a shopper sees. width:0 was not enough:
 * something downstream (core's variation script) puts an inline width and left
 * on it, and it computed to 1080px starting at x=845, which pushed the document
 * to 1925px against a 1440px viewport. Every variable product page could be
 * scrolled 485px sideways into empty white. max-width/max-height clamp the used
 * size whatever the inline width says, so the element can no longer reach past
 * the viewport.
 */
/*
 * !important earns its place here. WooCommerce ships
 * `.woocommerce div.product form.cart .variations select { min-width:75% }`,
 * which outranks anything a single class can say — and min-width beats
 * max-width, so the select resolved to 1080px starting at x=845 and dragged the
 * document out to 1925px. This class exists solely to take the element out of
 * the visual layout, so overriding the vendor sizing outright is the point.
 */
.mj-native-select{
  position:absolute!important;opacity:0;pointer-events:none;
  width:1px!important;height:1px!important;
  min-width:0!important;max-width:1px!important;min-height:0!important;max-height:1px!important;
  padding:0!important;border:0;margin:0;overflow:hidden;clip-path:inset(50%)
}
.woocommerce div.product form.cart .reset_variations{
  font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--mj-muted);display:inline-block;margin-top:10px
}
.woocommerce-variation-price{margin-bottom:14px;font-size:17px}
.woocommerce-variation-availability{font-size:12.5px;color:var(--mj-muted)}

.mj-buybox{
  display:flex;gap:10px;align-items:stretch;margin:6px 0 14px;flex-wrap:nowrap;
  --mj-buy-h:50px
}
.mj-buybox>*{min-height:var(--mj-buy-h)}

/* quantity stepper */
.mj-buybox .quantity,
.woocommerce div.product form.cart div.quantity{
  display:flex;align-items:stretch;border:1px solid var(--mj-line);
  float:none;margin:0;flex:0 0 auto;background:#fff;overflow:hidden
}
.mj-qty-btn,
.quantity button.mj-qty-btn{
  flex:0 0 34px;width:34px;align-self:stretch;background:none;border:0;color:var(--mj-ink);
  font-size:15px;padding:0;line-height:1;display:flex;align-items:center;justify-content:center
}
.mj-qty-btn:hover,
.quantity button.mj-qty-btn:hover{background:var(--mj-blush);border:0;color:var(--mj-ink)}
.mj-buybox .quantity input.qty,
.woocommerce div.product form.cart div.quantity input.qty{
  width:40px;min-width:0;flex:0 0 40px;border:0;background:transparent;text-align:center;
  padding:0;font-size:14px;line-height:var(--mj-buy-h);height:auto;
  -moz-appearance:textfield;appearance:textfield
}
/* the native number spinners were overlapping the button below */
.mj-buybox .quantity input.qty::-webkit-outer-spin-button,
.mj-buybox .quantity input.qty::-webkit-inner-spin-button,
.woocommerce div.product form.cart div.quantity input.qty::-webkit-outer-spin-button,
.woocommerce div.product form.cart div.quantity input.qty::-webkit-inner-spin-button{
  -webkit-appearance:none;appearance:none;margin:0
}

/* add to bag */
.mj-buybox .single_add_to_cart_button,
.mj-buybox button.single_add_to_cart_button,
.mj-buybox .button,
.mj-buybox button.button,
.woocommerce div.product form.cart .mj-buybox .button{
  flex:1 1 auto;min-width:0;padding:0 22px;font-size:11px;letter-spacing:.18em
}

.mj-wish-btn{
  flex:0 0 var(--mj-buy-h);width:var(--mj-buy-h);border:1px solid var(--mj-line);
  background:#fff;color:var(--mj-ink);display:flex;align-items:center;justify-content:center;padding:0
}
.mj-wish-btn:hover{background:#fff;border-color:var(--mj-ink);color:var(--mj-rose)}
.mj-wish-btn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.4}
.mj-wish-btn.is-active{color:var(--mj-sale)}
.mj-wish-btn.is-active svg{fill:currentColor}
.mj-whatsapp-order{
  display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:15px;
  border:1px solid var(--mj-line);font-size:11.5px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--mj-ink);margin-bottom:22px
}
.mj-whatsapp-order:hover{background:#25d366;border-color:#25d366;color:#fff}
.mj-whatsapp-order svg{width:17px;height:17px;fill:currentColor}
.mj-trust{list-style:none;margin:0 0 22px;padding:18px 0;border-top:1px solid var(--mj-line-soft);border-bottom:1px solid var(--mj-line-soft)}
.mj-trust li{display:flex;gap:11px;align-items:flex-start;font-size:13px;color:var(--mj-ink-soft);padding:5px 0}
.mj-trust svg{width:17px;height:17px;stroke:var(--mj-rose);fill:none;stroke-width:1.3;flex:0 0 17px;margin-top:3px}
.mj-share{display:flex;align-items:center;gap:12px;font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--mj-muted)}
.mj-share a{width:32px;height:32px;border:1px solid var(--mj-line);display:flex;align-items:center;justify-content:center;color:var(--mj-ink)}
.mj-share a:hover{background:var(--mj-ink);border-color:var(--mj-ink);color:#fff}
.mj-share svg{width:14px;height:14px;fill:currentColor}
.mj-stock-note{font-size:12.5px;color:var(--mj-sale);letter-spacing:.06em;margin-bottom:14px}

/* product tabs → accordion */
.mj-ptabs{margin-top:clamp(34px,4vw,54px)}
.woocommerce div.product .woocommerce-tabs .panel{margin:0;padding:0}
.mj-ptabs .mj-acc__body p:last-child{margin-bottom:0}
.mj-ptabs table.shop_attributes{width:100%;border-collapse:collapse;font-size:13.5px}
.mj-ptabs table.shop_attributes th,.mj-ptabs table.shop_attributes td{
  border-bottom:1px solid var(--mj-line-soft);padding:10px 4px;text-align:left;font-weight:400
}
.mj-ptabs table.shop_attributes th{
  width:180px;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--mj-muted)
}
.mj-ptabs table.shop_attributes p{margin:0}

/* size guide modal */
.mj-modal{
  position:fixed;inset:0;z-index:200;background:rgba(28,28,28,.5);display:none;
  align-items:center;justify-content:center;padding:20px
}
.mj-modal.is-open{display:flex}
/*
 * The size guide can be opened from inside the quick view, and both are .mj-modal at
 * the same z-index — so paint order decided which won, and quick view is printed to
 * wp_footer at priority 20 against the guide's 10, putting it later in the DOM. The
 * guide opened *behind* the quick view that launched it. Stated explicitly rather
 * than by reordering the footer hooks, which would only invert the problem.
 */
.mj-modal--quickview{z-index:200}
#mj-sizeguide{z-index:220}
.mj-modal__panel{
  background:#fff;max-width:820px;width:100%;overflow-y:auto;position:relative;padding:34px;
  max-height:88vh;max-height:88dvh
}
.mj-modal__panel h3{text-transform:uppercase;letter-spacing:.09em;margin-bottom:6px}
.mj-modal__panel .mj-x{position:absolute;top:14px;right:14px}
.mj-modal table{width:100%;border-collapse:collapse;font-size:12.5px;margin:18px 0}
.mj-modal th,.mj-modal td{border:1px solid var(--mj-line);padding:9px 8px;text-align:center}
.mj-modal thead th{background:var(--mj-blush);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;font-weight:400}
.mj-modal tbody th{
  text-align:left;background:var(--mj-cream);font-weight:400;font-size:11px;
  letter-spacing:.08em;text-transform:uppercase;white-space:nowrap
}
.mj-modal__note{font-size:12px;color:var(--mj-muted)}

/* upsells / related */
.woocommerce .related,.woocommerce .up-sells,.woocommerce .cross-sells{
  border-top:1px solid var(--mj-line);margin-top:clamp(44px,5vw,72px);padding-top:clamp(38px,4.5vw,64px)
}
.woocommerce .related>h2,.woocommerce .up-sells>h2,.woocommerce .cross-sells>h2{
  text-align:center;text-transform:uppercase;letter-spacing:.09em;
  font-size:clamp(20px,2.4vw,28px);margin-bottom:clamp(22px,3vw,38px)
}

/* ---------- cart drawer ---------- */
.mj-cart-drawer{
  position:fixed;top:0;bottom:0;right:0;width:min(410px,92vw);background:#fff;z-index:130;
  transform:translateX(100%);visibility:hidden;
  transition:transform .4s var(--mj-ease),visibility .4s var(--mj-ease);
  display:flex;flex-direction:column
}
.mj-cart-drawer.is-open{transform:none;visibility:visible}
/*
 * Waiting state. The drawer opens on the click and the contents arrive a beat later,
 * so for that beat the panel shows what it had before — an empty bag on the first add.
 * Dimming it and running a bar across the top says "fetching" rather than "empty", and
 * costs nothing when the answer is quick because the bar starts transparent.
 */
.mj-cart-drawer.is-loading .mj-cart-drawer__inner{opacity:.45;transition:opacity .2s linear}
.mj-cart-drawer.is-loading .mj-cart-drawer__inner *{pointer-events:none}
.mj-cart-drawer.is-loading .mj-cart-drawer__top::after{
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;
  background:linear-gradient(90deg,transparent,var(--mj-ink),transparent);
  animation:mj-drawer-wait 1.1s ease-in-out infinite
}
.mj-cart-drawer__top{position:relative}
@keyframes mj-drawer-wait{
  0%{transform:translateX(-100%)}
  100%{transform:translateX(100%)}
}
@media (prefers-reduced-motion:reduce){
  .mj-cart-drawer.is-loading .mj-cart-drawer__top::after{animation:none;opacity:.35}
}
.mj-cart-drawer__top{
  display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--mj-line-soft)
}
.mj-cart-drawer__top span{font-size:11px;letter-spacing:.22em;text-transform:uppercase}
.mj-cart-drawer__inner{flex:1 1 auto;display:flex;flex-direction:column;min-height:0}
.mj-cart-drawer__body{
  flex:1 1 auto;overflow-y:auto;overflow-x:hidden;min-height:0;
  padding:20px 24px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain
}
.mj-cart-drawer__foot{
  flex:0 0 auto;border-top:1px solid var(--mj-line-soft);padding:20px 24px;background:#fff
}
.mj-cart-drawer__foot .mj-row{
  display:flex;justify-content:space-between;font-size:12.5px;letter-spacing:.1em;
  text-transform:uppercase;margin-bottom:6px
}
.mj-cart-drawer__foot .mj-row--total{font-size:15px;color:var(--mj-ink);margin:12px 0 16px}
.mj-cart-drawer__foot .mj-note{font-size:11.5px;color:var(--mj-muted);text-align:center;margin:12px 0 0}
.mj-mini-item{display:flex;gap:14px;padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--mj-line-soft)}
.mj-mini-item img{width:78px;flex:0 0 78px;aspect-ratio:3/4;object-fit:cover}
.mj-mini-item__name{font-size:12px;letter-spacing:.11em;text-transform:uppercase;margin:0 0 5px;line-height:1.5}
.mj-mini-item__meta{font-size:12px;color:var(--mj-muted);margin:0 0 7px}
/* One measurement per line in the drawer. A two-column grid puts each
   label/value pair on its own row, and outranks the compact inline
   treatment used for the cart table further down this file. */
.mj-mini-item__meta dl.variation{
  display:grid;grid-template-columns:auto 1fr;column-gap:6px;row-gap:1px;margin:0;font-size:12px
}
.mj-mini-item__meta dl.variation dt,
.mj-mini-item__meta dl.variation dd{
  display:block;float:none;margin:0;padding:0;font-size:12px;line-height:1.6
}
.mj-mini-item__meta dl.variation dt{font-weight:400}
.mj-mini-item__meta dl.variation dd p{margin:0}
.mj-mini-item__price{font-size:13px}
/* `.remove` is kept on the markup for WooCommerce compatibility, so this
   rule has to outrank `.woocommerce table.shop_table a.remove`. */
.mj-mini-item__remove,
.woocommerce a.mj-mini-item__remove.remove{
  background:none;border:0;padding:0;color:var(--mj-muted);font-size:10.5px;letter-spacing:.12em;
  text-transform:uppercase;border-bottom:1px solid var(--mj-line);margin-top:8px;display:inline-block;
  width:auto;height:auto;line-height:1.5;border-radius:0;text-align:left
}
.mj-mini-item__remove:hover,
.woocommerce a.mj-mini-item__remove.remove:hover{background:none;border-width:0 0 1px;color:var(--mj-sale);border-color:var(--mj-sale)}
.mj-cart-empty{text-align:center;padding:50px 10px;color:var(--mj-muted)}
.mj-cart-empty svg{width:38px;height:38px;stroke:var(--mj-line);fill:none;stroke-width:1.2;margin:0 auto 16px}

/* ---------- cart page ---------- */
.woocommerce table.shop_table{border:0;border-collapse:collapse;width:100%;font-size:14px}
.woocommerce table.shop_table th{
  border:0;border-bottom:1px solid var(--mj-ink);padding:0 12px 14px;
  font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-weight:400;text-align:left
}
.woocommerce table.shop_table td{border:0;border-bottom:1px solid var(--mj-line-soft);padding:20px 12px;vertical-align:middle}
.woocommerce table.cart img{width:86px}
.woocommerce table.shop_table a.remove{
  color:var(--mj-muted)!important;font-size:20px;font-weight:300;width:24px;height:24px;line-height:22px
}
.woocommerce table.shop_table a.remove:hover{color:var(--mj-sale)!important;background:none}
.woocommerce .product-name a{font-size:12.5px;letter-spacing:.11em;text-transform:uppercase}
.woocommerce .variation{font-size:12px;color:var(--mj-muted)}
.woocommerce .variation dt,.woocommerce .variation dd{display:inline;margin:0;font-size:12px}
.woocommerce .variation p{margin:0}
.woocommerce table.cart td.actions{padding:22px 0}
.woocommerce .coupon{display:flex;gap:8px;align-items:stretch}
.woocommerce .coupon input[type=text]{max-width:230px}
.woocommerce .cart-collaterals,.woocommerce-page .cart-collaterals{width:100%;float:none}
.woocommerce .cart_totals{
  width:100%!important;float:none!important;background:var(--mj-cream);border:1px solid var(--mj-line);padding:26px
}
.woocommerce .cart_totals h2{
  font-size:17px;text-transform:uppercase;letter-spacing:.14em;font-family:var(--mj-sans);margin-bottom:18px
}
.woocommerce .cart_totals table th{border-bottom:0;padding:12px 0;width:45%}
.woocommerce .cart_totals table td{border-bottom:1px solid var(--mj-line);padding:12px 0;text-align:right}
.woocommerce .cart_totals .order-total td,.woocommerce .cart_totals .order-total th{border-bottom:0;font-size:16px;padding-top:16px}
.woocommerce .wc-proceed-to-checkout{padding:14px 0 0}
.woocommerce .wc-proceed-to-checkout a.checkout-button{width:100%}
.woocommerce .return-to-shop{text-align:center}

/* ---------- checkout ---------- */
/* 1080, down from 1180. The page was two wide columns of mostly air; the reference
   layout is a narrow form beside a narrow summary. */
.woocommerce-checkout .woocommerce{max-width:1080px;margin:0 auto}

/*
 * Two real columns, not a grid of core's flat siblings.
 *
 * The old version placed #customer_details, #order_review_heading and #order_review
 * into cells of one grid, with the details column spanning both rows. A grid item
 * spanning two auto rows contributes its height to both of them, so a tall billing
 * column had its spare height shared out between row 1 and row 2 — row 1 grew far
 * past the heading sitting in it and the order box dropped hundreds of pixels below
 * its own title. A short billing column left no spare height to distribute and the
 * two lined up exactly. Identical CSS, two outcomes, decided by how many fields the
 * page happened to render: the reported "sometimes level, sometimes not".
 *
 * woocommerce/checkout/form-checkout.php now wraps each column in its own element, so
 * the heading and the box are siblings inside .mj-checkout__aside and the top of that
 * column cannot be moved by anything in the other one.
 */
.woocommerce form.checkout.mj-checkout{display:flex;align-items:flex-start;gap:clamp(24px,3.4vw,52px)}
/* min-width:0 on both: a flex item's floor is its content's min-content width, and
   #customer_details measures ~440px, which is wider than a 390px phone. */
.mj-checkout__main{flex:1 1 auto;min-width:0}
/* Wider than it was. At 310–380 a name like "Floral Printed Georgette Co-ord" broke
   across three lines beside its thumbnail while the form column had room to spare —
   the summary is the part being read carefully, so it gets the width it needs. */
.mj-checkout__aside{flex:0 0 clamp(360px,38%,440px);min-width:0}
/* The summary is short and the form is long, so the summary can ride down the page
   with the shopper instead of leaving a column of empty space beside the fields. */
@media(min-width:901px){
  .mj-checkout__aside{position:sticky;top:24px}
}
@media(max-width:900px){
  .woocommerce form.checkout.mj-checkout{display:block}
  .mj-checkout__aside{margin-top:30px}
}

/* WooCommerce floats billing and shipping into two 47% columns inside the left
   column, leaving every field about 300px wide. The page already has two columns,
   so stack these and let the fields use the full width. */
/* WooCommerce 10.x dropped the .col2-set wrapper — .col-1 and .col-2 are now
   direct children of #customer_details, so a selector expecting the wrapper
   matches nothing. Both forms are covered. */
.woocommerce-checkout #customer_details .col2-set{display:block}
.woocommerce-checkout #customer_details > .col-1,
.woocommerce-checkout #customer_details > .col-2,
.woocommerce-checkout #customer_details .col2-set .col-1,
.woocommerce-checkout #customer_details .col2-set .col-2{width:100%;float:none;margin:0 0 22px}
.woocommerce-checkout #customer_details > .col-2:last-child{margin-bottom:0}
/* An empty .col-2 still contributed its margin, so on the common case — no separate
   shipping address — the form ended with 22px of nothing before the payment box. */
.woocommerce-checkout #customer_details > .col-2:empty{margin:0}

/* Checkout fields were falling back to WooCommerce's own control styling —
   4px radius, 7px padding and a rgba(32,7,7,.8) border that belongs to no part
   of this palette. The theme's base `input[type=text]` rule is a single element
   selector, so it never stood a chance against `.woocommerce form .form-row
   input.input-text`. Match that specificity. */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-checkout form .form-row input.input-text,
.woocommerce-checkout form .form-row textarea{
  width:100%;height:auto;border:1px solid var(--mj-line-strong);border-radius:0;
  padding:11px 14px;background:#fff;color:var(--mj-ink);
  font-family:var(--mj-sans);font-size:14px;font-weight:300;line-height:1.5
}
/* 120px was four visible lines for a field most people leave empty. */
.woocommerce form .form-row textarea,
.woocommerce-checkout form .form-row textarea{min-height:76px;line-height:1.6}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus{outline:0;border-color:var(--mj-rose-text)}
.woocommerce form.checkout h3,#order_review_heading{
  font-family:var(--mj-sans);font-size:12px;letter-spacing:.2em;text-transform:uppercase;
  padding-bottom:11px;border-bottom:1px solid var(--mj-ink);margin:0 0 18px
}
/* WooCommerce wraps the "Ship to a different address?" checkbox in an h3, so the
   section-heading rule above drew a rule under it that stopped mid-label. It is a
   control, not a heading. */
.woocommerce form.checkout h3#ship-to-different-address{
  padding-bottom:0;border-bottom:0;margin-bottom:18px;letter-spacing:.14em
}
.woocommerce form .form-row{padding:0;margin:0 0 12px}
.woocommerce form .form-row label{line-height:1.4}
.woocommerce form .form-row-first,.woocommerce form .form-row-last{width:100%;float:none}
@media(min-width:640px){
  .woocommerce form .form-row-first,.woocommerce form .form-row-last{width:48.5%;float:left}
  .woocommerce form .form-row-last{float:right}
}
.woocommerce form .form-row .required{color:var(--mj-sale);text-decoration:none}
/* Postcode and province are optional but say nothing about it on screen: the label
   carries neither a required asterisk nor the bracketed "(optional)". Hidden rather
   than deleted so a screen reader still announces it, and done in CSS rather than PHP
   because wc-address-i18n.js rewrites these labels on load and on every country change
   — a server-side edit is overwritten a moment later. */
#billing_postcode_field label .optional,
#shipping_postcode_field label .optional,
#billing_state_field label .optional,
#shipping_state_field label .optional{
  position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0
}

/* The province control is a select, and a select was 8px taller than the text inputs
   either side of it — the three sit on one row, so the difference was plain. The height
   rule above only reaches input.input-text and textarea; selects fall to WooCommerce's
   own control styling and to select2 when it upgrades the field. All three are pinned
   to the same box here. */
.woocommerce-checkout #customer_details .form-row select,
.woocommerce-checkout #customer_details .form-row .select2-container .select2-selection--single{
  height:45px;min-height:45px;line-height:1.5;padding:11px 14px;
  border:1px solid var(--mj-line-strong);border-radius:0;background-color:#fff;
  font-family:var(--mj-sans);font-size:14px;font-weight:300;color:var(--mj-ink)
}
.woocommerce-checkout #customer_details .form-row .select2-container .select2-selection--single .select2-selection__rendered{
  line-height:1.5;padding:0;color:var(--mj-ink)
}
.woocommerce-checkout #customer_details .form-row .select2-container .select2-selection--single .select2-selection__arrow{
  height:43px;right:8px
}

/*
 * City / province / postcode on one line from 720px up. Three short fields stacked
 * full width was most of the form's height, and it is the block that most resembles
 * the reference layout when it sits as a row.
 */
@media(min-width:720px){
  .woocommerce-checkout #customer_details .form-row#billing_city_field,
  .woocommerce-checkout #customer_details .form-row#billing_state_field,
  .woocommerce-checkout #customer_details .form-row#billing_postcode_field,
  .woocommerce-checkout #customer_details .form-row#shipping_city_field,
  .woocommerce-checkout #customer_details .form-row#shipping_state_field,
  .woocommerce-checkout #customer_details .form-row#shipping_postcode_field{
    width:31.8%;float:left;margin-right:2.3%;clear:none
  }
  .woocommerce-checkout #customer_details .form-row#billing_postcode_field,
  .woocommerce-checkout #customer_details .form-row#shipping_postcode_field{margin-right:0}
}
/* The rows above are floated — and so are form-row-first/last — so without this the
   payment box and the notes field ride up alongside the last floated row. */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper::after,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper::after,
.woocommerce-checkout .woocommerce-additional-fields__field-wrapper::after,
.woocommerce-checkout #customer_details > .col-1::after,
.woocommerce-checkout #customer_details > .col-2::after{content:"";display:table;clear:both}

#order_review{background:var(--mj-cream);border:1px solid var(--mj-line);padding:20px}

/* ---------- order summary: lines, coupon, totals ---------- */
/* Scoped from #order_review rather than the table class alone. The policy pages style
   prose tables with `.mj-entry table td`, which the checkout also matches — two classes
   and a type beats one class and a type, so a 1px rule was being painted under every
   line of the summary. An id settles it without reaching for !important. */
.woocommerce-checkout-review-order-table{width:100%;border-collapse:collapse;margin:0}
#order_review .woocommerce-checkout-review-order-table td,
#order_review .woocommerce-checkout-review-order-table th{border:0;padding:0}
#order_review .woocommerce-checkout-review-order-table tbody .cart_item td{padding:0 0 14px;vertical-align:top}
#order_review .woocommerce-checkout-review-order-table tbody .cart_item td.product-total{
  text-align:right;white-space:nowrap;padding-left:10px;font-size:13.5px
}
.mj-review-item{display:flex;gap:12px;align-items:flex-start}
.mj-review-item__media{position:relative;flex:0 0 56px;width:56px;line-height:0}
/* margin:0 matters. The theme gives images in prose a 1.6em vertical margin, and it
   reaches this thumbnail too — it sat 22px below its own quantity badge, which read as
   the badge belonging to the line above. */
#order_review .mj-review-item__media img{
  width:56px;height:auto;display:block;margin:0;border:1px solid var(--mj-line)
}
/* The quantity as a corner badge rather than "× 2" in the title. translate by half
   its own size so it straddles the corner regardless of the number's width. */
.mj-review-item__qty{
  position:absolute;top:0;right:0;transform:translate(38%,-38%);
  min-width:19px;height:19px;padding:0 5px;border-radius:19px;
  background:var(--mj-ink);color:#fff;font-size:11px;line-height:19px;
  text-align:center;font-family:var(--mj-sans)
}
.mj-review-item__body{flex:1 1 auto;min-width:0}
.mj-review-item__name{display:block;font-size:13.5px;line-height:1.35}
/* The quantity is on the badge; core's "× 2" markup is kept in the DOM so anything
   filtering woocommerce_checkout_cart_item_quantity still runs, but not shown. */
.mj-review-item__qty-fallback{display:none}
/* A two-column grid, not inline dt/dd. Inline let a long value wrap up beside the
   *previous* label: "Size: M 28 / Shirt length:" for a piece that is actually size M
   with a 28" shirt. dt and dd alternate, so a grid keeps each pair on its own row
   however long the value is. */
.mj-review-item__body dl.variation{
  display:grid;grid-template-columns:auto minmax(0,1fr);gap:1px 5px;
  margin:4px 0 0;font-size:11.5px;color:var(--mj-muted)
}
.mj-review-item__body dl.variation dt,
.mj-review-item__body dl.variation dd{margin:0;font-weight:400;min-width:0}
.mj-review-item__body dl.variation dd p{display:inline;margin:0}

#order_review .mj-coupon-row td{padding:4px 0 14px}
.mj-coupon{display:flex;gap:8px}
.mj-coupon input[type=text]{
  flex:1 1 auto;min-width:0;border:1px solid var(--mj-line-strong);border-radius:0;
  padding:10px 12px;background:#fff;font-family:var(--mj-sans);font-size:13px;font-weight:300
}
.mj-coupon input[type=text]:focus{outline:0;border-color:var(--mj-rose-text)}
.mj-coupon__btn{
  flex:0 0 auto;border:1px solid var(--mj-ink);background:#fff;color:var(--mj-ink);
  padding:0 16px;font-family:var(--mj-sans);font-size:11px;letter-spacing:.14em;
  text-transform:uppercase;cursor:pointer
}
.mj-coupon__btn:hover{background:var(--mj-ink);color:#fff}
.mj-coupon__btn[disabled]{opacity:.5;cursor:default}
.mj-coupon__msg{font-size:12px;margin-top:7px;display:none}
.mj-coupon__msg.is-shown{display:block}
.mj-coupon__msg.is-error{color:var(--mj-sale)}
.mj-coupon__remove{
  border:0;background:none;padding:0;margin-left:6px;cursor:pointer;
  font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--mj-muted);
  text-decoration:underline
}
.mj-coupon__remove:hover{color:var(--mj-ink)}

/* The totals are sentences of money, not column headings. Three separate rules were
   dressing them up as headings — `label` (element), `.mj-entry th` for prose tables and
   `.woocommerce table.shop_table th` for the cart — so "Subtotal" arrived at 11px,
   uppercase, letter-spaced and on a cream block, and a rate name became the three-line
   "KARACHI DELIVERY: RS.300". Everything they set is reset here rather than only the
   size, because each of those rules contributes a different property. */
#order_review .woocommerce-checkout-review-order-table tfoot th,
#order_review .woocommerce-checkout-review-order-table tfoot td,
#order_review #shipping_method,
#order_review #shipping_method label{
  font-size:13.5px;letter-spacing:normal;text-transform:none;font-weight:400;background:transparent
}
#order_review .woocommerce-checkout-review-order-table tfoot th,
#order_review .woocommerce-checkout-review-order-table tfoot td{
  padding:11px 0;border-top:1px solid var(--mj-line)
}
/* Shrink-to-fit on a nowrap cell: auto table layout was handing the price column 150px
   of a 310px box, leaving 86px for the name — enough to break "Co-ord" across lines. */
#order_review .woocommerce-checkout-review-order-table tbody .cart_item td.product-total{width:1%}
#order_review .woocommerce-checkout-review-order-table tfoot th{text-align:left;color:var(--mj-ink-soft)}
#order_review .woocommerce-checkout-review-order-table tfoot td{text-align:right}
#order_review .woocommerce-checkout-review-order-table tfoot .order-total th,
#order_review .woocommerce-checkout-review-order-table tfoot .order-total td{
  font-size:15px;padding-top:13px;color:var(--mj-ink)
}
/*
 * The shipping row gets the width it needs. "Shipping" is one short word, but the
 * label column was taking an equal share and squeezing "Pakistan-wide delivery: Rs.600"
 * plus its weight note into a third of the box — three wrapped lines against a
 * one-line Subtotal above it. The label shrinks to its content and the rate takes the
 * rest, reading right like the money it sits between.
 */
#order_review .woocommerce-checkout-review-order-table tfoot .shipping th{
  width:1%;white-space:nowrap;padding-right:14px;vertical-align:top
}
#order_review .woocommerce-checkout-review-order-table tfoot .shipping td{
  text-align:right;line-height:1.5
}
#order_review .woocommerce-checkout-review-order-table tfoot .shipping .mj-ship-note{
  margin:3px 0 0;text-align:right
}
.woocommerce-checkout-review-order-table #shipping_method{list-style:none;margin:0;padding:0}
.woocommerce-checkout-review-order-table #shipping_method li{margin:0 0 6px;font-size:13px}
.woocommerce-checkout-review-order-table #shipping_method li:last-child{margin-bottom:0}
.woocommerce-checkout-review-order-table #shipping_method label{
  display:inline;font-size:13px;margin:0;color:var(--mj-ink)
}
/* "May vary based on weight." under the rate it applies to. */
.mj-ship-note{display:block;font-size:11.5px;color:var(--mj-muted);margin:2px 0 0 22px;line-height:1.4}
.woocommerce-shipping-destination{font-size:11.5px;color:var(--mj-muted);margin:6px 0 0}

.woocommerce-checkout #payment{background:transparent;border-radius:0}
.woocommerce-checkout #payment ul.payment_methods{border:0;padding:0;margin:0 0 8px}
.woocommerce-checkout #payment ul.payment_methods li{
  border:1px solid var(--mj-line);background:#fff;padding:13px 15px;margin-bottom:8px;list-style:none
}
.woocommerce-checkout #payment ul.payment_methods li label{
  display:inline;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--mj-ink);margin:0
}
.woocommerce-checkout #payment div.payment_box{
  background:var(--mj-blush);font-size:12.5px;margin:12px 0 0;padding:14px;color:var(--mj-ink-soft)
}
/* The box opens with a heading rather than straight into a table of numbers. */
.woocommerce-checkout #payment div.payment_box .mj-pay-heading{
  font-family:var(--mj-sans);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--mj-ink);margin:0 0 7px
}
.woocommerce-checkout #payment div.payment_box .mj-pay-again{
  margin:10px 0 0;font-size:11.5px;color:var(--mj-muted)
}
/* Transfer terms: under the blush box, on the white panel that holds it. The tinted
   block answers "where do I send it"; this answers "by when". */
.woocommerce-checkout #payment .mj-pay-terms{
  font-size:12px;line-height:1.6;color:var(--mj-muted);margin:12px 0 0
}
.woocommerce-checkout #payment .mj-pay-terms p{margin:0}
.woocommerce-checkout #payment .mj-pay-terms p+p{margin-top:8px}

/* Order-received: the method name shares the heading line with the section title.
   Sitting next to it, not thrown to the far edge — space-between put "Bank Transfer"
   hard against the right margin, reading as a separate thing that had drifted rather
   than as part of the heading. */
.woocommerce-order .mj-pay-head{
  display:flex;flex-wrap:wrap;align-items:baseline;justify-content:flex-start;gap:6px 10px;
  font-family:var(--mj-sans);font-size:12px;letter-spacing:.2em;text-transform:uppercase;
  margin:30px 0 0
}
.woocommerce-order .mj-pay-head__method{
  letter-spacing:.12em;color:var(--mj-muted);font-size:11px
}
/* A separator, so the two read as one line rather than two runs of caps. */
.woocommerce-order .mj-pay-head__method::before{content:"— ";margin-right:2px}

/* ---------- order details table (confirmation and account) ---------- */
/* The same line treatment as the checkout summary: thumbnail, quantity on the corner,
   measurements underneath. This is the same list of pieces read after the order.
   Deliberately not scoped to .woocommerce-order: that wrapper only exists on the
   confirmation page, and the identical table is also rendered under My Account →
   Orders. Scoped there, the account view would fall back to the theme's prose image
   margin and drop the thumbnail below its own quantity badge. */
.woocommerce-table--order-details .mj-review-item{gap:14px}
.woocommerce-table--order-details .mj-review-item__media{
  flex:0 0 64px;width:64px
}
.woocommerce-table--order-details .mj-review-item__media img{
  width:64px;height:auto;display:block;margin:0;border:1px solid var(--mj-line)
}
/* The badge carries the quantity, so core's "× 2" beside the name is redundant —
   but only when there is a thumbnail to carry it, and never on a refunded line where
   the markup shows the before and after. */
.woocommerce-table--order-details .mj-review-item__media + .mj-review-item__body .product-quantity{display:none}
.woocommerce-table--order-details .mj-review-item__body .product-quantity:has(del){display:inline}
.woocommerce-table--order-details .mj-review-item__body{padding-top:2px}
.woocommerce-table--order-details .wc-item-meta{
  list-style:none;margin:5px 0 0;padding:0;font-size:12px;color:var(--mj-muted)
}
.woocommerce-table--order-details .wc-item-meta li{margin:0 0 2px}
.woocommerce-table--order-details .wc-item-meta strong{
  font-weight:400;margin-right:4px
}
.woocommerce-table--order-details .wc-item-meta p{display:inline;margin:0}

/*
 * The table itself. It was inheriting three different table styles at once — the cart's
 * heavy `shop_table` rules, the policy pages' prose-table rules and the base `th`
 * treatment — which put a cream block behind every label that stopped halfway across
 * the row, gave "Subtotal:" a 429px column, and drew a black rule under the header. It
 * is restyled here as what it is: the same summary as the checkout order box, read
 * after the order rather than before it.
 */
/* Prefixed with the section class on purpose. `.woocommerce table.shop_table th` —
   the cart's own styling, which this table also matches — is two classes and a type;
   an unprefixed `.woocommerce-table--order-details tfoot th` is one class and two
   types and loses, which is why the labels stayed uppercase and the label cell kept
   the cart's padding, leaving its underline on a different line from the value's. */
.woocommerce-order-details .woocommerce-table--order-details{
  width:100%;border-collapse:collapse;margin:0 0 34px;font-size:14px
}
.woocommerce-order-details .woocommerce-table--order-details thead th{
  background:transparent;border:0;border-bottom:1px solid var(--mj-line);
  padding:0 0 10px;font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;
  font-weight:400;color:var(--mj-muted);text-align:left
}
.woocommerce-order-details .woocommerce-table--order-details thead th.product-total{text-align:right}
.woocommerce-order-details .woocommerce-table--order-details tbody td{
  background:transparent;border:0;border-bottom:1px solid var(--mj-line-soft);
  padding:16px 0;vertical-align:top
}
.woocommerce-order-details .woocommerce-table--order-details tbody td.product-total,
.woocommerce-order-details .woocommerce-table--order-details tfoot td{text-align:right}
/* Shrink-to-fit on the money column so the name column keeps the rest. */
.woocommerce-order-details .woocommerce-table--order-details tbody td.product-total{white-space:nowrap;width:1%;padding-left:18px}
.woocommerce-order-details .woocommerce-table--order-details tfoot th,
.woocommerce-order-details .woocommerce-table--order-details tfoot td{
  background:transparent;border:0;border-bottom:1px solid var(--mj-line-soft);
  padding:12px 0;font-size:13.5px;font-weight:400;letter-spacing:normal;text-transform:none
}
.woocommerce-order-details .woocommerce-table--order-details tfoot th{
  text-align:left;color:var(--mj-ink-soft);width:1%;white-space:nowrap;padding-right:20px
}
/* The row classes come from the theme's order-details.php override, so this follows the
   total wherever it lands rather than assuming it is the third row. */
.woocommerce-order-details .woocommerce-table--order-details tfoot .order_total th,
.woocommerce-order-details .woocommerce-table--order-details tfoot .order_total td{
  font-size:15px;color:var(--mj-ink);border-top:1px solid var(--mj-line);padding-top:14px
}
.woocommerce-order-details .woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-order-details .woocommerce-table--order-details tfoot tr:last-child td{border-bottom:0}
/* "Rs.600 via Pakistan-wide delivery" — the method reads as a footnote to the amount. */
.woocommerce-order-details .woocommerce-table--order-details tfoot .shipping td small,
.woocommerce-order-details .woocommerce-table--order-details tfoot .shipping td .woocommerce-Price-amount+*{
  color:var(--mj-muted);font-size:11.5px
}

/*
 * Billing / shipping address blocks. WooCommerce gives the phone paragraph an 18px
 * bottom margin and the email none, so the two sat in different worlds with a gap
 * between them that read as a missing line.
 */
.woocommerce-customer-details address{font-style:normal;line-height:1.7}
.woocommerce-customer-details--phone,
.woocommerce-customer-details--email{margin:0;line-height:1.7}
.woocommerce-customer-details--phone{margin-top:10px}
.woocommerce-checkout #payment div.payment_box::before{display:none}
.woocommerce-checkout #payment div.payment_box p:last-child{margin-bottom:0}
.woocommerce-checkout #payment div.form-row{padding:16px 0 0}
.woocommerce #payment #place_order{width:100%}
.mj-pay-table{width:100%;font-size:13px;margin:10px 0 0}
.mj-pay-table th{
  text-align:left;font-weight:400;font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--mj-muted);padding:5px 10px 5px 0;white-space:nowrap;border:0
}
.mj-pay-table td{padding:5px 0;border:0}
/* The IBAN is a 24-character string with nothing to break on, so the value column
   had a min-content width the phone could not honour and the whole checkout
   scrolled sideways. Let the account number and IBAN wrap mid-string, and stack
   label over value once the two columns no longer fit side by side. */
.mj-pay-table td{overflow-wrap:anywhere;word-break:break-word}
@media(max-width:420px){
  .mj-pay-table,.mj-pay-table tbody,.mj-pay-table tr,
  .mj-pay-table th,.mj-pay-table td{display:block;width:100%}
  .mj-pay-table th{padding:8px 0 1px}
  .mj-pay-table tr+tr th{border-top:1px solid rgba(28,28,28,.08)}
}
.mj-proof{margin-top:14px}
/* The receipt panel is gone once a receipt is in; only the notice is left, so it needs
   the spacing the panel used to provide. */
.mj-proof-notice{margin-top:24px}
.mj-proof-notice .woocommerce-message{margin-bottom:0}
/* `.mj-entry th` paints a cream cell so prose tables on the policy pages read
   as tables. Checkout renders inside .mj-entry too, so the bank details table
   picked up a pale cream block sitting on the blush payment panel. */
.woocommerce-checkout #payment .payment_box table th,
.mj-pay-table th{background:transparent}
/* --mj-muted is 4.61:1 on white but only 3.94:1 on blush, and the blush step-up
   is scoped to .mj-section--blush, which the payment panel is not. */
.woocommerce-checkout #payment div.payment_box{--mj-muted:#5f5f5f}
.mj-pay-table td{color:var(--mj-ink)}

/*
 * Nothing needed here any more. This used to be `row-gap:24px` on the checkout grid,
 * trying to talk the order box up level with the first billing field — a gap value
 * cannot fix an alignment that depends on how tall the other column is, which is why
 * it held on some renders and not others. The two-column markup makes both headings
 * children of their own column, so they start at the same y by construction.
 */

.mj-proof input[type=file]{font-size:12.5px;padding:10px;border:1px dashed var(--mj-line);background:#fff;width:100%}

/* ---------- order received / account ---------- */
.woocommerce .woocommerce-order,.woocommerce-account .woocommerce{max-width:980px;margin:0 auto}
.woocommerce-order-received .woocommerce-thankyou-order-received{
  font-family:var(--mj-serif);font-size:clamp(22px,3vw,32px);text-align:center;
  background:var(--mj-blush);padding:26px;margin-bottom:32px
}
.woocommerce ul.order_details{
  list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:18px;margin:0 0 34px;text-align:center
}
/*
 * WooCommerce puts a float clearfix on this list — ::before and ::after with
 * content:" " and display:table. On a flex or grid container those are not decoration,
 * they are two extra *items*: the empty ::before took cell one, so the four boxes each
 * shifted a column right and the fifth wrapped to a row of its own. It read as a set of
 * boxes pushed to the right with an orphan underneath, which is exactly what it was.
 * The clearfix has nothing to clear here — nothing inside floats.
 */
.woocommerce ul.order_details::before,
.woocommerce ul.order_details::after{display:none}
/*
 * The payment method is not a fact about the order in the way the other four are — it
 * is the heading for the instructions that follow, and it is printed there instead
 * (see MJP_Gateway::thankyou_page). Left here it was a fifth box on a row of four.
 */
.woocommerce ul.order_details li.method{display:none}
.woocommerce ul.order_details li{
  border:1px solid var(--mj-line);padding:16px;font-size:14px;letter-spacing:0;text-transform:none;margin:0;
  /* a long email ran straight over the neighbouring Total cell */
  min-width:0;overflow-wrap:anywhere;word-break:break-word
}
.woocommerce ul.order_details li strong{display:block;margin-top:6px;font-weight:400}
.woocommerce-account .woocommerce-MyAccount-navigation{width:26%}
.woocommerce-account .woocommerce-MyAccount-content{width:70%}
@media(max-width:768px){
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content{width:100%;float:none}
}
.woocommerce-MyAccount-navigation ul{list-style:none;padding:0;margin:0;border-top:1px solid var(--mj-line)}
.woocommerce-MyAccount-navigation li{border-bottom:1px solid var(--mj-line)}
.woocommerce-MyAccount-navigation a{
  display:block;padding:14px 4px;font-size:11.5px;letter-spacing:.16em;text-transform:uppercase
}
.woocommerce-MyAccount-navigation li.is-active a{color:var(--mj-rose-text)}

/* ---------- account: orders table ---------- */
/*
 * The order number sits in a <th>, not a <td> — WooCommerce marks it up as the row's
 * header — so it was picking up the *column heading* styling: a cream fill, a heavy
 * ink underline and 11px uppercase with no top padding. Down five rows that read as a
 * cream band running through the table with black rules stopping halfway across, and
 * the number itself sitting higher than the rest of its own row. It is a cell like the
 * others here, with the number carrying the weight instead of the box.
 *
 * `.shop_table` is in each selector to win the cascade: WooCommerce styles these with
 * `.woocommerce table.shop_table th` — two classes and two types — and my first pass
 * used two classes and one type, so the cream went but the cramped padding, the 11px
 * uppercase and the black stub of a border all stayed. Adding the table's own class
 * makes it three classes, which beats it outright.
 */
.woocommerce-account .woocommerce-orders-table.shop_table th,
.woocommerce-account .woocommerce-orders-table.shop_table td{
  background:transparent;border:0;border-bottom:1px solid var(--mj-line-soft);
  padding:14px 12px;vertical-align:middle;text-align:left;
  font-size:14px;font-weight:300;letter-spacing:normal;text-transform:none;color:var(--mj-ink-soft)
}
/* The column headings stay headings — smaller, quieter, one firm rule under the row. */
.woocommerce-account .woocommerce-orders-table.shop_table thead th{
  padding:0 12px 11px;font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--mj-muted);border-bottom:1px solid var(--mj-line)
}
.woocommerce-account .woocommerce-orders-table tbody th.woocommerce-orders-table__cell-order-number,
.woocommerce-account .woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-number{
  color:var(--mj-ink);font-weight:400
}
/* First and last cells sit flush with the panel, so the table lines up with the
   heading and the paragraph above it. */
.woocommerce-account .woocommerce-orders-table.shop_table th:first-child,
.woocommerce-account .woocommerce-orders-table.shop_table td:first-child{padding-left:0}
.woocommerce-account .woocommerce-orders-table.shop_table th:last-child,
.woocommerce-account .woocommerce-orders-table.shop_table td:last-child{padding-right:0;text-align:right}
/* A table action, not a call to action: five filled black blocks down the right-hand
   side shouted louder than the orders they belonged to. */
.woocommerce-account .woocommerce-orders-table a.button{
  background:transparent;color:var(--mj-ink);border:1px solid var(--mj-line-strong);
  padding:9px 20px;font-size:10.5px;letter-spacing:.16em
}
.woocommerce-account .woocommerce-orders-table a.button:hover{
  background:var(--mj-ink);border-color:var(--mj-ink);color:#fff
}
/* WooCommerce stacks this table on small screens, labelling each cell from
   data-title. The label needs to read as a label once the columns are gone. */
@media(max-width:768px){
  .woocommerce-account .woocommerce-orders-table tbody tr{
    display:block;border-bottom:1px solid var(--mj-line);padding:6px 0 14px;margin:0
  }
  .woocommerce-account .woocommerce-orders-table tbody tr:last-child{border-bottom:0}
  .woocommerce-account .woocommerce-orders-table tbody th,
  .woocommerce-account .woocommerce-orders-table tbody td{
    display:flex;justify-content:space-between;gap:16px;
    padding:6px 0;border-bottom:0;text-align:right
  }
  .woocommerce-account .woocommerce-orders-table tbody td::before{
    content:attr(data-title);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;
    color:var(--mj-muted);flex:0 0 auto
  }
  .woocommerce-account .woocommerce-orders-table thead{display:none}
}

/* ---------- account: saved addresses ---------- */
/*
 * WooCommerce floats these two columns and floats the Edit link right *inside* the
 * heading, so with a 38px serif h2 the link had nowhere to go but the line below —
 * which is what left a heading the size of a page title, an orphaned link under it,
 * and a stripe of empty space between the two. They are cards here instead: a grid,
 * a heading sized like every other panel label on the site, and the link on the same
 * line as the heading it belongs to.
 */
.woocommerce-account .woocommerce-Addresses{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(16px,2vw,24px);margin:0
}
/*
 * The float clearfix again, and it is why the two cards came out diagonal rather than
 * side by side. WooCommerce puts ::before and ::after with content:" " on .col2-set;
 * on a grid container those are two extra *items*, so the cells filled up as
 * ghost, billing / shipping, ghost — putting billing in the right column of row one
 * and shipping in the left of row two. Exactly the bug the order-received boxes had.
 *
 * #customer_login is the same markup laid out the same way, so it is disarmed here
 * too before it bites: the login and register panels would swap and stagger the day a
 * second column appeared.
 */
/*
 * Every WooCommerce clearfix this theme turns into a flex or grid container is
 * disarmed here in one place, because the failure looks different every time and I have
 * now chased it three times: as two ghost cells on the order-received grid, as the
 * diagonal address cards, and as a 44px indent on the card heading — that last one
 * because zero-width ghosts still count for justify-content, so space-between shared
 * the row out between four items instead of two and nudged the title inward.
 *
 * The heading pair needs four classes: WooCommerce sets it with
 * `.woocommerce-account .addresses .title::before`, which is three, and a two-class
 * selector of mine lost silently — the ghosts stayed and so did the indent.
 */
.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after,
.woocommerce-account .woocommerce-Addresses.addresses .woocommerce-Address-title::before,
.woocommerce-account .woocommerce-Addresses.addresses .woocommerce-Address-title::after,
.woocommerce #customer_login::before,
.woocommerce #customer_login::after{display:none}
@media(max-width:700px){
  .woocommerce-account .woocommerce-Addresses{grid-template-columns:minmax(0,1fr)}
}
/*
 * Four classes on purpose. WooCommerce sizes these with `.woocommerce .col2-set .col-1
 * { float:left; width:47% }` — three classes — so a two-class selector loses and each
 * card came out 47% of its own grid track: a pair of 140px slivers staggered down the
 * page. This outranks it without reaching for !important.
 */
.woocommerce-account .woocommerce-Addresses.col2-set .woocommerce-Address{
  width:auto;float:none;margin:0;
  border:1px solid var(--mj-line);background:var(--mj-cream);padding:clamp(18px,2vw,24px)
}
.woocommerce-account .woocommerce-Address-title{
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  padding-bottom:12px;margin-bottom:14px;border-bottom:1px solid var(--mj-line)
}
/* The h2 is a panel label, not a page title. */
.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-Address-title h3{
  font-family:var(--mj-sans);font-size:11.5px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--mj-ink);margin:0;line-height:1.4
}
.woocommerce-account .woocommerce-Address-title a.edit{
  float:none;flex:0 0 auto;
  font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--mj-muted);
  border-bottom:1px solid transparent;padding-bottom:2px;white-space:nowrap
}
.woocommerce-account .woocommerce-Address-title a.edit:hover{
  color:var(--mj-ink);border-bottom-color:var(--mj-ink)
}
/* <address> is italic by browser default — a postal address is not an aside. */
.woocommerce-account .woocommerce-Address address{
  font-style:normal;font-size:14px;line-height:1.9;color:var(--mj-ink-soft);margin:0
}
/* "You have not set up this type of address yet." */
.woocommerce-account .woocommerce-Address address:only-child,
.woocommerce-account .woocommerce-Address > address:last-child:not(:has(br)){
  color:var(--mj-muted)
}
/* The intro line above the cards. */
.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type{
  color:var(--mj-muted);font-size:14px;margin:0 0 clamp(20px,2.5vw,28px)
}
/* Editing one address: the province control is a select and picks up WooCommerce's
   own height unless it is pinned like the checkout's are. */
.woocommerce-account .woocommerce-address-fields select,
.woocommerce-account .woocommerce-address-fields .select2-container .select2-selection--single{
  height:45px;min-height:45px;line-height:1.5;padding:11px 14px;
  border:1px solid var(--mj-line-strong);border-radius:0;background-color:#fff;
  font-family:var(--mj-sans);font-size:14px;font-weight:300;color:var(--mj-ink)
}
.woocommerce-account .woocommerce-address-fields .select2-container .select2-selection--single .select2-selection__rendered{
  line-height:1.5;padding:0;color:var(--mj-ink)
}
.woocommerce-account .woocommerce-address-fields .select2-container .select2-selection--single .select2-selection__arrow{
  height:43px;right:8px
}
.woocommerce-account .woocommerce-address-fields{max-width:520px}
.woocommerce-account .woocommerce-address-fields__field-wrapper::after{content:"";display:table;clear:both}
.woocommerce-account .woocommerce-address-fields button[type=submit]{margin-top:6px}
.woocommerce #customer_login{display:grid;grid-template-columns:1fr 1fr;gap:clamp(26px,4vw,60px)}
.woocommerce #customer_login>div{width:100%!important;float:none!important}
/* minmax(0,…) for the same reason as the checkout grid: the login and register
   forms have a min-content width wider than a phone, and a bare 1fr would not
   shrink below it. */
@media(max-width:768px){.woocommerce #customer_login{grid-template-columns:minmax(0,1fr)}}
.woocommerce form.login,.woocommerce form.register{border:1px solid var(--mj-line);padding:28px;border-radius:0;margin:0}
.woocommerce #customer_login h2{
  font-family:var(--mj-sans);font-size:12px;letter-spacing:.2em;text-transform:uppercase;
  padding-bottom:14px;border-bottom:1px solid var(--mj-ink);margin-bottom:20px
}
.woocommerce form.login .woocommerce-form-login__rememberme,
.woocommerce form.register .woocommerce-form__label-for-checkbox{
  font-size:12.5px;letter-spacing:0;text-transform:none;color:var(--mj-ink-soft);display:flex;gap:8px;align-items:center
}
.woocommerce form.login input[type=checkbox],.woocommerce form.register input[type=checkbox]{width:auto}
.woocommerce-LostPassword{font-size:12.5px}

/* notices */
.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-notices-wrapper .woocommerce-message{
  background:var(--mj-cream);border-top:2px solid var(--mj-rose);color:var(--mj-ink);
  font-size:13.5px;padding:16px 18px;margin:0 0 22px;list-style:none;border-radius:0
}
.woocommerce-message::before,.woocommerce-info::before,.woocommerce-error::before{display:none}
.woocommerce-error{border-top-color:var(--mj-sale)}
.woocommerce-message .button,.woocommerce-info .button{
  float:right;padding:9px 18px;font-size:10.5px;margin-left:14px
}
.woocommerce .woocommerce-breadcrumb{margin-bottom:18px}
/*
 * On a single product page WooCommerce prints its notices wrapper as a direct
 * child of <main>, outside .mj-wrap, so an "added to your cart" banner ran the
 * full 1726px of the viewport with its text starting 18px from the window edge
 * while the rest of the page began at 143px. Give the wrapper the same
 * container as everything else so a notice lines up with the content it is
 * talking about.
 */
.mj-main>.woocommerce-notices-wrapper{
  max-width:var(--mj-wrap);margin:0 auto;padding:0 var(--mj-gut)
}
.mj-main>.woocommerce-notices-wrapper:empty{display:none}

/* wishlist page */
.mj-wishlist-empty{text-align:center;padding:60px 0;color:var(--mj-muted)}
.mj-entry .mj-wishlist,.mj-entry ul.products{width:100%;max-width:none}
.mj-wishlist ul.products{margin-top:26px}
/* The old rule freed the grid inside .mj-entry but not .mj-entry itself, so the
   wishlist was still boxed into the 820px prose width and showed 3 cards per
   row at 260px instead of 4 at 321px like the shop. */
.mj-entry:has(#mj-wishlist-app){max-width:none}
.mj-entry:has(#mj-wishlist-app)>p{text-align:center;color:var(--mj-muted);font-size:14px}
/*
 * On a wishlist, the heart is the remove control — the whole point of the page.
 * Inheriting the grid's hover-to-reveal treatment meant the only way to take
 * something off your wishlist was to discover an invisible button. It stays
 * visible here, and reads as already-saved so it is obvious what clicking does.
 */
#mj-wishlist-app .mj-card__wish{opacity:1;transform:none;background:#fff}
#mj-wishlist-app .mj-card__wish svg{fill:currentColor}

/* my account, logged out. With registration enabled WooCommerce wraps login and
   register in #customer_login and the grid rule below handles them. If
   registration is ever switched off, the login form is emitted on its own as a
   direct child and would stretch the full width — the child selector constrains
   only that case, so it cannot squash the form inside the two-column layout. */
.woocommerce-account .woocommerce>form.woocommerce-form-login{
  max-width:460px;margin-left:auto;margin-right:auto
}

/* misc woo resets */
.woocommerce .woocommerce-product-gallery{display:none}
.woocommerce span.onsale{display:none}
.woocommerce div.product p.stock{font-size:12.5px}
.woocommerce .quantity .qty{height:auto}
.woocommerce nav.woocommerce-MyAccount-navigation ul li a::before{display:none}
.woocommerce-store-notice{background:var(--mj-ink);font-size:12px;letter-spacing:.14em;text-transform:uppercase}

/* ---------- cart page two-column layout ---------- */
.woocommerce-cart .woocommerce{
  display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,.9fr);
  gap:clamp(28px,4vw,60px);align-items:start;max-width:1240px;margin:0 auto
}
.woocommerce-cart .woocommerce>.woocommerce-notices-wrapper,
.woocommerce-cart .woocommerce>.cart-empty,
.woocommerce-cart .woocommerce>.return-to-shop,
.woocommerce-cart .woocommerce>.mj-empty{grid-column:1 / -1}
/* An empty cart has no totals column to align to, and the grid's row gap was
   stacking on top of .mj-empty's own 120px padding — 180px of dead space above
   the bag. Dropping the grid in that one state removes the gap. */
.woocommerce-cart .woocommerce:has(>.mj-empty){display:block}
@media(max-width:900px){.woocommerce-cart .woocommerce{grid-template-columns:minmax(0,1fr)}}
.woocommerce-cart table.cart .product-thumbnail{width:100px}
/* 768px, not 640px: woocommerce-smallscreen.css is gated at max-width:768px, so
   a 640px cut left 641-768px (tablets, phones in landscape) with smallscreen's
   layout and none of these repairs — the exact hybrid this block exists to undo.
   Every rule is scoped to the cart: `shop_table` is also the checkout order
   summary, the order-received details and the My Account orders table, and
   unscoped these hid their headers and squeezed them into an 88px column. */
@media(max-width:768px){
  .woocommerce-cart table.cart thead{display:none}
  /* minmax(0,1fr) so the details column can shrink below its min-content width;
     a bare 1fr pushed the row a few pixels past a 360px screen. */
  .woocommerce-cart table.cart tr{display:grid;grid-template-columns:88px minmax(0,1fr);gap:0 14px;padding:18px 0;border-bottom:1px solid var(--mj-line-soft);align-items:start}
  /* min-width:0 as well as the minmax above. A grid item's automatic minimum is
     its min-content width, so the details cell still rendered 230px inside a
     194px track and pushed the page 4px past a 360px screen. */
  /* min-width:0 as well as the minmax above. A grid item's automatic minimum is
     its min-content width, so the details cell still rendered 230px inside a
     194px track and pushed the page past a 360px screen. `.product-name` is
     named explicitly because the desktop rule that gives the name column its
     230px floor is more specific than a bare `td`. */
  .woocommerce-cart table.cart td,
  .woocommerce-cart table.cart .product-name{border:0;padding:2px 0;display:block;min-width:0;overflow-wrap:anywhere}
  .woocommerce-cart table.cart td.actions{grid-column:1 / -1}
  .woocommerce .coupon{flex-wrap:wrap}
  .woocommerce .coupon input[type=text]{max-width:100%}

  /* woocommerce-smallscreen.css rewrites cart rows as right-aligned
     label/value pairs (via data-title pseudo-elements) and hides the product
     thumbnail outright. Layered on the theme's grid row that produced bold
     "Product:" labels, values shoved to the right edge and no product image at
     all. Take the mobile row back. */
  .woocommerce-cart table.shop_table_responsive tbody td::before{content:none!important}
  .woocommerce-cart table.shop_table_responsive tbody td{
    text-align:left!important;width:auto!important;display:block;border:0;padding:2px 0
  }
  .woocommerce-cart table.shop_table_responsive tbody td.product-thumbnail{
    display:block;grid-column:1;grid-row:span 5
  }
  .woocommerce-cart table.cart img{width:88px}
  .woocommerce-cart table.shop_table_responsive tbody td.product-name,
  .woocommerce-cart table.shop_table_responsive tbody td.product-price,
  .woocommerce-cart table.shop_table_responsive tbody td.product-quantity,
  .woocommerce-cart table.shop_table_responsive tbody td.product-subtotal{grid-column:2}
  /* the remove control reads better after the details than before them */
  .woocommerce-cart table.shop_table_responsive tbody td.product-remove{
    grid-column:2;order:9;justify-self:start;margin-top:8px
  }
  .woocommerce-cart table.shop_table_responsive tbody td.product-quantity{margin-top:8px}
}

/* ==========================================================================
   CART / CHECKOUT LAYOUT REPAIRS
   ========================================================================== */

/* .mj-entry caps text pages at a comfortable 820px reading width. The cart and
   checkout are data tables, not prose: at 820px the cart's six columns collapse
   to about 84px each, so every product name and measurement wrapped one word
   per line. These screens need the full grid. */
.woocommerce-cart .mj-entry,
.woocommerce-checkout .mj-entry,
.woocommerce-account .mj-entry{max-width:none}

/* Give the columns sensible proportions so the name column keeps the room.
   Gated at 769px and up: below that the row becomes a two-column grid, and this
   block's 230px floor on the name cell outranked the mobile override (same
   specificity, later in the file) and pushed the cart past a 360px screen. */
@media(min-width:769px){
  .woocommerce-cart table.cart .product-remove{width:44px;text-align:center}
  .woocommerce-cart table.cart .product-thumbnail{width:100px}
  .woocommerce-cart table.cart .product-name{width:auto;min-width:230px}
  .woocommerce-cart table.cart .product-price,
  .woocommerce-cart table.cart .product-subtotal{width:120px;white-space:nowrap}
}
.woocommerce-cart table.cart .product-quantity{width:130px}

/* The quantity stepper on the cart page. The product-page rules are scoped to
   .mj-buybox, so the cart's stepper inherited no layout at all — it stayed
   display:block and the minus, input and plus stacked vertically. */
.woocommerce table.cart div.quantity,
.woocommerce-cart td.product-quantity .quantity{
  display:flex;align-items:stretch;width:max-content;margin:0;float:none;
  border:1px solid var(--mj-line);background:#fff;overflow:hidden
}
.woocommerce table.cart div.quantity .mj-qty-btn,
.woocommerce-cart td.product-quantity .quantity .mj-qty-btn{
  flex:0 0 32px;width:32px;height:38px;align-self:stretch
}
.woocommerce table.cart div.quantity input.qty,
.woocommerce-cart td.product-quantity .quantity input.qty{
  width:44px;flex:0 0 44px;min-width:0;border:0;background:transparent;text-align:center;
  padding:0;height:38px;line-height:38px;font-size:14px;
  -moz-appearance:textfield;appearance:textfield
}
.woocommerce table.cart div.quantity input.qty::-webkit-outer-spin-button,
.woocommerce table.cart div.quantity input.qty::-webkit-inner-spin-button{
  -webkit-appearance:none;appearance:none;margin:0
}

/* WooCommerce ships "Update cart" disabled until a quantity changes. The
   theme's button colours left ink text on an ink background, so it rendered as
   a blank box. Give the disabled state its own readable treatment. */
.woocommerce table.cart td.actions button[name="update_cart"],
.woocommerce table.cart td.actions input[name="update_cart"]{
  float:none;height:auto;line-height:1;padding:14px 26px;font-size:11px;letter-spacing:.18em;
  background:var(--mj-ink);color:#fff;border:1px solid var(--mj-ink)
}
/* !important is needed here, not laziness: LiteSpeed Cache injects its own
   stylesheet after the theme's, and it re-declares the button colours. Without
   it the disabled state loses the cascade and the label stays ink-on-ink. */
.woocommerce table.cart td.actions button[name="update_cart"]:disabled,
.woocommerce table.cart td.actions input[name="update_cart"]:disabled,
.woocommerce table.cart td.actions button[name="update_cart"]:disabled:hover,
.woocommerce table.cart td.actions input[name="update_cart"]:disabled:hover{
  background:#fff!important;color:var(--mj-muted)!important;
  border-color:var(--mj-line)!important;cursor:not-allowed;opacity:1
}

/* The coupon field is a flex item inheriting width:100% from the global input
   rule, so it shrank to 80px and truncated its own placeholder to "Coupon co".
   A fixed basis holds it open next to the button. */
.woocommerce .coupon input[type=text]{flex:0 0 230px;width:230px;max-width:100%;min-width:0}
@media(max-width:640px){.woocommerce .coupon input[type=text]{flex:1 1 100%;width:100%}}

/* The page head already separates the title from the content; 84px of section
   padding on top of it left a large empty band above the cart table. */
.woocommerce-cart .mj-section,
.woocommerce-checkout .mj-section{padding-top:clamp(22px,3vw,40px)}

/* ---------- shop page head spacing ---------- */
.woocommerce-shop .mj-page-head,.tax-product_cat .mj-page-head{margin-bottom:0}
.mj-main{min-height:40vh}
/*
 * Vertical padding only. The horizontal var(--mj-gut) that used to be here was
 * applied to <main>, but every one of these pages already wraps its content in
 * .mj-wrap, which supplies the gutter itself — so the cart, checkout and
 * account pages were indented by two gutters while the rest of the site used
 * one. Measured at a 1440px viewport: content began at 96px here against 48px
 * everywhere else, and the blush page-head band stopped 48px short of each
 * edge instead of running full bleed like it does on every other template.
 */
.woocommerce-account .mj-main,.woocommerce-cart .mj-main,.woocommerce-checkout .mj-main{padding-block:clamp(30px,4vw,56px)}


/* ---------- inline form feedback ---------- */
.mj-form-msg:empty{display:none}
.mj-form-msg{margin-bottom:14px}
.mj-footer__col h4{margin-bottom:18px}


/* ---------- buybox on small screens ---------- */
@media(max-width:420px){
  .mj-buybox{flex-wrap:wrap}
  .mj-buybox .single_add_to_cart_button,.mj-buybox .button{flex:1 1 100%;order:3}
  .mj-buybox .quantity{order:1}
  .mj-wish-btn{order:2;margin-left:auto}
}

/* ==========================================================================
   MADE-TO-MEASURE OPTIONS
   ========================================================================== */
.mj-options{margin:0 0 18px}
.mj-optgroup{margin-bottom:16px}
.mj-optgroup:last-of-type{margin-bottom:0}
.mj-optgroup__head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px
}
.mj-optgroup__label{
  font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--mj-ink-soft)
}
.mj-optpills{display:flex;flex-wrap:wrap;gap:8px}
.mj-optpills__input{
  position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none
}
.mj-optpills__label{
  min-width:46px;padding:11px 14px;border:1px solid var(--mj-line-strong);background:#fff;color:var(--mj-ink);
  font-size:12px;letter-spacing:.1em;text-transform:uppercase;line-height:1;cursor:pointer;
  margin:0;display:inline-flex;align-items:center;justify-content:center;text-align:center;
  transition:border-color .2s var(--mj-ease),background .2s var(--mj-ease),color .2s var(--mj-ease)
}
.mj-optpills__label:hover{border-color:var(--mj-ink)}
.mj-optpills__input:checked+.mj-optpills__label{
  background:var(--mj-ink);border-color:var(--mj-ink);color:#fff
}
.mj-optpills__input:focus-visible+.mj-optpills__label{outline:2px solid var(--mj-ink);outline-offset:2px}
/* lengths are numeric — a lighter, smaller pill keeps the block calm */
.mj-optgroup--compact .mj-optpills__label{
  min-width:0;padding:9px 13px;font-size:11.5px;letter-spacing:.06em;text-transform:none
}
.mj-options__note{
  font-size:12px;color:var(--mj-muted);margin:14px 0 0;line-height:1.6
}
/* Shown when Add to bag is pressed with a measurement still unchosen. */
.mj-optgroup__error{
  margin:8px 0 0;font-size:12px;color:var(--mj-sale);letter-spacing:.02em
}
.mj-optgroup__error[hidden]{display:none}
.mj-optgroup.is-missing .mj-optpills__label{border-color:var(--mj-sale)}

/* Buy it now */
.mj-buynow{width:100%;margin:0 0 14px}
.woocommerce div.product form.cart .mj-buynow{margin-top:0}

/* ==========================================================================
   PRODUCT CARD — quick add + quick view
   ========================================================================== */
.mj-card__sizes{
  position:absolute;left:0;right:0;bottom:0;z-index:3;background:rgba(255,255,255,.96);
  display:block;padding:10px 8px 11px;text-align:center;
  transform:translateY(101%);transition:transform .35s var(--mj-ease)
}
.mj-card:hover .mj-card__sizes,.mj-card:focus-within .mj-card__sizes{transform:none}

/* the hover image has no src until first hover — keep it invisible until then */
.mj-card__img--alt:not([src]){visibility:hidden}
.mj-card__sizes-row{display:flex;justify-content:center;flex-wrap:nowrap;gap:4px}
.mj-card__size{
  /* min-width/height 26px: "L" and "S" were rendering 19px and 20px wide, well
     under the 24px minimum, which made quick-add fiddly on a phone — the very
     place it is most useful. */
  flex:0 1 auto;min-width:26px;min-height:26px;padding:5px 6px;
  border:1px solid var(--mj-line-strong);background:#fff;
  font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--mj-ink-soft);
  line-height:1.3;white-space:nowrap
}
/* very narrow cards (3-up on a small tablet) tighten further rather than wrap */
@media(max-width:420px){
  .mj-card__size{padding:5px 4px;font-size:10px;letter-spacing:0}
}
.mj-card__size:hover{background:var(--mj-ink);border-color:var(--mj-ink);color:#fff}
.mj-card__size.is-busy{opacity:.5;pointer-events:none}
/* a cart row mid-update: dimmed enough to read as pending, not enough to flash */
.woocommerce-cart tr.cart_item.is-busy{opacity:.55;transition:opacity .15s var(--mj-ease)}
.woocommerce-cart tr.cart_item.is-busy .mj-qty-btn{pointer-events:none}
.mj-card__qv{
  position:absolute;top:50%;left:50%;z-index:3;margin-top:-20px;
  transform:translate(-50%,8px);white-space:nowrap;
  background:rgba(255,255,255,.94);border:0;color:var(--mj-ink);padding:11px 20px;
  font-size:10px;letter-spacing:.2em;text-transform:uppercase;
  opacity:0;transition:opacity .3s var(--mj-ease),transform .3s var(--mj-ease),background .3s var(--mj-ease),color .3s var(--mj-ease)
}
.mj-card:hover .mj-card__qv,.mj-card:focus-within .mj-card__qv{opacity:1;transform:translate(-50%,0)}
.mj-card__qv:hover{background:var(--mj-ink);color:#fff;border:0}
@media(max-width:767px){
  .mj-card__sizes{display:block;transform:none;position:static;background:none;padding:9px 0 0}
  .mj-card__sizes-hint{display:none}
  .mj-card__qv{display:none}
}
@media(hover:none){
  .mj-card__qv{display:none}
  .mj-card__sizes{display:block;transform:none;position:static;background:none;padding:9px 0 0}
  .mj-card__sizes-hint{display:none}
}

/* ==========================================================================
   QUICK VIEW
   ========================================================================== */
.mj-modal__panel--wide{max-width:960px;padding:0;overflow:hidden}
.mj-modal--quickview .mj-modal__panel{max-height:92vh;max-height:92dvh}
.mj-qv{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
@media(max-width:820px){.mj-qv{grid-template-columns:1fr}}
.mj-qv__media{position:relative;background:var(--mj-cream)}
.mj-qv__slides figure{margin:0;display:none}
.mj-qv__slides figure.is-active{display:block}
.mj-qv__slides img{width:100%;aspect-ratio:3/4;object-fit:cover;display:block}
@media(max-width:820px){.mj-qv__slides img{aspect-ratio:4/3}}
.mj-qv__thumbs{
  position:absolute;left:12px;bottom:12px;display:flex;gap:6px
}
.mj-qv__thumbs button{
  width:44px;height:56px;padding:0;border:1px solid rgba(255,255,255,.7);background:none;overflow:hidden;opacity:.7
}
.mj-qv__thumbs button.is-active{opacity:1;border-color:var(--mj-ink)}
.mj-qv__thumbs img{width:100%;height:100%;object-fit:cover}
.mj-qv__body{padding:clamp(22px,3vw,36px);overflow-y:auto;max-height:92vh;max-height:92dvh}
/*
 * The photograph was locked to 3/4 of the column width while the row was sized by the
 * summary beside it. A piece with more to say — a dupatta choice, a shirt length, a
 * longer description — stretched the row and left cream showing under the picture:
 * 117px on the Pastel Peach set, none at all on a plain one, which is exactly why the
 * panel looked different from product to product.
 *
 * The media column now fills whatever height the row ends up, so there is no gap on
 * any product. The floor comes from a padding-top spacer rather than `aspect-ratio` on
 * the column: aspect-ratio gives the box a definite height that beats
 * `align-self:stretch`, so the column stopped at 640px inside a 757px row and the gap
 * simply reappeared outside the image instead of inside it.
 *
 * Capping the row at the image height instead was tried and rejected — it made every
 * panel a consistent height, but pushed Add to bag 44px below the fold on the dupatta
 * pieces, and reaching that button is the whole point of a quick view. Sticky
 * positioning cannot rescue that: it only stops an element leaving the scrollport, it
 * cannot lift one that starts below it.
 */
@media(min-width:821px){
  .mj-qv{align-items:stretch}
  .mj-qv__body{max-height:92dvh;min-height:0}
  .mj-qv__media{position:relative;overflow:hidden}
  /* 4/3 of the column width — the shape the photographs are cropped to. */
  .mj-qv__media::before{content:"";display:block;padding-top:133.333%}
  .mj-qv__slides{position:absolute;inset:0}
  .mj-qv__slides figure.is-active{height:100%}
  .mj-qv__slides img{
    width:100%;height:100%;aspect-ratio:auto;object-fit:cover;
    /* Biased above centre: the extra height crops top and bottom, and the face
       matters more than the grass. Keeps the hem in frame at the depths we see. */
    object-position:50% 28%
  }
}
/* Below the point where .mj-qv collapses to one column the image plus summary
   exceed the panel, and .mj-modal__panel--wide{overflow:hidden} stopped the
   panel scrolling — the size pills and Add to bag were unreachable. */
@media(max-width:820px){
  .mj-modal__panel--wide{overflow-y:auto}
  .mj-qv__body{max-height:none;overflow:visible}
}
.mj-qv__body .product_title{
  font-size:clamp(21px,2.4vw,30px);text-transform:uppercase;letter-spacing:.06em;margin:0 0 10px
}
.mj-qv__excerpt{
  color:var(--mj-ink-soft);font-size:13.5px;padding:14px 0;margin:0 0 16px;
  border-top:1px solid var(--mj-line-soft);border-bottom:1px solid var(--mj-line-soft)
}
.mj-qv__excerpt p:last-child{margin-bottom:0}
.mj-qv__full{margin:18px 0 0;text-align:center}
.mj-modal__panel--wide .mj-x{
  top:12px;right:12px;z-index:5;background:rgba(255,255,255,.9);border-radius:999px
}
.mj-qv .woocommerce-variation-price{margin-bottom:12px}


/* ---------- no-JavaScript fallback nav ---------- */
.mj-noscript-nav{
  display:flex;gap:22px;justify-content:center;flex-wrap:wrap;
  padding:12px 16px;background:var(--mj-blush);
  font-size:11px;letter-spacing:.18em;text-transform:uppercase
}


/* ---------- hero pause control (WCAG 2.2.2) ---------- */
.mj-hero__pause{
  position:absolute;right:18px;bottom:16px;z-index:4;width:34px;height:34px;padding:0;
  border:0;border-radius:999px;background:rgba(255,255,255,.86);color:var(--mj-ink);
  font-size:10px;letter-spacing:.06em;display:flex;align-items:center;justify-content:center
}
.mj-hero__pause:hover{background:#fff;border:0;color:var(--mj-ink)}
@media(max-width:767px){.mj-hero__pause{right:12px;bottom:40px;width:30px;height:30px}}
