/* Cart page — visual system aligned with product-page-reference (MRDOON / linen) */
/* Scoped to .cart-page-v9; relies on layout :root tokens (--burgundy, --linen, etc.) */

.cart-page.cart-page-v9{
  /* Top gap clears sticky header + announcement; bottom keeps footer breathing room */
  padding:clamp(16px,3.5vh,36px) 0 clamp(72px,12vh,120px);
  background:var(--linen);
}

.cart-page.cart-page-v9 .breadcrumb{
  max-width:var(--container);
  margin:0 auto;
  padding:20px var(--gutter) 8px;
  font-family:var(--f-body-en);
  font-size:11px;
  color:var(--taupe);
  letter-spacing:0.05em;
  direction:ltr;
  text-align:right;
}
.cart-page.cart-page-v9 .breadcrumb a{color:var(--taupe);transition:color .3s var(--ease)}
.cart-page.cart-page-v9 .breadcrumb a:hover{color:var(--burgundy);opacity:1}
.cart-page.cart-page-v9 .breadcrumb span{margin:0 8px;opacity:.5}

.cart-page.cart-page-v9 .cart-page-inner{max-width:var(--container);margin:0 auto;padding:0 var(--gutter)}

.cart-page.cart-page-v9 .cart-bag-eyebrow{
  display:block;
  font-family:var(--f-body-en);
  font-size:11px;
  letter-spacing:.25em;
  text-transform:uppercase;
  color:var(--sand);
  margin-bottom:10px;
  direction:ltr;
  text-align:right;
}

.cart-page.cart-page-v9 .cart-header{margin-bottom:clamp(24px,4vh,36px)}
.cart-page.cart-page-v9 .cart-header-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  flex-wrap:wrap;
}
.cart-page.cart-page-v9 .cart-title-ar{
  font-family:var(--f-display-ar);
  font-size:clamp(30px,4vw,48px);
  font-weight:400;
  line-height:1.1;
  color:var(--burgundy);
  margin:0;
  letter-spacing:-.01em;
}
.cart-page.cart-page-v9 .cart-title-en{
  font-family:var(--f-display-en);
  font-style:italic;
  font-size:.45em;
  color:var(--sand);
  font-weight:400;
  display:block;
  margin-top:6px;
  direction:ltr;
  letter-spacing:0;
}

.cart-page.cart-page-v9 .cart-continue-link{
  font-family:var(--f-body-ar);
  font-size:12px;
  color:var(--burgundy);
  border-bottom:.5px solid var(--burgundy);
  padding-bottom:2px;
  text-decoration:none;
  transition:color .3s var(--ease),border-color .3s var(--ease);
}
.cart-page.cart-page-v9 .cart-continue-link:hover{color:var(--sand);border-color:var(--sand);opacity:1}

.cart-page.cart-page-v9 .cart-layout{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr);
  gap:clamp(28px,4vw,48px);
  align-items:start;
}

.cart-page.cart-page-v9 .cart-items{display:flex;flex-direction:column;gap:12px}

.cart-page.cart-page-v9 .cart-item{
  display:grid;
  grid-template-columns:110px 1fr auto;
  gap:clamp(14px,2vw,20px);
  align-items:center;
  background:var(--linen-warm);
  border:.5px solid rgba(51,6,17,.08);
  border-radius:1px;
  padding:clamp(14px,2vw,18px);
  transition:box-shadow .35s var(--ease-out);
}
.cart-page.cart-page-v9 .cart-item:hover{box-shadow:0 12px 40px -24px rgba(51,6,17,.12)}

.cart-page.cart-page-v9 .cart-item-image{
  display:block;
  aspect-ratio:3/4;
  background:var(--linen);
  overflow:hidden;
  border-radius:1px;
}
.cart-page.cart-page-v9 .cart-item-image span{
  display:block;width:100%;height:100%;
  background-size:cover;background-position:center;
  transition:transform 1.2s var(--ease-out);
}
.cart-page.cart-page-v9 .cart-item:hover .cart-item-image span{transform:scale(1.03)}

.cart-page.cart-page-v9 .cart-item-details h3{
  font-family:var(--f-body-ar);
  font-size:16px;
  font-weight:500;
  color:var(--burgundy);
  margin:0 0 6px;
  line-height:1.35;
}
.cart-page.cart-page-v9 .cart-item-meta{
  font-family:var(--f-body-ar);
  font-size:12px;
  color:var(--taupe);
  margin:0 0 8px;
}
.cart-page.cart-page-v9 .cart-item-price{
  font-family:var(--f-body-en);
  font-size:15px;
  color:var(--burgundy);
  letter-spacing:.02em;
  direction:ltr;
  text-align:right;
}

.cart-page.cart-page-v9 .cart-item-qty{
  text-align:center;
  min-width:72px;
  padding:10px 8px;
  border:.5px solid rgba(51,6,17,.12);
  border-radius:1px;
  background:rgba(255,252,246,.5);
}
.cart-page.cart-page-v9 .cart-item-qty span{
  display:block;
  font-family:var(--f-body-ar);
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--taupe);
  margin-bottom:4px;
}
.cart-page.cart-page-v9 .cart-item-qty strong{
  font-family:var(--f-body-en);
  font-size:16px;
  color:var(--burgundy);
}

.cart-page.cart-page-v9 .cart-summary{
  background:var(--linen-warm);
  border:.5px solid rgba(51,6,17,.08);
  border-radius:1px;
  padding:clamp(20px,3vw,26px);
  position:sticky;
  /* Sit below sticky header + accent + optional announcement (avoids sliding under logo bar) */
  top:clamp(112px,14vh,168px);
}
.cart-page.cart-page-v9 .cart-summary h2{
  font-family:var(--f-display-ar);
  font-size:clamp(22px,2.5vw,28px);
  font-weight:400;
  color:var(--burgundy);
  margin:0 0 18px;
  letter-spacing:-.01em;
}

.cart-page.cart-page-v9 .cart-summary-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
  font-family:var(--f-body-ar);
  font-size:14px;
  color:var(--taupe);
}
.cart-page.cart-page-v9 .cart-summary-row--muted{font-size:12px;opacity:.88}
.cart-page.cart-page-v9 .cart-summary-row strong{
  font-family:var(--f-body-en);
  font-size:15px;
  color:var(--burgundy);
  letter-spacing:.02em;
}

.cart-page.cart-page-v9 .cart-summary-divider{
  height:.5px;
  background:rgba(51,6,17,.1);
  margin:16px 0;
}

.cart-page.cart-page-v9 .cart-checkout-btn{
  display:flex;
  width:100%;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:8px;
  padding:18px 32px;
  font-family:var(--f-body-ar);
  font-size:13px;
  font-weight:500;
  letter-spacing:.05em;
  color:var(--linen);
  background:var(--burgundy);
  border:.5px solid var(--burgundy);
  border-radius:1px;
  text-decoration:none;
  cursor:pointer;
  transition:all .4s var(--ease);
}
.cart-page.cart-page-v9 .cart-checkout-btn:hover{
  background:transparent;
  color:var(--burgundy);
}

.cart-page.cart-page-v9 .cart-checkout-note{
  margin-top:12px;
  font-family:var(--f-body-ar);
  font-size:11px;
  line-height:1.75;
  color:var(--taupe);
}

.cart-page.cart-page-v9 .cart-installment-mini{
  margin-top:18px;
  padding:14px 16px;
  background:var(--linen);
  border:.5px solid rgba(51,6,17,.08);
  border-radius:1px;
  font-family:var(--f-body-ar);
  font-size:12px;
  color:var(--taupe);
  line-height:1.6;
}
.cart-page.cart-page-v9 .cart-installment-mini-logos{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}
.cart-page.cart-page-v9 .cart-installment-mini-logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:3px 7px;
  font-family:var(--f-body-en);
  font-size:9px;
  font-weight:500;
  letter-spacing:.08em;
  border:.5px solid var(--burgundy);
  border-radius:1px;
  color:var(--burgundy);
}
.cart-page.cart-page-v9 .cart-installment-mini-logo--image{
  padding:4px 8px;
  border-color:rgba(51,6,17,.12);
  background:#fff;
}
.cart-page.cart-page-v9 .cart-installment-mini-logo-img{
  display:block;
  max-height:18px;
  width:auto;
  max-width:72px;
  object-fit:contain;
}

.cart-page.cart-page-v9 .cart-trust-extra{
  margin-top:14px;
  font-size:11px;
  line-height:1.65;
  color:var(--taupe);
}

.cart-page.cart-page-v9 .cart-after-checkout{margin-top:16px;text-align:center}
.cart-page.cart-page-v9 .cart-after-checkout a{
  font-family:var(--f-body-ar);
  font-size:12px;
  color:var(--taupe);
  border-bottom:.5px solid rgba(122,98,80,.35);
  padding-bottom:2px;
  text-decoration:none;
}
.cart-page.cart-page-v9 .cart-after-checkout a:hover{color:var(--burgundy);border-color:var(--burgundy)}

.cart-page.cart-page-v9 .cart-empty{
  text-align:center;
  padding:clamp(48px,10vh,80px) var(--gutter);
  border:.5px solid rgba(51,6,17,.08);
  border-radius:1px;
  background:var(--linen-warm);
  max-width:480px;
  margin:32px auto 0;
}
.cart-page.cart-page-v9 .cart-empty p{
  font-family:var(--f-display-ar);
  font-size:clamp(20px,3vw,28px);
  color:var(--burgundy);
  margin-bottom:20px;
}
.cart-page.cart-page-v9 .cart-empty .btn{
  display:inline-flex;
  padding:16px 40px;
  background:var(--burgundy);
  color:var(--linen);
  border:.5px solid var(--burgundy);
  border-radius:1px;
  font-family:var(--f-body-ar);
  font-size:13px;
  text-decoration:none;
  transition:all .4s var(--ease);
}
.cart-page.cart-page-v9 .cart-empty .btn:hover{background:transparent;color:var(--burgundy)}

@media (max-width:900px){
  .cart-page.cart-page-v9 .cart-layout{grid-template-columns:1fr}
  .cart-page.cart-page-v9 .cart-summary{position:static}
  .cart-page.cart-page-v9 .cart-item{grid-template-columns:88px 1fr auto}
}

@media (max-width:520px){
  .cart-page.cart-page-v9 .cart-item{grid-template-columns:72px 1fr;grid-template-rows:auto auto}
  .cart-page.cart-page-v9 .cart-item-qty{grid-column:1/-1;justify-self:stretch}
}

.cart-page.cart-page-v9 .is-hidden,
.cart-page.cart-page-v9 [data-cart-empty].is-hidden,
.cart-page.cart-page-v9 [data-cart-layout].is-hidden,
.cart-page.cart-page-v9 [data-cart-layout][hidden],
.cart-page.cart-page-v9 [data-cart-empty][hidden]{display:none!important}

.cart-page.cart-page-v9 .cart-products-action--has-picker .cart-product-quantity-dropdown--enhanced{
  position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;padding:0;margin:0;
}
.cart-page.cart-page-v9 .cart-qty-picker{
  display:inline-flex;
  align-items:center;
  border:.5px solid rgba(51,6,17,.25);
  border-radius:1px;
  padding:0 4px;
  background:var(--linen);
}
.cart-page.cart-page-v9 .cart-qty-picker .cart-qty-btn{
  width:36px;
  height:40px;
  font-family:var(--f-body-en);
  font-size:18px;
  font-weight:300;
  color:var(--burgundy);
  background:transparent;
  border:0;
  cursor:pointer;
  line-height:1;
}
.cart-page.cart-page-v9 .cart-qty-picker .cart-qty-btn:hover{opacity:.55}
.cart-page.cart-page-v9 .cart-qty-picker .cart-qty-btn:disabled{opacity:.35;cursor:not-allowed}
.cart-page.cart-page-v9 .cart-qty-picker .cart-qty-value{
  min-width:32px;
  text-align:center;
  font-family:var(--f-body-en);
  font-size:14px;
  color:var(--burgundy);
}
.cart-page.cart-page-v9 .cart-items--vitrin .cart-products-action{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
}

/* Zid Vitrin cart list (products_list.jinja) — match Mr Doon card style */
.cart-page.cart-page-v9 .cart-items--vitrin .cart-product-row-wrapper{
  background:var(--linen-warm);
  border:.5px solid rgba(51,6,17,.08);
  border-radius:1px;
  margin-bottom:12px;
  padding:clamp(12px,2vw,16px);
  transition:box-shadow .35s var(--ease-out),opacity .15s ease;
}
.cart-page.cart-page-v9 .cart-product-row-wrapper.cart-line-removing{
  opacity:0.35;
  pointer-events:none;
}
.cart-page.cart-page-v9 .cart-items--vitrin .cart-product-row-wrapper:hover{
  box-shadow:0 12px 40px -24px rgba(51,6,17,.12);
}
.cart-page.cart-page-v9 .cart-items--vitrin .cart-product-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:14px 16px;
  width:100%;
  margin:0;
}
.cart-page.cart-page-v9 .cart-items--vitrin .cart-product-delete{
  order:3;
  width:auto;
  flex-shrink:0;
  padding:0;
  text-align:center;
}
.cart-page.cart-page-v9 .cart-product-delete a,
.cart-page.cart-page-v9 .cart-product-delete button,
.cart-page.cart-page-v9 .cart-product-delete .cart-remove-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  min-width:38px;
  min-height:38px;
  padding:0;
  color:var(--burgundy);
  text-decoration:none;
  border:.5px solid rgba(51,6,17,.25);
  border-radius:1px;
  background-color:var(--linen);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath stroke='%23330611' stroke-width='2' stroke-linecap='round' d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:center;
  background-size:14px 14px;
  transition:background-color .25s var(--ease),color .25s var(--ease),border-color .25s var(--ease);
  font-size:0;
  line-height:0;
  cursor:pointer;
}
.cart-page.cart-page-v9 .cart-product-delete a .icon-delete,
.cart-page.cart-page-v9 .cart-product-delete a .prefix,
.cart-page.cart-page-v9 .cart-product-delete a img,
.cart-page.cart-page-v9 .cart-product-delete button .icon-delete,
.cart-page.cart-page-v9 .cart-product-delete button .prefix,
.cart-page.cart-page-v9 .cart-product-delete button img{
  display:none!important;
}
.cart-page.cart-page-v9 .cart-product-delete .cart-remove-icon{
  display:block;
  width:14px;
  height:14px;
  flex-shrink:0;
  pointer-events:none;
}
.cart-page.cart-page-v9 .cart-product-delete a:has(.cart-remove-icon),
.cart-page.cart-page-v9 .cart-product-delete button:has(.cart-remove-icon){
  background-image:none;
}
.cart-page.cart-page-v9 .cart-product-delete a:hover,
.cart-page.cart-page-v9 .cart-product-delete a:focus-visible,
.cart-page.cart-page-v9 .cart-product-delete button:hover,
.cart-page.cart-page-v9 .cart-product-delete button:focus-visible{
  background-color:var(--burgundy);
  border-color:var(--burgundy);
  color:#fff;
  opacity:1;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath stroke='%23ffffff' stroke-width='2' stroke-linecap='round' d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}
.cart-page.cart-page-v9 .cart-product-delete a:hover .cart-remove-icon path,
.cart-page.cart-page-v9 .cart-product-delete button:hover .cart-remove-icon path{
  stroke:#fff;
}
.cart-page.cart-page-v9 .cart-items--vitrin .cart-product-col-img{
  width:110px;
  flex-shrink:0;
  order:1;
}
.cart-page.cart-page-v9 .cart-items--vitrin .cart-product-col-img img{
  width:100%;
  height:auto;
  max-height:140px;
  object-fit:cover;
  border-radius:1px;
  display:block;
}
.cart-page.cart-page-v9 .cart-items--vitrin .cart-product-col-details{
  flex:1 1 180px;
  order:2;
  padding:0;
  min-width:0;
}
.cart-page.cart-page-v9 .cart-items--vitrin .cart-product-col-details h1,
.cart-page.cart-page-v9 .cart-items--vitrin .cart-product-col-details h2,
.cart-page.cart-page-v9 .cart-items--vitrin .cart-product-col-details h3{
  font-family:var(--f-body-ar);
  font-size:16px;
  font-weight:500;
  color:var(--burgundy);
  margin:0 0 6px;
  line-height:1.35;
}
.cart-page.cart-page-v9 .cart-items--vitrin .cart-product-col-details a{color:inherit;text-decoration:none}
.cart-page.cart-page-v9 .cart-items--vitrin .cart-product-col-details a:hover{opacity:.7}
.cart-page.cart-page-v9 .cart-items--vitrin .cart-products-action{
  order:4;
  width:auto;
  flex-shrink:0;
  padding:0;
}
.cart-page.cart-page-v9 .cart-items--vitrin .cart-product-prices{
  order:5;
  width:auto;
  flex-shrink:0;
  padding:0;
  text-align:end;
  font-family:var(--f-body-en);
  font-size:15px;
  color:var(--burgundy);
  direction:ltr;
}
.cart-page.cart-page-v9 .cart-items--vitrin .cart-product-quantity-dropdown select{
  min-width:64px;
  padding:8px 10px;
  border:.5px solid rgba(51,6,17,.25);
  border-radius:1px;
  background:var(--linen);
  color:var(--burgundy);
  font-family:var(--f-body-en);
  font-size:14px;
}
.cart-page.cart-page-v9 .cart-items--vitrin .header-wrapper{display:none}
.cart-page.cart-page-v9 .cart-items--vitrin .section-cart-products-row.header-wrapper{display:none}
