/* =====================================================================
   Caspian Monarque — conversion and modernisation layer
   Switch off: add_filter('caspian_convert_enable', '__return_false');
   ===================================================================== */

/* ---- Reassurance under "Add to cart" (replaces the single shipping line) ---- */
html body[class] .product-hero .caspian-add-to-cart-text { display: none !important; }
html body[class] .product-hero .woocommerce-variation-add-to-cart { flex-wrap: wrap; }
html body[class] .product-hero .cm-assure {
  flex: 0 0 100%; order: 10; list-style: none; margin: 1.125rem 0 0; padding: 0; display: grid; gap: .5rem;
}
html body[class] .product-hero .cm-assure li {
  display: flex; align-items: flex-start; gap: .625rem; margin: 0; padding: 0;
  font-size: .75rem; line-height: 1.5; letter-spacing: .035em; color: var(--cm-navy, #000E34);
}
html body[class] .product-hero .cm-assure li::before { display: none; }
html body[class] .product-hero .cm-assure svg { flex: 0 0 16px; margin-top: 1px; color: var(--cm-teal-ink, #00857E); }

/* ---- Home: a price under each tin ---- */
html body[class] #caviar-slider .caviar-slider--low .item span.cm-from {
  display: block; margin-top: .25rem; font-size: .75rem; letter-spacing: .035em; text-transform: none; color: var(--cm-navy, #000E34);
}

/* ---- Footer: customer care and payment methods ---- */
html body[class] footer .cm-foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2.5rem;
  margin: 2.5rem 0 1.5rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .14); width: 100%;
}
html body[class] footer .cm-foot p { margin: 0; font-size: .75rem; letter-spacing: .04em; color: rgba(255, 255, 255, .86); }
html body[class] footer .cm-foot .cm-foot-label {
  font-family: "Rosarivo", Georgia, serif; font-size: .625rem; letter-spacing: .2em; text-transform: uppercase; margin-right: .75rem; color: #fff;
}
html body[class] footer .cm-foot a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---- Desktop header stays in view; the top bar scrolls away ---- */
@media (min-width: 993px) {
  html body[class] header { position: sticky; top: -2.375rem; }
  html body[class] header .nav-box { background-color: #FCFCFC; border-bottom: 1px solid rgba(0, 14, 52, .08); }
}

/* ---- Square hairline controls ---- */
html body[class] #caviar-slider .caviar-slider--mid .item { border-radius: 0; border-color: rgba(0, 14, 52, .12); }
html body[class] button.swiper-button-prev,
html body[class] button.swiper-button-next {
  background-color: transparent; border: 1px solid rgba(0, 14, 52, .35); color: var(--cm-navy, #000E34);
}
html body[class] button.swiper-button-prev svg path,
html body[class] button.swiper-button-next svg path { fill: currentColor; }
html body[class] button.swiper-button-prev:hover,
html body[class] button.swiper-button-next:hover { background-color: var(--cm-navy, #000E34); border-color: var(--cm-navy, #000E34); color: #fff; }
html body[class] button.swiper-button-prev.swiper-button-disabled,
html body[class] button.swiper-button-next.swiper-button-disabled { opacity: .35; }
html body[class] .product-hero .quantity .quantity-btn {
  border-radius: 0; width: 2.5rem; height: 2.5rem; border-color: rgba(0, 14, 52, .2);
}
html body[class] .product-hero .quantity input.qty,
html body[class] .product-hero .quantity input[type="number"] { height: 2.5rem; border-radius: 0; border-color: rgba(0, 14, 52, .2); }

/* ---- Added to cart: a panel on the right instead of a box in the middle ---- */
html body[class] .xoo-cp-modal { background-color: rgba(0, 14, 52, .32); }
html body[class] .xoo-cp-modal .xoo-cp-container {
  position: fixed; top: 0; right: 0; bottom: 0; left: auto; margin: 0; transform: none;
  width: min(27rem, 100vw); max-width: 100vw; height: 100%; max-height: 100%; overflow-y: auto;
  padding: 3.5rem 1.75rem 2rem; border-radius: 0; background-color: #FCFCFC; box-shadow: -1rem 0 3rem rgba(0, 14, 52, .14);
  display: flex; flex-direction: column; text-align: left; animation: cm-panel-in .3s cubic-bezier(.2, .7, .2, 1);
}
@keyframes cm-panel-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { html body[class] .xoo-cp-modal .xoo-cp-container { animation: none; } }
html body[class] .xoo-cp-modal .xoo-cp-container > .xoo-cp-close {
  top: 1.125rem; right: 1.25rem; left: auto; background: transparent; border: 0; box-shadow: none; color: var(--cm-navy, #000E34); font-size: 1.125rem;
}
html body[class] .xoo-cp-modal .xoo-cp-atcn {
  background: transparent; border: 0; border-bottom: 1px solid rgba(0, 14, 52, .12); border-radius: 0;
  padding: 0 0 1rem; margin: 0 0 1.5rem; color: var(--cm-navy, #000E34);
  font-family: "Rosarivo", Georgia, serif; font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase;
}
html body[class] .xoo-cp-modal .xoo-cp-atcn .xoo-cp-icon-check { color: var(--cm-teal-ink, #00857E); }
html body[class] .xoo-cp-modal .xoo-cp-content { width: 100%; }
html body[class] .xoo-cp-modal .xoo-cp-pdetails,
html body[class] .xoo-cp-modal .xoo-cp-pdetails tbody { display: block; width: 100%; border: 0; }
html body[class] .xoo-cp-modal .xoo-cp-pdetails tr {
  display: grid; grid-template-columns: 4.5rem 1fr auto; grid-template-areas: "img title remove" "img qty price";
  gap: .5rem 1rem; align-items: center;
}
html body[class] .xoo-cp-modal .xoo-cp-pdetails td { display: block; width: auto; padding: 0; border: 0; text-align: left; }
html body[class] .xoo-cp-modal td.xoo-cp-pimg { grid-area: img; }
html body[class] .xoo-cp-modal td.xoo-cp-pimg img { width: 4.5rem; height: auto; }
html body[class] .xoo-cp-modal td.xoo-cp-ptitle { grid-area: title; }
html body[class] .xoo-cp-modal td.xoo-cp-ptitle a { font-family: "Rosarivo", Georgia, serif; font-size: 1rem; color: var(--cm-navy, #000E34); text-decoration: none; }
html body[class] .xoo-cp-modal td.xoo-cp-ptitle .variation { font-size: .75rem; margin: .25rem 0 0; }
html body[class] .xoo-cp-modal td.xoo-cp-remove { grid-area: remove; align-self: start; }
html body[class] .xoo-cp-modal td.xoo-cp-remove .xoo-cp-remove-pd { color: var(--cm-navy, #000E34); opacity: .55; font-size: .75rem; }
html body[class] .xoo-cp-modal td.xoo-cp-pqty { grid-area: qty; }
html body[class] .xoo-cp-modal td.xoo-cp-pprice { grid-area: price; text-align: right; font-size: .875rem; }
html body[class] .xoo-cp-modal .xoo-cp-qtybox { border-color: rgba(0, 14, 52, .2); border-radius: 0; }
html body[class] .xoo-cp-modal .xoo-cp-ptotal {
  float: none; width: 100%; display: flex; justify-content: space-between; align-items: baseline;
  margin: 1.5rem 0 0; padding: 1rem 0 0; border-top: 1px solid rgba(0, 14, 52, .12); font-size: .875rem; text-align: left;
}
html body[class] .xoo-cp-modal .xoo-cp-ptotal .xcp-totxt { font-family: "Rosarivo", Georgia, serif; font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; }
html body[class] .xoo-cp-modal .xoo-cp-btns { display: flex; flex-direction: column; gap: .625rem; width: 100%; padding: 1.75rem 0 0; margin: 0; }
html body[class] .xoo-cp-modal .xoo-cp-btns .xcp-btn {
  float: none; width: 100%; max-width: none; margin: 0; height: 2.75rem; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body, "Lora", Georgia, serif); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; border-radius: 0;
}
html body[class] .xoo-cp-modal .xoo-cp-btns .xoo-cp-btn-ch { order: 1; background-color: #05ACA3; color: #000E34; border: 1px solid #05ACA3; }
html body[class] .xoo-cp-modal .xoo-cp-btns .xoo-cp-btn-vc { order: 2; background-color: transparent; color: #000E34; border: 1px solid #000E34; }
html body[class] .xoo-cp-modal .xoo-cp-btns a.xoo-cp-close { order: 3; position: static; background-color: transparent; color: #000E34; border: 0; height: auto; padding: .5rem 0; text-decoration: underline; text-underline-offset: 3px; }
html body[class] .xoo-cp-modal .xoo-cp-btns .xoo-cp-btn-ch:hover,
html body[class] .xoo-cp-modal .xoo-cp-btns .xoo-cp-btn-vc:hover { background-color: #000E34; border-color: #000E34; color: #fff; }
html body[class] .xoo-cp-modal .xoo-cp-btns::after {
  order: 4; content: "Complimentary overnight shipping to the US and EU"; display: block; margin-top: .75rem;
  font-size: .75rem; letter-spacing: .035em; text-align: center; color: #000E34;
}
html:lang(fr) body[class] .xoo-cp-modal .xoo-cp-btns::after { content: "Livraison express offerte vers les États-Unis et l’UE"; }
html:lang(de) body[class] .xoo-cp-modal .xoo-cp-btns::after { content: "Kostenloser Express-Versand über Nacht in die USA und die EU"; }
html:lang(es) body[class] .xoo-cp-modal .xoo-cp-btns::after { content: "Envío urgente gratuito a EE. UU. y la UE"; }
html:lang(it) body[class] .xoo-cp-modal .xoo-cp-btns::after { content: "Spedizione espressa gratuita negli USA e nell’UE"; }
