/* Shared rhythm and customer controls. Native store buttons and form hooks remain intact. */
.ec-storefront .primary-menu > li > a {
  font-size: 0.875rem;
}
.ec-storefront
  .woocommerce
  ul.products
  li.product
  .woocommerce-loop-product__title {
  font-size: 0.875rem;
  line-height: 1.45;
  font-weight: 650;
}
.ec-storefront .woocommerce ul.products li.product .price {
  font-size: 1rem;
}
.ec-storefront .woocommerce ul.products li.product .button {
  font-size: 0.875rem;
  min-height: 42px;
}
.ec-storefront .ec-card-stock {
  font-size: 0.75rem;
}
.ec-storefront .ec-home-description {
  font-size: 1rem;
  line-height: 1.6;
}
@media (min-width: 821px) and (max-width: 1024px) {
  .ec-storefront .header-action__text,
  .ec-storefront .header-action > .ec-icon:last-child:not(:first-child) {
    display: none;
  }
  .ec-storefront .header-action {
    min-width: 44px;
    width: 44px;
    padding: 8px;
  }
}
@media (max-width: 820px) {
  .ec-storefront .header-search .search-field {
    font-size: 1rem;
  }
  .ec-has-bottom-nav .ec-customer-notice:not(:empty) {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
}
.ec-customer-notice:not(:empty) {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  max-width: calc(100vw - 32px);
  width: max-content;
  background: var(--ec-text);
  color: white;
  border-radius: 10px;
  padding: 12px 18px;
  box-shadow: 0 8px 32px #0b153326;
  font-size: 0.875rem;
}
.ec-account-launch {
  padding: 32px;
  background: var(--ec-subtle);
  border: 1px solid var(--ec-border);
  border-radius: 12px;
}
.ec-storefront {
  font-size: 1rem;
  line-height: 1.6;
  --ec-control-radius: 8px;
}
.ec-storefront h1,
.ec-storefront h2,
.ec-storefront h3 {
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.ec-storefront .button,
.ec-storefront
  button:not(.icon-button):not(.submenu-toggle):not(
    .ec-gallery-navigation__button
  ) {
  font-family: inherit;
  font-weight: 650;
}
.ec-storefront .button {
  border-radius: var(--ec-control-radius);
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.ec-storefront .header-main {
  gap: clamp(16px, 2vw, 32px);
}
.ec-storefront .header-actions {
  align-items: center;
  gap: clamp(6px, .7vw, 12px);
}
.ec-storefront .header-action {
  gap: 8px;
  padding: 10px 12px;
  min-height: 48px;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.2;
}
.ec-storefront .header-action > .ec-icon:first-child,
.ec-storefront .header-action__icon,
.ec-storefront .header-action__icon > .ec-icon,
.ec-storefront .header-cart__icon,
.ec-storefront .header-cart__icon > .ec-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}
.ec-storefront .header-action > .ec-icon:last-child:not(:first-child) {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}
.ec-storefront .header-action__icon {
  position: relative;
  display: grid;
  place-items: center;
}
.ec-storefront .header-action .ec-icon {
  aspect-ratio: 1;
  object-fit: contain;
}
.ec-storefront .header-wishlist {
  position: relative;
}
.ec-wishlist-count,
.ec-storefront .header-cart__count {
  position: absolute;
  inset: -14px -7px auto auto;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--ec-primary);
  color: white;
  font: 700 10px/1 var(--ec-font);
  padding: 0 3px;
  border: 2px solid var(--ec-header);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  overflow: visible;
}
.ec-wishlist-count[hidden] {
  display: none;
}
.ec-wishlist-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  background: white;
  color: var(--ec-text);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-control-radius);
  cursor: pointer;
  font-size: 0.875rem;
}
.ec-wishlist-button .ec-icon {
  width: 21px;
  height: 21px;
  flex: none;
}
.ec-wishlist-button.is-saved {
  color: #c33659;
}
.ec-wishlist-button.is-saved .ec-icon {
  fill: currentColor;
}
.ec-storefront .woocommerce-product-gallery {
  position: relative;
}
.ec-gallery-save {
  position: absolute;
  z-index: 6;
  top: 16px;
  right: 64px;
}
.emiency-single-image-gallery .ec-gallery-save {
  right: 16px;
}
.ec-gallery-save[hidden] {
  display: none;
}
.ec-gallery-save .ec-wishlist-button {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 2px 12px #0b15331a;
}
.ec-gallery-save .ec-wishlist-button span {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.ec-auth-dialog [data-ec-auth-forms][hidden],
.ec-auth-dialog [data-ec-auth-recovery][hidden] {
  display: none !important;
}
.ec-auth-dialog form.lost_reset_password {
  margin: 24px 0 0;
}
.ec-wishlist-button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.ec-storefront .woocommerce ul.products li.product > .ec-wishlist-button {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  min-height: 36px;
  width: 36px;
  height: 36px;
  padding: 7px;
  border-radius: 50%;
  box-shadow: 0 2px 8px #0b15330a;
}
.ec-storefront .woocommerce ul.products li.product > .ec-wishlist-button span {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.ec-section-heading {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.ec-section-heading h1 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
}
.ec-section-heading p {
  margin: 0;
  color: var(--ec-muted);
}
.ec-wishlist {
  padding-block: 32px;
}
.ec-wishlist-empty {
  text-align: center;
  padding: 60px 24px;
  background: var(--ec-subtle);
  border: 1px solid var(--ec-border);
  border-radius: 12px;
}
.ec-wishlist-empty h2 {
  font-size: 1.5rem;
}
.ec-wishlist-pages {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}
.ec-wishlist-pages button {
  background: white;
  border: 1px solid var(--ec-border);
  border-radius: 6px;
  color: var(--ec-text);
  min-width: 40px;
  padding: 8px;
}
.ec-wishlist-pages [aria-current] {
  background: var(--ec-primary);
  color: white;
}
.ec-auth-dialog {
  width: min(460px, calc(100vw - 32px));
  max-width: 460px;
  max-height: calc(100dvh - 48px);
  overflow: auto;
  margin: auto;
  padding: 30px;
  border: 1px solid var(--ec-border);
  border-radius: 18px;
  background: var(--ec-surface);
  color: var(--ec-text);
  box-shadow: 0 24px 100px #0b153333;
  overscroll-behavior: contain;
  font: 400 1rem/1.6 var(--ec-font);
}
.ec-auth-dialog::backdrop {
  background: #0b153378;
  backdrop-filter: blur(3px);
}
.ec-auth-head {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: start;
}
.ec-auth-head h2 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.ec-auth-head .icon-button {
  flex: none;
  width: 36px;
  height: 36px;
  color: var(--ec-text);
  background: var(--ec-subtle);
  border: 0;
  border-radius: 50%;
  padding: 7px;
  display: grid;
  place-items: center;
}
.ec-auth-dialog #customer_login {
  display: block !important;
}
.ec-auth-dialog #customer_login > div {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ec-auth-dialog #customer_login > div[hidden],
.ec-auth-dialog form[hidden] {
  display: none !important;
}
.ec-auth-dialog [data-ec-auth-forms] > h2,
.ec-auth-dialog #customer_login > div > h2 {
  display: none;
}
.ec-auth-dialog form.login,
.ec-auth-dialog form.register {
  margin: 24px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: none !important;
}
.ec-auth-dialog .form-row {
  float: none !important;
  width: 100% !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  display: block;
}
.ec-auth-dialog label {
  font-size: 0.875rem;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
.ec-auth-dialog input:not([type="checkbox"]):not([type="hidden"]) {
  width: 100%;
  min-height: 46px;
  border: 1px solid #c8d2e0;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: white;
  color: var(--ec-text);
}
.ec-auth-dialog input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  accent-color: var(--ec-primary);
}
.ec-auth-dialog .button {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  border: 1px solid var(--ec-primary);
  border-radius: 8px;
  background: var(--ec-primary);
  color: white;
  font-size: 0.95rem;
  font-weight: 650;
  cursor: pointer;
}
.ec-auth-dialog .button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.ec-auth-dialog p {
  font-size: 0.875rem;
}
.ec-auth-dialog a {
  color: var(--ec-primary);
}
.ec-auth-dialog .woocommerce-form-login__rememberme {
  font-weight: 400;
}
.ec-auth-switch {
  border-top: 1px solid var(--ec-border);
  padding-top: 18px;
  margin: 20px 0 12px;
  text-align: center;
}
.ec-auth-switch button {
  border: 0;
  background: none;
  padding: 0 3px;
  color: var(--ec-primary);
  font: 650 0.875rem var(--ec-font);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ec-auth-message:not(:empty) {
  padding: 12px;
  margin-top: 18px;
  border-radius: 8px;
  background: var(--ec-subtle);
  font-size: 0.875rem;
}
.ec-auth-dialog .woocommerce-privacy-policy-text {
  font-size: 0.8rem;
  color: var(--ec-muted);
}
@media (min-width: 821px) and (max-width: 1199px) {
  .ec-storefront .header-action {
    padding: 10px 8px;
  }
  .ec-storefront .header-action__text {
    font-size: 0.8rem;
  }
  .ec-storefront .header-main {
    gap: 16px;
  }
  .ec-storefront .custom-logo-link {
    max-width: 160px;
  }
}
@media (max-width: 820px) {
  .ec-storefront .header-main {
    /* Equal flexible gaps either side of branding; actions stay grouped right. */
    --ec-header-slot: clamp(32px, 9.2vw, 44px);
    --ec-header-icon-gap: clamp(6px, 1.6vw, 12px);
    grid-template-columns: var(--ec-header-slot) minmax(6px, 1fr) max-content minmax(6px, 1fr) max-content;
    grid-template-rows: 64px auto;
    gap: 0;
  }
  .ec-storefront .header-action,
  .ec-storefront .nav-toggle {
    min-width: 0;
    width: var(--ec-header-slot);
    height: 44px;
    min-height: 44px;
    padding: 0;
    gap: 0;
    justify-content: center;
    align-items: center;
  }
  .ec-storefront .header-actions {
    display: flex;
    grid-column: 5;
    grid-row: 1;
    gap: var(--ec-header-icon-gap);
    align-items: center;
    justify-self: end;
  }
  .ec-storefront .nav-toggle { grid-column: 1; grid-row: 1; }
  .ec-storefront .header-help,
  .ec-storefront .header-account,
  .ec-storefront .header-mini-cart {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    width: var(--ec-header-slot);
    grid-row: 1;
    align-self: center;
  }
  .ec-storefront .header-action > .ec-icon:first-child,
  .ec-storefront .header-action__icon,
  .ec-storefront .header-action__icon > .ec-icon,
  .ec-storefront .nav-toggle > .ec-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }
  .ec-storefront .nav-toggle > .ec-icon { stroke-width: 2; }
  .ec-storefront .header-action__text,
  .ec-storefront .header-action > .ec-icon:last-child:not(:first-child) {
    display: none;
  }
  .ec-storefront .site-branding {
    position: static;
    grid-column: 3;
    grid-row: 1;
    width: clamp(72px, 28vw, 160px);
    min-width: 0;
    min-height: 44px;
    transform: none;
    justify-content: center;
    text-align: center;
    padding: 0;
  }
  .ec-storefront .site-title {
    display: block;
    width: 100%;
    min-height: 0;
    text-align: center;
    font-size: clamp(.75rem, 3.6vw, 1.3rem);
  }
  .ec-storefront .site-branding .custom-logo-link {
    width: min(var(--ec-logo-mobile-width), 100%);
  }
  .ec-storefront .header-help .header-dropdown__panel {
    left: auto;
    right: calc(-3 * (var(--ec-header-slot) + var(--ec-header-icon-gap)));
  }
  .ec-storefront .header-help .header-dropdown__panel::before {
    left: auto;
    right: calc(3 * (var(--ec-header-slot) + var(--ec-header-icon-gap)) + var(--ec-header-slot) / 2 - 6px);
  }
  .ec-storefront .header-account .header-dropdown__panel {
    left: auto;
    right: calc(-1 * (var(--ec-header-slot) + var(--ec-header-icon-gap)));
  }
  .ec-storefront .header-account .header-dropdown__panel::before {
    left: auto;
    right: calc(var(--ec-header-slot) + var(--ec-header-icon-gap) + var(--ec-header-slot) / 2 - 6px);
  }
  .ec-wishlist-count,
  .ec-storefront .header-cart__count {
    inset: -14px -7px auto auto;
  }
  .ec-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 600px) {
  .ec-auth-dialog {
    padding: 24px 20px;
    max-height: calc(100dvh - 24px);
  }
  .ec-storefront .woocommerce ul.products li.product > .ec-wishlist-button {
    top: auto;
    bottom: 66px;
    right: 12px;
    width: 32px;
    height: 32px;
    min-height: 32px;
  }
  .ec-storefront
    .woocommerce
    ul.products
    li.product
    .woocommerce-loop-product__title {
    padding-right: 0;
  }
  .ec-storefront .woocommerce ul.products li.product .price {
    padding-right: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ec-storefront .button {
    transition: none;
  }
  .ec-auth-dialog::backdrop {
    backdrop-filter: none;
  }
}
