/* café stand WeLL — shipping EC storefront */
:root {
  --ec-red: #ff655b;
  --ec-orange: #ff8a2b;
  --ec-yellow: #ffd65f;
  --ec-teal: #4fb5a8;
  --ec-blue: #65b8df;
  --ec-cream: #fff8f2;
  --ec-ink: #181818;
  --ec-muted: #675b54;
  --ec-line: rgba(24, 24, 24, .11);
  --ec-panel: rgba(255, 255, 255, .94);
  --ec-shadow: 0 24px 68px rgba(61, 36, 23, .13);
  --ec-radius: 28px;
}

body.page-ec {
  background:
    radial-gradient(circle at 0 0, rgba(255, 214, 95, .26), transparent 28%),
    radial-gradient(circle at 100% 7%, rgba(101, 184, 223, .2), transparent 30%),
    var(--ec-cream);
}

body.ec-cart-open,
body.ec-dialog-open {
  overflow: hidden;
}

.ec-announcement {
  position: relative;
  z-index: 130;
  background: linear-gradient(90deg, var(--ec-teal), var(--ec-blue));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.ec-announcement-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 7px;
}

.ec-announcement p,
.ec-announcement a {
  margin: 0;
}

.ec-announcement p {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.ec-announcement .announcement-dot {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: var(--ec-yellow);
  box-shadow: 0 0 0 4px rgba(255,255,255,.14);
  flex: 0 0 auto;
}

.ec-announcement a {
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.ec-header-actions {
  gap: 7px;
}

.header-cart-trigger {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ec-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.header-cart-trigger .cart-icon {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
}

.cart-count,
.inline-cart-count,
.ec-floating-cart b {
  display: inline-grid;
  min-width: 23px;
  height: 23px;
  padding-inline: 6px;
  place-items: center;
  border-radius: 999px;
  background: var(--ec-yellow);
  color: var(--ec-ink);
  font-size: 11px;
  font-weight: 900;
}

.ec-hero {
  position: relative;
  overflow: clip;
  padding: 54px 0 70px;
}

.ec-hero::before,
.ec-hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
}

.ec-hero::before {
  width: 440px;
  height: 440px;
  top: -100px;
  left: -220px;
  background: rgba(255, 214, 95, .35);
}

.ec-hero::after {
  width: 540px;
  height: 540px;
  right: -250px;
  bottom: -260px;
  background: rgba(79, 181, 168, .2);
}

.ec-hero-grid {
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  min-width: 0;
}

.ec-hero-copy,
.ec-hero-visual {
  min-width: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--ec-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ec-eyebrow {
  margin: 0 0 13px;
  color: var(--ec-teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
}

.ec-hero h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2.7rem, 5.5vw, 5.15rem);
  line-height: .99;
  letter-spacing: -.045em;
}

.ec-hero-lead {
  max-width: 56ch;
  margin: 22px 0 0;
  color: var(--ec-muted);
  font-size: 1.02rem;
}

.ec-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

.ec-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.ec-trust-grid article {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--ec-line);
  border-radius: 20px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 12px 30px rgba(57,34,22,.08);
}

.ec-trust-grid article > span {
  display: inline-flex;
  width: 29px;
  height: 29px;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  border-radius: 50%;
  background: rgba(79,181,168,.14);
  font-size: 11px;
  font-weight: 900;
}

.ec-trust-grid strong {
  display: block;
  font-size: .92rem;
}

.ec-trust-grid p {
  margin: 5px 0 0;
  color: var(--ec-muted);
  font-size: .78rem;
  line-height: 1.55;
}

.ec-hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  grid-template-rows: 1fr 1fr;
  gap: 15px;
}

.ec-hero-visual figure {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--ec-shadow);
}

.ec-hero-main {
  grid-row: 1 / span 2;
}

.ec-hero-main img,
.ec-hero-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ec-hero-main img {
  aspect-ratio: .82;
}

.ec-hero-sub img {
  aspect-ratio: 1;
}

.ec-hero-sticker {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 126px;
  height: 126px;
  border: 1px solid rgba(24,24,24,.1);
  border-radius: 50%;
  background: rgba(255,255,255,.91);
  box-shadow: 0 18px 42px rgba(40,24,15,.16);
  transform: rotate(7deg);
  text-align: center;
}

.ec-hero-sticker span {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.ec-hero-sticker strong {
  font-size: 1.25rem;
  line-height: 1;
}

.ec-feature-strip {
  border-top: 1px solid var(--ec-line);
  border-bottom: 1px solid var(--ec-line);
  background: rgba(255,255,255,.66);
}

.ec-feature-track {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .11em;
  white-space: nowrap;
}

.ec-feature-track i {
  color: var(--ec-red);
  font-style: normal;
}

.ec-section-heading {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.ec-section-heading.compact {
  align-items: center;
}

.ec-section-heading h2,
.ec-visual-copy h2 {
  margin: 0;
  font-size: clamp(2.05rem, 4.8vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.ec-section-heading p,
.ec-visual-copy > p {
  margin: 0;
  color: var(--ec-muted);
}

.ec-section-copy {
  display: grid;
  gap: 12px;
}

.product-count-line {
  color: var(--ec-ink) !important;
  font-weight: 900;
}

.ec-shop-notice {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 18px;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(255,138,43,.22);
  border-radius: 20px;
  background: rgba(255,239,225,.78);
}

.ec-shop-notice strong {
  font-size: .94rem;
}

.ec-shop-notice p {
  margin: 0;
  color: var(--ec-muted);
  font-size: .88rem;
}

.ec-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.ec-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.ec-category-filters button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--ec-line);
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  font-size: 12px;
  font-weight: 800;
}

.ec-category-filters button[aria-pressed="true"] {
  border-color: var(--ec-teal);
  background: var(--ec-teal);
  color: #fff;
}

.ec-search {
  display: flex;
  min-width: min(290px, 100%);
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--ec-line);
  border-radius: 999px;
  background: #fff;
}

.ec-search input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
}

.ec-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ec-product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ec-line);
  border-radius: 26px;
  background: var(--ec-panel);
  box-shadow: 0 18px 48px rgba(58,35,23,.1);
  transition: transform .2s ease, box-shadow .2s ease;
}

.ec-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ec-shadow);
}

.ec-product-media {
  position: relative;
  overflow: hidden;
  background: #f6eee7;
}

.ec-product-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .35s ease;
}

.ec-product-card:hover .ec-product-media img {
  transform: scale(1.03);
}

.ec-product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ec-product-badge {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 20px rgba(30,20,14,.08);
  font-size: 10px;
  font-weight: 900;
}

.ec-product-badge.soldout {
  background: rgba(24,24,24,.87);
  color: #fff;
}

.ec-product-body {
  padding: 17px;
}

.ec-product-category {
  margin: 0 0 5px;
  color: var(--ec-teal);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ec-product-card h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.42;
}

.ec-product-description {
  min-height: 3em;
  margin: 8px 0 0;
  color: var(--ec-muted);
  font-size: .86rem;
  line-height: 1.55;
}

.ec-product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.ec-product-price {
  font-size: 1.12rem;
  font-weight: 900;
}

.ec-product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 13px;
}

.ec-product-actions button {
  min-height: 40px;
  border: 1px solid var(--ec-line);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 900;
}

.ec-product-actions .details {
  padding: 0 12px;
  background: rgba(255,255,255,.8);
}

.ec-product-actions .quick-add {
  width: 42px;
  background: var(--ec-ink);
  color: #fff;
}

.ec-product-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.ec-empty-state {
  padding: 50px 20px;
  border: 1px dashed var(--ec-line);
  border-radius: 24px;
  text-align: center;
}

.ec-empty-state > span {
  font-size: 2rem;
}

.ec-empty-state h3 {
  margin: 10px 0 0;
}

.ec-empty-state p {
  margin: 6px 0 0;
  color: var(--ec-muted);
}

.ec-guide-section {
  background: linear-gradient(135deg, rgba(79,181,168,.1), rgba(101,184,223,.09));
  border-top: 1px solid var(--ec-line);
  border-bottom: 1px solid var(--ec-line);
}

.ec-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ec-step-grid li,
.ec-policy-grid article {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--ec-line);
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 14px 34px rgba(54,34,23,.07);
}

.ec-step-grid li > span,
.ec-policy-grid article > span {
  color: var(--ec-teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.ec-step-grid h3,
.ec-policy-grid h3 {
  margin: 13px 0 0;
  font-size: 1rem;
}

.ec-step-grid p,
.ec-policy-grid p {
  margin: 7px 0 0;
  color: var(--ec-muted);
  font-size: .86rem;
}

.ec-policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.ec-visual-grid {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 28px;
  align-items: center;
}

.ec-visual-copy p {
  margin-top: 16px;
}

.ec-visual-copy .text-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--ec-teal);
  font-weight: 900;
}

.ec-visual-photos {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}

.ec-visual-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--ec-shadow);
}

.ec-visual-photos img:first-child {
  grid-row: 1 / span 2;
  aspect-ratio: .82;
}

.ec-visual-photos img:not(:first-child) {
  aspect-ratio: 1;
}

.ec-faq-list {
  display: grid;
  gap: 10px;
}

.ec-faq-list details {
  padding: 0 20px;
  border: 1px solid var(--ec-line);
  border-radius: 19px;
  background: rgba(255,255,255,.85);
}

.ec-faq-list summary {
  padding: 17px 0;
  font-weight: 900;
  cursor: pointer;
}

.ec-faq-list details p {
  margin: 0 0 18px;
  color: var(--ec-muted);
}

.ec-floating-cart {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 145;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ec-ink);
  color: #fff;
  box-shadow: 0 20px 46px rgba(25,17,12,.24);
  font-size: 12px;
  font-weight: 900;
}

.ec-floating-cart strong {
  font-size: 12px;
}

.ec-cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 170;
  background: rgba(13,13,13,.54);
  backdrop-filter: blur(3px);
}

.ec-cart-drawer {
  position: fixed;
  z-index: 180;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 100%);
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #fffdfb;
  box-shadow: -24px 0 64px rgba(20,14,10,.22);
  transform: translateX(105%);
  transition: transform .28s cubic-bezier(.2,.75,.25,1);
}

body.ec-cart-open .ec-cart-drawer {
  transform: translateX(0);
}

.ec-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--ec-line);
}

.ec-cart-header p {
  margin: 0;
  color: var(--ec-teal);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}

.ec-cart-header h2 {
  margin: 2px 0 0;
  font-size: 1.35rem;
}

.ec-cart-header button,
.ec-dialog-close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ec-line);
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  font-size: 23px;
}

.ec-cart-body {
  min-height: 0;
  padding: 14px 20px;
  overflow-y: auto;
}

.ec-cart-empty {
  display: grid;
  min-height: 280px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.ec-cart-empty > span {
  font-size: 2.2rem;
}

.ec-cart-empty h3 {
  margin: 10px 0 0;
}

.ec-cart-empty p {
  margin: 5px 0 0;
  color: var(--ec-muted);
}

.ec-cart-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ec-line);
}

.ec-cart-item img {
  width: 76px;
  height: 76px;
  border-radius: 15px;
  object-fit: cover;
}

.ec-cart-item h3 {
  margin: 0;
  font-size: .91rem;
  line-height: 1.4;
}

.ec-cart-item p {
  margin: 3px 0 0;
  color: var(--ec-muted);
  font-size: .76rem;
}

.ec-cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.ec-cart-item-price {
  font-size: .89rem;
  font-weight: 900;
}

.ec-mini-quantity,
.ec-quantity {
  display: inline-grid;
  grid-template-columns: 34px 36px 34px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--ec-line);
  border-radius: 999px;
}

.ec-mini-quantity button,
.ec-quantity button {
  height: 34px;
}

.ec-mini-quantity output,
.ec-quantity output {
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.ec-remove-item {
  color: var(--ec-red);
  font-size: 11px;
  font-weight: 800;
}

.ec-cart-footer {
  padding: 18px 20px max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--ec-line);
  background: #fff;
}

.ec-cart-footer > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 900;
}

.ec-cart-footer > p {
  margin: 7px 0 14px;
  color: var(--ec-muted);
  font-size: .78rem;
}

.ec-cart-footer .button {
  width: 100%;
}

.ec-clear-cart {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  color: var(--ec-muted);
  font-size: 12px;
  text-decoration: underline;
}

.ec-product-dialog,
.ec-checkout-dialog,
.ec-result-dialog {
  width: min(1040px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 28px;
  background: #fffdfb;
  box-shadow: 0 32px 90px rgba(0,0,0,.3);
}

.ec-product-dialog::backdrop,
.ec-checkout-dialog::backdrop,
.ec-result-dialog::backdrop {
  background: rgba(13,13,13,.68);
  backdrop-filter: blur(3px);
}

.ec-dialog-close {
  position: sticky;
  z-index: 3;
  top: 12px;
  float: right;
  margin: 12px 12px -54px 0;
}

.ec-product-dialog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.ec-product-dialog-grid > figure {
  min-width: 0;
  margin: 0;
  background: #f4ece6;
}

.ec-product-dialog-grid > figure img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.ec-product-dialog-content {
  min-width: 0;
  padding: 58px 40px 36px;
}

#ec-product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#ec-product-category {
  margin: 18px 0 4px;
  color: var(--ec-teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

#ec-product-title {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.12;
}

#ec-product-description {
  margin: 14px 0 0;
  color: var(--ec-muted);
}

#ec-product-price {
  margin: 16px 0 0;
  font-size: 1.45rem;
  font-weight: 900;
}

.ec-product-dialog fieldset,
.ec-payment-options {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.ec-product-dialog legend,
.ec-payment-options legend {
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 900;
}

#ec-variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#ec-variant-options label {
  position: relative;
}

#ec-variant-options input {
  position: absolute;
  opacity: 0;
}

#ec-variant-options span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--ec-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

#ec-variant-options input:checked + span {
  border-color: var(--ec-teal);
  background: var(--ec-teal);
  color: #fff;
}

.ec-quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 900;
}

.ec-quantity {
  grid-template-columns: 40px 42px 40px;
}

.ec-quantity button,
.ec-quantity output {
  height: 40px;
  line-height: 40px;
}

.ec-add-product {
  width: 100%;
  justify-content: space-between;
  margin-top: 22px;
}

.ec-checkout-inner {
  padding: 38px;
}

.ec-checkout-heading p:first-child {
  margin: 0;
  color: var(--ec-teal);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}

.ec-checkout-heading h2 {
  margin: 3px 0 0;
  font-size: 2rem;
}

.ec-checkout-heading > p:last-child {
  margin: 7px 0 0;
  color: var(--ec-muted);
}

.ec-checkout-grid {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: 24px;
  margin-top: 28px;
  align-items: start;
}

.ec-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ec-form-grid label {
  min-width: 0;
}

.ec-form-grid label.full {
  grid-column: 1 / -1;
}

.ec-form-grid label > span {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 900;
}

.ec-form-grid label > span b {
  color: var(--ec-red);
  font-size: 10px;
}

.ec-form-grid input,
.ec-form-grid select,
.ec-form-grid textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--ec-line);
  border-radius: 13px;
  background: #fff;
  outline: 0;
}

.ec-form-grid input,
.ec-form-grid select {
  height: 44px;
  padding: 0 12px;
}

.ec-form-grid textarea {
  padding: 10px 12px;
  resize: vertical;
}

.ec-form-grid input:focus,
.ec-form-grid select:focus,
.ec-form-grid textarea:focus {
  border-color: var(--ec-teal);
  box-shadow: 0 0 0 3px rgba(79,181,168,.13);
}

.ec-form-grid small[data-error-for],
#ec-checkout-form > small[data-error-for] {
  display: block;
  min-height: 1.2em;
  margin-top: 3px;
  color: #c7322d;
  font-size: 10px;
}

.ec-payment-options {
  display: grid;
  gap: 8px;
}

.ec-payment-options > label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--ec-line);
  border-radius: 15px;
  background: rgba(255,255,255,.8);
}

.ec-payment-options input {
  margin-top: 4px;
}

.ec-payment-options strong,
.ec-payment-options small {
  display: block;
}

.ec-payment-options small {
  margin-top: 3px;
  color: var(--ec-muted);
  font-size: 11px;
}

.ec-agreement {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
}

.ec-submit {
  width: 100%;
  margin-top: 16px;
}

.ec-order-summary {
  position: sticky;
  top: 20px;
  padding: 20px;
  border: 1px solid var(--ec-line);
  border-radius: 20px;
  background: rgba(255,248,242,.9);
}

.ec-order-summary h3 {
  margin: 0 0 12px;
}

.ec-checkout-item {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--ec-line);
  font-size: 12px;
}

.ec-checkout-item p {
  margin: 0;
}

.ec-checkout-item small {
  display: block;
  color: var(--ec-muted);
}

.ec-order-summary dl {
  margin: 14px 0 0;
}

.ec-order-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 7px 0;
}

.ec-order-summary dt,
.ec-order-summary dd {
  margin: 0;
}

.ec-order-summary .total {
  margin-top: 8px;
  padding-top: 13px;
  border-top: 2px solid var(--ec-ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.ec-order-summary > p {
  margin: 12px 0 0;
  color: var(--ec-muted);
  font-size: 11px;
}

.ec-result-dialog {
  width: min(760px, calc(100vw - 24px));
}

.ec-result-inner {
  padding: 46px 38px 38px;
  text-align: center;
}

.ec-result-icon {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(79,181,168,.16);
  color: var(--ec-teal);
  font-size: 1.8rem;
  font-weight: 900;
}

.ec-result-inner > p:first-of-type {
  margin: 14px 0 0;
  color: var(--ec-teal);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}

.ec-result-inner h2 {
  margin: 6px 0 0;
}

.ec-result-inner > p:not(:first-of-type) {
  color: var(--ec-muted);
}

.ec-order-number {
  display: inline-grid;
  gap: 3px;
  margin: 12px auto;
  padding: 10px 18px;
  border-radius: 15px;
  background: rgba(255,214,95,.22);
}

.ec-order-number span {
  font-size: 10px;
  font-weight: 800;
}

#ec-result-text {
  width: 100%;
  max-width: 100%;
  padding: 14px;
  border: 1px solid var(--ec-line);
  border-radius: 15px;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  text-align: left;
  resize: vertical;
}

.ec-result-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.ec-result-caution {
  font-size: 11px;
}

.ec-toast {
  position: fixed;
  z-index: 300;
  left: 50%;
  bottom: 88px;
  max-width: calc(100vw - 28px);
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--ec-ink);
  color: #fff;
  box-shadow: 0 16px 36px rgba(0,0,0,.22);
  font-size: 12px;
  font-weight: 800;
  transform: translateX(-50%);
}

@media (max-width: 1080px) {
  .ec-hero-grid,
  .ec-section-heading,
  .ec-visual-grid {
    grid-template-columns: 1fr;
  }

  .ec-hero h1 {
    max-width: none;
  }

  .ec-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ec-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ec-announcement-inner {
    display: grid;
    gap: 2px;
    padding-block: 7px;
  }

  .ec-announcement a {
    white-space: normal;
  }

  .header-cart-trigger > span:not(.cart-count):not(.cart-icon) {
    display: none;
  }

  .header-cart-trigger {
    width: 40px;
    padding: 0;
    justify-content: center;
    position: relative;
  }

  .header-cart-trigger .cart-count {
    position: absolute;
    top: -7px;
    right: -5px;
  }

  .ec-hero {
    padding: 38px 0 52px;
  }

  .ec-hero-visual {
    grid-template-columns: 1fr 1fr;
  }

  .ec-hero-main {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .ec-hero-main img {
    aspect-ratio: 16 / 10;
  }

  .ec-hero-sub img {
    aspect-ratio: 1;
  }

  .ec-trust-grid,
  .ec-policy-grid {
    grid-template-columns: 1fr;
  }

  .ec-feature-track {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ec-feature-track::-webkit-scrollbar {
    display: none;
  }

  .ec-shop-notice {
    grid-template-columns: 1fr;
  }

  .ec-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ec-search {
    width: 100%;
    min-width: 0;
  }

  .ec-product-grid,
  .ec-step-grid {
    grid-template-columns: 1fr;
  }

  .ec-visual-photos {
    grid-template-columns: 1fr 1fr;
  }

  .ec-visual-photos img:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }

  .ec-product-dialog-grid,
  .ec-checkout-grid {
    grid-template-columns: 1fr;
  }

  .ec-product-dialog-grid > figure img {
    min-height: 0;
    max-height: 50vh;
    aspect-ratio: 1;
  }

  .ec-product-dialog-content {
    padding: 28px 20px 24px;
  }

  .ec-checkout-inner {
    padding: 34px 18px 24px;
  }

  .ec-form-grid {
    grid-template-columns: 1fr;
  }

  .ec-form-grid label.full {
    grid-column: auto;
  }

  .ec-order-summary {
    position: static;
  }

  .ec-floating-cart {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .ec-hero h1 {
    font-size: clamp(2.3rem, 13vw, 3.45rem);
  }

  .ec-hero-actions .button {
    width: 100%;
  }

  .ec-hero-sticker {
    width: 98px;
    height: 98px;
  }

  .ec-section-heading h2,
  .ec-visual-copy h2 {
    font-size: clamp(2rem, 10.5vw, 2.9rem);
  }

  .ec-product-grid {
    gap: 13px;
  }

  .ec-product-actions {
    grid-template-columns: 1fr 44px;
  }

  .ec-cart-drawer {
    width: 100%;
  }

  .ec-product-dialog,
  .ec-checkout-dialog,
  .ec-result-dialog {
    width: 100vw;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .ec-result-inner {
    padding: 42px 16px 24px;
  }
}
.ec-product-thumbs{display:flex;gap:8px;margin-top:10px;overflow-x:auto}.ec-product-thumbs button{border:2px solid transparent;background:none;padding:0;border-radius:9px;flex:0 0 auto}.ec-product-thumbs button.active{border-color:#e9652d}.ec-product-thumbs img{width:62px;height:62px;object-fit:cover;border-radius:7px;display:block}.ec-checkout-note{padding:12px;border-radius:10px;background:#fff4e9;font-size:.9rem}

@media(max-width:700px){.page-ec,.ec-store{width:100%;max-width:100%;overflow-x:hidden}.ec-header .header-inner{width:calc(100% - 20px)}.ec-header-actions{min-width:0}.header-cart-trigger{min-width:42px;padding:0 8px}.header-cart-trigger>span:not(.cart-count):not(.cart-icon){display:none}.ec-hero-grid,.ec-section-heading,.ec-visual-grid,.ec-product-dialog-grid,.ec-checkout-grid{grid-template-columns:minmax(0,1fr);width:100%;max-width:100%}.ec-hero,.ec-products-section,.ec-guide-section,.ec-visual-section,.ec-faq-section{overflow:hidden}.ec-hero-copy,.ec-hero-visual,.ec-section-copy,.ec-product-card,.ec-policy-grid article{min-width:0;max-width:100%}.ec-hero h1{font-size:clamp(2rem,12vw,3.2rem);overflow-wrap:anywhere}.ec-hero-actions{display:grid;grid-template-columns:1fr}.ec-product-grid,.ec-step-grid,.ec-policy-grid{grid-template-columns:minmax(0,1fr)}.ec-product-dialog,.ec-checkout-dialog,.ec-result-dialog{max-width:100vw}.ec-cart-drawer{max-width:100vw}.ec-floating-cart{max-width:calc(100vw - 20px)}}
