/* Native WordPress media and enhancement layout. */
/* Approved editorial concepts: local responsive media, without catalogue overrides. */
.evori-art { display: block; width: 100%; min-width: 0; }
.evori-art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.evori-art-figure { min-width: 0; margin: 0; }
.evori-art-figure .evori-art { overflow: hidden; border-radius: 26px; }
.evori-art-caption { margin-top: 10px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.evori-home-art .home-hero__photo { border-radius: 32px 32px 100px 32px; }
.evori-home-art .home-hero__photo img { height: 100%; aspect-ratio: auto; object-position: 58% 50%; }
.home-how__media .evori-art img { aspect-ratio: 3 / 2; border-radius: 28px; box-shadow: var(--shadow-soft); }
.home-how__media:has(.evori-art) { max-width: 640px; }
.home-how__media:has(.evori-art) .home-how__badge { bottom: -18px; }
.evori-routines, .evori-editorial-story, .evori-product-editorial {
  padding: clamp(36px, 6vw, 80px) var(--gutter);
}
.evori-routines__grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 24px; align-items: start; }
.evori-routines__item { display: block; min-width: 0; }
.evori-routines__item:nth-child(2) { margin-top: 48px; }
.evori-routines__item .evori-art { overflow: hidden; border-radius: 24px; }
.evori-routines__item img { aspect-ratio: 4 / 5; transition: transform .3s ease; }
.evori-routines__item:hover img { transform: scale(1.025); }
.evori-routines__item > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px; }
.evori-routines__item > div > span { font-size: 12px; color: var(--muted); }
.evori-routines__item h3 { font-size: 23px; }
.evori-routines__item h3 span { padding-left: 8px; font-size: 18px; }
.evori-editorial-story { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.evori-editorial-story__copy { display: grid; justify-items: start; gap: 22px; min-width: 0; }
.evori-editorial-story__copy .eyebrow { margin: 0; }
.evori-editorial-story__copy h2 { font-size: clamp(32px, 3.8vw, 52px); }
.evori-editorial-story__copy > p:not(.eyebrow) { max-width: 440px; color: var(--muted); }
.evori-editorial-story--reverse { grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); }
.evori-editorial-story--reverse .evori-art-figure { order: 2; }
.page-hero.evori-editorial-header { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; align-items: start; }
.evori-editorial-header > div:not(.bubbles) { grid-column: 1; }
.evori-editorial-header > .evori-art-figure { grid-column: 2; grid-row: 1 / span 2; align-self: center; z-index: 1; }
.evori-editorial-header > div:nth-last-child(2) { align-self: start; }
.about-story__image.evori-about-art { aspect-ratio: 3 / 2; border-radius: 26px; }
.evori-about-art .evori-art, .evori-about-art img { height: 100%; }
.big-steps__visual.evori-step-art { background: transparent; }
.evori-step-art .evori-art, .evori-step-art img { height: 100%; }
.evori-step-art img { object-position: center; }
.evori-product-editorial { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.65fr); gap: clamp(28px, 5vw, 80px); align-items: center; border-top: 1px solid var(--line); }
.evori-product-editorial > div { display: grid; justify-items: start; gap: 22px; }
.evori-product-editorial .eyebrow { margin: 0; }
.evori-product-editorial h2 { font-size: clamp(32px, 3.8vw, 52px); }
.evori-journal-art::before, .evori-journal-art::after { content: none; }
.journal-grid__art.evori-journal-art { background: transparent; aspect-ratio: 3 / 2; border-radius: 24px; }
.evori-journal-art .evori-art, .evori-journal-art img { height: 100%; }
@media (max-width: 860px) {
  .page-hero.evori-editorial-header { grid-template-columns: minmax(0, 1fr); }
  .evori-editorial-header > .evori-art-figure { grid-column: 1; grid-row: auto; }
  .evori-editorial-story, .evori-editorial-story--reverse, .evori-product-editorial { grid-template-columns: minmax(0, 1fr); }
  .evori-editorial-story--reverse .evori-art-figure { order: 0; }
  .evori-editorial-story__copy { max-width: 600px; }
  .evori-routines__grid { gap: 16px; }
  .evori-routines__item > div { display: grid; gap: 4px; }
  .evori-routines__item h3 { font-size: 20px; }
}
@media (max-width: 680px) {
  .evori-routines__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .evori-routines__item:nth-child(2) { margin-top: 0; }
  .evori-routines__item img { aspect-ratio: 3 / 2; }
  .evori-routines__item > div { display: flex; }
  .evori-art-figure .evori-art, .evori-routines__item .evori-art { border-radius: 20px; }
  .evori-home-art .home-hero__photo { border-radius: 24px 24px 60px 24px; }
  .evori-home-art .home-hero__photo img { object-position: 55% 50%; }
}
body { min-width: 0; }
.product-visual img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-card__media > a { display: block; width: 100%; height: 100%; }
.product-card__media .product-visual { height: 100%; }
.product-card .product-visual { padding: 14px; }
.product-card__media { overflow: hidden; }
.evori-image-pending { padding: 20%; text-align: center; font-size: 1.3rem; }
.pdp-gallery__main > img { width: 100%; height: 100%; object-fit: contain; }
.pdp-gallery__thumbs { display: flex; flex-wrap: wrap; }
.pdp-gallery__thumbs > button { flex: 0 0 90px; }
.pdp-gallery__thumbs img { width: 100%; height: 76px; object-fit: contain; }
.pdp-gallery__thumbs button[aria-pressed=true] { outline: 2px solid #29231f; outline-offset: 2px; }
.evori-commerce { padding: 50px 6%; max-width: 1400px; margin: auto; }
.evori-commerce .woocommerce { max-width: 1100px; margin: auto; }
.evori-private-note { padding: 12px; background: #f3edb9; text-align: center; font-size: 12px; }
.preview-message { padding: 12px; font-size: 14px; }
.quiz-options { display: grid; gap: 12px; }
.quiz-options label { padding: 15px; border: 1px solid #ccc; border-radius: 8px; }
.quiz-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.evori-quiz-result { padding: 30px 5%; }
.evori-contact-note { margin: 20px 0; }
.routine-tag i { background: var(--accent); }
[hidden] { display: none !important; }

/* Keep modal controls visible while the content scrolls independently. */
#evori-dialog {
  width: min(1000px, calc(100% - 32px)); max-width: none;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  margin: auto; border: 1px solid var(--line); padding: 0;
  background: var(--paper); color: var(--ink); border-radius: 24px;
  overflow: hidden; box-shadow: var(--shadow);
}
#evori-dialog[open] { display: flex; flex-direction: column; }
#evori-dialog::backdrop { background: rgba(27,27,26,.5); }
.evori-dialog-header {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 24px; border-bottom: 1px solid var(--line);
}
#evori-dialog-title { font-size: 24px; line-height: 1.2; }
.evori-dialog-close { flex: none; font-size: 28px; }
#evori-dialog-body { min-height: 0; padding: 24px; overflow-y: auto; overscroll-behavior: contain; }
#evori-dialog input[type=search] { width: 100%; padding: 16px; margin: 12px 0; border: 1px solid var(--line-strong); border-radius: 12px; }
#evori-search-results { margin-top: 24px; }
#evori-dialog .product-grid > p { grid-column: 1 / -1; }

/* A mobile menu must not inherit the desktop dropdown's transform or columns. */
.evori-mobile-nav { display: flex; flex-direction: column; gap: 0; }
.evori-mobile-nav > .nav-link, .evori-mobile-nav .shop-menu > .nav-link {
  width: 100%; min-height: 52px; height: auto; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 18px;
}
.evori-mobile-nav .shop-menu__panel {
  position: static; inset: auto; transform: none; translate: none; display: block;
  width: 100%; max-width: none; padding: 12px 0 20px; border: 0;
  background: transparent; border-radius: 0; box-shadow: none; animation: none;
}
.evori-mobile-nav .shop-menu__routines { width: 100%; padding: 0; }
.evori-mobile-nav .shop-menu__routines .eyebrow { padding-left: 10px; }
.evori-mobile-nav .shop-menu__routines > a { min-height: 48px; }
.evori-mobile-nav .shop-menu__routines > a span { min-width: 0; }
.evori-mobile-nav .shop-menu__all { margin: 12px 10px 0; }

/* Allow intrinsic image and text widths to shrink inside responsive grid tracks. */
:is(.page-hero, .about-story, .home-how, .pdp-top, .pdp-section, .contact-grid, .footer-join, .policy-page, .library__tools) > * { min-width: 0; }
.about-story__image { width: 100%; }
.contact-grid a[href^="mailto:"], .footer-contact a { overflow-wrap: anywhere; }
.formula-table tbody th, .formula-cards li { overflow-wrap: anywhere; }
.formula-cards li span { flex: none; }

/* WooCommerce's global buttons otherwise replace the branded controls on shop pages. */
.page-shell .button:is(.button--dark, .button--line, .button--light), #evori-dialog .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border: 1px solid var(--ink); border-radius: 999px;
  font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none;
}
.page-shell .button.button--dark, #evori-dialog .button--dark { background: var(--ink); color: var(--paper); }
.page-shell .button.button--dark:hover, #evori-dialog .button--dark:hover { background: var(--ink-2); }
.page-shell .button.button--line, #evori-dialog .button--line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.page-shell .button.button--light, #evori-dialog .button--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.page-shell .button.button--small { min-height: 40px; padding: 0 18px; font-size: 14px; }

@media (max-width: 1020px) {
  #evori-dialog.evori-dialog--menu {
    width: 100%; max-width: 100%; height: 100vh; height: 100dvh;
    max-height: 100vh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0;
  }
  .evori-dialog--menu .evori-dialog-header { padding-top: max(12px, env(safe-area-inset-top)); }
  .evori-dialog--menu #evori-dialog-body { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) {
  .evori-dialog-header { padding: 12px 16px; }
  #evori-dialog-title { font-size: 22px; }
  #evori-dialog-body { padding: 16px; }
  #evori-dialog .product-grid, .evori-quiz-result .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  :is(#evori-dialog, .evori-quiz-result) .product-card__body { padding: 14px; }
  :is(#evori-dialog, .evori-quiz-result) .product-card h3 { font-size: 19px; }
  :is(#evori-dialog, .evori-quiz-result) .product-card__inside { overflow-wrap: anywhere; }
  .pdp-gallery__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .pdp-gallery__thumbs > button { min-width: 0; font-size: 12px; line-height: 1.5; }
  .pdp-gallery__thumbs img { height: auto; aspect-ratio: 4 / 3; }
  .pdp-gallery__thumbs span { display: block; padding-top: 4px; }
  .evori-commerce { padding: 25px 5%; }
  .evori-quiz-result h1 { font-size: clamp(36px, 10vw, 48px); }
  .page-shell .quiz-nav .button { min-width: 0; padding: 12px 14px; white-space: normal; }
}
@media (max-width: 600px) {
  #evori-dialog .product-grid, .evori-quiz-result .product-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .pdp-buy h1 { font-size: 42px; }
  .segmented button { padding-inline: 10px; font-size: 13px; }
}

/* Native raster media needs a full, centred frame rather than the old SVG sizing. */
.product-visual { min-width: 0; aspect-ratio: 1; }
.product-card__media > a { position: absolute; inset: 0; display: grid; place-items: center; }
.product-card__media .product-visual { position: absolute; inset: 12px; width: auto; height: auto; aspect-ratio: auto; margin: 0; padding: 0; }
.product-card__media .product-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; min-height: 0; max-height: 100%; object-fit: contain; }
.product-card__media { background: transparent; }
.product-card__media::before, .product-card__media::after { content: none; }
.product-card .routine-tag { max-width: 100%; }
.routine-tag i { flex: none; }
.evori-image-pending { display: grid; place-content: center; width: 100%; height: 100%; padding: 12px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.pdp-gallery__main { padding: 16px; }
.pdp-gallery__main::before, .pdp-gallery__main::after { content: none; }
.pdp-gallery__main > img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); min-width: 0; min-height: 0; border-radius: 16px; }
.evori-gallery-note { font-size: 12px; line-height: 1.5; color: var(--muted); }
.pdp-gallery__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pdp-gallery__thumbs > button { min-width: 0; }
.pdp-gallery__thumbs img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.pdp-gallery__thumbs button[aria-pressed=true] { outline: none; }
.pdp-gallery__thumbs span { display: block; font-size: 12px; line-height: 1.5; white-space: nowrap; }

/* Give wrapped headings and long ingredient names room to render. */
h1, h2 { line-height: 1.08; }
h1 em, h2 em { line-height: inherit; }
.home-hero__copy > *, .pdp-buy > *, .product-card__body > * { min-width: 0; max-width: 100%; }
.hero-kicker { max-width: 100%; white-space: normal; line-height: 1.4; }
.pdp-buy__inside li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.pdp-buy__inside li > span:last-child { flex: none; }
.page-shell .button, #evori-dialog .button { max-width: 100%; white-space: normal; }
.page-shell .launch-form--dark .button--dark { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.page-shell .launch-form--dark .button--dark:hover { background: var(--sand); }
.page-shell .launch-form__row .button { min-height: 46px; }
.formula-table { table-layout: fixed; }
.formula-table th:first-child { width: 74%; }
.formula-table td { white-space: normal; overflow-wrap: anywhere; }
.formula-cards li > span { white-space: normal; text-align: right; max-width: 30%; }
.about-range { flex-wrap: wrap; gap: 8px; }
.about-range .product-visual { margin-left: 0; }

/* Keep the WordPress toolbar clear of the sticky storefront header. */
.admin-bar { --evori-admin-offset: 32px; }
.admin-bar .site-header { top: var(--evori-admin-offset); }
.admin-bar .shop-toolbar, .admin-bar .library__tools { top: calc(var(--header-h) + var(--evori-admin-offset)); }
.admin-bar .pdp-gallery { top: calc(var(--header-h) + var(--evori-admin-offset) + 20px); }
.admin-bar .policy-nav, .admin-bar .wear-guide__media { top: calc(var(--header-h) + var(--evori-admin-offset) + 24px); }
@media (max-width: 1180px) {
  :root { --header-h: 64px; }
  .site-header .desktop-nav, .site-header .desktop-only { display: none !important; }
  .site-header .mobile-only { display: inline-grid; }
  .site-header { grid-template-columns: 1fr auto 1fr; gap: 8px; padding: 0 8px; }
  .site-header .brand-logo { justify-self: center; }
  .site-header .brand-logo svg { width: 112px; }
  .site-header > .icon-button { justify-self: start; }
  #evori-dialog.evori-dialog--menu { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
}
@media (max-width: 782px) {
  .admin-bar { --evori-admin-offset: 46px; }
  .admin-bar #wpadminbar { position: fixed; }
}
@media (max-width: 760px) {
  /* Show the complete WooCommerce range instead of hiding it in a horizontal carousel. */
  .product-grid--home { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-inline: 0; padding: 6px 0 22px; overflow: visible; }
  .product-grid--home .range-more { grid-column: 1 / -1; }
  .product-grid--home .product-card { min-width: 0; }
  .product-grid--home .product-card__body { padding: 14px; gap: 6px; }
  .product-grid--home .product-card h3 { font-size: 18px; }
  .product-grid--home .product-card__tagline { font-size: 13px; }
  .product-grid--home .product-card__inside { display: none; }
  .product-grid--home .routine-tag { padding: 0; background: none; font-size: 10.5px; letter-spacing: .05em; }
  .home-hero__copy .launch-form { width: 100%; }
  .home-hero__photo { aspect-ratio: 720 / 760; }
  .pdp-gallery__main { padding: 10px; }
  .pdp-gallery__main > img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
  .formula-table th:first-child { width: 64%; }
  .formula-table thead th { padding-inline: 14px; }
  .formula-table tbody th { padding-left: 14px; }
  .formula-table td { padding-right: 14px; }
  .rate-table tbody th { width: auto; white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 600px) {
  .product-card__body { min-width: 0; }
  .product-card__foot { display: block; padding-top: 10px; }
  .product-card__foot > span:first-child { display: none; }
  .product-card__cta { display: flex; width: 100%; padding: 8px 10px; justify-content: center; font-size: 12px; }
  .product-card__media { margin: 6px 6px 0; border-radius: 18px; }
  .product-card .save-button { top: 10px; right: 10px; width: 36px; height: 36px; }
  .product-card__media .product-visual { inset: 8px; padding: 0; }
}
.evori-commerce .woocommerce .button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; max-width: 100%; padding: 12px 24px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: 15px; line-height: 1.3; white-space: normal;
}
.evori-commerce .woocommerce input:not([type=checkbox], [type=radio], [type=hidden]), .evori-commerce .woocommerce select { min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 16px; }

/* Preserve WooCommerce's native forms and payment scripts inside the brand shell. */
.evori-commerce { min-height: 65vh; width: 100%; }
.evori-commerce__heading { margin-bottom: 32px; }
.evori-commerce__heading h1 { font-size: clamp(36px, 5vw, 60px); margin: 8px 0 20px; }
.evori-commerce__steps { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.evori-commerce__steps a { text-decoration: underline; text-underline-offset: 4px; }
.evori-commerce__steps [aria-current] { font-weight: 600; }
.evori-commerce-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 24px 6%; border-top: 1px solid var(--line); font-size: 14px; }
.evori-commerce-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.evori-commerce .woocommerce { max-width: none; }
.evori-commerce :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) {
  border-top-color: var(--ink); background: var(--ivory); color: var(--ink);
  border-radius: 12px; line-height: 1.65; overflow-wrap: anywhere;
}
.evori-commerce .woocommerce :is(input, select, textarea):focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.evori-commerce .woocommerce form.checkout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 40px; }
.evori-commerce #customer_details { grid-column: 1; grid-row: 1 / span 3; width: auto; min-width: 0; }
.evori-commerce #customer_details :is(.col-1, .col-2) { width: 100%; float: none; }
.evori-commerce :is(#order_review_heading, #order_review) { grid-column: 2; min-width: 0; }
.evori-commerce #order_review_heading { margin: 0 0 18px; }
.evori-commerce .woocommerce h3 { font-size: 24px; line-height: 1.35; margin-bottom: 18px; }
.evori-commerce .woocommerce form .form-row { padding: 0; margin: 0 0 16px; }
.evori-commerce .woocommerce form .form-row label { line-height: 1.5; margin-bottom: 6px; }
.evori-commerce .woocommerce form .form-row :is(input.input-text, textarea, select) { width: 100%; max-width: 100%; font-family: inherit; }
.evori-commerce .woocommerce textarea { min-height: 110px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 10px; }
.evori-commerce .woocommerce form .form-row-first,
.evori-commerce .woocommerce form .form-row-last { width: calc(50% - 8px); }
.evori-commerce .woocommerce table.shop_table { border: 1px solid var(--line-strong); border-radius: 16px; border-collapse: separate; }
.evori-commerce .woocommerce table.shop_table :is(th, td) { padding: 14px; overflow-wrap: anywhere; line-height: 1.55; }
.evori-commerce .woocommerce :is(.product-name, .product-total) { min-width: 0; }
.evori-commerce .woocommerce .product-total { white-space: nowrap; }
.evori-commerce .woocommerce .quantity .qty { width: 80px; max-width: 100%; }
.evori-commerce .woocommerce #payment { background: var(--ivory); border-radius: 16px; }
.evori-commerce .woocommerce #payment .payment_box { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.evori-commerce .woocommerce #payment .payment_box::before { border-bottom-color: var(--paper); }
.evori-commerce .woocommerce #payment ul.payment_methods li { overflow-wrap: anywhere; }
.evori-commerce .woocommerce #payment ul.payment_methods li > label { display: inline; }
.evori-commerce .woocommerce #payment #place_order { width: 100%; float: none; margin: 18px 0 0; }
.evori-commerce .woocommerce .woocommerce-privacy-policy-text { font-size: 13px; line-height: 1.65; }
.evori-commerce .select2-container { max-width: 100%; }
.evori-commerce .select2-container .select2-selection--single { min-height: 46px; border-color: var(--line-strong); border-radius: 10px; }
.evori-commerce .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 8px 12px; line-height: 28px; }
.evori-commerce .select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; }
.evori-commerce .woocommerce ul.order_details { display: flex; flex-wrap: wrap; gap: 20px; margin: 24px 0; }
.evori-commerce .woocommerce ul.order_details li { float: none; margin: 0; padding-right: 20px; }
@media (max-width: 860px) {
  .evori-commerce .woocommerce form.checkout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .evori-commerce :is(#customer_details, #order_review_heading, #order_review) { grid-column: 1; grid-row: auto; }
  .evori-commerce #order_review_heading { margin: 0; }
  .evori-commerce .woocommerce table.shop_table :is(th, td) { padding: 12px; }
}
@media (max-width: 480px) {
  .evori-commerce { padding: 28px 16px; }
  .evori-commerce .woocommerce form .form-row-first,
  .evori-commerce .woocommerce form .form-row-last { width: 100%; float: none; }
  .evori-commerce .woocommerce table.cart td.actions .coupon { display: flex; gap: 8px; flex-wrap: wrap; }
  .evori-commerce .woocommerce table.cart td.actions .coupon .input-text { flex: 1 1 120px; width: auto; min-width: 0; }
}
/* Launch-ready purchase controls (shown only when WooCommerce allows buying). */
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.cart-count[hidden] { display: none; }
.pdp-buy__purchase { display: grid; gap: 10px; padding: 16px 0; border-block: 1px solid var(--line); }
.pdp-buy__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 0; font-size: 24px; font-weight: 600; color: var(--ink); }
.pdp-buy__price small { font-size: 13px; font-weight: 400; color: var(--muted); }
.pdp-buy__stock { margin: 0; font-size: 14px; color: var(--muted); }
.evori-add { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.evori-add__qty { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.evori-add__qty input { width: 84px; min-height: 48px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper); font: inherit; font-size: 16px; color: var(--ink); }
.evori-add > .button { flex: 1 1 180px; min-height: 48px; }
.evori-add > .button[disabled] { opacity: .65; cursor: progress; }
.evori-add__status { flex-basis: 100%; font-size: 14px; color: var(--ink-2); }
.evori-add__status:empty { display: none; }
.evori-add__status a { margin-left: 8px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.product-card__foot--buy { gap: 10px; flex-wrap: wrap; }
.product-card__price { color: var(--ink); }
.product-card .product-card__foot--buy > span:first-child { display: block; }
/* Sits above the card's stretched link, like the save button. */
.evori-add--compact { position: relative; z-index: 2; }
.evori-add--compact > .button { flex: 0 0 auto; min-height: 44px; padding: 8px 16px; font-size: 13px; }
@media (max-width: 600px) {
  .product-card .product-card__foot--buy > span:first-child { margin-bottom: 8px; }
  .evori-add--compact > .button { flex: 1 1 100%; }
}
.evori-delivery-note td { font-size: 14px; color: var(--muted); }
@media (max-width: 768px) {
  /* WooCommerce hides cart thumbnails on small screens; keep the product image beside its details. */
  .evori-commerce .woocommerce table.cart td.product-thumbnail { display: block; text-align: left; }
  .evori-commerce .woocommerce table.cart td.product-thumbnail::before { display: none; }
  .evori-commerce .woocommerce table.cart td.product-thumbnail img { width: 72px; height: auto; }
}
/* Side cart: slides in from the right; WooCommerce supplies every price and the subtotal. */
.cart-drawer { position: fixed; inset: 0 0 0 auto; width: min(440px, 100%); height: 100vh; height: 100dvh; max-width: 100%; max-height: 100vh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--paper); color: var(--ink); box-shadow: -24px 0 60px -30px rgba(42, 28, 5, .45); }
.cart-drawer[open] { display: flex; flex-direction: column; animation: drawer-in .28s cubic-bezier(.2, .7, .2, 1); }
.cart-drawer::backdrop { background: rgba(42, 28, 5, .42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
@keyframes drawer-in { from { transform: translateX(48px); opacity: 0; } }
.drawer__body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: max(18px, env(safe-area-inset-top)) 24px 16px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 28px; letter-spacing: -.035em; line-height: 1.1; }
.drawer__head h2 span { margin-left: 6px; font: 500 15px/1 var(--sans); letter-spacing: 0; color: var(--muted); }
.drawer__close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ivory); font-size: 26px; line-height: 1; }
.drawer__close:hover { background: var(--sand); }
.drawer__status { margin: 0; padding: 12px 24px 0; font-size: 14px; color: var(--ink-2); }
.drawer__status:empty { display: none; }
.drawer__items { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 24px; overscroll-behavior: contain; }
.drawer__item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.drawer__item[aria-busy="true"] { opacity: .55; }
.drawer__item img, .drawer__noimg { width: 72px; height: 72px; object-fit: contain; padding: 4px; border-radius: 16px; background: var(--sand); }
.drawer__info { display: grid; gap: 4px; min-width: 0; }
.drawer__info > a { font: 700 17px/1.2 var(--display, var(--sans)); letter-spacing: -.01em; overflow-wrap: anywhere; }
.drawer__info > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.drawer__unit { font-size: 13px; color: var(--muted); }
.drawer__qty { display: inline-flex; align-items: center; width: fit-content; margin-top: 4px; border: 1px solid var(--line-strong); border-radius: 999px; }
.drawer__qty button { width: 38px; height: 38px; border-radius: 50%; font-size: 18px; line-height: 1; }
.drawer__qty button:hover:not([disabled]) { background: var(--sand); }
.drawer__qty button[disabled] { opacity: .35; cursor: not-allowed; }
.drawer__qty span { min-width: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.drawer__line { display: grid; justify-items: end; gap: 8px; font-variant-numeric: tabular-nums; }
.drawer__remove { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.drawer__remove:hover { color: var(--ink); }
.drawer__empty { display: grid; justify-items: start; gap: 16px; padding: 28px 24px; color: var(--ink-2); }
.drawer__foot { display: grid; gap: 12px; padding: 18px 24px max(22px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.drawer__subtotal { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.drawer__note { margin: 0; font-size: 13px; color: var(--muted); }
.drawer__foot .button { width: 100%; }
/* The drawer sits outside .page-shell, so restate the branded button over WooCommerce's shop-page button style. */
.cart-drawer .button.button--dark { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none; }
.cart-drawer .button.button--dark:hover { background: var(--ink-2); }
.drawer__view { justify-self: center; padding: 6px; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .cart-drawer[open] { animation: none; } }
