/* M6.1: preserve each supplied image in full; place text outside its content. */
.amarcord-collection-hero {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(230px, 1fr);
  align-items: center; gap: clamp(20px, 3vw, 64px); width: 100%;
  padding: 0 clamp(16px, 3vw, 72px) 32px !important; margin-top: 0;
}
.amarcord-collection-hero .amarcord-collection-hero__image {
  width: 100%; height: auto; max-height: calc(100svh - 160px);
  object-fit: contain; object-position: center; min-width: 0;
}
.amarcord-collection-hero .amarcord-collection-hero__content {
  width: 100%; max-width: 420px; padding: 0; align-items: center;
  gap: 24px; text-align: center; min-width: 0;
}
.amarcord-collection-hero__title {
  font-size: clamp(24px, 2.2vw, 40px); line-height: 1.2;
  text-align: center; margin: 0; overflow-wrap: anywhere;
}
.amarcord-collection-hero__cta { max-width: 100%; white-space: normal; text-align: center; padding: 12px 20px; }
@media (max-width: 767px) {
  .amarcord-collection-hero { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 0 16px 24px !important; }
  .amarcord-collection-hero .amarcord-collection-hero__image { max-height: calc(100svh - 300px); }
  .amarcord-collection-hero .amarcord-collection-hero__content { gap: 14px; margin: 0 auto; max-width: 100%; }
}
.amarcord-hero-image-link { display: block; width: 100%; min-width: 0; line-height: 0; }
.amarcord-hero-image-link:focus-visible { outline: 2px solid #c39e58; outline-offset: 3px; }
.amarcord-category-navigation { width: 100%; font-family: 'Playfair Display', serif; font-size: 16px; }
.amarcord-category-navigation ul { list-style: none; padding-left: 0; margin: 0; }
.amarcord-category-navigation ul ul { padding-left: 25px; }
.amarcord-category-navigation a { display: inline-flex; padding: 4px 0; color: #c39e58; }
.amarcord-category-navigation a[aria-current] { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.amarcord-category-navigation a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.amarcord-cover-link { position: relative; }
.amarcord-cover-link .amarcord-cover-link__cta { position: static; }
.amarcord-cover-link__cta::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.amarcord-cover-link__cta:focus-visible::after { outline: 2px solid #c39e58; outline-offset: -4px; }
.amarcord-menu-toggle .brxa-inner,
.amarcord-menu-toggle .brxa-inner::before,
.amarcord-menu-toggle .brxa-inner::after { height: 1.5px; }
@media (min-width: 768px) {
  .amarcord-header-nav li:has(> :is(#brxe-kpumjq,#brxe-124d41)) {
    display: block !important; position: absolute; top: 8px; right: 8px;
    width: 44px; height: 44px; margin: 0; padding: 0; z-index: 20;
  }
  .amarcord-header-nav :is(#brxe-kpumjq,#brxe-124d41) {
    display: inline-flex !important; position: absolute; top: 0; right: 0;
    align-items: center; justify-content: center; width: 44px; height: 44px;
    min-width: 44px; min-height: 44px; padding: 8px; z-index: 20;
  }
}
.amarcord-header-nav .brxe-toggle .brxa-inner,
.amarcord-header-nav .brxe-toggle .brxa-inner::before,
.amarcord-header-nav .brxe-toggle .brxa-inner::after { height: 1.5px; }
.amarcord-header-nav .brxe-toggle.brx-toggle-div {
  min-width: 44px; min-height: 44px; width: 44px; height: 44px; transform: none;
}
.amarcord-header-nav :is(#brxe-mnulft,#brxe-gmleft) > a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; width: 44px; height: 44px;
}
.amarcord-header-shell :is(#brxe-dnljpt,#brxe-ftdmlv) {
  flex: 0 0 44px; width: 44px; min-width: 44px; max-width: 44px;
  margin-left: 0; padding: 0;
  display: flex; align-items: center; justify-content: center; height: 44px;
}
.amarcord-header-shell .amarcord-mini-cart .cart-icon {
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
@media (max-height: 500px) and (orientation: landscape) {
  .amarcord-collection-hero { grid-template-columns: minmax(0, 3fr) minmax(190px, 2fr); gap: 16px; }
  .amarcord-collection-hero .amarcord-collection-hero__image { max-height: calc(100svh - 140px); }
}
.amarcord-lux-colours { margin: 0 0 24px; }
.amarcord-lux-colours__label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 500; }
.amarcord-lux-colours__items { display: flex; flex-wrap: wrap; gap: 12px; }
.amarcord-lux-colours__item { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; min-width: 52px; min-height: 58px; padding: 5px; font-size: 12px; line-height: 1.4; color: inherit; text-decoration: none; }
.amarcord-lux-colours__dot { display: block; width: 25px; height: 25px; border-radius: 50%; border: 1px solid #777; }
.amarcord-lux-colours__item[aria-current] .amarcord-lux-colours__dot { outline: 2px solid #c39e58; outline-offset: 3px; }
.amarcord-lux-colours__item:focus-visible { outline: 2px solid #c39e58; outline-offset: 2px; }
/* Equal, separate targets on desktop and mobile; geometry never touches SVG edges. */
.amarcord-header-left #brxe-xufsdf,
.amarcord-header-left #brxe-afkcxo { width: 44px; min-width: 44px; max-width: 44px; flex: 0 0 44px; }
.amarcord-header-left #brxe-tqkbzx,
.amarcord-header-left #brxe-afkcxo > .toggle { display: flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; max-width: 44px; height: 44px; padding: 8px; transform: none; overflow: visible; }
.amarcord-header-left { gap: 6px; }
.amarcord-header-shell #brxe-hgxoco { gap: 6px; }
.amarcord-header-shell #brxe-hgxoco > .bricks-link-wrapper,
.amarcord-header-shell .mini-cart-link { width: 44px; min-width: 44px; height: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.amarcord-header-shell svg[data-m61-header-icon] { width: 28px; height: 28px; min-width: 28px; overflow: visible; }
.amarcord-header-shell a:focus-visible,
.amarcord-header-shell button:focus-visible { outline: 2px solid #c39e58; outline-offset: 2px; }
.amarcord-header-left .amarcord-header-nav,
.amarcord-header-left .amarcord-header-search { width: 44px; min-width: 44px; max-width: 44px; flex: 0 0 44px; }
.amarcord-header-left .amarcord-menu-toggle,
.amarcord-header-left .amarcord-header-search > .toggle { display: flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; max-width: 44px; height: 44px; padding: 8px; transform: none; overflow: visible; }
.amarcord-header-shell :is(#brxe-hgxoco,#brxe-d35c39) { gap: 6px; justify-content: flex-end; align-items: center; }
.amarcord-header-shell :is(#brxe-hgxoco,#brxe-d35c39) > .bricks-link-wrapper { width: 44px; min-width: 44px; height: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.amarcord-menu-home { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.amarcord-header-nav .brx-dropdown-content .brx-dropdown-content { position: static !important; transform: none !important; min-width: 0; }
.amarcord-header-nav .brx-nav-nested-items { overflow-y: auto; max-height: calc(100dvh - 32px); overscroll-behavior: contain; }
.amarcord-header-nav a:visited { color: inherit; }
.amarcord-faq-size-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; border: 1px solid #c39e58; color: #986f2d; white-space: normal; max-width: 100%; text-align: center; }
.amarcord-faq-size-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.amarcord-filter-toggle { min-width: 44px; min-height: 44px; }
.amarcord-latest-grid { align-items: stretch; }
.amarcord-latest-grid > div { min-width: 0; }
.amarcord-latest-card { width: 100%; min-width: 0; }
.amarcord-latest-card .brxe-product-price { margin-top: auto; }
.amarcord-latest-card .brxe-product-add-to-cart a { max-width: 100%; padding: 10px 12px; white-space: normal; font-size: 14px; }
.amarcord-latest-card :is(h2,h3,h4) { overflow-wrap: anywhere; }
.amarcord-header-shell :is(#brxe-afkcxo,#brxe-f9ae1a) > .toggle { width: 44px; height: 44px; padding: 8px; }
.amarcord-header-shell:not(.amarcord-header-shell--standard) { min-height: 140px; }
.amarcord-header-shell svg[data-m61-header-icon] { width: 32px !important; height: 32px !important; fill: none !important; stroke: currentColor; stroke-width: 1.5px; }
#brxe-afkcxo svg[data-m61-header-icon],
#brxe-f9ae1a svg[data-m61-header-icon] { width: 32px !important; height: 32px !important; }
.amarcord-header-shell #brxe-afkcxo > .toggle,
.amarcord-header-shell #brxe-f9ae1a > .toggle,
.amarcord-header-left .amarcord-menu-toggle.brxe-toggle { padding: 6px; }
@media (min-width: 768px) {
  .amarcord-header-shell:not(.amarcord-header-shell--standard) :is(.amarcord-header-left,.amarcord-header-tools) {
    position: relative;
    top: 38px;
  }
}
@media (max-width: 767px) {
  .amarcord-header-shell:not(.amarcord-header-shell--standard) :is(.amarcord-header-left,.amarcord-header-tools) {
    position: relative;
    top: 14px;
  }
  .amarcord-header-shell :is(#brxe-afkcxo,#brxe-f9ae1a) svg[data-m61-header-icon] {
    width: 32px !important;
    height: 32px !important;
  }
}

@media (max-width: 767px) {
  .amarcord-header-shell :is(#brxe-hgxoco,#brxe-d35c39) > .bricks-link-wrapper { display: none; }
}

/* Full supplied cover source; remove fixed-height background cropping and empty wrappers. */
.amarcord-source-cover {
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto; padding: 0 16px !important;
  width: 100%; min-height: 0; max-height: none;
}
.amarcord-source-cover > .amarcord-collection-hero__image {
  display: block; width: 100%; height: auto; max-height: calc(100svh - 160px);
  object-fit: contain; object-position: center;
}

/* M7: one responsive, full-width hero rhythm across collection views. */
body.tax-product_cat .amarcord-collection-hero,
body.page .amarcord-collection-hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 !important;
}
body.tax-product_cat .amarcord-collection-hero .amarcord-collection-hero__image,
body.page .amarcord-collection-hero .amarcord-collection-hero__image {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
}
body.tax-product_cat .amarcord-collection-hero .amarcord-collection-hero__content,
body.page .amarcord-collection-hero .amarcord-collection-hero__content {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 14px 16px 0;
  gap: 0;
  text-align: center;
}
body.tax-product_cat .amarcord-collection-hero__title,
body.page .amarcord-collection-hero__title {
  margin: 0;
}
/* The linked full-width image and the collection/category content below it
   retain navigation while preventing a side-by-side hero CTA. */
body.tax-product_cat .amarcord-collection-hero__cta,
body.page .amarcord-collection-hero__cta { display: none !important; }

/* Preserve source proportions for every category cover, including the tall
   portrait used by the City root category. */

/* Standalone source-cover pages place their existing page heading directly
   after a viewport-scaled image. */
body.page .amarcord-source-cover,
body.post-type-archive-product .amarcord-source-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  height: clamp(260px, 55svh, 900px);
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0 !important;
}
body.page .amarcord-source-cover > .amarcord-collection-hero__image,
body.post-type-archive-product .amarcord-source-cover > .amarcord-collection-hero__image {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}
body.page-id-1867 .amarcord-source-cover > .amarcord-collection-hero__image,
body.page-id-2806 .amarcord-source-cover > .amarcord-collection-hero__image { object-position: 65% 48%; }
body.page-id-491 .amarcord-source-cover > .amarcord-collection-hero__image { object-position: 50% 50%; }

/* Home hero grows with its copy while retaining a width-aware minimum. */
body.page-id-270 #brxe-nnevvh {
  --home-hero-height: max(clamp(400px, 60svh, 760px), min(86svh, calc(min(100vw, 1920px) * .484)));
  height: auto;
  min-height: var(--home-hero-height) !important;
  max-height: none;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Keep each overlay header logo centered against the full viewport width. */
.amarcord-header-shell .brxe-logo {
  position: absolute !important;
  left: 50% !important;
  top: 20px;
  transform: translateX(-50%) !important;
  width: clamp(120px, 42vw, 161px) !important;
  z-index: 1001 !important;
}
.amarcord-header-shell .brxe-logo img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 340px) {
  .amarcord-header-shell .brxe-logo { width: 108px !important; }
}

@media (max-width: 767px) {
  body.tax-product_cat .amarcord-collection-hero,
  body.page .amarcord-collection-hero { gap: 0; padding: 0 !important; }
  body.tax-product_cat .amarcord-collection-hero .amarcord-collection-hero__content,
  body.page .amarcord-collection-hero .amarcord-collection-hero__content { padding-top: 12px; }

  /* Keep existing mobile hero copy and its CTA in the natural content flow. */
  body.page-id-270 #brxe-nnevvh > .brxe-container {
    width: 100% !important;
    padding: 140px 20px 8px !important;
    align-items: flex-start;
    justify-content: flex-start;
    box-sizing: border-box;
  }
  body.page-id-270 #brxe-jxljvk {
    width: 100% !important;
    max-width: 300px;
    padding-top: 0 !important;
    font-size: clamp(15px, 4.2vw, 17px) !important;
    line-height: 1.35 !important;
  }
  body.page-id-270 #brxe-xvgurq {
    width: 100% !important;
    padding-top: 0 !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
  }
  body.page-id-270 #brxe-ocwmhu {
    width: min(100%, 300px) !important;
    padding: 0 !important;
    font-size: clamp(25px, 8vw, 34px) !important;
    line-height: 1.1 !important;
  }
  body.page-id-270 #brxe-rvdyna {
    width: min(100%, 300px) !important;
    margin-top: 8px !important;
  }
}



/* M8: align the product-card content and actions across the listing grids. */
.amarcord-latest-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.amarcord-latest-card > .brxe-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.amarcord-latest-card > .brxe-heading:first-of-type { min-height: 2.8em; }
.amarcord-latest-card > .brxe-heading:nth-of-type(2) { min-height: 3.2em; }
.amarcord-latest-card .brxe-product-price { margin-top: auto; }
.amarcord-latest-card .brxe-product-add-to-cart { width: 100%; margin-top: 10px; }
.amarcord-latest-card .brxe-product-add-to-cart a,
:is(#brxe-cumwzk,#brxe-jrugkg,#brxe-iiarvd,#brxe-jhycqh,#brxe-ejgljx) .brxe-block:has(> .brxe-product-add-to-cart) .brxe-product-add-to-cart a {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  text-align: center;
  white-space: normal;
}
:is(#brxe-cumwzk,#brxe-jrugkg,#brxe-iiarvd,#brxe-jhycqh,#brxe-ejgljx) .brxe-block:has(> .brxe-product-add-to-cart) {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Keep clear, responsive spacing around the Story page newsletter section. */
body.page-id-681 #brxe-kwsntz { margin-block: clamp(40px, 5vw, 80px); }

/* M8.3: keep the complete storefront on a centered, 1920px desktop canvas. */
/* Hero-less pages share an opaque header in normal document flow. */
#brx-header:has(.amarcord-header-shell--standard) {
  position: relative;
  background: #fff;
}
.amarcord-header-shell--standard {
  position: relative !important;
  min-height: 150px;
  background: #fff;
}
.amarcord-header-shell--standard .bricks-site-logo {
  filter: none !important;
}
.amarcord-header-shell--standard :is(.amarcord-header-left,.amarcord-header-tools) {
  position: relative;
  top: 38px;
}
@media (max-width: 767px) {
  .amarcord-header-shell--standard { min-height: 130px; }
  .amarcord-header-shell--standard :is(.amarcord-header-left,.amarcord-header-tools) { top: 14px; }
}

#brx-content,
#brx-footer {
  box-sizing: border-box;
  width: min(100%, 1920px);
  margin-inline: auto;
}

#brx-content img,
#brx-footer img,
#brx-content video,
#brx-footer video {
  max-width: 100%;
}

/* M9.2: home composition follows the available CSS width and its content. */
body.page-id-270 .amarcord-header-shell .brxe-logo {
  width: clamp(96px, 8.4vw, 161px) !important;
  top: clamp(14px, 1.05vw, 20px);
}
@media (min-width: 768px) {
  body.page-id-270 #brxe-nnevvh { background-position: left center; }
  body.page-id-270 #brxe-nnevvh > .brxe-container {
    width: 100%;
    min-height: var(--home-hero-height);
    box-sizing: border-box;
    padding: clamp(132px, 10vw, 192px) clamp(20px, 2.5vw, 48px) clamp(28px, 3vw, 58px) !important;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(10px, 1vw, 18px);
  }
  body.page-id-270 #brxe-jxljvk {
    width: min(40%, 535px) !important;
    font-size: clamp(16px, 1.25vw, 24px);
    line-height: 1.5;
    padding: 0;
  }
  body.page-id-270 #brxe-xvgurq {
    width: min(44%, 535px);
    padding: 0;
    font-size: clamp(11px, .75vw, 14px);
  }
  body.page-id-270 #brxe-ocwmhu {
    padding: 0;
    font-size: clamp(28px, 2.8vw, 45px);
    line-height: 1.2;
  }
  body.page-id-270 #brxe-rvdyna {
    width: min(300px, 44%);
    min-height: 44px;
    margin-top: 10px;
    font-size: clamp(12px, .84vw, 16px);
    padding: 10px 14px;
  }
}

body.page-id-270 #brxe-ocwmhu p { text-align: left !important; }
@media (min-width: 768px) and (max-width: 991px) {
  body.page-id-270 #brxe-nnevvh { background-position: center center; }
}
@media (min-width: 480px) and (max-width: 767px) {
  body.page-id-270 #brxe-nnevvh { background-position: left center; }
}

/* M9.12.1: match mobile logo width across all header variants. */
@media (max-width: 767px) {
  .amarcord-header-shell .brxe-logo { width: 96px !important; }
}

/* M9.12.2: restore the mobile cover composition on collection views. */
@media (max-width: 767px) {
  body.tax-product_cat .amarcord-collection-hero__title .amarcord-title-line {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  body.tax-product_cat #amarcord-catalog > .brxe-container {
    padding-top: 16px !important;
  }
  body.tax-product_cat #amarcord-catalog .brxe-text {
    padding-top: 0 !important;
  }

  body.page-id-270 #brxe-nnevvh {
    --home-hero-height: clamp(390px, 48svh, 440px);
    min-height: var(--home-hero-height) !important;
  }
  body.page-id-270 #brxe-nnevvh > .brxe-container {
    padding: 72px 20px 8px !important;
  }
  body.page-id-270 #brxe-jxljvk {
    width: min(100%, clamp(180px, 56vw, 220px)) !important;
    max-width: 220px;
    font-size: clamp(14px, 4vw, 16px) !important;
    line-height: 1.4 !important;
  }
  body.page-id-270 #brxe-rvdyna {
    width: min(100%, clamp(180px, 56vw, 220px)) !important;
    max-width: 220px;
    font-size: clamp(12px, 3.4vw, 13px) !important;
    white-space: nowrap;
  }
}
