/* Zenova product + checkout visual polish (UI only) */

.zn-pd,
.zn-co {
  background:
    radial-gradient(ellipse 80% 40% at 100% 0%, rgba(37, 99, 235, 0.06), transparent 55%),
    linear-gradient(180deg, #fafafa 0%, #fff 220px);
}

.zn-pd-crumb a {
  transition: color 0.15s ease;
}

.zn-pd-thumb {
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: outline-color 0.15s ease, transform 0.15s ease;
}
.zn-pd-thumb.is-active,
.zn-pd-thumb:focus-visible {
  outline-color: var(--brand, #2563eb);
}
.zn-pd-thumb:hover {
  transform: translateY(-1px);
}

.zn-pd-panel h1 {
  letter-spacing: -0.02em;
}

.zn-pd-price {
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #f5f9ff, #fff);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.zn-pd .variant-btn {
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.zn-wa-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 52px;
  margin-top: 0.75rem;
  padding: 0.55rem 1rem;
  border-radius: 0.85rem;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 22px -14px rgba(18, 140, 80, 0.9);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.zn-wa-cta:hover {
  background: #1ebe5d;
  color: #fff;
}
.zn-wa-cta__mark {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  color: #fff;
  flex-shrink: 0;
  overflow: visible;
}
.zn-wa-cta__mark svg {
  width: 1.65rem;
  height: 1.65rem;
  display: block;
  overflow: visible;
}
.zn-wa-cta__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  min-width: 0;
}
.zn-wa-cta__title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.zn-wa-cta__sub {
  margin-top: 0.1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.zn-pd [data-tabs] {
  margin-top: 3.5rem;
  background: #fff;
  border: 1px solid rgba(229, 229, 229, 0.9);
  border-radius: 1.25rem;
  padding: 0.5rem 1rem 1.25rem;
  box-shadow: 0 18px 40px -28px rgba(20, 20, 20, 0.25);
}
.zn-pd [data-tab] {
  border-radius: 999px;
  border-bottom-width: 0 !important;
  margin-top: 0.5rem;
}
.zn-pd [data-tab].bg-ink {
  background: var(--ink, #141414);
}
@media (max-width: 639px) {
  .zn-pd [data-tabs] {
    margin-top: 2rem;
    padding: 0.75rem 0.75rem 1rem;
    border-radius: 1rem;
  }
  .zn-pd-tabbar {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    border-bottom: 0 !important;
    padding-bottom: 0.15rem;
  }
  .zn-pd [data-tab] {
    margin: 0;
    width: 100%;
    min-height: 2.6rem;
    padding: 0.55rem 0.4rem;
    border-radius: 0.7rem;
    border: 1px solid #e5e5e5 !important;
    background: #f7f7f7;
    color: #525252;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    line-height: 1.15;
    text-align: center;
  }
  .zn-pd [data-tab].bg-ink {
    background: var(--ink, #141414) !important;
    color: #fff !important;
    border-color: var(--ink, #141414) !important;
  }
}

.zn-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.zn-qty-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.7rem;
  min-width: 0;
}
.zn-qty-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #262626;
}
.zn-qty-note {
  font-size: 0.92rem;
  font-weight: 500;
  color: #a3a3a3;
}
.zn-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.zn-qty button {
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.55rem;
  background: #fff;
  color: #737373;
  font-size: 1.15rem;
  line-height: 1;
}
.zn-qty button:hover {
  border-color: #d4d4d4;
  color: #171717;
}
.zn-qty input {
  width: 1.6rem;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #171717;
  padding: 0;
  -moz-appearance: textfield;
}
.zn-qty input::-webkit-outer-spin-button,
.zn-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.zn-co {
  background: #f3f4f6;
}
.zn-co-steps {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  gap: 0.55rem;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 1rem;
  box-shadow: 0 10px 24px -20px rgba(20, 20, 20, 0.45);
}
.zn-co-steps > li.h-px {
  flex: 1 1 auto;
  width: auto;
  min-width: 1rem;
  height: 2px;
  background: #e5e5e5;
}
.zn-co-steps > li.h-px.bg-brand-300 {
  background: color-mix(in srgb, var(--brand, #2563eb) 55%, #fff);
}
.zn-co-steps > li:not(.h-px) {
  gap: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.zn-co-steps span {
  border-radius: 999px;
  width: 1.65rem;
  height: 1.65rem;
  font-size: 0.7rem;
}
.zn-co .bg-white.border,
.zn-co .checkout-pay-card {
  border-radius: 1rem;
  border-color: #ececec;
  box-shadow: 0 14px 32px -24px rgba(20, 20, 20, 0.45);
}
.zn-co form > .bg-white h2,
.zn-co .checkout-pay-card h2,
.zn-co aside h2 {
  letter-spacing: 0.04em;
}
.zn-co form label,
.zn-co aside label {
  letter-spacing: 0.04em;
  color: #404040;
}
.zn-co input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),
.zn-co select,
.zn-co textarea {
  border-radius: 0.75rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  scroll-margin-top: 7.5rem;
  scroll-margin-bottom: 6rem;
}
.zn-co input:focus,
.zn-co select:focus,
.zn-co textarea:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.zn-co #checkoutSubmitBtn {
  border-radius: 0.9rem;
  min-height: 3.25rem;
  box-shadow: 0 14px 30px -14px rgba(22, 163, 74, 0.55);
}
.zn-coupon__form,
.zn-coupon__applied {
  margin-top: 1rem;
}
.zn-coupon__form {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}
.zn-coupon__input {
  flex: 1;
  min-width: 0;
  min-height: 2.85rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #141414;
}
.zn-coupon__input::placeholder {
  color: #a3a3a3;
  font-weight: 600;
}
.zn-coupon__apply {
  flex-shrink: 0;
  min-width: 5.4rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 0.75rem;
  background: #16a34a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.15s ease;
}
.zn-coupon__apply:hover { background: #15803d; }
.zn-coupon__applied {
  padding: 0.8rem 0.9rem;
  border: 1px solid #bbf7d0;
  border-radius: 0.85rem;
  background: #f0fdf4;
}
.zn-coupon__remove {
  padding: 0.4rem 0.7rem;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fff;
  color: #737373;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.zn-coupon__remove:hover {
  border-color: #dc2626;
  color: #dc2626;
}
.zn-co aside .bg-white {
  border-radius: 1.15rem;
}
.zn-co aside img {
  border-radius: 0.5rem;
}
.zn-zone {
  position: relative;
}
.zn-zone__native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.zn-zone__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid #d4d4d4;
  border-radius: 0.75rem;
  background: #fff;
  color: #171717;
  font-size: 0.9rem;
  text-align: left;
}
.zn-zone__btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: #737373;
}
.zn-zone__btn[aria-expanded="true"] {
  border-color: var(--ink, #141414);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.zn-zone__list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 0.85rem;
  box-shadow: 0 16px 36px -18px rgba(20, 20, 20, 0.45);
}
.zn-zone__opt {
  display: block;
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 0;
  border-radius: 0.6rem;
  background: transparent;
  color: #262626;
  font-size: 0.9rem;
  text-align: left;
}
.zn-zone__opt:hover,
.zn-zone__opt.is-selected {
  background: #eff6ff;
  color: var(--brand, #2563eb);
}
.zn-zone__opt.is-selected {
  font-weight: 700;
}
@media (max-width: 639px) {
  .zn-co-steps {
    justify-content: space-between;
    padding: 0.65rem 0.55rem;
    margin-bottom: 0.85rem;
  }
  .zn-co-steps > li:not(.h-px) {
    font-size: 0.62rem;
    gap: 0.3rem;
  }
  .zn-co form.space-y-6 > * + * {
    margin-top: 0.75rem;
  }
  .zn-co form > .bg-white,
  .zn-co .checkout-pay-card,
  .zn-co aside > .bg-white {
    padding: 0.95rem 0.9rem !important;
  }
}
@media (min-width: 1024px) {
  .zn-co-steps,
  .zn-co-grid > .mb-6 {
    grid-column: 1 / -1;
  }
  .zn-co-steps {
    max-width: 34rem;
    width: 100%;
    justify-self: center;
    padding: 0.85rem 1.1rem;
    margin-bottom: 0;
  }
  .zn-co-steps > li:not(.h-px) {
    font-size: 0.78rem;
  }
  .zn-co-grid {
    column-gap: 2rem;
    row-gap: 1.25rem;
  }
  #checkoutForm,
  .zn-co aside {
    margin-top: 0;
  }
  /* space-y-6 counts the CSRF hidden input, so Contact was 1.5rem below Coupon */
  .zn-co form.space-y-6 > input[type="hidden"] + .bg-white {
    margin-top: 0 !important;
  }
}

@media (max-width: 639px) {
  .zn-pd-gallery {
    grid-template-columns: 1fr;
  }
  .zn-pd-thumbs {
    flex-direction: row;
    order: 2;
    overflow-x: auto;
  }
  .zn-pd-thumb {
    width: 64px;
    flex: 0 0 64px;
  }
  .zn-pd-main {
    order: 1;
  }
}
