/*
 * NIK Online Store — page system, motion and detailed WooCommerce styling.
 */

:root {
  --nik-page-width: 1180px;
  --nik-content-width: 820px;
  --nik-focus: 0 0 0 4px rgba(189, 232, 255, .78);
}

/*
 * Let Japanese headings wrap naturally.
 *
 * `text-wrap: balance` and phrase-aware wrapping used to be applied to every
 * heading and product name. Keep the baseline conservative, then add
 * phrase-aware wrapping only to actual headings. Product names keep the more
 * permissive fallback because they can contain long model numbers or URLs.
 */
.nik-store :is(h1, h2, h3, .product_title, .woocommerce-loop-product__title) {
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
  text-wrap: wrap;
  hyphens: none;
}

/*
 * Prefer Japanese phrase boundaries for editorial headings. Avoid the
 * `anywhere` fallback here: in Chromium it can split a short word such as
 * 「オンライン」even when a cleaner phrase boundary is available. Product
 * names intentionally stay excluded.
 */
@supports (word-break: auto-phrase) {
  .nik-store :is(h1, h2, h3) {
    word-break: auto-phrase;
    overflow-wrap: normal;
  }
}

.nik-store :is(p, li, dd, td, th, label, a, button) {
  overflow-wrap: break-word;
}

.nik-hero__line { display: block; }

/* Motion: activated by site.js only, with reduced-motion support. */
.nik-motion-ready .nik-reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity .62s cubic-bezier(.2, .8, .2, 1),
    transform .62s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(var(--nik-reveal-order, 0) * 70ms);
}

.nik-motion-ready .nik-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.nik-motion-ready .nik-hero::before {
  animation: nik-float 5.8s ease-in-out infinite;
}

.nik-motion-ready .nik-exhibition__date {
  animation: nik-card-float 5.2s ease-in-out infinite;
}

.nik-motion-ready .nik-marker::after {
  animation: nik-marker-draw .85s .2s cubic-bezier(.2, .8, .2, 1) both;
  transform-origin: left center;
}

@keyframes nik-float {
  0%, 100% { transform: translateY(0) rotate(-12deg); }
  50% { transform: translateY(-9px) rotate(-7deg); }
}

@keyframes nik-card-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-6px) rotate(-1deg); }
}

@keyframes nik-marker-draw {
  from { opacity: 0; transform: scaleX(.05) rotate(-1.2deg); }
  to { opacity: 1; transform: scaleX(1) rotate(-1.2deg); }
}

/* Parent footer is replaced by the NIK footer rendered from the child theme. */
#footer { display: none !important; }

.nik-site-footer {
  position: relative;
  z-index: 2;
  padding: 66px 0 0;
  border-top: 5px solid var(--nik-yellow);
  color: #fff;
  background: var(--nik-ink);
}

.nik-site-footer a { color: #fff; }

.nik-site-footer__grid {
  display: grid;
  gap: clamp(38px, 6vw, 82px);
  padding-bottom: 50px;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(150px, .55fr));
}

.nik-site-footer__brand { max-width: 470px; }
.nik-site-footer__brand .custom-logo-link { display: inline-flex; }
.nik-site-footer__brand .custom-logo {
  width: auto;
  max-width: 230px;
  max-height: 58px;
  filter: brightness(0) invert(1);
}

.nik-site-footer__name {
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -.04em;
  text-decoration: none;
}

.nik-site-footer__brand > p {
  max-width: 430px;
  margin: 20px 0;
  color: #d8d5ca;
  font-size: 14px;
  line-height: 1.9;
}

.nik-site-footer__official {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--nik-yellow) !important;
  font-size: 13px;
  font-weight: 900;
  text-underline-offset: .24em;
}

.nik-site-footer__nav {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.nik-site-footer__nav strong {
  margin-bottom: 6px;
  color: var(--nik-yellow);
  font-size: 12px;
  letter-spacing: .08em;
}

.nik-site-footer__nav a {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.nik-site-footer__nav a:hover { text-decoration: underline; }

.nik-site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 21px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  color: #bdb9ad;
  font-size: 11px;
}

.nik-site-footer__bottom p { margin: 0; }

/* Shared page composition */
.nik-page-main { min-width: 0; }
.nik-page-section { padding: 82px 0; }
.nik-page-section--cream { background: var(--nik-cream); }
.nik-narrow-wrap { max-width: var(--nik-content-width); }

.nik-page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--nik-ink);
  background-color: #fff8d9;
  background-image: radial-gradient(rgba(39, 37, 31, .13) 1.1px, transparent 1.1px);
  background-size: 19px 19px;
}

.nik-page-hero::after {
  position: absolute;
  right: max(5vw, 28px);
  bottom: -65px;
  width: 150px;
  height: 150px;
  border: 24px solid var(--nik-blue);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.nik-page-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: 46px 57px;
}

.nik-page-hero__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  color: var(--nik-muted);
  font-size: 11px;
  font-weight: 700;
}

.nik-page-hero__crumbs a { color: inherit; }
.nik-page-hero .nik-eyebrow { margin-bottom: 10px; }

.nik-page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -.05em;
}

.nik-page-hero__lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: #514e46;
  font-size: 16px;
  line-height: 1.9;
}

.nik-section-heading { margin-bottom: 34px; }
.nik-section-heading .nik-eyebrow { margin-bottom: 10px; }

.nik-section-heading h2,
.nik-content-card__heading h2,
.nik-page-cta h2,
.nik-contact-side h2,
.nik-product-support > h2 {
  margin: 0;
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  font-size: clamp(27px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.035em;
}

.nik-section-heading > p:last-child {
  max-width: 720px;
  margin: 15px 0 0;
  color: var(--nik-muted);
  line-height: 1.85;
}

.nik-content-card {
  min-width: 0;
  padding: clamp(26px, 4vw, 46px);
  border: 2px solid var(--nik-ink);
  border-radius: 22px;
  background: #fff;
  box-shadow: 6px 6px 0 rgba(39, 37, 31, .13);
}

.nik-content-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--nik-ink);
}

.nik-content-card__heading .nik-eyebrow { margin-bottom: 7px; }
.nik-content-card__heading h2 { font-size: clamp(25px, 3vw, 34px); }

.nik-page-cta {
  display: grid;
  align-items: center;
  gap: 30px;
  padding: clamp(28px, 5vw, 48px);
  border: 2px solid var(--nik-ink);
  border-radius: 24px;
  background: #fff;
  box-shadow: 6px 6px 0 var(--nik-ink);
  grid-template-columns: minmax(0, 1fr) auto;
}

.nik-page-cta .nik-eyebrow { margin-bottom: 8px; }
.nik-page-cta h2 { font-size: clamp(26px, 3.3vw, 39px); }
.nik-page-cta p:not(.nik-eyebrow) { margin: 12px 0 0; color: var(--nik-muted); line-height: 1.8; }
.nik-page-cta .nik-btn { white-space: normal; }

/* Guide */
.nik-choice-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nik-choice-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: clamp(28px, 4vw, 44px);
  border: 2px solid var(--nik-ink);
  border-radius: 24px;
  box-shadow: 6px 6px 0 var(--nik-ink);
}

.nik-choice-card--yellow { background: var(--nik-yellow-soft); }
.nik-choice-card--blue { background: var(--nik-blue); }

.nik-choice-card__number {
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(39, 37, 31, .13);
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 66px;
  font-weight: 800;
  line-height: 1;
}

.nik-choice-card__label {
  position: relative;
  margin: 0 0 10px;
  color: #5f510d;
  font-size: 12px;
  font-weight: 900;
}

.nik-choice-card h3 {
  position: relative;
  max-width: 420px;
  margin: 0;
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.4;
}

.nik-choice-card > p:not(.nik-choice-card__label) {
  position: relative;
  min-height: 5.4em;
  margin: 18px 0 25px;
  line-height: 1.9;
}

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

.nik-step-card {
  position: relative;
  min-width: 0;
  padding: 26px 23px;
  border: 2px solid var(--nik-ink);
  border-radius: 18px;
  background: #fff;
  box-shadow: 4px 4px 0 rgba(39, 37, 31, .12);
}

.nik-step-card::after {
  position: absolute;
  z-index: 1;
  top: 42px;
  right: -16px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid var(--nik-ink);
  border-radius: 50%;
  content: "→";
  background: var(--nik-yellow);
  font-weight: 900;
}

.nik-step-card:last-child::after { display: none; }
.nik-step-card > span { color: #7a6506; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.nik-step-card > strong { display: block; margin-top: 8px; font-size: 18px; }
.nik-step-card > p { margin: 12px 0 0; color: var(--nik-muted); font-size: 13px; line-height: 1.8; }

.nik-faq-list { display: grid; gap: 12px; }
.nik-faq-list details {
  overflow: hidden;
  border: 2px solid var(--nik-line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.nik-faq-list details.is-open {
  border-color: var(--nik-ink);
  box-shadow: 3px 3px 0 rgba(39, 37, 31, .1);
}

.nik-faq-list summary {
  position: relative;
  padding: 20px 55px 20px 23px;
  font-weight: 800;
  line-height: 1.7;
  list-style: none;
  cursor: pointer;
}

.nik-faq-list summary::-webkit-details-marker { display: none; }
.nik-faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 20px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1.5px solid var(--nik-ink);
  border-radius: 50%;
  content: "+";
  background: var(--nik-yellow);
  transform: translateY(-50%);
}

.nik-faq-list details[open] summary::after { content: "−"; }
.nik-faq-list details p { margin: 0; padding: 0 23px 22px; color: var(--nik-muted); line-height: 1.9; }

/* Maker index */
.nik-maker-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--nik-line);
  color: var(--nik-muted);
  font-size: 13px;
}

.nik-maker-toolbar p { margin: 0; }
.nik-maker-toolbar strong { color: var(--nik-ink); font-size: 20px; }
.nik-maker-toolbar a { color: var(--nik-ink); font-weight: 900; }

.nik-maker-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nik-maker-card {
  display: grid;
  min-width: 0;
  min-height: 126px;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 2px solid var(--nik-line);
  border-radius: 17px;
  color: var(--nik-ink);
  background: #fff;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  grid-template-columns: 58px minmax(0, 1fr) 32px;
}

.nik-maker-card:hover {
  border-color: var(--nik-ink);
  color: var(--nik-ink);
  box-shadow: 4px 4px 0 var(--nik-ink);
  transform: translate(-2px, -2px);
}

.nik-maker-card__mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1.5px solid var(--nik-ink);
  border-radius: 16px;
  background: var(--nik-yellow-soft);
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.nik-maker-card__mark--2 { background: var(--nik-blue); }
.nik-maker-card__mark--3 { background: var(--nik-green); }
.nik-maker-card__mark--4 { background: var(--nik-purple); }
.nik-maker-card h2 { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.55; }
.nik-maker-card p { margin: 5px 0 0; color: var(--nik-muted); font-size: 11px; }
.nik-maker-card__arrow { font-size: 20px; font-weight: 900; }

.nik-empty-panel {
  padding: clamp(45px, 7vw, 80px) 24px;
  border: 2px solid var(--nik-line);
  border-radius: 24px;
  background: #fbfaf6;
  text-align: center;
}

.nik-empty-panel > span:first-child {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  margin: 0 auto 23px;
  border: 2px solid var(--nik-ink);
  border-radius: 22px;
  background: var(--nik-blue);
  box-shadow: 4px 4px 0 var(--nik-ink);
  font-size: 13px;
  font-weight: 900;
  transform: rotate(-4deg);
}

.nik-empty-panel h1,
.nik-empty-panel h2 {
  margin: 0;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: clamp(27px, 4vw, 40px);
  font-weight: 800;
}

.nik-empty-panel > p:not(.nik-eyebrow) { max-width: 650px; margin: 15px auto 25px; color: var(--nik-muted); line-height: 1.9; }

/* Forms, quote and contact */
.nik-quote-flow {
  display: grid;
  max-width: 880px;
  margin: 0 auto 42px;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nik-quote-flow li {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 0 14px;
  text-align: center;
}

.nik-quote-flow li:not(:last-child)::after {
  position: absolute;
  z-index: -1;
  top: 22px;
  right: -50%;
  width: 100%;
  border-top: 2px dashed #b8b3a6;
  content: "";
}

.nik-quote-flow span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid var(--nik-ink);
  border-radius: 50%;
  background: var(--nik-yellow);
  font-weight: 900;
}

.nik-quote-flow strong { margin-top: 10px; font-size: 14px; }
.nik-quote-flow small { margin-top: 3px; color: var(--nik-muted); font-size: 10px; }

.nik-quote-layout {
  display: grid;
  align-items: start;
  gap: 30px;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
}

.nik-quote-selection { position: sticky; top: 24px; }
.nik-quote-selection__count { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: var(--nik-yellow); font-size: 12px; font-weight: 900; }
.nik-quote-list { display: grid; gap: 13px; }

.nik-quote-item {
  display: grid;
  min-width: 0;
  gap: 14px;
  padding: 13px;
  border: 1px solid var(--nik-line);
  border-radius: 13px;
  background: #fbfaf6;
  grid-template-columns: 82px minmax(0, 1fr);
}

.nik-quote-item__image {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  color: var(--nik-muted);
  background: #fff;
  font-size: 11px;
  text-decoration: none;
}

.nik-quote-item__image img { width: 100%; height: 100%; object-fit: contain; }
.nik-quote-item__body { min-width: 0; }
.nik-quote-item__title { display: block; color: var(--nik-ink); font-size: 13px; font-weight: 800; line-height: 1.55; text-decoration: none; }
.nik-quote-item__body > small { display: block; margin-top: 3px; color: var(--nik-muted); font-size: 9px; }
.nik-quote-item__controls { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: 10px; }
.nik-quote-item__quantity { display: flex; align-items: center; gap: 7px; color: var(--nik-muted); font-size: 10px; font-weight: 800; }
.nik-quote-item__quantity input { width: 70px; min-height: 38px; padding: 4px 7px; border: 1px solid #aaa496; border-radius: 7px; background: #fff; text-align: center; }
.nik-quote-item__remove { padding: 5px 2px; border: 0; color: #87504a; background: transparent; font-size: 10px; font-weight: 800; text-decoration: underline; cursor: pointer; }

.nik-quote-empty { padding: 28px 16px 10px; text-align: center; }
.nik-quote-empty[hidden] { display: none; }
.nik-quote-empty > span { display: grid; width: 56px; height: 56px; place-items: center; margin: 0 auto 16px; border: 2px solid var(--nik-ink); border-radius: 16px; background: var(--nik-yellow-soft); font-size: 23px; font-weight: 900; }
.nik-quote-empty h3 { margin: 0; font-size: 18px; }
.nik-quote-empty p { margin: 10px 0 20px; color: var(--nik-muted); font-size: 13px; line-height: 1.8; }

.nik-required-guide { flex: 0 0 auto; color: var(--nik-muted); font-size: 10px; }
.nik-required-guide i,
.nik-field > span i { margin-right: 3px; padding: 2px 5px; border-radius: 4px; color: #fff; background: #9c4237; font-size: 9px; font-style: normal; }
.nik-field > span small { color: var(--nik-muted); font-size: 9px; font-weight: 500; }

.nik-form-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nik-field { display: block; min-width: 0; }
.nik-field--wide { grid-column: 1 / -1; }
.nik-field > span { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 800; }

.nik-field :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 11px 13px;
  border: 1.5px solid #aaa496;
  border-radius: 9px;
  color: var(--nik-ink);
  background: #fff;
  font-size: 15px;
}

.nik-field textarea { min-height: 135px; resize: vertical; line-height: 1.7; }
.nik-field :is(input, select, textarea):focus { border-color: var(--nik-ink); outline: 0; box-shadow: var(--nik-focus); }
.nik-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.nik-form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 25px 0 20px;
  padding: 14px;
  border-radius: 10px;
  background: #f7f5ee;
  color: #514e46;
  font-size: 11px;
  line-height: 1.7;
}

.nik-form-consent input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; accent-color: #5e6d34; }
.nik-form-submit { width: 100%; cursor: pointer; }
.nik-form-submit:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; transform: none; }
.nik-form-note { margin: 13px 0 0; color: var(--nik-muted); font-size: 10px; line-height: 1.7; text-align: center; }

.nik-form-notice {
  margin-bottom: 30px;
  padding: 20px 22px;
  border: 2px solid;
  border-radius: 14px;
}

.nik-form-notice strong { display: block; font-size: 17px; }
.nik-form-notice p { margin: 6px 0 0; font-size: 13px; }
.nik-form-notice--success { border-color: #508251; background: #eaf7e4; }
.nik-form-notice--error { border-color: #a54f44; background: #fff0ec; }

.nik-contact-layout {
  display: grid;
  align-items: start;
  gap: clamp(30px, 5vw, 66px);
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
}

.nik-contact-side { position: sticky; top: 26px; }
.nik-contact-side > h2 { margin-bottom: 27px; font-size: clamp(27px, 3.3vw, 38px); }
.nik-contact-option { display: grid; gap: 14px; padding: 19px 0; border-top: 1px solid var(--nik-line); grid-template-columns: 54px minmax(0, 1fr); }
.nik-contact-option > span { display: grid; width: 54px; height: 54px; place-items: center; border: 1.5px solid var(--nik-ink); border-radius: 14px; background: var(--nik-yellow-soft); font-size: 10px; font-weight: 900; }
.nik-contact-option:nth-of-type(2) > span { background: var(--nik-blue); }
.nik-contact-option:nth-of-type(3) > span { background: var(--nik-green); }
.nik-contact-option strong { font-size: 14px; }
.nik-contact-option p { margin: 5px 0 7px; color: var(--nik-muted); font-size: 11px; line-height: 1.7; }
.nik-contact-option a { color: var(--nik-ink); font-size: 11px; font-weight: 900; }

/* Commerce pages */
.nik-commerce-section { background: #fbfaf6; }
.nik-purchase-steps {
  display: grid;
  max-width: 760px;
  margin: 0 auto 38px;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nik-purchase-steps li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #969083;
  text-align: center;
}

.nik-purchase-steps li:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 19px;
  right: -50%;
  width: 100%;
  border-top: 2px solid #d7d2c5;
  content: "";
}

.nik-purchase-steps span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid #c7c2b5;
  border-radius: 50%;
  background: #fbfaf6;
  font-size: 10px;
  font-weight: 900;
}

.nik-purchase-steps strong { font-size: 11px; line-height: 1.5; }
.nik-purchase-steps .is-current { color: var(--nik-ink); }
.nik-purchase-steps .is-current span { border-color: var(--nik-ink); background: var(--nik-yellow); }
.nik-purchase-steps .is-complete span { border-color: #548253; color: #315b31; background: #dff2d5; }

.nik-commerce-card {
  min-width: 0;
  padding: clamp(22px, 4vw, 46px);
  border: 2px solid var(--nik-ink);
  border-radius: 22px;
  background: #fff;
  box-shadow: 6px 6px 0 rgba(39, 37, 31, .13);
}

.nik-commerce-card .entry-content { min-width: 0; }
.nik-commerce-card :is(.woocommerce, .wc-block-cart, .wc-block-checkout) { margin: 0; }
.nik-commerce-card :is(h2, h3) { font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif; font-weight: 800; }

.nik-commerce-help,
.nik-checkout-guide,
.nik-account-intro {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 24px;
  padding: 18px 21px;
  border: 1.5px solid var(--nik-ink);
  border-radius: 13px;
  background: var(--nik-blue);
}

.nik-commerce-help { flex-wrap: wrap; }
.nik-commerce-help strong { font-size: 13px; }
.nik-commerce-help p { flex: 1 1 340px; margin: 0; color: #43535b; font-size: 12px; }
.nik-commerce-help a { color: var(--nik-ink); font-size: 12px; font-weight: 900; }

.nik-checkout-guide,
.nik-account-intro { margin: 0 0 22px; }
.nik-checkout-guide > span,
.nik-account-intro > span { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 1.5px solid var(--nik-ink); border-radius: 12px; background: #fff; font-size: 11px; font-weight: 900; }
.nik-checkout-guide p,
.nik-account-intro p { margin: 0; }
.nik-checkout-guide strong,
.nik-checkout-guide small,
.nik-account-intro strong,
.nik-account-intro small { display: block; }
.nik-checkout-guide strong,
.nik-account-intro strong { font-size: 13px; }
.nik-checkout-guide small,
.nik-account-intro small { margin-top: 4px; color: #43535b; font-size: 10px; }

.nik-commerce-card table.shop_table { border: 0; border-collapse: separate; border-spacing: 0; }
.nik-commerce-card table.shop_table thead th { padding-block: 14px; border-bottom: 2px solid var(--nik-ink); font-size: 11px; }
.nik-commerce-card table.shop_table td { padding-block: 18px; border-color: var(--nik-line); }
.nik-commerce-card .product-name a { color: var(--nik-ink); font-weight: 800; text-decoration: none; }
.nik-commerce-card .product-remove a { color: #8d4a42 !important; background: #fff0ec !important; }
.nik-commerce-card .cart_totals { padding: 24px; border: 2px solid var(--nik-ink); border-radius: 16px; background: #fff9dd; }
.nik-commerce-card .cart_totals h2 { margin-top: 0; }
.nik-commerce-card .checkout-button { min-height: 54px; display: flex !important; align-items: center; justify-content: center; }

.nik-commerce-card--checkout .woocommerce-checkout {
  display: grid;
  align-items: start;
  gap: clamp(28px, 4vw, 52px);
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
}

.nik-commerce-card--checkout .woocommerce-NoticeGroup { grid-column: 1 / -1; }
.nik-commerce-card--checkout #customer_details { display: block; }
.nik-commerce-card--checkout #customer_details .col-1,
.nik-commerce-card--checkout #customer_details .col-2 { width: 100%; }
.nik-commerce-card--checkout #customer_details .col-2 { margin-top: 30px; }
.nik-commerce-card--checkout #order_review_heading { margin-top: 0; }
.nik-commerce-card--checkout #order_review { min-width: 0; padding: 24px; border: 2px solid var(--nik-ink); border-radius: 17px; background: #fff9dd; }
.nik-commerce-card--checkout #payment { border: 1px solid #d9d2b5; border-radius: 12px; background: #fff; }
.nik-commerce-card--checkout #place_order { width: 100%; min-height: 56px; }

.nik-commerce-card :is(input.input-text, select, textarea) { min-height: 50px; padding: 10px 12px; border: 1.5px solid #aaa496; border-radius: 8px; background: #fff; }
.nik-commerce-card :is(input.input-text, select, textarea):focus { border-color: var(--nik-ink); outline: 0; box-shadow: var(--nik-focus); }
.nik-account-card .woocommerce-MyAccount-navigation { padding: 15px; border-radius: 14px; background: #f7f5ee; }
.nik-account-card .woocommerce-MyAccount-navigation li a { border-color: transparent; background: #fff; }
.nik-account-card .woocommerce-MyAccount-navigation li.is-active a { border-color: var(--nik-ink); color: var(--nik-ink); background: var(--nik-yellow); }

/* Product detail */
.single-product .ct-container { width: min(1180px, calc(100% - 40px)); }
.single-product .woocommerce-breadcrumb { margin: 25px 0 20px; color: var(--nik-muted); font-size: 11px; }
.single-product div.product { align-items: start; margin-bottom: 70px; }
.single-product div.product .woocommerce-product-gallery {
  overflow: hidden;
  padding: 18px;
  border: 2px solid var(--nik-ink);
  border-radius: 22px;
  background: #fbfaf6;
  box-shadow: 6px 6px 0 rgba(39, 37, 31, .13);
}

.single-product div.product .woocommerce-product-gallery__image { border-radius: 14px; background: #fff; }

.single-product div.product .flex-control-thumbs {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
}

.single-product div.product .flex-control-thumbs li {
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  float: none !important;
}

.single-product div.product .flex-control-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  padding: 3px;
  border: 1.5px solid var(--nik-line);
  border-radius: 8px;
  opacity: .72;
  background: #fff;
  object-fit: contain;
  cursor: pointer;
}

.single-product div.product .flex-control-thumbs img:hover,
.single-product div.product .flex-control-thumbs img.flex-active {
  border-color: var(--nik-ink);
  opacity: 1;
  box-shadow: 0 0 0 2px var(--nik-yellow);
}

.single-product div.product .summary {
  padding: clamp(20px, 3vw, 38px);
  border: 2px solid var(--nik-ink);
  border-radius: 22px;
  background: #fff;
  box-shadow: 6px 6px 0 rgba(39, 37, 31, .13);
}

.nik-product-detail__context { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.nik-product-detail__context span { color: #6f5800; font-size: 11px; font-weight: 900; }
.nik-product-detail__context span a { color: inherit; text-decoration: none; }
.nik-product-detail__context small { color: var(--nik-muted); font-size: 10px; }
.single-product .product_title { margin-bottom: 18px; font-size: clamp(30px, 4vw, 48px); line-height: 1.38; }
.single-product div.product .price { margin-bottom: 22px; font-size: clamp(23px, 3vw, 31px); }
.single-product div.product .woocommerce-product-details__short-description { padding-block: 18px; border-block: 1px solid var(--nik-line); color: #514e46; line-height: 1.9; }
.single-product form.cart { margin-top: 24px; padding: 20px; border-radius: 14px; background: #fff9dd; }
.single-product form.cart .single_add_to_cart_button { min-height: 50px; }
.nik-product-detail__quote { margin-top: 14px; }
.nik-product-detail__quote .nik-quote-add { width: 100%; min-height: 48px; margin: 0; font-size: 13px; }
.nik-product-detail__quote > p { margin: 9px 0 0; color: var(--nik-muted); font-size: 10px; line-height: 1.7; text-align: center; }

.nik-product-reassurance { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.nik-product-reassurance li { display: flex; align-items: flex-start; gap: 8px; color: #514e46; font-size: 11px; line-height: 1.6; }
.nik-product-reassurance span { display: grid; width: 18px; height: 18px; flex: 0 0 18px; place-items: center; border-radius: 50%; color: #315b31; background: #dff2d5; font-size: 10px; font-weight: 900; }

.nik-product-support { clear: both; margin: 70px 0 50px; }
.nik-product-support > h2 { margin-bottom: 25px; }
.nik-product-support__grid { display: grid; gap: 17px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nik-product-support article { position: relative; min-width: 0; padding: 24px; border: 2px solid var(--nik-ink); border-radius: 17px; background: var(--nik-yellow-soft); }
.nik-product-support article:nth-child(3n + 2) { background: var(--nik-blue); }
.nik-product-support article:nth-child(3n + 3) { background: var(--nik-green); }
.nik-product-support article > span { display: grid; width: 30px; height: 30px; place-items: center; margin-bottom: 15px; border: 1.5px solid var(--nik-ink); border-radius: 10px; background: #fff; font-size: 10px; font-weight: 900; }
.nik-product-support h3 { margin: 0; font-size: 16px; }
.nik-product-support p { margin: 8px 0 0; color: #514e46; font-size: 13px; line-height: 1.8; }
.nik-product-support__wide { grid-column: 1 / -1; background: #fff0ec !important; }

.single-product .woocommerce-tabs { margin-top: 50px; padding: clamp(24px, 4vw, 42px); border: 2px solid var(--nik-ink); border-radius: 22px; background: #fff; }
.single-product .woocommerce-tabs ul.tabs { border-bottom: 2px solid var(--nik-ink); }
.single-product .woocommerce-tabs ul.tabs::before { display: none !important; }
.single-product .woocommerce-tabs ul.tabs li { border: 0 !important; border-radius: 9px 9px 0 0 !important; background: #f2f0e9 !important; }
.single-product .woocommerce-tabs ul.tabs li.active { background: var(--nik-yellow) !important; }
.single-product .woocommerce-tabs .panel { padding-top: 25px; color: #514e46; line-height: 1.9; }
.single-product .related > h2,
.single-product .upsells > h2 { margin-bottom: 28px; font-family: "M PLUS Rounded 1c", sans-serif; font-size: clamp(26px, 3vw, 38px); font-weight: 800; }

/* Standard pages */
.nik-prose { color: #45423b; font-size: 15px; line-height: 2; }
.nik-prose > :first-child { margin-top: 0; }
.nik-prose > :last-child { margin-bottom: 0; }
.nik-prose h2 { margin: 2.2em 0 .75em; padding-bottom: .45em; border-bottom: 2px solid var(--nik-ink); font-size: clamp(24px, 3vw, 33px); }
.nik-prose h3 { margin-top: 1.8em; font-size: 20px; }
.nik-prose a { color: #6f5800; font-weight: 700; }
.nik-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.nik-prose th,
.nik-prose td { padding: 12px; border: 1px solid var(--nik-line); text-align: left; }
.nik-not-found { min-height: 66vh; display: grid; align-items: center; }
.nik-not-found__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; }

/* Tablet */
@media (max-width: 1024px) {
  .nik-page-section { padding-block: 72px; }
  .nik-step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nik-step-card:nth-child(2)::after { display: none; }
  .nik-maker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nik-quote-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .nik-commerce-card--checkout .woocommerce-checkout { grid-template-columns: 1fr; }
  .nik-commerce-card--checkout #order_review { padding: 22px; }
  .nik-product-support__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .nik-site-footer__grid { gap: 38px; grid-template-columns: minmax(0, 1fr) repeat(2, minmax(140px, .7fr)); }
  .nik-choice-grid,
  .nik-quote-layout,
  .nik-contact-layout { grid-template-columns: 1fr; }
  .nik-choice-card > p:not(.nik-choice-card__label) { min-height: 0; }
  .nik-quote-selection,
  .nik-contact-side { position: static; }
  .nik-contact-side { display: grid; gap: 0 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nik-contact-side > .nik-eyebrow,
  .nik-contact-side > h2 { grid-column: 1 / -1; }
  .nik-contact-option { display: block; }
  .nik-contact-option > span { margin-bottom: 12px; }
  .nik-page-cta { align-items: start; grid-template-columns: 1fr; }
  .nik-page-cta .nik-btn { justify-self: start; }
  .single-product .ct-container { width: min(100% - 40px, 760px); }
  .single-product div.product .summary { max-width: 680px; padding: 28px; }
}

/* Smartphone */
@media (max-width: 767px) {
  .nik-hero__line { display: inline; }
  .nik-page-section { padding-block: 52px; }
  .nik-page-hero::after { right: -55px; bottom: -63px; width: 125px; height: 125px; border-width: 20px; }
  .nik-page-hero__inner { padding-block: 29px 41px; }
  .nik-page-hero__crumbs { margin-bottom: 22px; }
  .nik-page-hero h1 { font-size: clamp(32px, 9.2vw, 44px); line-height: 1.38; letter-spacing: -.04em; }
  .nik-page-hero__lead { max-width: calc(100% - 28px); margin-top: 15px; font-size: 13px; line-height: 1.85; }
  .nik-section-heading { margin-bottom: 25px; }
  .nik-section-heading h2,
  .nik-page-cta h2,
  .nik-contact-side h2,
  .nik-product-support > h2 { font-size: clamp(25px, 7.6vw, 34px); line-height: 1.45; }
  .nik-section-heading > p:last-child { font-size: 13px; }
  .nik-content-card { padding: 23px 19px; border-radius: 18px; box-shadow: 4px 4px 0 rgba(39, 37, 31, .13); }
  .nik-content-card__heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 22px; padding-bottom: 18px; }
  .nik-content-card__heading h2 { font-size: clamp(23px, 7vw, 30px); }
  .nik-site-footer { padding-top: 48px; }
  .nik-site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nik-site-footer__brand { max-width: none; grid-column: 1 / -1; }
  .nik-site-footer__brand .custom-logo { max-width: min(220px, 65vw); }
  .nik-site-footer__bottom { align-items: flex-start; flex-direction: column; gap: 6px; }
  .nik-choice-card { padding: 27px 22px; border-radius: 19px; box-shadow: 4px 4px 0 var(--nik-ink); }
  .nik-choice-card__number { top: 15px; right: 17px; font-size: 52px; }
  .nik-choice-card h3 { max-width: calc(100% - 35px); font-size: clamp(24px, 7.5vw, 32px); }
  .nik-choice-card > p:not(.nik-choice-card__label) { font-size: 13px; }
  .nik-step-grid { grid-template-columns: 1fr; }
  .nik-step-card::after,
  .nik-step-card:nth-child(2)::after { top: auto; right: 50%; bottom: -16px; display: grid; transform: translateX(50%) rotate(90deg); }
  .nik-step-card:last-child::after { display: none; }
  .nik-faq-list summary { padding: 18px 52px 18px 17px; font-size: 14px; }
  .nik-faq-list summary::after { right: 15px; }
  .nik-faq-list details p { padding: 0 17px 18px; font-size: 13px; }
  .nik-maker-toolbar { align-items: flex-start; flex-direction: column; gap: 9px; }
  .nik-maker-grid { grid-template-columns: 1fr; }
  .nik-maker-card { min-height: 110px; padding: 16px; grid-template-columns: 54px minmax(0, 1fr) 28px; }
  .nik-maker-card__mark { width: 54px; height: 54px; }
  .nik-page-cta { padding: 26px 21px; border-radius: 18px; box-shadow: 4px 4px 0 var(--nik-ink); }
  .nik-page-cta .nik-btn { width: 100%; }
  .nik-quote-flow { margin-bottom: 30px; }
  .nik-quote-flow li { padding-inline: 6px; }
  .nik-quote-flow strong { font-size: 11px; }
  .nik-quote-flow small { display: none; }
  .nik-quote-flow span { width: 40px; height: 40px; }
  .nik-quote-flow li:not(:last-child)::after { top: 19px; }
  .nik-form-grid { grid-template-columns: 1fr; }
  .nik-field--wide { grid-column: auto; }
  .nik-field :is(input, select, textarea) { font-size: 16px; }
  .nik-contact-side { display: block; }
  .nik-contact-option { display: grid; grid-template-columns: 50px minmax(0, 1fr); }
  .nik-contact-option > span { width: 50px; height: 50px; margin-bottom: 0; }
  .nik-purchase-steps { margin-bottom: 28px; }
  .nik-purchase-steps strong { font-size: 9px; }
  .nik-commerce-card { padding: 20px 16px; border-radius: 17px; box-shadow: 4px 4px 0 rgba(39, 37, 31, .13); }
  .nik-commerce-help { align-items: flex-start; flex-direction: column; }
  .nik-commerce-help p { flex-basis: auto; }
  .nik-checkout-guide,
  .nik-account-intro { align-items: flex-start; padding: 15px; }
  .nik-commerce-card--checkout #order_review { padding: 16px 12px; }
  .nik-commerce-card .cart_totals { padding: 17px 13px; }
  .single-product .ct-container { width: auto; margin-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
  .single-product div.product .woocommerce-product-gallery { padding: 11px; border-radius: 17px; box-shadow: 4px 4px 0 rgba(39, 37, 31, .13); }
  .single-product div.product .summary { padding: 22px 18px; border-radius: 17px; box-shadow: 4px 4px 0 rgba(39, 37, 31, .13); }
  .single-product .product_title { font-size: clamp(27px, 8.4vw, 38px); }
  .single-product form.cart { padding: 15px; }
  .nik-product-support { margin-top: 52px; }
  .nik-product-support__grid { grid-template-columns: 1fr; }
  .nik-product-support__wide { grid-column: auto; }
  .single-product .woocommerce-tabs { margin-top: 38px; padding: 20px 17px; border-radius: 17px; }
  .nik-prose { padding: 23px 19px; font-size: 14px; line-height: 1.9; }
  .nik-not-found__actions { align-items: stretch; flex-direction: column; gap: 17px; }
  .nik-not-found__actions .nik-btn { width: 100%; }
}

@media (max-width: 460px) {
  .nik-site-footer__grid { grid-template-columns: 1fr; }
  .nik-site-footer__brand { grid-column: auto; }
  .nik-site-footer__nav { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); }
  .nik-quote-item { grid-template-columns: 68px minmax(0, 1fr); }
  .nik-quote-item__image { width: 68px; height: 68px; }
  .nik-quote-item__controls { align-items: flex-start; flex-direction: column; }
  .nik-quote-item__quantity { width: 100%; justify-content: space-between; }
  .nik-quote-item__quantity input { width: 82px; }
  .nik-quote-item__remove { align-self: flex-end; }
  .nik-required-guide { display: block; }
  .nik-purchase-steps strong { max-width: 72px; }
}

@media (hover: none), (pointer: coarse) {
  .nik-maker-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nik-motion-ready .nik-reveal,
  .nik-motion-ready .nik-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nik-motion-ready .nik-hero::before,
  .nik-motion-ready .nik-exhibition__date,
  .nik-motion-ready .nik-marker::after { animation: none; }
}

/* --------------------------------------------------------------------------
 * Version 1.5.0: compact catalogue, cart drawer and member experience
 * -------------------------------------------------------------------------- */

/* Header commerce controls */
#header .ct-header-cart,
#header .ct-header-account { display: none !important; }

#header [data-row="middle"] > div {
  display: flex;
  align-items: center;
}

.nik-header-tools {
  z-index: 4;
  display: flex;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nik-header-search {
  display: none !important;
  width: clamp(150px, 16vw, 220px);
  overflow: hidden;
  margin: 0 5px 0 0;
  border: 1.5px solid #b8b3a7;
  border-radius: 999px;
  background: #fff;
  grid-template-columns: minmax(0, 1fr) 38px;
}

.nik-header-search:focus-within {
  border-color: var(--nik-ink);
  box-shadow: var(--nik-focus);
}

.nik-header-search input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 5px 4px 5px 13px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.nik-header-search button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  color: var(--nik-ink);
  background: var(--nik-yellow);
  cursor: pointer;
}

.nik-header-search svg,
.nik-header-action svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nik-header-action {
  position: relative;
  display: flex;
  min-width: 48px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  padding: 4px 6px;
  border: 0;
  border-radius: 10px;
  color: var(--nik-ink);
  background: transparent;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.nik-header-action:hover,
.nik-header-action:focus-visible {
  color: var(--nik-ink);
  background: #fff6c8;
  outline: 0;
}

.nik-header-action--cart {
  color: var(--nik-ink);
  background: var(--nik-yellow);
}

.nik-header-action__icon { position: relative; display: grid; place-items: center; }

.nik-cart-count,
.nik-header-quote-count {
  position: absolute;
  top: -7px;
  right: -10px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding-inline: 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #bd4939;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.nik-cart-count[data-count="0"],
.nik-header-quote-count[data-count="0"] {
  opacity: 0;
  pointer-events: none;
}

.nik-mini-cart-backdrop {
  position: fixed;
  z-index: 99996;
  inset: 0;
  border: 0;
  opacity: 0;
  background: rgba(24, 23, 20, .48);
  transition: opacity .22s ease;
}

.nik-mini-cart-backdrop.is-visible { opacity: 1; }

.nik-mini-cart {
  position: fixed;
  z-index: 99997;
  top: 0;
  right: 0;
  display: flex;
  width: min(430px, 100%);
  height: 100dvh;
  overflow: hidden;
  flex-direction: column;
  border-left: 2px solid var(--nik-ink);
  background: #fff;
  box-shadow: -18px 0 45px rgba(39, 37, 31, .2);
  visibility: hidden;
  transform: translateX(102%);
  transition: transform .25s ease, visibility .25s;
}

.nik-mini-cart.is-open {
  visibility: visible;
  transform: translateX(0);
}

body.nik-cart-open { overflow: hidden; }

.nik-mini-cart__header {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-bottom: 2px solid var(--nik-ink);
  background: #fff9dd;
}

.nik-mini-cart__header span,
.nik-mini-cart__header strong { display: block; }
.nik-mini-cart__header span { color: #6f5800; font-size: 9px; font-weight: 900; letter-spacing: .09em; }
.nik-mini-cart__header strong { margin-top: 2px; font-family: "M PLUS Rounded 1c", sans-serif; font-size: 20px; }

.nik-mini-cart__header button {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  padding: 0;
  border: 1.5px solid var(--nik-ink);
  border-radius: 50%;
  color: var(--nik-ink);
  background: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.nik-mini-cart__body {
  min-height: 0;
  overflow-y: auto;
  flex: 1;
  padding: 18px 20px calc(22px + env(safe-area-inset-bottom));
}

.nik-mini-cart .woocommerce-mini-cart {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nik-mini-cart .woocommerce-mini-cart-item {
  position: relative;
  display: block;
  min-height: 96px;
  padding: 14px 28px 14px 0;
  border-bottom: 1px solid var(--nik-line);
}

.nik-mini-cart .woocommerce-mini-cart-item > a:not(.remove) {
  display: block;
  min-height: 72px;
  color: var(--nik-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
  text-decoration: none;
}

.nik-mini-cart .woocommerce-mini-cart-item img {
  float: left;
  width: 72px;
  height: 72px;
  margin: 0 11px 0 0;
  object-fit: contain;
  border: 1px solid var(--nik-line);
  border-radius: 9px;
  background: #fff;
}

.nik-mini-cart .woocommerce-mini-cart-item .quantity {
  display: block;
  margin-top: 7px;
  margin-left: 83px;
  color: var(--nik-muted);
  font-size: 11px;
}

.nik-mini-cart .remove_from_cart_button {
  position: absolute;
  top: 14px;
  right: 0;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: #8b433b !important;
  background: #fff0ec !important;
  font-size: 18px;
  text-decoration: none;
}

.nik-mini-cart .woocommerce-mini-cart__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 0;
  padding: 17px 0;
  border-block: 2px solid var(--nik-ink);
  font-size: 15px;
}

.nik-mini-cart .woocommerce-mini-cart__buttons {
  display: grid;
  gap: 9px;
  margin: 15px 0 0;
  grid-template-columns: 1fr 1fr;
}

.nik-mini-cart .woocommerce-mini-cart__buttons .button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 9px 10px;
  border: 2px solid var(--nik-ink);
  border-radius: 9px;
  color: var(--nik-ink);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.nik-mini-cart .woocommerce-mini-cart__buttons .checkout { background: var(--nik-yellow); }
.nik-mini-cart__continue { display: block; margin-top: 14px; color: var(--nik-ink); font-size: 11px; font-weight: 800; text-align: center; }
.nik-mini-cart .woocommerce-mini-cart__empty-message { padding: 70px 15px 45px; color: var(--nik-muted); text-align: center; }

.nik-toast {
  position: fixed;
  z-index: 100000;
  right: 22px;
  bottom: 22px;
  max-width: min(340px, calc(100% - 32px));
  padding: 13px 17px;
  border: 2px solid var(--nik-ink);
  border-radius: 11px;
  opacity: 0;
  color: var(--nik-ink);
  background: #fff;
  box-shadow: 4px 4px 0 var(--nik-ink);
  font-size: 12px;
  font-weight: 800;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
}

.nik-toast.is-visible { opacity: 1; transform: translateY(0); }

/* Compact, responsive product cards */
.woocommerce ul.products,
.nik-shop-results .woocommerce ul.products {
  display: grid !important;
  gap: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }

.woocommerce ul.products li.product {
  position: relative;
  display: flex !important;
  width: auto !important;
  min-width: 0;
  min-height: 0 !important;
  overflow: hidden;
  flex-direction: column;
  float: none !important;
  margin: 0 !important;
  padding: 0 0 7px !important;
  border-radius: 12px !important;
}

.woocommerce ul.products li.product > .woocommerce-LoopProduct-link,
.woocommerce ul.products li.product > .woocommerce-loop-product__link {
  display: flex !important;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 0 !important;
}

.woocommerce ul.products li.product img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1.48 / 1;
  margin: 0 0 6px !important;
  padding: 6px;
  object-fit: contain;
  border: 0;
  border-bottom: 1px solid var(--nik-line);
  border-radius: 0 !important;
  background: #fbfaf6;
}

.woocommerce ul.products li.product .nik-product-card__context {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin: 0 0 2px;
  padding: 0 9px;
}

.woocommerce ul.products li.product .nik-product-card__context > span,
.woocommerce ul.products li.product .nik-product-card__context > small {
  overflow: hidden;
  color: var(--nik-muted);
  font-size: 8px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.woocommerce ul.products li.product .nik-product-card__context > span {
  color: #6f5800;
  font-weight: 800;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box;
  overflow: hidden;
  margin: 2px 0 0 !important;
  padding: 0 9px !important;
  font-size: 12px !important;
  line-height: 1.48 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.woocommerce ul.products li.product .price {
  display: block;
  margin: auto 0 0 !important;
  padding: 6px 9px 0 !important;
  color: var(--nik-ink) !important;
  font-size: 14px !important;
  font-weight: 900;
  line-height: 1.35;
}

.nik-product-card__tax {
  margin: 0 9px;
  color: var(--nik-muted);
  font-size: 7px;
  font-weight: 700;
}

.woocommerce ul.products li.product > .button,
.woocommerce ul.products li.product > .added_to_cart,
.woocommerce ul.products li.product > .nik-quote-add {
  width: auto !important;
  min-height: 34px !important;
  margin: 6px 7px 0 !important;
  padding: 5px 7px !important;
  border-radius: 7px !important;
  font-size: 9px !important;
  line-height: 1.35 !important;
}

.woocommerce ul.products li.product > .button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin-top: 7px !important;
}

.woocommerce ul.products li.product > .button.nik-cart-added,
.woocommerce ul.products li.product > .button.added {
  color: #315b31 !important;
  background: #dff2d5 !important;
}

.woocommerce ul.products li.product > .added_to_cart { display: none !important; }
.woocommerce ul.products li.product > .nik-quote-add { color: var(--nik-ink); background: #fff !important; }

.nik-favorite-button {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1.5px solid var(--nik-ink);
  border-radius: 50%;
  color: var(--nik-ink);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 2px 8px rgba(39, 37, 31, .12);
  cursor: pointer;
}

.nik-favorite-button svg {
  width: 17px;
  height: 17px;
  fill: transparent;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nik-favorite-button.is-favorite { color: #a9382d; background: #fff0ec; }
.nik-favorite-button.is-favorite svg { fill: currentColor; }
.nik-favorite-button:focus-visible { outline: 0; box-shadow: var(--nik-focus); }
.nik-quote-add:focus-visible { outline: 0; box-shadow: var(--nik-focus); }

.nik-favorite-button--detail {
  position: static;
  display: inline-flex;
  width: auto;
  height: 42px;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-inline: 15px;
  border-radius: 999px;
  box-shadow: none;
  font-size: 11px;
  font-weight: 800;
}

.nik-title--products { font-size: clamp(27px, 3.2vw, 40px); }

/* Cart and checkout */
.woocommerce-cart .nik-commerce-card > .woocommerce {
  display: grid;
  align-items: start;
  gap: clamp(24px, 3vw, 40px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, .38fr);
}

.woocommerce-cart .nik-commerce-card > .woocommerce > :is(
  .woocommerce-notices-wrapper,
  .woocommerce-message,
  .woocommerce-error,
  .woocommerce-info,
  .return-to-shop,
  .cart-empty,
  .nik-empty-cart-message
) { grid-column: 1 / -1; }

.woocommerce-cart .woocommerce-cart-form {
  width: 100% !important;
  min-width: 0;
  float: none !important;
}

.woocommerce-cart .cart-collaterals {
  position: sticky;
  top: 22px;
  width: 100% !important;
  float: none !important;
}

.woocommerce-cart .cart-collaterals .cart_totals {
  width: 100% !important;
  float: none !important;
}

.woocommerce-cart .shop_table.cart {
  overflow: hidden;
  border: 1px solid var(--nik-line) !important;
  border-radius: 14px;
  background: #fff;
}

.woocommerce-cart .shop_table.cart thead { background: #f7f5ee; }
.woocommerce-cart .shop_table.cart .product-thumbnail img { width: 76px; height: 76px; object-fit: contain; }
.woocommerce-cart .shop_table.cart .quantity .qty { width: 72px; min-height: 40px; }
.woocommerce-cart .cart_totals { box-shadow: none; }

.wc-block-cart {
  align-items: start !important;
  gap: clamp(22px, 4vw, 44px) !important;
}

.wc-block-cart__sidebar {
  position: sticky;
  top: 22px;
  padding: 22px !important;
  border: 2px solid var(--nik-ink);
  border-radius: 15px;
  background: #fff9dd;
}

.wc-block-cart__submit-button {
  min-height: 54px;
  border: 2px solid var(--nik-ink);
  border-radius: 10px;
  color: var(--nik-ink) !important;
  background: var(--nik-yellow);
  font-weight: 900;
}

.nik-empty-cart-message {
  padding: 35px 16px 10px;
  text-align: center;
}

.nik-empty-cart-message > span {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  margin: 0 auto 17px;
  border: 2px solid var(--nik-ink);
  border-radius: 20px;
  background: var(--nik-yellow-soft);
  font-size: 11px;
  font-weight: 900;
}

.nik-empty-cart-message h2 { margin: 0; font-size: 23px; }
.nik-empty-cart-message p { margin: 9px 0 0; color: var(--nik-muted); font-size: 13px; }

.nik-commerce-card--checkout .woocommerce-checkout {
  gap: clamp(26px, 4vw, 48px);
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .75fr);
}

.nik-commerce-card--checkout #customer_details::before {
  display: block;
  margin-bottom: 18px;
  color: #6f5800;
  content: "01  お客様情報・配送先";
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}

.nik-commerce-card--checkout #order_review_heading::before {
  margin-right: 8px;
  color: #6f5800;
  content: "02";
  font-size: 11px;
  vertical-align: .2em;
}

.nik-commerce-card--checkout #order_review {
  position: sticky;
  top: 22px;
}

.woocommerce form .form-row {
  position: static;
}

.woocommerce form .form-row label {
  position: static !important;
  display: block;
  margin-bottom: 6px;
  transform: none !important;
  color: var(--nik-ink);
  font-size: 12px;
  font-weight: 800;
}

.woocommerce form .form-row .select2-container {
  display: block;
  width: 100% !important;
}

.woocommerce form .form-row .select2-container .select2-selection--single {
  height: 50px;
  border: 1.5px solid #aaa496;
  border-radius: 8px;
  background: #fff;
}

.woocommerce form .form-row .select2-selection--single .select2-selection__rendered {
  padding: 0 42px 0 12px;
  line-height: 47px;
}

.woocommerce form .form-row .select2-selection--single .select2-selection__arrow {
  top: 11px;
  right: 8px;
}

.woocommerce form .form-row .is-looking-up { background-image: linear-gradient(90deg, #fff 25%, #fff9dd 50%, #fff 75%); background-size: 200% 100%; animation: nik-address-loading 1s linear infinite; }

@keyframes nik-address-loading {
  to { background-position: -200% 0; }
}

.nik-order-privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 13px 0 0;
  color: var(--nik-muted);
  font-size: 10px;
  line-height: 1.7;
}

.nik-order-privacy svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.nik-order-privacy a { color: inherit; font-weight: 700; }

/* Registration, My Account and facility approval state */
.nik-account-card .woocommerce { min-width: 0; }

.woocommerce-account.logged-in .nik-account-card .woocommerce {
  display: grid !important;
  align-items: start;
  gap: 34px;
  grid-template-columns: 240px minmax(0, 1fr) !important;
}

.nik-account-card .woocommerce-MyAccount-navigation {
  width: 100% !important;
  float: none !important;
}

.nik-account-card .woocommerce-MyAccount-content {
  width: 100% !important;
  min-width: 0;
  float: none !important;
}

.nik-account-card .woocommerce::after { display: table; clear: both; content: ""; }

.nik-registration-fields { margin-bottom: 22px; }

.nik-account-type-choice {
  display: grid;
  gap: 10px;
  margin: 0 0 19px;
  padding: 0;
  border: 0;
  grid-template-columns: 1fr 1fr;
}

.nik-account-type-choice legend {
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 900;
  grid-column: 1 / -1;
}

.nik-account-type-choice > label {
  display: grid !important;
  min-height: 82px;
  align-items: start;
  gap: 10px;
  margin: 0 !important;
  padding: 13px;
  border: 1.5px solid var(--nik-line);
  border-radius: 12px;
  background: #fff;
  grid-template-columns: 20px minmax(0, 1fr);
  cursor: pointer;
}

.nik-account-type-choice > label:has(input:checked) {
  border-color: var(--nik-ink);
  background: #fff9dd;
  box-shadow: 0 0 0 2px var(--nik-yellow);
}

.nik-account-type-choice input { margin-top: 3px; }
.nik-account-type-choice span,
.nik-account-type-choice strong,
.nik-account-type-choice small { display: block; }
.nik-account-type-choice strong { font-size: 12px; }
.nik-account-type-choice small { margin-top: 4px; color: var(--nik-muted); font-size: 9px; line-height: 1.55; }

.nik-facility-registration {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--nik-line);
  border-radius: 14px;
  background: #f8f7f2;
}

.nik-facility-registration[hidden] { display: none; }

.nik-facility-form-grid {
  display: grid;
  gap: 2px 16px;
  grid-template-columns: 1fr 1fr;
}

.nik-facility-form-grid .form-row-wide { grid-column: 1 / -1; }
.nik-facility-form-grid textarea { width: 100%; }
.nik-account-note { margin: 9px 0 0; color: var(--nik-muted); font-size: 10px; line-height: 1.7; }

.nik-account-section-heading {
  margin-bottom: 25px;
  padding-bottom: 19px;
  border-bottom: 2px solid var(--nik-ink);
}

.nik-account-section-heading .nik-eyebrow { margin-bottom: 5px; }
.nik-account-section-heading h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); }
.nik-account-section-heading > p:last-child { margin: 8px 0 0; color: var(--nik-muted); font-size: 12px; line-height: 1.75; }

.nik-account-empty {
  padding: 28px;
  border: 1px dashed #aaa496;
  border-radius: 14px;
  text-align: center;
}

.nik-account-empty p { margin: 0 0 18px; color: var(--nik-muted); }

.nik-facility-status {
  margin-bottom: 24px;
  padding: 17px 19px;
  border: 1.5px solid var(--nik-ink);
  border-radius: 12px;
  background: #fff9dd;
}

.nik-facility-status--approved { background: #e5f5dc; }
.nik-facility-status--rejected { background: #fff0ec; }
.nik-facility-status strong { font-size: 14px; }
.nik-facility-status p { margin: 5px 0 0; color: #514e46; font-size: 11px; }

.nik-facility-application-form .nik-facility-form-grid {
  margin-top: 22px;
  margin-bottom: 18px;
  padding: 21px;
  border-radius: 14px;
  background: #f8f7f2;
}

.nik-quote-history-list { display: grid; gap: 14px; }
.nik-quote-history-list article { padding: 18px; border: 1.5px solid var(--nik-line); border-radius: 13px; background: #fff; }
.nik-quote-history-list article > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--nik-line); }
.nik-quote-history-list header small,
.nik-quote-history-list header strong { display: block; }
.nik-quote-history-list header small { color: var(--nik-muted); font-size: 8px; }
.nik-quote-history-list header strong { margin-top: 2px; font-size: 14px; }
.nik-quote-history-list header > span { padding: 5px 9px; border-radius: 999px; color: #315b31; background: #dff2d5; font-size: 9px; font-weight: 900; }
.nik-quote-history-list article > p { margin: 11px 0 0; color: var(--nik-muted); font-size: 10px; }
.nik-quote-history-list ul { margin: 10px 0 0; padding-left: 1.3em; font-size: 11px; line-height: 1.7; }

@media (max-width: 1100px) {
  .nik-header-search { display: none; }
  .woocommerce ul.products,
  .nik-shop-results .woocommerce ul.products { gap: 15px !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .nik-commerce-card--checkout .woocommerce-checkout { grid-template-columns: 1fr; }
  .nik-commerce-card--checkout #order_review { position: static; }
}

@media (max-width: 900px) {
  .nik-header-action--facility { display: none; }
  .woocommerce-cart .nik-commerce-card > .woocommerce { grid-template-columns: 1fr; }
  .woocommerce-cart .cart-collaterals,
  .wc-block-cart__sidebar { position: static; }
  .woocommerce-account.logged-in .nik-account-card .woocommerce { grid-template-columns: 1fr !important; }
  .nik-account-card .woocommerce-MyAccount-navigation { margin-bottom: 24px; }
}

@media (max-width: 768px) {
  #header [data-row="middle"] > div { gap: 4px; }
  .nik-header-tools { gap: 3px; }
  .nik-header-action { min-width: 42px; min-height: 46px; padding-inline: 4px; }
  .nik-header-action > span:last-child { display: none; }
  .nik-header-action--facility { display: none; }
  .nik-header-action svg { width: 22px; height: 22px; }
  .woocommerce ul.products,
  .nik-shop-results .woocommerce ul.products { gap: 10px !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .woocommerce ul.products li.product { border-radius: 10px !important; }
  .woocommerce ul.products li.product img { aspect-ratio: 1.42 / 1; padding: 5px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { padding-inline: 7px !important; font-size: 10px !important; line-height: 1.45 !important; }
  .woocommerce ul.products li.product .nik-product-card__context { min-height: 0; padding-inline: 7px; }
  .woocommerce ul.products li.product .nik-product-card__context > span,
  .woocommerce ul.products li.product .nik-product-card__context > small { font-size: 7px; }
  .woocommerce ul.products li.product .price { padding: 5px 7px 0 !important; font-size: 12px !important; }
  .nik-product-card__tax { margin-inline: 7px; }
  .woocommerce ul.products li.product > .button,
  .woocommerce ul.products li.product > .nik-quote-add { min-height: 34px !important; margin: 5px 6px 0 !important; padding: 5px 3px !important; font-size: 8px !important; }
  .nik-favorite-button { top: 6px; right: 6px; width: 31px; height: 31px; }
  .nik-favorite-button svg { width: 15px; height: 15px; }
  .nik-title--products { font-size: clamp(25px, 7.5vw, 32px); }
  .nik-mini-cart { border-left: 0; }
  .nik-toast { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .woocommerce-cart .shop_table.cart { border: 0 !important; }
  .woocommerce-cart .wc-proceed-to-checkout .checkout-button,
  .wc-block-cart__submit-button {
    position: sticky;
    z-index: 10;
    bottom: calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 4px 16px rgba(39, 37, 31, .2);
  }
  .nik-account-type-choice,
  .nik-facility-form-grid { grid-template-columns: 1fr; }
  .nik-facility-form-grid .form-row-wide { grid-column: auto; }
  .nik-facility-registration,
  .nik-facility-application-form .nik-facility-form-grid { padding: 15px; }
}

@media (max-width: 359px) {
  .woocommerce ul.products { gap: 7px !important; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 9px !important; }
  .woocommerce ul.products li.product .nik-product-card__context > small { display: none; }
  .woocommerce ul.products li.product > .button,
  .woocommerce ul.products li.product > .nik-quote-add { font-size: 8px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .nik-mini-cart,
  .nik-mini-cart-backdrop,
  .nik-toast { transition: none; }
}

@media (pointer: coarse) {
  .woocommerce ul.products li.product > .button,
  .woocommerce ul.products li.product > .nik-quote-add {
    min-height: 40px !important;
  }
  .nik-favorite-button:not(.nik-favorite-button--detail) {
    width: 38px;
    height: 38px;
  }
}

/* --------------------------------------------------------------------------
 * Version 1.5.2: header cleanup, guide titles and full-width cart layout
 * -------------------------------------------------------------------------- */

/*
 * Keep the two primary guide choices on one line. These are fixed editorial
 * labels, so they can use a tighter scale than ordinary page headings.
 */
.nik-choice-card h3.nik-choice-card__title {
  max-width: none;
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.45;
  letter-spacing: -.045em;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

/*
 * WooCommerce can restore float-based cart styles after an AJAX quantity
 * update. commerce.js marks the common parent so the product list and totals
 * retain their explicit columns.
 */
.woocommerce-cart .nik-cart-layout-root {
  display: grid !important;
  width: 100% !important;
  align-items: start;
  gap: clamp(26px, 3vw, 44px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px) !important;
}

.woocommerce-cart .nik-cart-layout-root > :is(
  .woocommerce-notices-wrapper,
  .woocommerce-message,
  .woocommerce-error,
  .woocommerce-info,
  .return-to-shop,
  .cart-empty,
  .nik-empty-cart-message
) {
  grid-column: 1 / -1;
}

.woocommerce-cart .nik-cart-layout-root > .woocommerce-cart-form {
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  float: none !important;
  grid-column: 1;
}

.woocommerce-cart .nik-cart-layout-root > .cart-collaterals {
  position: sticky;
  top: 22px;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  grid-column: 2;
}

.woocommerce-cart .nik-cart-layout-root > .cart-collaterals::before,
.woocommerce-cart .nik-cart-layout-root > .cart-collaterals::after {
  display: none !important;
}

.woocommerce-cart .nik-cart-layout-root .cart_totals {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

/* WooCommerce Cart block: use the same left/right balance as the classic cart. */
@media (min-width: 901px) {
  .woocommerce-cart .wc-block-cart {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px) !important;
  }

  .woocommerce-cart .wc-block-cart__main {
    width: 100% !important;
    min-width: 0;
  }

  .woocommerce-cart .wc-block-cart__sidebar {
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
  }
}

@media (max-width: 900px) {
  .woocommerce-cart .nik-cart-layout-root {
    grid-template-columns: 1fr !important;
  }

  .woocommerce-cart .nik-cart-layout-root > .woocommerce-cart-form,
  .woocommerce-cart .nik-cart-layout-root > .cart-collaterals {
    position: static;
    grid-column: 1;
  }
}

@media (max-width: 767px) {
  .nik-choice-card h3.nik-choice-card__title {
    max-width: 100%;
    font-size: clamp(16px, 5.15vw, 21px);
    letter-spacing: -.06em;
  }
}

/* --------------------------------------------------------------------------
 * Version 1.6.0: mobile-first header, navigation and checkout
 * -------------------------------------------------------------------------- */

.nik-header-action--menu,
.nik-mobile-menu,
.nik-mobile-menu-backdrop {
  display: none;
}

/* Explicit labels above classic checkout fields. */
.woocommerce-checkout form .form-row {
  margin-bottom: 17px;
}

.woocommerce-checkout form .form-row > label {
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 7px !important;
  padding: 0 !important;
  transform: none !important;
  clip: auto !important;
  color: var(--nik-ink) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
}

.woocommerce-checkout form .form-row :is(
  input.input-text,
  select,
  textarea,
  .select2-selection--single
) {
  width: 100% !important;
  min-height: 52px;
  margin: 0 !important;
  font-size: 16px;
}

.woocommerce-checkout form .nik-form-row-select .select2-selection--single {
  height: 52px !important;
}

.woocommerce-checkout form .nik-form-row-select .select2-selection__rendered {
  padding: 0 44px 0 14px !important;
  line-height: 49px !important;
}

.woocommerce-checkout form .nik-form-row-select .select2-selection__arrow {
  top: 12px !important;
  right: 9px !important;
}

/*
 * Checkout Block fields use floating labels by default. The theme converts
 * them to a stable two-row control so selected country/prefecture values can
 * never occupy the label's line.
 */
.wc-block-components-address-form .nik-checkout-control {
  position: relative !important;
  display: grid !important;
  min-width: 0;
  align-content: start;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr);
}

.wc-block-components-address-form
  .nik-checkout-control
  .nik-checkout-control__label {
  position: static !important;
  z-index: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  grid-row: 1;
  color: var(--nik-ink) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  opacity: 1 !important;
  pointer-events: none;
}

.wc-block-components-address-form
  .nik-checkout-control
  .nik-checkout-control__input {
  position: relative !important;
  top: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 12px 44px 12px 14px !important;
  border: 1.5px solid #aaa496 !important;
  border-radius: 9px !important;
  background: #fff !important;
  grid-row: 2;
  color: var(--nik-ink) !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  text-overflow: ellipsis;
}

.wc-block-components-address-form
  .nik-checkout-control
  .wc-block-components-combobox-control__suggestions-container,
.wc-block-components-address-form
  .nik-checkout-control
  .components-combobox-control__suggestions-container {
  grid-row: 3;
}

.wc-block-components-address-form
  .nik-checkout-control
  :is(
    .wc-block-components-combobox-control__button,
    .components-combobox-control__button
  ) {
  position: absolute !important;
  z-index: 2;
  top: auto !important;
  right: 6px !important;
  bottom: 0 !important;
  width: 38px !important;
  height: 52px !important;
  margin: 0 !important;
  transform: none !important;
}

.wc-block-components-address-form
  .nik-checkout-control:focus-within
  .nik-checkout-control__input {
  border-color: var(--nik-ink) !important;
  box-shadow: 0 0 0 3px rgba(255, 216, 61, .38) !important;
  outline: 0 !important;
}

@media (max-width: 1024px) {
  /*
   * The child theme owns the compact header at tablet/mobile widths. Hide the
   * parent theme's optional trigger to prevent duplicate hamburger buttons.
   */
  #header .ct-header-trigger,
  #header [data-id="trigger"],
  #header [data-id="mobile-menu"],
  #offcanvas {
    display: none !important;
  }

  #header [data-row="middle"] > div {
    display: flex !important;
    width: 100%;
    min-height: 68px;
    align-items: center;
    gap: 10px !important;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  #header [data-row="middle"] > div > [data-column="start"] {
    min-width: 0;
    flex: 1 1 auto;
  }

  #header [data-row="middle"] > div > [data-column="end"] {
    min-width: 0;
    flex: 0 1 auto;
  }

  #header [data-id="logo"] {
    min-width: 0;
    margin: 0 !important;
  }

  #header [data-id="logo"] img {
    width: auto;
    max-width: min(46vw, 210px);
    max-height: 46px;
  }

  .nik-header-tools {
    z-index: 99995;
    flex: 0 0 auto;
    gap: 8px;
    margin-left: auto;
  }

  .nik-header-action--menu {
    display: flex;
    order: 1;
    background: #fff;
  }

  .nik-header-action--cart {
    order: 2;
  }

  .nik-header-action--facility,
  .nik-header-action--account,
  .nik-header-action--quote {
    display: none !important;
  }

  .nik-header-action--menu,
  .nik-header-action--cart {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    border: 1.5px solid var(--nik-ink);
    border-radius: 12px;
  }

  .nik-header-action--menu > span:last-child,
  .nik-header-action--cart > span:last-child {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
  }

  .nik-menu-icon {
    display: grid;
    width: 23px;
    gap: 5px;
  }

  .nik-menu-icon i {
    display: block;
    width: 23px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }

  .nik-header-action--menu[aria-expanded="true"] .nik-menu-icon i:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .nik-header-action--menu[aria-expanded="true"] .nik-menu-icon i:nth-child(2) {
    opacity: 0;
  }

  .nik-header-action--menu[aria-expanded="true"] .nik-menu-icon i:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nik-mobile-menu-backdrop {
    position: fixed;
    z-index: 99998;
    inset: 0;
    display: block;
    border: 0;
    opacity: 0;
    background: rgba(24, 23, 20, .52);
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s;
  }

  .nik-mobile-menu-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
  }

  .nik-mobile-menu {
    position: fixed;
    z-index: 99999;
    top: 0;
    right: 0;
    display: flex;
    width: min(430px, 92vw);
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    flex-direction: column;
    border-left: 2px solid var(--nik-ink);
    background: #fff;
    box-shadow: -18px 0 45px rgba(39, 37, 31, .22);
    visibility: hidden;
    transform: translateX(102%);
    transition: transform .25s ease, visibility .25s;
  }

  .nik-mobile-menu.is-open {
    visibility: visible;
    transform: translateX(0);
  }

  body.nik-menu-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .nik-mobile-menu__header {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: max(15px, env(safe-area-inset-top)) 18px 14px;
    border-bottom: 2px solid var(--nik-ink);
    background: #fff9dd;
  }

  .nik-mobile-menu__header span,
  .nik-mobile-menu__header strong {
    display: block;
  }

  .nik-mobile-menu__header span {
    color: #6f5800;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .11em;
  }

  .nik-mobile-menu__header strong {
    margin-top: 2px;
    font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
    font-size: 21px;
    line-height: 1.25;
  }

  .nik-mobile-menu__header button {
    display: grid;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    place-items: center;
    padding: 0;
    border: 1.5px solid var(--nik-ink);
    border-radius: 50%;
    color: var(--nik-ink);
    background: #fff;
  }

  .nik-mobile-menu__header button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.9;
  }

  .nik-mobile-menu__body {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1;
    padding: 10px 18px calc(24px + env(safe-area-inset-bottom));
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nik-mobile-menu__list,
  .nik-mobile-menu__list .sub-menu {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .nik-mobile-menu__list > li {
    border-bottom: 1px solid var(--nik-line);
  }

  .nik-mobile-menu__list a {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 4px;
    color: var(--nik-ink);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.55;
    text-decoration: none;
  }

  .nik-mobile-menu__list a::after {
    flex: 0 0 auto;
    color: #8a6c00;
    content: "→";
    font-size: 17px;
  }

  .nik-mobile-menu__list .sub-menu {
    margin: -2px 0 8px 13px;
    padding-left: 13px;
    border-left: 2px solid var(--nik-yellow);
  }

  .nik-mobile-menu__list .sub-menu a {
    min-height: 44px;
    padding-block: 7px;
    color: var(--nik-muted);
    font-size: 13px;
  }

  .nik-mobile-categories {
    margin-top: 13px;
    border: 1.5px solid var(--nik-ink);
    border-radius: 13px;
    background: #fff;
  }

  .nik-mobile-categories summary {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 13px;
    list-style: none;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
  }

  .nik-mobile-categories summary::-webkit-details-marker {
    display: none;
  }

  .nik-mobile-categories summary svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transition: transform .2s ease;
  }

  .nik-mobile-categories[open] summary svg {
    transform: rotate(180deg);
  }

  .nik-mobile-categories > div {
    display: grid;
    gap: 1px;
    padding: 6px;
    border-top: 1px solid var(--nik-line);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nik-mobile-categories a {
    display: flex;
    min-height: 42px;
    align-items: center;
    padding: 7px 9px;
    border-radius: 8px;
    color: var(--nik-ink);
    background: #f8f7f2;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.45;
    text-decoration: none;
  }

  .nik-mobile-menu__utilities {
    display: grid;
    gap: 9px;
    margin-top: 14px;
  }

  .nik-mobile-menu__utilities > a {
    display: grid;
    min-height: 62px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--nik-line);
    border-radius: 12px;
    color: var(--nik-ink);
    background: #f8f7f2;
    grid-template-columns: 34px minmax(0, 1fr);
    text-decoration: none;
  }

  .nik-mobile-menu__utilities svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
  }

  .nik-mobile-menu__utilities small,
  .nik-mobile-menu__utilities strong {
    display: block;
  }

  .nik-mobile-menu__utilities small {
    color: var(--nik-muted);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
  }

  .nik-mobile-menu__utilities strong {
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.45;
  }

  .nik-commerce-card--checkout :is(
    .wc-block-checkout,
    .wc-block-components-sidebar-layout
  ) {
    display: block !important;
  }

  .nik-commerce-card--checkout :is(
    .wc-block-checkout__main,
    .wc-block-checkout__sidebar,
    .wc-block-components-main,
    .wc-block-components-sidebar
  ) {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-inline: 0 !important;
  }

  .nik-commerce-card--checkout :is(
    .wc-block-checkout__sidebar,
    .wc-block-components-sidebar
  ) {
    margin-top: 28px !important;
  }
}

@media (max-width: 767px) {
  .ct-container,
  .nik-wrap {
    margin-right: max(14px, env(safe-area-inset-right));
    margin-left: max(14px, env(safe-area-inset-left));
  }

  #header [data-row="middle"] > div {
    min-height: 64px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  #header [data-id="logo"] img {
    max-width: min(48vw, 180px);
    max-height: 40px;
  }

  .nik-header-tools {
    gap: 6px;
  }

  .nik-header-action--menu,
  .nik-header-action--cart {
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    border-radius: 11px;
  }

  .nik-header-action--cart svg {
    width: 23px;
    height: 23px;
  }

  .nik-cart-count {
    top: -8px;
    right: -10px;
  }

  .nik-page-section {
    padding-block: 42px;
  }

  .nik-page-hero__inner {
    padding-block: 25px 34px;
  }

  .nik-page-hero h1 {
    font-size: clamp(30px, 8.8vw, 40px);
  }

  .nik-page-hero__lead {
    max-width: 100%;
  }

  .nik-commerce-card {
    padding: 17px 13px;
    border-radius: 15px;
    box-shadow: 3px 3px 0 rgba(39, 37, 31, .12);
  }

  .nik-commerce-card--checkout .wc-block-checkout__main {
    font-size: 14px;
  }

  .wc-block-components-address-form {
    gap: 16px 12px !important;
  }

  .woocommerce-checkout form .form-row-first,
  .woocommerce-checkout form .form-row-last {
    width: 100% !important;
    float: none !important;
  }

  .woocommerce-checkout form .form-row > label,
  .wc-block-components-address-form
    .nik-checkout-control
    .nik-checkout-control__label {
    font-size: 12px !important;
  }

  .woocommerce-checkout form .form-row :is(
    input.input-text,
    select,
    textarea,
    .select2-selection--single
  ),
  .wc-block-components-address-form
    .nik-checkout-control
    .nik-checkout-control__input {
    min-height: 50px !important;
    font-size: 16px !important;
  }

  .wc-block-components-address-form
    .nik-checkout-control
    :is(
      .wc-block-components-combobox-control__button,
      .components-combobox-control__button
    ) {
    height: 50px !important;
  }

  .woocommerce ul.products,
  .nik-shop-results .woocommerce ul.products {
    gap: 10px !important;
  }

  .woocommerce ul.products li.product {
    overflow: hidden;
    padding-bottom: 10px !important;
  }

  .woocommerce ul.products li.product img {
    aspect-ratio: 1.3 / 1;
    padding: 7px;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 3.8em;
    padding: 9px 9px 2px !important;
    font-size: 12px !important;
    line-height: 1.48 !important;
  }

  .woocommerce ul.products li.product .nik-product-card__context {
    padding-inline: 9px;
  }

  .woocommerce ul.products li.product .nik-product-card__context > span,
  .woocommerce ul.products li.product .nik-product-card__context > small {
    font-size: 8.5px;
    line-height: 1.45;
  }

  .woocommerce ul.products li.product .price {
    padding: 6px 9px 0 !important;
    font-size: 14px !important;
  }

  .nik-product-card__tax {
    margin-inline: 9px;
    font-size: 8px;
  }

  .woocommerce ul.products li.product > .button,
  .woocommerce ul.products li.product > .nik-quote-add {
    min-height: 44px !important;
    margin: 7px 8px 0 !important;
    padding: 7px 5px !important;
    font-size: 10.5px !important;
    line-height: 1.35 !important;
  }

  .nik-favorite-button {
    top: 6px;
    right: 6px;
    width: 36px;
    height: 36px;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item {
    display: grid !important;
    overflow: hidden;
    gap: 0;
    padding: 0;
    grid-template-columns: 74px minmax(0, 1fr) 40px;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item td {
    width: auto !important;
    min-width: 0;
    justify-content: flex-start;
    border: 0 !important;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item td::before {
    min-width: 54px;
    font-size: 10px;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item .product-thumbnail {
    display: block !important;
    padding: 13px 0 13px 11px;
    grid-column: 1;
    grid-row: 1 / span 4;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item .product-thumbnail img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border: 1px solid var(--nik-line);
    border-radius: 9px;
    background: #fff;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item .product-name {
    display: block !important;
    padding: 13px 7px 5px 10px;
    grid-column: 2;
    grid-row: 1;
    font-size: 13px;
    line-height: 1.55;
    text-align: left !important;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item .product-name::before {
    display: none;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item .product-price {
    padding: 3px 7px 3px 10px;
    grid-column: 2;
    grid-row: 2;
    font-size: 12px;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item .product-quantity {
    padding: 5px 7px 5px 10px;
    grid-column: 2;
    grid-row: 3;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item .product-subtotal {
    padding: 3px 7px 13px 10px;
    grid-column: 2;
    grid-row: 4;
    font-size: 12px;
    font-weight: 800;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item .product-remove {
    display: grid !important;
    align-self: start;
    justify-content: center;
    padding: 10px 6px 0 0;
    grid-column: 3;
    grid-row: 1;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item .product-remove a {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    margin: 0;
    border-radius: 50%;
    background: #fff0ec;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item .quantity .qty {
    width: 68px;
    min-height: 40px;
  }

  .nik-purchase-steps {
    margin-bottom: 22px;
  }

  .nik-purchase-steps strong {
    line-height: 1.35;
  }

  .nik-order-privacy {
    font-size: 10px;
  }
}

@media (max-width: 600px) {
  .nik-mobile-menu {
    width: 100%;
    border-left: 0;
  }

  .nik-mini-cart {
    width: 100%;
  }

  .wc-block-components-address-form {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .wc-block-components-address-form > * {
    grid-column: 1 !important;
  }

  .wc-block-components-checkout-step {
    padding-left: 0 !important;
  }

  .wc-block-components-checkout-step__heading {
    padding-left: 0 !important;
  }

  .wc-block-components-checkout-step__container {
    padding-left: 0 !important;
  }
}

@media (max-width: 359px) {
  .ct-container,
  .nik-wrap {
    margin-right: max(11px, env(safe-area-inset-right));
    margin-left: max(11px, env(safe-area-inset-left));
  }

  #header [data-id="logo"] img {
    max-width: 43vw;
  }

  .nik-header-tools {
    gap: 5px;
  }

  .nik-header-action--menu,
  .nik-header-action--cart {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .woocommerce ul.products,
  .nik-shop-results .woocommerce ul.products {
    gap: 8px !important;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 11px !important;
  }

  .woocommerce ul.products li.product > .button,
  .woocommerce ul.products li.product > .nik-quote-add {
    margin-inline: 6px !important;
    font-size: 9.5px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nik-mobile-menu,
  .nik-mobile-menu-backdrop,
  .nik-menu-icon i,
  .nik-mobile-categories summary svg {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
 * Version 1.6.1: stable responsive motion and readable mobile product cards
 * -------------------------------------------------------------------------- */

/* Prevent delayed reveal effects from affecting layout or pointer handling. */
.nik-motion-ready .nik-reveal {
  will-change: opacity, transform;
}

.nik-motion-ready .nik-reveal.is-visible {
  will-change: auto;
}

/* Product name and price are the primary information at every width. */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding-inline: 11px !important;
  color: var(--nik-ink);
  font-size: 15px !important;
  font-weight: 900;
  line-height: 1.5 !important;
  letter-spacing: -.02em;
}

.woocommerce ul.products li.product .price {
  padding-inline: 11px !important;
  color: #1f1d18 !important;
  font-size: 18px !important;
  font-weight: 900;
  line-height: 1.4 !important;
}

.woocommerce ul.products li.product .price :is(
  del,
  ins,
  .woocommerce-Price-amount
) {
  font-size: inherit;
}

@media (max-width: 1024px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body.nik-menu-open,
  body.nik-cart-open {
    overflow: hidden !important;
  }

  .nik-mobile-menu,
  .nik-mini-cart {
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    max-height: 100dvh;
    contain: layout paint;
    transform: translate3d(102%, 0, 0);
    backface-visibility: hidden;
    will-change: transform;
  }

  .nik-mobile-menu.is-open,
  .nik-mini-cart.is-open {
    transform: translate3d(0, 0, 0);
  }

  .nik-mobile-menu__body,
  .nik-mini-cart__body {
    touch-action: pan-y;
  }

  .nik-mobile-menu-backdrop,
  .nik-mini-cart-backdrop {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: opacity;
  }

  #header [data-row="middle"] > div {
    flex-wrap: nowrap !important;
  }

  #header [data-row="middle"] > div > [data-column="start"],
  #header [data-row="middle"] > div > [data-column="end"],
  #header .ct-header-text,
  #header .site-branding {
    min-width: 0 !important;
  }

  .nik-header-tools {
    position: relative;
    inset: auto;
    flex-wrap: nowrap;
  }

  .woocommerce ul.products li.product,
  .wc-block-product {
    transform: none;
  }

  .woocommerce ul.products li.product:hover,
  .wc-block-product:hover {
    transform: none;
    box-shadow: 3px 3px 0 rgba(39, 37, 31, .12);
  }
}

@media (max-width: 767px) {
  /*
   * These rules intentionally live after every older product-card breakpoint.
   * They are the single mobile source of truth for card typography and spacing.
   */
  .woocommerce ul.products,
  .nik-shop-results .woocommerce ul.products,
  .wp-block-woocommerce-product-template {
    width: 100% !important;
    min-width: 0;
    gap: 12px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .woocommerce ul.products li.product,
  .wc-block-product {
    min-width: 0;
    padding-bottom: 12px !important;
    border-width: 1.5px;
    border-radius: 13px !important;
  }

  .woocommerce ul.products li.product img {
    aspect-ratio: 1.35 / 1;
    margin-bottom: 0 !important;
    padding: 7px;
  }

  .woocommerce ul.products li.product .nik-product-card__context {
    min-height: 22px;
    gap: 4px;
    margin: 0;
    padding: 6px 10px 0;
  }

  .woocommerce ul.products li.product .nik-product-card__context > span,
  .woocommerce ul.products li.product .nik-product-card__context > small {
    max-width: 100%;
    font-size: 9px;
    line-height: 1.35;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 3.05em;
    margin: 0 !important;
    padding: 5px 10px 1px !important;
    color: var(--nik-ink);
    font-size: 14px !important;
    font-weight: 900;
    line-height: 1.5 !important;
    letter-spacing: -.025em;
    -webkit-line-clamp: 2;
  }

  .woocommerce ul.products li.product .price {
    min-height: 1.45em;
    margin-top: auto !important;
    padding: 7px 10px 0 !important;
    color: #1f1d18 !important;
    font-size: 17px !important;
    font-weight: 900;
    line-height: 1.4 !important;
    letter-spacing: -.02em;
  }

  .woocommerce ul.products li.product .price :is(
    del,
    ins,
    .woocommerce-Price-amount
  ) {
    font-size: inherit;
  }

  .nik-product-card__tax {
    margin: 0 10px;
    font-size: 9px;
    line-height: 1.35;
  }

  .woocommerce ul.products li.product > .button,
  .woocommerce ul.products li.product > .nik-quote-add {
    min-height: 44px !important;
    margin: 8px 9px 0 !important;
    padding: 8px 6px !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
  }

  .nik-favorite-button:not(.nik-favorite-button--detail) {
    top: 6px;
    right: 6px;
    width: 36px;
    height: 36px;
  }

  .nik-motion-ready .nik-reveal {
    transform: translate3d(0, 14px, 0);
    transition-duration: .44s;
    transition-delay: calc(var(--nik-reveal-order, 0) * 45ms);
  }

  .nik-motion-ready .nik-hero::before,
  .nik-motion-ready .nik-exhibition__date {
    animation-duration: 7s;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 3.05em;
    padding: 8px 11px 1px !important;
    font-size: 14px !important;
    font-weight: 900;
    line-height: 1.5 !important;
  }

  .woocommerce ul.products li.product .nik-product-card__context {
    padding-inline: 11px;
  }

  .woocommerce ul.products li.product .nik-product-card__context > span,
  .woocommerce ul.products li.product .nik-product-card__context > small {
    font-size: 9px;
  }

  .woocommerce ul.products li.product .price {
    padding: 7px 11px 0 !important;
    font-size: 17px !important;
    line-height: 1.4 !important;
  }

  .nik-product-card__tax {
    margin-inline: 11px;
    font-size: 9px;
  }

  .woocommerce ul.products li.product > .button,
  .woocommerce ul.products li.product > .nik-quote-add {
    min-height: 44px !important;
    margin: 8px 10px 0 !important;
    padding: 8px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 389px) {
  .ct-container,
  .nik-wrap {
    margin-right: max(12px, env(safe-area-inset-right));
    margin-left: max(12px, env(safe-area-inset-left));
  }

  .woocommerce ul.products,
  .nik-shop-results .woocommerce ul.products,
  .wp-block-woocommerce-product-template {
    gap: 9px !important;
  }

  .woocommerce ul.products li.product .nik-product-card__context {
    padding-inline: 8px;
  }

  .woocommerce ul.products li.product .nik-product-card__context > span,
  .woocommerce ul.products li.product .nik-product-card__context > small {
    font-size: 8px;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding-inline: 8px !important;
    font-size: 13px !important;
  }

  .woocommerce ul.products li.product .price {
    padding-inline: 8px !important;
    font-size: 16px !important;
  }

  .nik-product-card__tax {
    margin-inline: 8px;
  }

  .woocommerce ul.products li.product > .button,
  .woocommerce ul.products li.product > .nik-quote-add {
    margin-inline: 7px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 767px) and (orientation: landscape) {
  .nik-mobile-menu,
  .nik-mini-cart {
    width: min(430px, 72vw);
  }

  .nik-mobile-menu__header,
  .nik-mini-cart__header {
    min-height: 60px;
    padding-top: max(9px, env(safe-area-inset-top));
    padding-bottom: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nik-motion-ready .nik-reveal,
  .nik-mobile-menu,
  .nik-mini-cart,
  .nik-mobile-menu-backdrop,
  .nik-mini-cart-backdrop {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
 * Version 1.7.0: deliberate iPhone hero wrapping
 * -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .nik-hero__copy {
    min-width: 0;
    overflow: visible;
    padding-right: 2px;
  }

  .nik-hero h1 {
    width: 100%;
    max-width: none;
    overflow: visible;
    font-size: clamp(31px, 9.15vw, 36px);
    line-height: 1.31;
    letter-spacing: -.055em;
  }

  .nik-hero h1 .nik-hero__line {
    display: block;
    white-space: nowrap;
  }

  .nik-hero h1 .nik-marker {
    display: inline-block;
    max-width: 100%;
    padding-right: .12em;
    white-space: nowrap;
  }

  .nik-hero h1 .nik-marker::after {
    right: .04em;
    left: -.04em;
    width: auto;
  }
}

@media (max-width: 359px) {
  .nik-hero h1 {
    font-size: clamp(29px, 9.35vw, 32px);
  }
}
