/* WordPress/WooCommerce bridge styles */
.wp-front-page > .hero:first-child,
.wp-front-page > main > .hero:first-child {
  margin-top: 0;
}
@media (min-width: 901px) {
  .wp-front-page > .hero:first-child,
  .wp-front-page > main > .hero:first-child {
    width: min(calc(100% - var(--gutter) * 2), var(--container));
    min-height: 0;
    height: 460px;
    margin: 18px auto 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
  }
  body[data-cart-key="lumea"] .wp-front-page > .hero,
  body[data-cart-key="bloome"] .wp-front-page > .hero,
  body[data-cart-key="solea"] .wp-front-page > .hero {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  }
  body[data-cart-key="aurave"] .wp-front-page > .hero,
  body[data-cart-key="clare"] .wp-front-page > .hero,
  body[data-cart-key="nocturne"] .wp-front-page > .hero {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  }
  .wp-front-page > .hero .hero__copy {
    gap: 16px;
    padding: 32px clamp(28px, 4vw, 52px);
  }
  .wp-front-page > .hero h1 {
    font-size: clamp(2.65rem, 4.3vw, 3.9rem);
  }
  .wp-front-page > .hero .hero__lead {
    max-width: 44ch;
    font-size: clamp(16px, 1.3vw, 18px);
    line-height: 1.55;
  }
  .wp-front-page > .hero .hero__features {
    display: none;
  }
  .wp-front-page > .hero .hero__media img {
    object-fit: cover;
  }
  .wp-front-page > .trust-bar {
    width: min(calc(100% - var(--gutter) * 2), var(--container));
    margin: 16px auto 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
}
.woocommerce .products ul,
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}
.single-product .site-main,
.single-product .content-area {
  width: 100%;
}
.single-product div.product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding-top: 10px;
}
.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}
.single-product .woocommerce-product-gallery__wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mist);
}
.single-product .summary h1 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -.03em;
}
.single-product .summary .price {
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 700;
}
.single-product .single_add_to_cart_button {
  min-height: 50px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--paper);
}
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.woocommerce-checkout form.checkout {
  display: block;
}
.velora-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(340px, .82fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.velora-checkout-customer {
  min-width: 0;
}
.velora-checkout-customer #customer_details {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 0;
}
.velora-checkout-customer #customer_details::before,
.velora-checkout-customer #customer_details::after {
  display: none;
}
.velora-checkout-customer #customer_details .col-1,
.velora-checkout-customer #customer_details .col-2 {
  float: none;
  width: 100%;
}
.velora-checkout-customer .woocommerce-additional-fields {
  margin-top: 24px;
}
.velora-checkout-order {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.velora-checkout-order #order_review_heading {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  line-height: 1.1;
}
.velora-checkout-order #order_review {
  float: none;
  width: 100%;
}
.velora-checkout-order .woocommerce-checkout-review-order-table {
  margin-bottom: 0;
}
.velora-checkout-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.velora-checkout-thumb {
  display: grid;
  flex: 0 0 64px;
  width: 64px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.velora-checkout-thumb__image,
.velora-checkout-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}
.velora-checkout-name {
  min-width: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.woocommerce-checkout-review-order-table td.product-name,
.woocommerce-checkout-review-order-table th.product-name {
  width: 52%;
}
.velora-checkout-order #payment {
  margin-top: 20px;
}
.woocommerce-message,
.woocommerce-info {
  border-radius: var(--radius-sm);
}
.quick-add__actions {
  position: relative;
  z-index: 4;
}

.woocommerce-cart .product-remove {
  width: 74px;
}
.woocommerce-cart table.cart td.product-remove a.remove.velora-remove-item {
  display: inline-flex;
  width: auto;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}
.woocommerce-cart table.cart td.product-remove a.remove.velora-remove-item:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.velora-cart-selection {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.velora-cart-select-all {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.velora-cart-selection input[type="checkbox"],
.velora-cart-select input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.velora-cart-selected-count {
  margin-right: auto;
  color: var(--muted);
  font-size: 12.5px;
}
.velora-remove-selected {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.velora-remove-selected:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.velora-remove-selected:disabled {
  cursor: not-allowed;
  opacity: .45;
}
.velora-cart-product-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.velora-cart-select {
  display: inline-flex;
  flex: 0 0 20px;
  min-width: 20px;
  padding-top: 2px;
  cursor: pointer;
}
.velora-cart-product-name {
  min-width: 0;
}
.velora-qty-stepper {
  display: inline-grid;
  grid-template-columns: 42px minmax(48px, 62px) 42px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.velora-qty-stepper input.qty {
  width: 100% !important;
  min-height: 44px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}
.velora-qty-stepper input.qty::-webkit-inner-spin-button,
.velora-qty-stepper input.qty::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}
.velora-qty-step {
  display: grid;
  min-width: 42px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  background: var(--mist);
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}
.velora-qty-step:hover {
  background: var(--ink);
  color: var(--paper);
}
.velora-qty-step:disabled {
  cursor: not-allowed;
  opacity: .38;
}
.woocommerce-cart .woocommerce-cart-form button[name="update_cart"] {
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}
@media (max-width: 900px) {
  .single-product div.product { grid-template-columns: 1fr; }
  .woocommerce .products ul,
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .quick-add__dialog {
    display: flex;
    flex-direction: column;
    max-height: 92vh;
    overflow: hidden;
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
  .quick-add__product { flex: none; }
  .quick-add__product h2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  .quick-add__fieldset {
    min-height: 0;
    margin-top: 14px;
    padding-bottom: 12px;
    overflow-y: auto;
  }
  .quick-add__actions {
    position: absolute;
    right: 20px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    left: 20px;
    z-index: 20;
    margin: 0;
    padding-top: 10px;
    background: var(--paper);
  }
  .woocommerce-cart .product-remove {
    width: auto;
  }
  .woocommerce-cart table.cart td.product-remove a.remove.velora-remove-item {
    height: 42px;
    padding-inline: 10px;
  }
  .velora-cart-selection {
    gap: 8px;
    padding: 10px 12px;
  }
  .velora-cart-selected-count {
    width: 100%;
    margin-right: 0;
    order: 3;
  }
  .velora-remove-selected {
    margin-left: auto;
  }
  .velora-qty-stepper {
    grid-template-columns: 44px minmax(44px, 56px) 44px;
  }
}

@media (max-width: 560px) {
  .velora-checkout-line {
    gap: 9px;
  }
  .velora-checkout-thumb {
    flex-basis: 54px;
    width: 54px;
    height: 62px;
  }
  .woocommerce-checkout-review-order-table td.product-name,
  .woocommerce-checkout-review-order-table th.product-name {
    width: auto;
  }
}

/* U.S. DTC category and product-detail layout */
.shop-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.shop-category {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12.5px;
  white-space: nowrap;
}
.shop-category span {
  color: var(--muted);
  font-size: 10.5px;
}
.shop-category:hover,
.shop-category.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.shop-category.is-active span { color: inherit; opacity: .72; }

.product-page { padding-top: 12px; }
.product-page > .container { padding-top: 8px; }
.product-page .breadcrumb {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-page .breadcrumb > * { flex: none; }
.pdp--retail {
  gap: clamp(28px, 4vw, 52px);
  padding-top: 10px;
}
.pdp--retail .pdp__gallery {
  background: #fff;
  border: 0;
  border-radius: 0;
}
.pdp__main-image { aspect-ratio: 1 / 1; }
.pdp__main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pdp__thumbs {
  display: flex;
  gap: 8px;
  padding: 8px 0 0;
  border-top: 0;
}
.pdp__thumbs button {
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  cursor: pointer;
}
.pdp__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp--retail .pdp__info { gap: 14px; }
.pdp--retail .pdp__info h1 { margin: 0; }
.pdp--retail .pdp__info h1 {
  overflow-wrap: anywhere;
}
.pdp--retail .pdp__desc { margin: 0; }
.pdp--retail .eyebrow a { color: inherit; }
.product-review-line {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.product-review-line span:first-child { color: var(--accent); letter-spacing: 1px; }
.velora-format {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--mist);
  font-size: 13px;
}
.velora-add-form form.cart {
  display: block;
}
.velora-add-form .variations { margin: 0 0 14px; }
.velora-add-form .variations th,
.velora-add-form .variations td { display: block; text-align: left; padding: 0; }
.velora-add-form .variations label { font-size: 13px; font-weight: 600; }
.velora-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}
.velora-option-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.velora-option-chip {
  min-width: 48px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.velora-option-chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.velora-add-form .quantity input {
  min-height: 50px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}
.velora-add-form button.single_add_to_cart_button.button {
  min-height: 50px;
  width: 100%;
  padding-inline: 16px;
  border: 1px solid var(--ink) !important;
  border-radius: var(--radius-sm) !important;
  background: transparent !important;
  color: var(--ink) !important;
  font-weight: 700 !important;
}
.velora-buy-now {
  width: 100%;
  min-height: 50px;
  padding-inline: 16px;
  border: 1px solid var(--ink) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--ink) !important;
  color: var(--paper) !important;
  font-weight: 700 !important;
  cursor: pointer;
}
.velora-buy-now:disabled {
  cursor: wait;
  opacity: .72;
}
.velora-add-form .reset_variations { display: none !important; }
.velora-add-form .woocommerce-variation-add-to-cart {
  display: grid;
  grid-template-columns: 76px repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
}
.product-trust-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0;
}
.product-trust-list li {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}
.product-accordions { border-top: 1px solid var(--line); }
.product-accordions details { border-bottom: 1px solid var(--line); }
.product-accordions summary {
  padding: 15px 0;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  list-style: none;
}
.product-accordions summary::-webkit-details-marker { display: none; }
.product-accordions div {
  padding: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.related-products { padding-top: 40px; }

/* Keep card grids aligned and show the complete product photograph. */
.cat-card {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.cat-card > div:first-child {
  padding: 22px 18px;
}
.cat-card__media {
  align-self: stretch;
  min-height: 100%;
}
.cat-card__media img {
  width: 100%;
  height: 100%;
  max-height: none;
  padding: 0 !important;
  object-fit: cover !important;
  mix-blend-mode: normal !important;
}
.journal-card__media img {
  padding: 0 !important;
  object-fit: cover !important;
}
.product-card__media {
  background: #fff;
  border-radius: 0;
}
.product-card__media img {
  object-fit: cover;
}
.product-card__name {
  min-height: 2.7em;
}
.product-card__name a {
  display: -webkit-box !important;
  height: 2.7em;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}
.product-card__price {
  min-height: 1.55em;
}
.product-card__add {
  margin-top: auto;
}

@media (max-width: 900px) {
  body .site-header__inner {
    grid-template-columns: 44px minmax(0, 1fr) 176px !important;
    gap: 4px !important;
  }
  body .site-header .logo {
    min-width: 0;
    overflow: hidden;
    font-size: clamp(14px, 4.15vw, 19px);
    letter-spacing: .24em;
    text-indent: .24em;
    text-align: center;
    text-overflow: clip;
    white-space: nowrap;
  }
  body .site-header .header-actions {
    width: 176px !important;
    max-width: 176px !important;
    min-width: 0;
    gap: 0 !important;
  }
  body .site-header .header-actions .icon-btn,
  body .site-header .nav-toggle {
    width: 44px !important;
    height: 44px !important;
    flex: none;
  }
  body .site-header .header-actions .icon-btn svg {
    width: 22px !important;
    height: 22px !important;
    stroke-width: 1.8;
  }
  .product-page { padding-top: 4px; }
  .pdp--retail { padding-top: 4px; gap: 22px; }
  .pdp__thumbs { overflow-x: auto; }
  .product-trust-list { grid-template-columns: 1fr; }
  .velora-add-form form.cart { align-items: stretch; }
  .velora-add-form .quantity,
  .velora-add-form .quantity input,
  .velora-add-form .single_add_to_cart_button,
  .velora-buy-now {
    width: 100%;
  }
  .velora-add-form .woocommerce-variation-add-to-cart {
    grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr);
  }
  .shop-categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
  }
  .velora-checkout-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .velora-checkout-order {
    padding: 20px 16px;
  }
}

@media (max-width: 640px) {
  .trust-bar {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    min-height: 68px;
  }
  .trust-item,
  .trust-item + .trust-item,
  .trust-item:nth-child(2n) {
    min-height: 68px;
    padding: 10px 5px !important;
    border-top: 0 !important;
    border-left: 1px solid var(--line) !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    text-align: center;
  }
  .trust-item:first-child {
    border-left: 0 !important;
  }
  .trust-item__icon {
    width: 19px;
    height: 19px;
  }
  .trust-item h3 {
    max-width: 90px;
    margin: 0 !important;
    font-size: 10.5px !important;
    line-height: 1.25 !important;
  }
  .trust-item p {
    display: none !important;
  }

  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .cat-card {
    display: flex !important;
    flex-direction: column;
    min-height: 0 !important;
    gap: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
  }
  .cat-card__media {
    order: 1;
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
    background: #fff;
  }
  .cat-card__media img {
    width: 100%;
    height: 100%;
    max-height: none !important;
    padding: 4px !important;
    object-fit: contain !important;
    mix-blend-mode: normal !important;
  }
  .cat-card > div:first-child {
    order: 2;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 104px;
    padding: 10px 11px 11px !important;
  }
  .cat-card__title {
    margin-bottom: 4px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
  }
  .cat-card__desc {
    margin-bottom: 8px !important;
    font-size: 10.5px !important;
    line-height: 1.35 !important;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .cat-card .link-arrow {
    margin-top: auto;
    font-size: 10.5px !important;
    line-height: 1.25 !important;
  }
}
