/* Sticky Objects storefront palette. */
:root {
  --sos-ink: #171717;
  --sos-paper: #fcfbf9;
  --sos-action: #171717;
  --sos-cyan: #64d9f4;
  --sos-muted: color-mix(in srgb, var(--sos-ink) 76%, var(--sos-paper));
  --sos-line: color-mix(in srgb, var(--sos-ink) 14%, var(--sos-paper));
  --sos-action-hover: #3d3d3d;
  --sos-ice: color-mix(in srgb, var(--sos-cyan) 20%, var(--sos-paper));
  --sos-content-max: 1280px;
  --sos-gutter: clamp(16px, 3vw, 38px);
  --sos-font: Inter, "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
}

body, button, input, select, textarea, .site-title, h1, h2, h3, h4 {
  font-family: var(--sos-font);
}

body, .site-content {
  background: var(--sos-paper);
  color: var(--sos-ink);
}

body {
  --ast-global-color-0: var(--sos-action);
  --ast-global-color-1: var(--sos-action-hover);
  --ast-global-color-2: var(--sos-ink);
}

.site-header .ast-primary-header-bar,
.site-footer .site-below-footer-wrap {
  background: var(--sos-paper);
  border-color: var(--sos-line);
}

.site-header img.sos-brand-wordmark {
  display: block;
  width: clamp(160px, 21vw, 242px);
  height: auto;
}

.site-header .main-header-menu .menu-link {
  color: var(--sos-ink);
  font-weight: 650;
}

.site-header .main-header-menu .current-menu-item > .menu-link,
.site-header .main-header-menu .menu-link:hover,
.site-header .current-language-menu-item > .menu-link {
  color: var(--sos-action);
}

.site-header a:focus-visible, .site-footer a:focus-visible,
.sos-hero a:focus-visible, .sos-shop-section a:focus-visible,
.woocommerce a:focus-visible, .woocommerce button:focus-visible {
  outline: 2px solid var(--sos-action);
  outline-offset: 3px;
}

.home .site-content > .ast-container {
  max-width: var(--sos-content-max);
  padding-inline: var(--sos-gutter);
}

.home #primary { margin-top: 0; }
.home .ast-article-single { padding: 0; }
.home .entry-header { display: none; }
.home .entry-content { margin-top: 0; }

.home .entry-content > .sos-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr);
  gap: clamp(16px, 2vw, 28px);
  padding: clamp(12px, 1.7vw, 24px);
  margin: clamp(20px, 3vw, 38px) 0 0;
  border: 1px solid var(--sos-line);
  border-radius: 26px;
  background: var(--sos-ice);
}

.home .entry-content .sos-hero-content {
  min-width: 0;
  align-self: center;
  margin: 0;
  padding: clamp(18px, 2.8vw, 40px);
}

.sos-hero .sos-eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  border-radius: 999px;
  padding: 6px 13px;
  background: var(--sos-cyan);
  color: var(--sos-ink);
  font-size: 0.8rem;
  font-weight: 750;
}

.sos-hero .sos-hero-title {
  margin: 0 0 16px;
  color: var(--sos-ink);
  font-size: clamp(2.4rem, 4.4vw, 4.25rem);
  line-height: 1.13;
  letter-spacing: -0.045em;
  font-weight: 850;
  text-wrap: balance;
}

.sos-hero .sos-hero-copy {
  max-width: 31rem;
  margin: 0 0 24px;
  color: var(--sos-muted);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.65;
}

.sos-hero .wp-block-buttons { margin: 0; }

.sos-hero .wp-block-button__link,
.woocommerce a.button, .woocommerce button.button {
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--sos-action);
  color: #fff;
  font-weight: 750;
  line-height: 1.3;
  padding: 0.85em 1.45em;
}

.sos-hero .wp-block-button__link::after {
  content: "↓";
  margin-inline-start: 0.7em;
}

.sos-hero .wp-block-button__link:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover {
  background: var(--sos-action-hover);
  color: #fff;
}

.home .entry-content .sos-hero-art {
  align-self: stretch;
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: 18px;
  background: var(--sos-cyan) url('../images/sticker-hero.jpg') center / cover no-repeat;
}

.home .entry-content > .sos-shipping-note {
  margin: 14px 0 0;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--sos-cyan);
  color: var(--sos-ink);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 650;
}

.sos-shipping-note p { margin: 0; }

.home .entry-content > .sos-shop-section {
  margin: 0;
  padding-block: clamp(30px, 5vw, 62px);
  scroll-margin-top: 20px;
}

.home .entry-content .sos-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 18px;
  margin-bottom: 20px;
  padding: 0;
}

.sos-section-heading h2, .woocommerce .woocommerce-products-header__title {
  margin: 0;
  color: var(--sos-ink);
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.sos-section-heading p { margin: 0; }
.sos-section-heading a { color: var(--sos-action); font-weight: 700; text-underline-offset: 0.25em; }

.sos-shop-section ul.products,
.woocommerce.archive ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  margin: 0;
}

.sos-shop-section ul.products::before, .sos-shop-section ul.products::after,
.woocommerce.archive ul.products::before, .woocommerce.archive ul.products::after { display: none; }

.sos-shop-section ul.products li.product,
.woocommerce.archive ul.products li.product {
  float: none;
  width: auto;
  margin: 0;
  padding: 10px 10px 16px;
  border: 1px solid var(--sos-line);
  border-radius: 18px;
  background: #fff;
  text-align: start;
}

.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.woocommerce ul.products li.product .astra-shop-summary-wrap { padding: 0 8px; }
.woocommerce ul.products li.product_cat-uncategorized .ast-woo-product-category { display: none; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--sos-ink); font-weight: 750; }
.woocommerce ul.products li.product .price { color: var(--sos-muted); font-weight: 700; }
.woocommerce ul.products li.product .button { margin-top: 0.5em; }
.woocommerce div.product div.images img { border-radius: 16px; }

.woocommerce-cart .cart_totals,
.woocommerce-checkout #order_review { background: #fff; }

@media (max-width: 921px) {
  .site-header .ast-builder-menu-mobile .menu-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 760px) {
  .home .entry-content > .sos-hero { grid-template-columns: minmax(0, 1fr); border-radius: 20px; }
  .home .entry-content .sos-hero-content { padding: 18px 14px 6px; }
  .sos-hero .sos-hero-title { font-size: clamp(2.25rem, 8.7vw, 3.5rem); }
  .sos-hero .sos-hero-copy { margin-bottom: 20px; }
  .home .entry-content .sos-hero-art { border-radius: 13px; }
  .sos-shop-section ul.products,
  .woocommerce.archive ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Custom sticker storefront preview. */
:root {
  --sos-radius: 22px;
  --sos-shadow: 0 12px 30px rgb(23 23 23 / 6%);
}

.site-header .main-header-menu .current-menu-item > .menu-link,
.site-header .current-language-menu-item > .menu-link {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.home .entry-content > .sos-custom-hero {
  gap: clamp(12px, 2vw, 26px);
  padding: 12px;
  border-radius: var(--sos-radius);
  background: #f0eeea;
}

.home .entry-content .sos-custom-hero .sos-hero-art {
  align-self: center;
  width: 100%;
  min-width: 0;
}

.sos-custom-hero .sos-hero-title {
  font-size: clamp(2.35rem, 4.6vw, 4.35rem);
  line-height: 1.16;
}

.sos-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 14px;
  color: var(--sos-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.sos-actions, .sos-order-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.entry-content a.sos-pill, a.sos-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8em;
  min-height: 46px;
  padding: 0.65em 1.15em;
  border: 1px solid var(--sos-ink);
  border-radius: 999px;
  color: var(--sos-ink);
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
}

.entry-content a.sos-pill:hover, a.sos-pill:hover { background: #eae7e2; }

.entry-content a.sos-pill-primary, a.sos-pill-primary {
  background: var(--sos-action);
  color: #fff;
}

.entry-content a.sos-pill-primary:hover, a.sos-pill-primary:hover {
  background: var(--sos-action-hover);
  color: #fff;
}

.sos-pill:focus-visible, .sos-type-card:focus-visible {
  outline: 2px solid var(--sos-ink);
  outline-offset: 4px;
}

.home .entry-content > .sos-custom-types { padding-block: clamp(32px, 5vw, 72px); }
.sos-custom-types .sos-section-heading > p { color: var(--sos-muted); }

.entry-content .sos-type-grid, .sos-order-steps ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-content a.sos-type-card {
  display: block;
  height: 100%;
  padding: 8px;
  border: 1px solid var(--sos-line);
  border-radius: var(--sos-radius);
  background: #fff;
  color: var(--sos-ink);
  box-shadow: var(--sos-shadow);
  text-decoration: none;
}

.sos-type-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 15px;
}

.sos-type-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65em;
  padding: 12px 8px 6px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.sos-type-label span:last-child {
  display: grid;
  flex: 0 0 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #f0eeea;
}

.sos-type-card:hover .sos-type-label span:last-child {
  background: var(--sos-ink);
  color: #fff;
}

.sos-order-steps {
  margin-block: 0 clamp(32px, 5vw, 72px);
  padding: clamp(20px, 4vw, 48px);
  scroll-margin-top: 20px;
  border-radius: var(--sos-radius);
  background: #f0eeea;
}

.sos-order-steps h2 { margin-bottom: 24px; }
.sos-order-steps h3 { margin: 10px 0 4px; font-size: 1.1rem; }
.sos-order-steps li p, .sos-order-footer p { margin: 0; color: var(--sos-muted); }

.sos-order-steps li {
  padding: 16px 0;
  border-top: 1px solid var(--sos-line);
}

.sos-order-steps li > span { font-weight: 800; }
.sos-order-footer { justify-content: space-between; margin-top: 24px; }

.sos-order-steps { padding-inline: 0; background: transparent; }
.sos-order-steps ol { gap: clamp(18px, 3vw, 36px); }
.sos-order-steps li svg {
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  fill: none;
  stroke: var(--sos-ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sos-order-steps li > span { display: block; }
.sos-order-steps h3 { overflow-wrap: anywhere; }

.sos-builder-status {
  padding: 0.75rem 1rem;
  border: 1px solid var(--sos-line);
  border-radius: 12px;
  background: #f0eeea;
}

.woocommerce-cart .cart_totals, .woocommerce-checkout #order_review {
  border-radius: var(--sos-radius);
}

.woocommerce table.shop_table, .woocommerce-page table.shop_table {
  border-color: var(--sos-line);
  border-radius: 14px;
}

@media (max-width: 760px) {
  .sos-custom-hero .sos-hero-title { font-size: clamp(2.1rem, 8.4vw, 3.4rem); }
  .entry-content .sos-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sos-order-steps ol { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 400px) {
  .sos-custom-hero .sos-actions { align-items: stretch; flex-direction: column; }
  .sos-type-label { font-size: 0.9rem; padding-inline: 3px; }
  .sos-type-label span:last-child { flex-basis: 26px; height: 26px; }
}

/* Shared layout for the two logged-out account screens. */
.woocommerce-account .sos-account-access {
  width: min(100%, 490px);
  margin: clamp(16px, 4vw, 52px) auto;
  padding: clamp(18px, 4vw, 36px);
  border: 1px solid var(--sos-line);
  border-radius: var(--sos-radius);
  background: #fff;
  box-shadow: var(--sos-shadow);
}

.sos-account-access__intro, .sos-account-access__switch { text-align: center; }

.sos-account-access__intro h2 {
  margin: 0 0 6px;
  color: var(--sos-ink);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 800;
}

.sos-account-access__intro p { margin: 0; color: var(--sos-muted); }

.woocommerce .sos-account-access form.woocommerce-form {
  width: 100%;
  padding: 0;
  margin: 24px 0 0;
  border: 0;
  background: transparent;
}

.woocommerce .sos-account-access form .form-row { margin-bottom: 16px; }

.woocommerce .sos-account-access form .input-text {
  min-height: 48px;
  padding: 0.7em 0.85em;
  border: 1px solid var(--sos-line);
  border-radius: 10px;
  background: var(--sos-paper);
}

.woocommerce .sos-account-access form button[type="submit"] {
  float: none;
  width: 100%;
  min-height: 46px;
  margin: 8px 0 0;
}

.sos-account-access .woocommerce-LostPassword,
.sos-account-access__switch { margin: 12px 0 0; text-align: center; }

.sos-account-access__switch a { font-weight: 750; text-underline-offset: 0.2em; }
