/*
 * Final presentation pass.
 * This file intentionally loads last and contains visual-only refinements.
 */

/* Global rhythm, typography and interaction consistency. */
html {
  scroll-padding-top: 118px;
}
body {
  overflow-wrap: break-word;
}
.site-main {
  overflow: clip;
}
.container,
.elarion-shell {
  min-width: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
p,
li,
address {
  text-wrap: pretty;
}
a,
button,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
input,
select,
textarea {
  max-width: 100%;
}
textarea {
  resize: vertical;
}
.btn,
.button,
button[type="submit"],
input[type="submit"] {
  min-width: 0;
  line-height: 1.2;
  text-align: center;
}
.text-link {
  line-height: 1.35;
}
.section-heading {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
}
.section-heading h2 {
  margin-bottom: 0;
}
.section-heading .eyebrow:last-child {
  margin-bottom: 0;
}
.heading-row {
  max-width: none;
}
.heading-row > div {
  min-width: 0;
}

/* Header and navigation. */
.header-topbar .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 20px;
  justify-content: initial;
  align-items: center;
}
.header-topbar {
  min-height: 36px;
  padding: 7px 0;
  color: #f8f1e9;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.035em;
}
.topbar-contact,
.topbar-social {
  display: flex;
  align-items: center;
  gap: 15px;
}
.topbar-contact {
  justify-self: start;
}
.topbar-social {
  grid-column: 3;
  justify-self: end;
  justify-content: flex-end;
  gap: 7px;
  margin-left: auto;
}
.topbar-contact a,
.topbar-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  line-height: 1;
}
.topbar-contact a:hover,
.topbar-social a:hover {
  color: var(--accent);
}
.header-topbar .topbar-contact span {
  color: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}
.topbar-message {
  color: #f8f1e9;
  font-size: 0.68rem;
  text-align: center;
  white-space: nowrap;
}
.topbar-message span {
  margin-inline: 8px;
}
.topbar-contact .icon {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.topbar-social a {
  width: 24px;
  height: 24px;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #fff;
}
.topbar-social a:hover {
  border-color: var(--accent);
}
.topbar-social .icon {
  width: 13px;
  height: 13px;
}
.site-header {
  isolation: isolate;
}
.header-inner {
  min-width: 0;
}
.site-branding,
.custom-logo-link {
  min-width: 0;
}
.custom-logo-link img {
  object-fit: contain;
  max-width: 100%;
}
.primary-menu > li > a {
  padding: 32px 0;
  color: #3a302a;
  font-size: 0.79rem;
}
.primary-menu a {
  line-height: 1.35;
}
.icon-button {
  flex: 0 0 auto;
}

/* Desktop mega menu: content continues to come from Appearance > Menus. */
@media (min-width: 1025px) {
  .main-navigation,
  .primary-menu {
    position: static;
  }
  .primary-menu > li {
    position: static;
  }
  .primary-menu > .menu-item-has-children > a {
    display: flex;
    align-items: center;
    gap: 7px;
  }
  .primary-menu > .menu-item-has-children > a::before {
    order: 2;
    width: 6px;
    height: 6px;
    margin-top: -4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    content: "";
    transform: rotate(45deg);
    transition: transform 0.25s ease;
  }
  .primary-menu > .menu-item-has-children.mega-menu-open > a::before {
    transform: translateY(3px) rotate(225deg);
  }
  .primary-menu > .menu-item-has-children > .sub-menu {
    top: 100%;
    left: 50%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 30px;
    width: min(1180px, calc(100vw - 48px));
    padding: 30px 34px 34px;
    border: 1px solid rgba(59, 41, 31, 0.1);
    border-top: 2px solid var(--accent);
    border-radius: 0 0 22px 22px;
    background:
      radial-gradient(
        circle at 92% 10%,
        rgba(184, 138, 80, 0.14),
        transparent 25%
      ),
      rgba(255, 254, 252, 0.985);
    box-shadow: 0 30px 70px rgba(37, 24, 17, 0.16);
    transform: translate(-50%, 14px);
    backdrop-filter: blur(20px);
  }
  .site-header.is-sticky .primary-menu > .menu-item-has-children > .sub-menu {
    top: 100%;
  }
  .primary-menu > .menu-item-has-children:hover > .sub-menu,
  .primary-menu > .menu-item-has-children:focus-within > .sub-menu {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 14px);
  }
  .primary-menu > .menu-item-has-children.mega-menu-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
  body.search-open .primary-menu > .menu-item-has-children > .sub-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .primary-menu > li > .sub-menu > li {
    min-width: 0;
    padding: 5px 0 8px;
  }
  .primary-menu > li > .sub-menu > li > a {
    position: relative;
    padding: 8px 0 12px;
    border-bottom: 1px solid rgba(59, 41, 31, 0.12);
    border-radius: 0;
    color: var(--primary);
    font-family: var(--heading);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.015em;
  }
  .primary-menu > li > .sub-menu > li > a::after {
    position: absolute;
    right: 2px;
    content: "\2192";
    color: var(--accent);
    font-family: var(--body);
    font-size: 0.9rem;
    transition: transform 0.2s ease;
  }
  .primary-menu > li > .sub-menu > li > a:hover {
    padding-left: 0;
    background: transparent;
    color: var(--secondary);
  }
  .primary-menu > li > .sub-menu > li > a:hover::after {
    transform: translateX(4px);
  }
  .primary-menu > li > .sub-menu .sub-menu {
    position: static;
    display: grid;
    width: auto;
    margin: 8px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .primary-menu > li > .sub-menu .sub-menu a {
    padding: 7px 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 500;
  }
  .primary-menu > li > .sub-menu .sub-menu a::before {
    margin-right: 8px;
    color: var(--accent);
    content: "\2014";
  }
  .primary-menu > li > .sub-menu .sub-menu a:hover {
    padding-left: 4px;
    color: var(--primary);
  }
}
.search-drawer form {
  max-width: 920px;
  margin-inline: auto;
}
.search-drawer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.search-close {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(59, 41, 31, 0.16);
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}
.search-close:hover {
  border-color: var(--accent);
  background: #f8f3ee;
  transform: rotate(6deg);
}
.search-close .icon {
  width: 20px;
  height: 20px;
}
.search-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 6px;
  padding: 5px 5px 5px 18px;
  border: 1px solid rgba(59, 41, 31, 0.22);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(49, 34, 25, 0.06);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.search-field:focus-within {
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px rgba(184, 138, 80, 0.12),
    0 12px 32px rgba(49, 34, 25, 0.08);
}
.search-field input[type="search"] {
  min-width: 0;
  min-height: 48px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.search-field input[type="search"]:focus,
.search-field input[type="search"]:focus-visible {
  border: 0;
  outline: 0;
  box-shadow: none;
}
.search-field button {
  display: grid;
  width: 58px;
  height: 48px;
  padding: 0;
  place-items: center;
  align-self: center;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.search-field button:hover {
  background: #2b1c15;
  transform: translateY(-1px);
}
.search-field button .icon {
  width: 21px;
  height: 21px;
}
.search-result > span {
  min-width: 0;
}
.search-result-price {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 4px;
}
.search-result-price del {
  color: var(--muted);
  opacity: 0.75;
}
.search-result-price ins {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

/* Homepage flow and reusable product presentation. */
.hero-copy {
  min-width: 0;
}
.hero h1 {
  max-width: 15ch;
}
.hero-intro {
  line-height: 1.75;
}
.hero-actions .btn {
  min-width: 168px;
}
.category-card,
.product-card,
.testimonial-grid blockquote,
.editorial-card {
  transform: translateZ(0);
}
.category-info {
  max-width: calc(100% - 32px);
}
.category-info h3,
.product-card h2,
.woocommerce-loop-product__title {
  overflow-wrap: anywhere;
}

.product-card h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 0 !important;
  margin-bottom: 14px !important;
}
.product-card {
  min-width: 0;
  border-radius: var(--radius);
}
.product-card-content {
  min-width: 0;
  padding-bottom: 18px;
}
.product-card .price {
  position: relative;
  display: flex !important;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 0 !important;
  padding-top: 13px;
  border-top: 0 !important;
}

.product-card .price::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 1px;
  content: "";
  background: var(--border);
}
.product-card .price ins {
  text-decoration: none;
}
.story-copy > * {
  max-width: 620px;
}
.story-copy > :last-child {
  margin-bottom: 0;
}
.lifestyle-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.value-grid article p,
.testimonial-grid blockquote p {
  margin-bottom: 0;
}
.testimonial-grid cite {
  display: block;
  margin-top: 22px;
}

/* Shop and product archives. */
.shop-toolbar {
  min-width: 0;
}
.catalog-order {
  min-width: 0;
}
.woocommerce-ordering {
  min-width: 0;
}
.woocommerce-ordering select {
  max-width: 100%;
}
.shop-products,
.shop-products ul.products {
  min-width: 0;
}
.woocommerce ul.products li.product {
  min-width: 0;
}
.woocommerce nav.woocommerce-pagination ul {
  flex-wrap: wrap;
  justify-content: center;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
}
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  line-height: 1.55;
}

/* Product detail page. */
.single-product-main > * {
  min-width: 0;
}
.product-gallery-column {
  isolation: isolate;
}
.woocommerce-product-gallery,
.woocommerce-product-gallery__wrapper,
.woocommerce-product-gallery__image,
.woocommerce-product-gallery__image a {
  min-width: 0;
}
.woocommerce-product-gallery {
  position: relative;
}
.woocommerce-product-gallery .flex-viewport {
  position: relative;
}
.woocommerce-product-gallery .flex-direction-nav {
  position: absolute;
  z-index: 7;
  top: 50%;
  right: 14px;
  left: 14px;
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
  transform: translateY(-50%);
}
.woocommerce-product-gallery .flex-direction-nav li {
  margin: 0;
}
.woocommerce-product-gallery .flex-direction-nav a {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d8d5d2;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 12px rgba(30, 24, 20, 0.13);
  color: #4a4643;
  font-size: 0;
  pointer-events: auto;
  backdrop-filter: blur(8px);
}
.woocommerce-product-gallery .flex-direction-nav a::before {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
}
.woocommerce-product-gallery .flex-direction-nav .flex-prev::before {
  transform: translate(-50%, -50%) rotate(-135deg);
}
.woocommerce-product-gallery .flex-direction-nav .flex-next::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.woocommerce-product-gallery .flex-direction-nav a:hover {
  border-color: #aaa5a1;
  background: #fff;
  color: #171513;
  transform: scale(1.06);
}
.woocommerce-product-gallery .flex-disabled {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs {
  display: flex !important;
  grid-template-columns: none;
  gap: 11px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px !important;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li {
  flex: 0 0 calc((100% - 44px) / 5) !important;
  width: auto !important;
  scroll-snap-align: start;
}
.woocommerce-product-gallery .product-thumbs-carousel {
  position: relative;
  order: 2;
  margin-top: 14px;
  padding: 0 18px;
}
.woocommerce-product-gallery .product-thumbs-carousel .flex-control-thumbs {
  margin: 0 !important;
}
.woocommerce-product-gallery .thumbs-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  bottom: auto;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid #d8d5d2;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 12px rgba(30, 24, 20, 0.13);
  color: #4a4643;
  font:
    300 2rem/0.8 Arial,
    sans-serif;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}
.woocommerce-product-gallery .thumbs-arrow span {
  display: block;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  font-size: 0;
}
.woocommerce-product-gallery .thumbs-arrow-prev span {
  margin-left: 4px;
  transform: rotate(-135deg);
}
.woocommerce-product-gallery .thumbs-arrow-next span {
  margin-right: 4px;
  transform: rotate(45deg);
}
.woocommerce-product-gallery .thumbs-arrow-prev {
  left: 0;
}
.woocommerce-product-gallery .thumbs-arrow-next {
  right: 0;
}
.woocommerce-product-gallery .thumbs-arrow:hover:not(:disabled) {
  border-color: #aaa5a1;
  background: #fff;
  color: #171513;
  transform: translateY(-50%) scale(1.06);
}
.woocommerce-product-gallery .thumbs-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}
.summary .product_title {
  overflow-wrap: anywhere;
}
.summary .price {
  display: flex !important;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 10px;
}
.summary .price ins {
  text-decoration: none;
}
.summary form.cart .button {
  min-width: 0;
}
.product_meta > span {
  align-items: baseline;
}
.woocommerce-tabs ul.tabs {
  overflow-x: auto;
  scrollbar-width: thin;
}
.woocommerce-tabs ul.tabs li {
  flex: 0 0 auto;
}
.woocommerce-Tabs-panel > :last-child {
  margin-bottom: 0;
}
.related.products > h2,
.upsells.products > h2 {
  text-wrap: balance;
}

/* Keep every product-listing image square across the storefront. */
.woocommerce ul.products .product-card-media,
.home-page ul.products .product-card-media,
.shop-products .product-card-media,
.shop-products-full .product-card-media,
.single-product .related.products .product-card-media,
.single-product .upsells.products .product-card-media {
  width: 100%;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden;
}
.woocommerce ul.products .product-card-media > a:first-child {
  display: block;
  width: 100%;
  height: 100%;
}
.woocommerce ul.products .product-card-media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover;
  object-position: center;
}
.woocommerce-cart .cross-sells ul.products li.product img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover;
  object-position: center;
}
.woocommerce-cart
  .cross-sells
  ul.products
  li.product
  > a.woocommerce-LoopProduct-link
  img {
  flex: 0 0 auto;
}

/* Editorial, journal and utility pages. */
.page-hero h1,
.system-page-header h1,
.article-header h1 {
  overflow-wrap: anywhere;
}
.page-intro {
  line-height: 1.8;
}
.editorial-card {
  min-width: 0;
}
.editorial-card > :last-child {
  margin-bottom: 0;
}
.about-story__copy > :last-child,
.about-materials__copy > :last-child {
  margin-bottom: 0;
}
.about-process__steps article {
  min-width: 0;
}
.about-process__steps,
.about-promise {
  position: relative;
  border-top: 0;
  border-bottom: 0;
}
.about-process__steps::before,
.about-process__steps::after,
.about-promise::before,
.about-promise::after {
  position: absolute;
  left: 50%;
  width: 100vw;
  height: 1px;
  background: var(--border);
  content: "";
  transform: translateX(-50%);
}
.about-process__steps::before,
.about-promise::before {
  top: 0;
}
.about-process__steps::after,
.about-promise::after {
  bottom: 0;
}
.contact-layout > *,
.policy-layout > * {
  min-width: 0;
}
.contact-method a {
  overflow-wrap: anywhere;
}
.contact-form-grid input,
.contact-form-grid textarea {
  width: 100%;
}
.faq-list summary {
  line-height: 1.45;
}
.faq-answer {
  line-height: 1.75;
}
.support-band > div {
  min-width: 0;
}
.elarion-content-page .support-band.editorial-card {
  background-color: var(--primary) !important;
  color: rgba(255, 255, 255, 0.78);
}
.elarion-content-page .support-band h2 {
  color: #fff;
}
.elarion-content-page .support-band p {
  color: rgba(255, 255, 255, 0.78);
}
.post-grid > * {
  min-width: 0;
}
.post-card-content > :last-child {
  margin-bottom: 0;
}
.post-card h2 {
  overflow-wrap: anywhere;
}
.article-body {
  font-size: 1.02rem;
  line-height: 1.85;
}
.article-body img,
.article-body iframe,
.article-body table {
  max-width: 100%;
}
.article-body table {
  display: block;
  overflow-x: auto;
}
.site-main.empty-state {
  min-height: 55vh;
  display: grid;
  place-items: center;
}
.site-main.empty-state .container {
  max-width: 720px;
}
.post-grid > .empty-state {
  grid-column: 1 / -1;
  width: 100%;
  padding: 70px 20px;
}

/* Forms, cart, checkout and account screens. */
.woocommerce form .form-row {
  min-width: 0;
}
.woocommerce form .input-text,
.woocommerce form select,
.woocommerce form textarea {
  width: 100%;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.woocommerce form .input-text:focus,
.woocommerce form select:focus,
.woocommerce form textarea:focus {
  border-color: var(--accent) !important;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(198, 161, 110, 0.13);
}
.select2-container {
  max-width: 100%;
}
.woocommerce-cart-form,
.cart-collaterals,
.woocommerce-checkout-review-order {
  min-width: 0;
}
.woocommerce-account .woocommerce-MyAccount-content {
  min-width: 0;
}
.woocommerce-account .woocommerce-Addresses {
  align-items: stretch;
}
.woocommerce-account .woocommerce-Address {
  min-width: 0;
}
.woocommerce-account .woocommerce-Address-title {
  min-width: 0;
}
.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-Address-title h3 {
  min-width: 0;
}
.woocommerce-account address {
  overflow-wrap: anywhere;
}
.woocommerce-account table a {
  overflow-wrap: anywhere;
}

/* Logged-out My Account: paired login and registration experience. */
.woocommerce-account:not(.logged-in) .woocommerce {
  max-width: 1180px;
  margin-inline: auto;
}
.woocommerce-account:not(.logged-in) .u-columns {
  gap: 0;
  max-width: 1120px;
  overflow: hidden;
  border: 1px solid rgba(59, 41, 31, 0.11);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(49, 34, 25, 0.11);
}
.woocommerce-account:not(.logged-in) .u-column1,
.woocommerce-account:not(.logged-in) .u-column2 {
  position: relative;
  min-height: 100%;
  padding: clamp(34px, 4.5vw, 58px) !important;
}
.woocommerce-account:not(.logged-in) .u-column1 {
  background: linear-gradient(145deg, #fff, #faf6f0);
}
.woocommerce-account:not(.logged-in) .u-column2 {
  background:
    radial-gradient(
      circle at 90% 5%,
      rgba(216, 181, 106, 0.22),
      transparent 30%
    ),
    linear-gradient(145deg, #3b1c10, #240d05);
  color: rgba(255, 255, 255, 0.78);
}
.woocommerce-account:not(.logged-in) .u-column1::before,
.woocommerce-account:not(.logged-in) .u-column2::before {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.woocommerce-account:not(.logged-in) .u-column1::before {
  content: "Welcome back";
}
.woocommerce-account:not(.logged-in) .u-column2::before {
  content: "Join ElarionLiving";
}
.woocommerce-account:not(.logged-in) .u-column1 > h2,
.woocommerce-account:not(.logged-in) .u-column2 > h2 {
  margin-bottom: 28px;
  font-size: clamp(2.45rem, 4vw, 3.65rem);
  line-height: 1;
  letter-spacing: -0.045em;
}
.woocommerce-account:not(.logged-in) .u-column2 > h2 {
  color: #fff;
}
.woocommerce-account:not(.logged-in) .woocommerce-form-login,
.woocommerce-account:not(.logged-in) .woocommerce-form-register {
  max-width: none;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
  box-shadow: none;
}
.woocommerce-account:not(.logged-in) .woocommerce-form-row {
  margin-bottom: 20px;
}
.woocommerce-account:not(.logged-in) .woocommerce-form-row label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.woocommerce-account:not(.logged-in) .u-column2 .woocommerce-form-row label {
  color: rgba(255, 255, 255, 0.9);
}
.woocommerce-account:not(.logged-in) input.input-text {
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid rgba(59, 41, 31, 0.16);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 2px rgba(49, 34, 25, 0.03);
}
.woocommerce-account:not(.logged-in) input.input-text:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 138, 80, 0.14);
}
.woocommerce-account:not(.logged-in) .u-column2 input.input-text {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.96);
}
.woocommerce-account:not(.logged-in) .woocommerce-form-login__rememberme {
  color: var(--muted);
  font-size: 0.7rem;
}
.woocommerce-account:not(.logged-in) .woocommerce-form-login__submit,
.woocommerce-account:not(.logged-in) .woocommerce-form-register__submit {
  min-width: 150px;
  min-height: 50px;
  border-radius: 999px !important;
}
.woocommerce-account:not(.logged-in) .woocommerce-form-register__submit {
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  color: #2c1c13 !important;
}
.woocommerce-account:not(.logged-in) .woocommerce-form-register__submit:hover {
  background: #fff !important;
}
.woocommerce-account:not(.logged-in) .lost_password a {
  color: var(--primary);
  font-weight: 700;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}
.woocommerce-account:not(.logged-in) .u-column2 p:not(.form-row),
.woocommerce-account:not(.logged-in)
  .u-column2
  .woocommerce-privacy-policy-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  line-height: 1.75;
}
.woocommerce-account:not(.logged-in) .u-column2 a {
  color: #fff;
  text-decoration-color: var(--accent);
}

/* Footer. */
.footer-intro > div,
.footer-grid > div {
  min-width: 0;
}
.footer-intro h2 {
  max-width: 16ch;
}
.footer-grid a,
.footer-grid p {
  overflow-wrap: anywhere;
}
.site-footer,
.site-footer p,
.site-footer li,
.site-footer li a,
.site-footer .footer-brand p,
.site-footer .footer-detail span,
.site-footer .footer-bottom,
.site-footer .footer-bottom .legal-menu a {
  color: #fff;
}
.site-footer li a:hover,
.site-footer .footer-bottom .legal-menu a:hover {
  color: var(--accent-soft, var(--accent));
}
.footer-bottom {
  align-items: center;
}
.legal-menu {
  flex-wrap: wrap;
}

/* Tablet: smooth the jump between wide desktop grids and mobile stacks. */
@media (max-width: 1100px) {
  .section {
    padding-top: 82px;
    padding-bottom: 82px;
  }
  .hero-content {
    align-items: center;
  }
  .hero-note {
    width: 210px;
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-page ul.products.columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .value-grid article:nth-child(2) {
    border-right: 0;
  }
  .value-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .testimonial-grid blockquote:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 12px);
    width: 100%;
    margin-inline: auto;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 700px;
  }
  .hero-content {
    align-items: flex-start;
  }
  .hero-note {
    display: none;
  }
  .hero-copy {
    max-width: 720px;
  }
  .split-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .story-image {
    min-height: 480px;
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .story-copy {
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .lifestyle-card {
    min-height: 500px;
    padding: 54px;
  }
  .footer-intro {
    align-items: flex-start;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 84px;
  }
  .woocommerce-account:not(.logged-in) .u-columns {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }
  .woocommerce-account:not(.logged-in) .u-column1,
  .woocommerce-account:not(.logged-in) .u-column2 {
    padding: 32px 22px !important;
  }
  .woocommerce-account:not(.logged-in) .u-column2 {
    margin-top: 0;
  }
  .woocommerce-account:not(.logged-in) .u-column1 > h2,
  .woocommerce-account:not(.logged-in) .u-column2 > h2 {
    font-size: 2.45rem;
  }
  .woocommerce-account:not(.logged-in) .woocommerce-form-login__submit,
  .woocommerce-account:not(.logged-in) .woocommerce-form-register__submit {
    width: 100%;
  }
  .header-topbar {
    min-height: 38px;
    padding: 7px 0;
    font-size: 0.68rem;
  }
  .header-topbar .container {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }
  .topbar-message {
    display: none;
  }
  .topbar-contact {
    gap: 11px;
    overflow: hidden;
    font-size: 0.68rem;
    letter-spacing: 0.01em;
    text-transform: none;
  }
  .topbar-social {
    grid-column: 2;
    margin-left: auto;
  }
  .header-topbar + .site-header:not(.is-sticky) + .search-drawer {
    top: 106px;
  }
  .section {
    padding-top: 62px;
    padding-bottom: 62px;
  }
  .section-heading {
    margin-bottom: 34px;
  }
  .section-heading h2 {
    font-size: clamp(2.35rem, 11vw, 3.15rem);
    line-height: 1.02;
  }
  .heading-row {
    align-items: flex-end;
    gap: 18px;
  }
  .heading-row .text-link {
    flex: 0 0 auto;
    margin-bottom: 4px;
  }
  .hero {
    min-height: max(620px, calc(100svh - 72px));
  }
  .hero h1 {
    max-width: 12ch;
    font-size: clamp(3.2rem, 15vw, 4.6rem);
    line-height: 0.98;
  }
  .hero-intro {
    max-width: 34rem;
    font-size: 0.94rem;
    line-height: 1.7;
  }
  .hero-actions {
    align-items: stretch;
    width: min(100%, 310px);
  }
  .hero-actions .btn {
    width: 100%;
    min-width: 0;
  }
  .home-signature .container {
    gap: 12px;
  }
  .category-grid {
    gap: 18px 12px;
  }
  .category-info {
    left: 8px;
    right: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    min-height: 0;
    padding: 18px 42px 14px 14px;
    border-radius: 13px;
  }
  .category-card:hover .category-info {
    padding: 18px 42px 14px 14px;
  }
  .category-info::before {
    left: 14px;
    top: 13px;
    width: 24px;
  }
  .category-info h3 {
    padding-top: 5px;
    font-size: clamp(1.12rem, 5vw, 1.45rem);
  }
  .category-info span {
    font-size: 0.58rem;
  }
  .category-info i {
    right: 10px;
    width: 27px;
    height: 27px;
  }
  .story-image {
    min-height: 350px;
  }
  .story-copy {
    padding: 38px 24px;
  }
  .lifestyle-card {
    min-height: 440px;
    padding: 36px 25px;
  }
  .lifestyle-content {
    padding-left: 17px;
  }
  .value-grid {
    grid-template-columns: 1fr;
  }
  .value-grid article {
    border-right: 0 !important;
    border-bottom: 1px solid var(--border);
  }
  .value-grid article:last-child {
    border-bottom: 0;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-grid blockquote:last-child {
    grid-column: auto;
    max-width: none;
  }
  .testimonial-grid blockquote {
    padding: 28px 24px;
  }
  .testimonial-grid blockquote p {
    font-size: 1.3rem;
  }
  .trust-strip .container {
    gap: 14px 8px;
  }

  .shop-toolbar {
    align-items: stretch;
    gap: 14px;
  }
  .shop-toolbar .woocommerce-result-count {
    align-self: center;
  }
  .catalog-order {
    margin-left: auto;
  }
  .woocommerce-ordering select {
    min-height: 44px;
  }
  .woocommerce ul.products {
    align-items: stretch;
  }
  .product-card {
    display: flex;
    flex-direction: column;
  }
  .product-card-content {
    flex: 1;
  }

  .single-product-main {
    padding-bottom: 58px;
  }
  .summary .product_title {
    font-size: clamp(2.5rem, 12vw, 3.3rem);
  }
  .summary form.cart {
    align-items: stretch;
  }
  .woocommerce-tabs ul.tabs {
    justify-content: flex-start;
    gap: 24px;
  }
  .product_meta > span {
    display: block;
  }

  .elarion-content-page .page-intro {
    font-size: 0.96rem;
    line-height: 1.75;
  }
  .page-hero,
  .article-header {
    padding-right: 18px;
    padding-left: 18px;
  }
  .page-hero h1,
  .article-header h1 {
    font-size: clamp(2.7rem, 13vw, 3.65rem);
  }
  .support-band {
    gap: 20px;
  }
  .support-band h2 {
    font-size: 2rem;
  }
  .policy-nav div {
    padding-bottom: 4px;
  }
  .faq-list summary {
    padding: 19px 52px 19px 18px;
  }
  .faq-list summary::after {
    right: 18px;
  }
  .faq-answer {
    padding: 17px 18px 21px;
  }

  .woocommerce-account .woocommerce-Addresses {
    grid-template-columns: 1fr;
  }
  .woocommerce-account .woocommerce-Address-title {
    align-items: center;
  }
  .woocommerce-account
    .woocommerce-MyAccount-content
    header.woocommerce-Address-title
    > h2,
  .woocommerce-account
    .woocommerce-MyAccount-content
    header.woocommerce-Address-title
    > h3 {
    left: -16px !important;
    margin-left: 0 !important;
    text-align: left !important;
  }
  .woocommerce-account .woocommerce-Address-title .edit {
    margin-left: auto;
  }
  .woocommerce-message,
  .woocommerce-info,
  .woocommerce-error {
    padding: 46px 16px 16px !important;
  }
  .woocommerce-message::before,
  .woocommerce-info::before,
  .woocommerce-error::before {
    top: 14px;
    left: 16px;
  }

  .footer-intro {
    gap: 24px;
  }
  .footer-intro h2 {
    max-width: 13ch;
  }
  .footer-grid {
    gap: 34px 20px;
  }
  .footer-bottom {
    align-items: flex-start;
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .header-topbar {
    padding: 7px 0;
  }
  .header-topbar .container {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .topbar-message {
    display: none;
  }
  .topbar-contact {
    gap: 9px;
    overflow: hidden;
    font-size: 0.64rem;
    letter-spacing: 0;
    text-transform: none;
  }
  .topbar-contact a {
    min-width: 0;
  }
  .topbar-contact a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .topbar-social {
    gap: 3px;
  }
  .topbar-social a {
    width: 20px;
    height: 20px;
  }
  .container,
  .elarion-shell {
    width: calc(100% - 24px) !important;
  }
  .heading-row {
    display: block;
  }
  .heading-row .text-link {
    margin-top: 16px;
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-image {
    aspect-ratio: 4 / 4.5;
  }
  .home-page ul.products.columns-4,
  .woocommerce ul.products {
    gap: 28px 10px;
  }
  .product-card h2,
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.15rem;
  }
  .product-card-content {
    padding-right: 1px;
    padding-left: 1px;
  }
  .lifestyle-card {
    min-height: 410px;
  }
  .shop-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }
  .shop-toolbar .woocommerce-result-count,
  .catalog-order {
    width: 100%;
    margin: 0;
  }
  .catalog-order {
    justify-content: space-between;
  }
  .woocommerce-ordering {
    flex: 1;
  }
  .woocommerce-ordering select {
    width: 100%;
  }
  .summary form.cart {
    grid-template-columns: 78px minmax(0, 1fr);
  }
  .summary.entry-summary {
    padding: 25px 17px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > div {
    padding-left: 0 !important;
  }
  .footer-bottom,
  .legal-menu {
    width: 100%;
  }
}

/* Keep circular arrow controls geometrically centered. */
.footer-shop-link i,
.category-info i {
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.footer-shop-link i .icon,
.category-info i .icon {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0;
}

.category-info i .icon {
  width: 15px;
  height: 15px;
}

.single-product .summary form.cart .buy-now::after {
  content: "";
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23342317' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-5-5 5 5-5 5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 17px 17px !important;
  font-size: 0;
  line-height: 0;
  transform: translateY(-50%);
}

.single-product .summary form.cart .buy-now:hover::after {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23342317' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-5-5 5 5-5 5'/%3E%3C/svg%3E") !important;
  transform: translate(3px, -50%);
}

/* Centered product-card add-to-cart action. */
.product-card-icon-actions {
  position: absolute;
  z-index: 4;
  right: 14px;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.product-card-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(81, 56, 37, 0.14) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: var(--primary) !important;
  box-shadow: 0 8px 24px rgba(44, 28, 19, 0.14);
  pointer-events: auto;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.product-card-icon:hover,
.product-card-icon:focus-within {
  background: var(--primary) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.product-card-icon .icon {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.product-card-cart .button,
.woocommerce ul.products li.product .product-card-cart .button {
  position: absolute !important;
  z-index: 2;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
  opacity: 0;
  cursor: pointer;
}

.product-card-cart .button.loading {
  opacity: 0;
}

.product-card-cart.is-loading,
.product-card-cart:has(.button.loading) {
  cursor: wait;
  opacity: 0.7;
  pointer-events: none;
}

.product-card-cart.is-active,
.product-card-cart:has(.button.added) {
  background: var(--primary) !important;
  color: #fff !important;
}

.product-card-cart .added_to_cart {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

@media (hover: hover) and (pointer: fine) {
  .product-card-icon-actions {
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .product-card:hover .product-card-icon-actions,
  .product-card:focus-within .product-card-icon-actions {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 767px) {
  .product-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 8px 22px rgba(53, 23, 11, 0.07);
  }

  .product-card .product-card-media {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .product-card .product-card-content {
    min-height: 0;
    padding: 14px 12px 16px;
  }

  .product-card-icon-actions {
    top: 10px;
    right: 10px;
    left: 10px;
    display: flex !important;
  }

  .product-card-icon {
    width: 40px;
    height: 40px;
  }

  .product-card-icon .icon {
    width: 18px;
    height: 18px;
  }
}

/* Requested UI refinements: topbar, account registration and mobile checkout. */
.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
.woocommerce-cart .wc-block-cart__submit-button,
.woocommerce-checkout #place_order,
.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  transition:
    background-color 0.28s ease,
    border-color 0.28s ease,
    color 0.28s ease !important;
}

@media (hover: hover) and (pointer: fine) {
  .woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover,
  .woocommerce-cart .wc-block-cart__submit-button:hover,
  .woocommerce-checkout #place_order:hover,
  .woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
    border-color: #d8b56a !important;
    background: #d8b56a !important;
    color: #2c1c13 !important;
    box-shadow: none !important;
    transform: none;
  }
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button:focus-visible,
.woocommerce-cart .wc-block-cart__submit-button:focus-visible,
.woocommerce-checkout #place_order:focus-visible,
.woocommerce-checkout
  .wc-block-components-checkout-place-order-button:focus-visible {
  border-color: #d8b56a !important;
  outline: 2px solid rgba(216, 181, 106, 0.55) !important;
  outline-offset: 2px;
  background: #d8b56a !important;
  color: #2c1c13 !important;
}

.header-topbar .topbar-contact a[href^="mailto:"] span {
  text-transform: lowercase;
}

.header-topbar .topbar-contact .icon,
.header-topbar .topbar-social .icon {
  color: #fff;
}

.woocommerce-account:not(.logged-in) .woocommerce-form-register__submit:hover,
.woocommerce-account:not(.logged-in) .woocommerce-form-register__submit:focus {
  border-color: #d8b56a !important;
  background: #d8b56a !important;
  color: #2c1c13 !important;
}

@media (max-width: 767px) {
  /* Spread the three cart/checkout progress steps across the full card width. */
  .system-page-header .cart-journey {
    display: grid;
    grid-template-columns: auto minmax(24px, 1fr) auto minmax(24px, 1fr) auto;
    width: 100%;
    max-width: none;
    justify-content: stretch;
  }

  .system-page-header .cart-journey b {
    width: 100%;
    margin: 0;
  }

  /* Classic checkout fields. */
  .woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
  .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
  .woocommerce-checkout .woocommerce-address-fields__field-wrapper {
    row-gap: 16px;
  }

  .woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row,
  .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper .form-row,
  .woocommerce-checkout .woocommerce-address-fields__field-wrapper .form-row {
    margin-bottom: 0 !important;
  }

  /* Checkout block address fields. */
  .woocommerce-checkout .wc-block-components-address-form {
    row-gap: 16px !important;
  }

  .woocommerce-checkout
    .wc-block-components-address-form
    > .wc-block-components-text-input,
  .woocommerce-checkout
    .wc-block-components-address-form
    > .wc-block-components-combobox,
  .woocommerce-checkout
    .wc-block-components-address-form
    > .wc-block-components-country-input,
  .woocommerce-checkout
    .wc-block-components-address-form
    > .wc-block-components-state-input {
    margin-bottom: 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
