/* Crown Affair clone — chrome + sections + Woo overrides */
:root { --ca-pad: 40px; }

/* source sets these at runtime via JS; without it they must exist or the
   .main{margin-top:var(--header-height)} rule computes invalid */
:root { --header-height: 48px; --desktop-announcement-height: 0px; }
@media (min-width: 64rem) { :root { --header-height: 135px; --desktop-announcement-height: 45px; } }

/* Custom elements with no source CSS default to inline; make them blocks.
   The :not(.hidden) guard matters: the source hides blocks like the desktop
   thumbnail carousel with .hidden{display:none}, and an unconditional
   s-carousel{display:block} here outranks it (same specificity, later wins),
   which left the 506px-tall desktop swiper in the 390px layout and pushed the
   PDP title 2.6 screens down. Never make an element block that the source
   marks hidden. */
.ca-block:not(.hidden), s-header:not(.hidden), s-carousel:not(.hidden),
s-desktop-nav:not(.hidden), s-marquee:not(.hidden), s-quote:not(.hidden),
s-banner:not(.hidden), .slider:not(.hidden), s-tabs:not(.hidden),
s-image:not(.hidden), s-video:not(.hidden), s-instagram:not(.hidden) { display: block; }

/* Grid/flex children default to min-width:auto, so a carousel whose slides measure
   wider than the viewport (Swiper sizes them from the capture-time desktop run) pushes
   its whole ancestor chain wider than the screen: measured product__layout at 596px
   inside a 390px main, which shoved the PDP title 2.6 screens down. min-width:0 lets
   the track shrink to the viewport again; the source relies on its own runtime styles
   for the same effect. */
main > .shopify-section, .product__layout, .product__images, .product__information,
.product__layout > *, .product__images > * { min-width: 0; }

/* Carousel slide sizing. The captured DOM carries Swiper's inline slide width
   (327.333px) which is what the live site renders at 1440 (card 327x492 measured), but
   that value is a DESKTOP measurement and inline beats media queries — so the clone used
   desktop-sized cards at 1024/390 (measured 327 vs source 289/292). Only !important can
   outrank an inline style, hence the !important overrides below, using the source's own
   numbers: base 75% (390 -> card 292) and 20.45833rem from 64.0625rem up (-> 327).
   Card art is squared off so a card can never grow to its image's natural height. */
.collection-carousel__carousel .swiper-wrapper > .swiper-slide { min-width: 0; }
.collection-carousel__carousel .swiper-wrapper > .swiper-slide > .product-card { height: 100%; width: 100%; }
.collection-carousel__carousel .swiper-wrapper > .swiper-slide .product-card__images img {
  width: 100% !important; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
}
/* Breakpoints come from the live source, measured at three widths:
     viewport 1440 -> container 1092, slide 327.33 = 29.98%
     viewport 1024 -> container  976, slide 288.67 = 29.58%
     viewport  390 -> container  390, slide 292.00 = 74.87%
   So it is ~30% of the track on desktop and ~75% below 64.0625rem -- a fixed rem value
   or a plain 75% both misrender 1024 (measured: 732px cards vs the source's 289px). */
@media (max-width: 63.99rem) {
  .collection-carousel__carousel .swiper-wrapper > .swiper-slide { width: 75% !important; }
  .collection-carousel__carousel .swiper-wrapper > .swiper-slide .product-card__images img {
    width: 100% !important;
  }
}
/* Desktop branch starts AT 64rem so a 1024px viewport gets the desktop ratio. The
   source renders 1024 with a 288.667px slide (Swiper recomputes per viewport from
   slidesPerView ~3.34); the 64.0625rem boundary left 1024 on the mobile 75% branch and
   produced 732px cards (measured). */
@media (min-width: 64rem) {
  .collection-carousel__carousel .swiper-wrapper > .swiper-slide { width: 30% !important; }
}
.quote__logos-slideshow .swiper-wrapper > .swiper-slide { min-width: 0; }

/* hide leftovers we never want */
.skip-to-content-link { display: none !important; }

/* header sits above content */
.site-header-section { z-index: 30; }
body { overflow-x: hidden; }
.header__nav-link { cursor: pointer; }
body.ca-nav-open { overflow: hidden; }

/* mobile nav (built by us) */
.ca-mobile-nav { display: none; }
body.ca-mobile-open .ca-mobile-nav { display: block; }
body.ca-mobile-open { overflow: hidden; }

/* product cards. NOTE: we used to hide .product-card__title here, back when we
   drew our own card and the title sat in the image alt; the source card shows
   it, so hiding it silently removed every product name from the grid. */
.product-card { position: relative; }
.product-card .hover-image { position: absolute; inset: 0; opacity: 0; transition: opacity .25s ease; }
.product-card:hover .hover-image { opacity: 1; }
.product-card__title-link { margin: 0; }
.product-card__info-link { text-decoration: none; color: inherit; }
.collection-grid__grid { list-style: none; margin: 0; padding: 0; }
.product-card__badge { letter-spacing: .04em; }

/* carousels: the source CSS already provides a non-initialised layout for
   .collection-carousel__carousel .swiper — do not override it. */

/* page + sections width */
.page-width { max-width: 1600px; margin: 0 auto; padding-left: var(--ca-pad); padding-right: var(--ca-pad); }

/* Woo: cart / checkout / account rendered inside our chrome */
.ca-woo-wrap { max-width: 1100px; margin: 40px auto 80px; padding: 0 20px; }
.ca-woo-wrap .woocommerce { margin: 0; }
.woocommerce table.shop_table { border-collapse: collapse; width: 100%; }
.woocommerce table.shop_table th,
.woocommerce table.shop_table td { border-bottom: 1px solid #e5e5e5; padding: 12px 8px; text-align: left; }
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #place_order { background: #1a1a1a; color: #fff; border: 0; padding: 14px 28px; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; cursor: pointer; border-radius: 0; }
.woocommerce .button:hover, .woocommerce #place_order:hover { opacity: .85; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select { border: 1px solid #d9d9d9; padding: 10px 12px; background: #fff; }
.woocommerce .woocommerce-checkout { display: block; }
.woocommerce #payment { background: transparent; }
.woocommerce-checkout .col2-set { display: flex; gap: 40px; flex-wrap: wrap; }
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 { flex: 1 1 320px; }
.woocommerce-info, .woocommerce-message, .woocommerce-error { border-top: 2px solid #1a1a1a; background: #f7f7f7; padding: 14px 18px; list-style: none; }

/* PDP — fallback template ONLY. Every rule here is scoped to .ca-fb so it
   cannot collide with the source's own .product / .product__information
   markup, which ships with the source's compiled CSS (src.css) and must be
   left untouched. */
.ca-fb .product { display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap; margin-top: 32px; }
.ca-fb .product__media { flex: 1 1 55%; }
.ca-fb .product__information { flex: 1 1 360px; }
.ca-fb .product__gallery-item { display: none; }
.ca-fb .product__gallery-item.active { display: block; }
.ca-fb .product__gallery img { width: 100%; }
.ca-fb .product-add-to-cart__btn, .ca-fb .product__buynow { display: block; text-align: center; border: 1px solid #1a1a1a; background: transparent; color: #1a1a1a; text-decoration: none; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.ca-fb .product__buynow { background: #1a1a1a; color: #fff; }
.ca-fb .product__qty-qty .qty { width: 64px; border: 1px solid #d9d9d9; padding: 8px; }
.ca-fb .product__below { margin-top: 56px; max-width: 900px; }

/* rte basics */
.rte img { max-width: 100%; height: auto; }
.rte h1, .rte h2, .rte h3 { font-weight: 400; }

/* buttons */
.ca-btn { display: inline-block; padding: 14px 32px; border: 1px solid #1a1a1a; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; text-decoration: none; cursor: pointer; }
.ca-btn--solid { background: #1a1a1a; color: #fff; }

/* cart */
.ca-cart__table { width: 100%; border-collapse: collapse; }
.ca-cart__table td { border-bottom: 1px solid #e6e1d6; padding: 16px 8px; vertical-align: middle; }
.ca-cart__media img { width: 90px; height: 90px; object-fit: cover; }
.ca-cart__qty { display: block; font-size: 12px; color: #666; margin-top: 6px; }
.ca-cart__sub { text-align: right; white-space: nowrap; }
.ca-cart__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; gap: 16px; flex-wrap: wrap; }
.ca-cart__total { font-size: 16px; letter-spacing: .04em; }

/* sale strikethrough (打5折) */
.product-card__compare-price, .product-card__price s, .product-price s {
  text-decoration: line-through; opacity: .55; font-weight: 400; margin-right: .25em;
}

/* source mobile nav drawer */
#MobileNavDrawer.open {
  display: block;
  z-index: 80;
  height: calc(100% - var(--header-height)) !important;
}
#MobileNavDrawer .mobile-nav__link--parent { display: flex; align-items: center; justify-content: space-between; }

/* home mobile: source puts the wordmark over the hero, not in the header */
body.home .logo-hero-section { pointer-events: none; }
body.home .logo-hero-section .section__logo {
  display: block !important;
  width: 180px;
  color: #fff;
}
/* inner pages: source header is hamburger | wordmark | search+bag */
body:not(.home) .tannoucement-bar__mobile { display: none !important; }
body:not(.home) a.header__logo-btn {
  display: flex !important;
  width: 160px;
  max-width: 58vw;
  color: inherit;
  padding: 0;
}

/* PDP gallery slides were captured at desktop 652px; force source-like mobile width */
@media (max-width: 63.99rem) {
  .product__images .swiper:not(.swiper-vertical) .swiper-wrapper > .swiper-slide {
    width: 88% !important;
  }
}

/* checkout — Shopify two-col WaitPay (Geologie pattern) */
.geo-chk-top{
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;
  padding:.85rem 1.5rem;border-bottom:1px solid #e6e6e6;background:#fff;
}
.geo-chk-top__logo{justify-self:center;color:#1a1a1a}
.geo-chk-top__logo svg{height:14px;width:auto;display:block}
.geo-chk-top__bag{justify-self:end;padding:.4rem}
.geo-woo-checkout{margin:0;padding:0;width:100%}
form.checkout.geo-checkout,
form.woocommerce-checkout.geo-checkout,
body.woocommerce-checkout form.geo-checkout,
.geo-checkout{
  display:grid !important;
  grid-template-columns:minmax(0,1.15fr) minmax(320px,.95fr);
  gap:0;min-height:70vh;width:100%;
}
.geo-checkout__main{padding:2.2rem 8% 3rem;max-width:720px;margin-left:auto}
.geo-checkout-block{margin:0 0 1.6rem}
.geo-checkout-block h2{
  font-size:1.15rem;font-weight:600;margin:0 0 .85rem;letter-spacing:0;
  font-family:inherit;color:#1e2023;display:flex;justify-content:space-between;align-items:baseline;
}
.geo-chk-signin{font-size:.9rem;font-weight:500;color:#1e2023;text-decoration:underline}
.geo-checkout-muted{color:#6d6d6d;font-size:.88rem;margin:-.4rem 0 1rem}
.geo-checkout__aside{
  background:#f5f5f5;padding:2.2rem 8% 3rem 2rem;border-left:1px solid #e6e6e6;
}
.geo-chk-sum-toggle{display:none}
.geo-ship-box{background:#f5f5f5;border-radius:10px;padding:.9rem 1rem;color:#6d6d6d;font-size:.92rem}
.geo-ship-box p{margin:0;text-align:center}
.geo-checkout-policies{display:flex;flex-wrap:wrap;gap:.85rem;margin:2rem 0 0;font-size:.85rem}
.geo-checkout-policies a{color:#1e2023;text-decoration:underline}
.geo-shipping-methods{width:100%;border-collapse:collapse}
.geo-shipping-methods th{display:none}
.geo-shipping-methods td{padding:.7rem .85rem;border:1px solid #d0d0d0;background:#fff;border-radius:8px}
body.woocommerce-checkout .annoucement-bar__desktop,
body.woocommerce-checkout .site-header-section,
body.woocommerce-checkout .header{display:none}
.woocommerce-checkout .woocommerce-notices-wrapper,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout #ship-to-different-address,
.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper,
.woocommerce-checkout #payment .payment_box > p,
.woocommerce-checkout .woocommerce-account-fields,
.woocommerce-checkout h1{display:none !important}
.woocommerce-checkout .col2-set,.woocommerce-checkout .col-1,.woocommerce-checkout .col-2{
  display:block;width:100%;float:none;max-width:none;margin:0;
}
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper{
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;
}
.woocommerce-checkout .form-row{width:auto !important;float:none !important;margin:0 0 12px !important;padding:0 !important;position:relative}
.woocommerce-checkout .form-row-wide{grid-column:1 / -1}
.woocommerce-checkout .form-row-first{grid-column:1 / 4}
.woocommerce-checkout .form-row-last{grid-column:4 / -1}
.woocommerce-checkout .form-row label{
  position:absolute;left:14px;top:6px;font-size:.7rem;font-weight:600;color:#737373;margin:0;z-index:1;pointer-events:none;
}
.woocommerce-checkout .form-row label .required{display:none}
.woocommerce-checkout #billing_address_2_field label.screen-reader-text{
  clip:auto !important;clip-path:none !important;width:auto !important;height:auto !important;
  margin:0 !important;overflow:visible !important;position:absolute !important;
  left:14px;top:6px;font-size:.7rem;font-weight:600;color:#737373;padding:0;
}
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row .select2-selection{
  height:52px;border:1px solid #d0d0d0;border-radius:8px;padding:18px 12px 6px;background:#fff;width:100%;font-size:1rem;
}
.woocommerce-checkout .form-row input.input-text::placeholder{color:transparent}
.woocommerce-checkout #payment{background:transparent !important;border:0 !important;padding:0 !important}
.woocommerce-checkout #payment ul.payment_methods{list-style:none;margin:0;padding:0;border:1px solid #d0d0d0;border-radius:12px;overflow:hidden;background:#fff}
.woocommerce-checkout #payment li.wc_payment_method{padding:12px 14px;margin:0}
.woocommerce-checkout #payment .payment_method_wootbpay_credit_card_gateway{background:#f4f1ec}
.woocommerce-checkout #payment .payment_box{background:transparent;padding:12px 0 4px}
.woocommerce-checkout #payment .payment_box input,
.woocommerce-checkout #payment .payment_box .input-text{
  height:48px;border:1px solid #d0d0d0;border-radius:8px;padding:0 12px;background:#fff;width:100%;margin:0 0 10px;
}
.woocommerce-checkout #place_order,
.woocommerce-checkout #payment #place_order,
.woocommerce-checkout button#place_order{
  width:100%;margin-top:1.1rem;background:#1e2023 !important;color:#fff !important;
  border:0;border-radius:999px;padding:1rem 1.2rem;font-weight:700;font-size:1rem;cursor:pointer;
  text-transform:none;letter-spacing:0;
}
.woocommerce-checkout table.shop_table thead{display:none}
.woocommerce-checkout table.shop_table{width:100%;border:0;background:transparent !important}
.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td{border:0;border-bottom:1px solid rgba(0,0,0,.08);padding:.7rem 0;text-align:left;vertical-align:middle;font-weight:400}
.woocommerce-checkout table.shop_table .order-total th,
.woocommerce-checkout table.shop_table .order-total td{font-size:1.15rem;font-weight:700;border-bottom:0}
.woocommerce-checkout table.shop_table .product-total,
.woocommerce-checkout table.shop_table tfoot td{text-align:right}
@media (max-width:860px){
  form.checkout.geo-checkout,
  form.woocommerce-checkout.geo-checkout,
  .geo-checkout{grid-template-columns:1fr !important}
  .geo-checkout__aside{order:-1;border-left:0;border-bottom:1px solid #e6e6e6;padding:0;background:#f5f5f5}
  .geo-checkout__main{padding:1.4rem 1rem 2.5rem;max-width:none;margin:0}
  .geo-chk-sum-toggle{
    display:flex;width:100%;justify-content:space-between;align-items:center;
    background:#f5f5f5;border:0;border-bottom:1px solid #e6e6e6;padding:.95rem 1rem;
    font:inherit;font-size:1rem;color:#1e2023;cursor:pointer;
  }
  .geo-chk-sum-toggle::after{content:"▾";margin-left:.35rem}
  .geo-chk-sum-toggle.is-open::after{content:"▴"}
  .geo-chk-sum-body{display:none;padding:1rem 1rem 1.4rem;background:#f5f5f5}
  .geo-chk-sum-body.is-open{display:block}
  .woocommerce-checkout .woocommerce-billing-fields__field-wrapper{grid-template-columns:1fr}
  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last{grid-column:1}
  .geo-chk-top{padding:.55rem 1rem}
}




/* Instagram feed widget: its runtime JS never loads here, so the unloaded
   placeholders would stack into a multi-thousand-pixel block. Hide the
   placeholders that carry no image; keep the section chrome. */
.instagram-feed .fs-entry-container:not(:has(img)) { display: none !important; }
.instagram-feed .fs-wrapper { min-height: 0 !important; height: auto !important; }


/* PDP gallery thumbs */
.product__thumbs { list-style: none; }
.product__gallery-thumb { width: 72px; height: 72px; padding: 0; border: 1px solid transparent; background: none; cursor: pointer; }
.product__gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product__gallery-thumb.is-on { border-color: #1a1a1a; }
/* Removed (2026-09-26): hand-written .product / .product__information
   padding + max-width:1400px. They were written when we drew the PDP
   ourselves; now that the page is the source's own markup styled by the
   source's compiled CSS, they only fought it (1400px cap -> 40px white
   band on the right; 72px top padding -> title pushed down; sticky left
   column -> wrong column split). */

/* The source hides its button spinner with JS at runtime; our clone never runs
   that JS, so the un-hidden spinner added 14px inside the Add-to-Cart button. */
.product-add-to-cart__btn loading-spinner { display: none; }

/* collection card: swatches + quick add (source layout) */
.product-card__variant-swatch-wrapper { min-height: 26px; }
.product-card__variant-swatch .product__variant-option { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.product-card__variant-swatch .product__variant-option:has(img) { width: 26px; height: 26px; overflow: hidden; border-radius: 9999px; }
.product-card__variant-swatch .product__variant-option img { width: 26px; height: 26px; object-fit: cover; display: block; }
.product-card__variant-swatch .product__variant-option.active { box-shadow: 0 0 0 1px #1a1a1a; }
.product-card__quick-add { margin-top: .875rem; }
.product-card__quick-add .btn--productcard { display: flex; align-items: center; justify-content: center; height: 3rem; gap: .25rem; border: 1px solid #000; background: #fff; color: #000; font-size: .75rem; text-transform: none; text-decoration: none; }
.product-card__quick-add .btn--productcard:hover { background: #000; color: #fff; }
.product-card__quick-add .btn--productcard:disabled { opacity: .5; }
.product-card .product-card__info-link { text-decoration: none; }
.product-card__subtitle { color: #6a6a6a; }
.collection-grid__filters { border-bottom: 1px solid #e6e1d6; margin-bottom: 1.5rem; }
.collection-grid__header { padding: 1rem 0 0; }
