/*
Theme Name: NIK Online Store
Theme URI: https://nik-kyouzai.com/
Description: NIKオンラインストア専用のBlocksy子テーマ
Author: NIK教材研究会
Template: blocksy
Version: 1.2.0
Text Domain: nik-store
*/

:root {
  --nik-yellow: #ffd83d;
  --nik-yellow-soft: #fff1a9;
  --nik-blue: #bde8ff;
  --nik-green: #ccefb8;
  --nik-purple: #dfd2ff;
  --nik-coral: #ff957e;
  --nik-ink: #27251f;
  --nik-muted: #69665e;
  --nik-line: #dedbd0;
  --nik-cream: #fffaf0;
  --nik-white: #fff;
  --nik-radius: 22px;
  --nik-shadow: 0 8px 0 rgba(39, 37, 31, .09);
}

html { scroll-behavior: smooth; }
body {
  color: var(--nik-ink);
  background: var(--nik-white);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  overflow-x: hidden;
}
@supports (overflow: clip) {
  body { overflow-x: clip; }
}
.nik-store *,
.nik-store *::before,
.nik-store *::after { box-sizing: border-box; }
.nik-store img,
.nik-store svg,
.nik-store video { max-width: 100%; height: auto; }
.nik-store button,
.nik-store input,
.nik-store select,
.nik-store textarea { max-width: 100%; font: inherit; }
.nik-store .entry-content,
.nik-store .site-main,
.nik-store .woocommerce,
.nik-store .woocommerce-page { min-width: 0; }
a { text-underline-offset: .18em; }
.ct-container { width: min(1180px, calc(100% - 40px)); }

/* Header */
#header [data-row="middle"] {
  border-bottom: 2px solid var(--nik-ink);
  background: var(--nik-white);
}
#header [data-row="middle"] > div { min-height: 76px; }
#header .site-title {
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  font-weight: 800;
  letter-spacing: -.035em;
}
#header .site-description { color: var(--nik-muted); }
#header .menu > li > a {
  font-size: 14px;
  font-weight: 800;
}
#header .menu > li.current-menu-item > a,
#header .menu > li > a:hover { color: #856600; }
.ct-header-cart .ct-cart-item {
  color: var(--nik-ink);
  background: var(--nik-yellow);
}
#header [data-id="logo"] img { max-width: min(230px, 100%); }
#header .ct-header-trigger,
#header .ct-header-cart,
#header .ct-header-account {
  flex: 0 0 auto;
}
#offcanvas .ct-panel-content-inner {
  padding-inline: clamp(20px, 6vw, 36px);
}

/* Shared */
.nik-wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.nik-section { padding: 88px 0; }
.nik-section--cream { background: var(--nik-cream); }
.nik-kicker,
.nik-eyebrow,
.nik-guide__label,
.nik-exhibition__label {
  margin: 0 0 14px;
  color: #6f5800;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}
.nik-kicker span { color: var(--nik-coral); }
.nik-title,
.nik-guide h2,
.nik-exhibition h2 {
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  font-weight: 800;
  letter-spacing: -.035em;
}
.nik-title {
  margin: 0;
  font-size: clamp(29px, 3.8vw, 46px);
  line-height: 1.35;
}
.nik-copy {
  max-width: 500px;
  margin: 18px 0 0;
  color: var(--nik-muted);
  font-size: 16px;
  line-height: 1.9;
}
.nik-btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  border: 2px solid var(--nik-ink);
  border-radius: 12px;
  color: var(--nik-ink);
  background: var(--nik-yellow);
  box-shadow: 4px 4px 0 var(--nik-ink);
  font-weight: 900;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.nik-btn:hover {
  color: var(--nik-ink);
  background: #ffe269;
  box-shadow: 1px 1px 0 var(--nik-ink);
  transform: translate(3px, 3px);
}
.nik-btn--white { background: var(--nik-white); }
.nik-text-link,
.nik-more-link {
  color: var(--nik-ink);
  font-weight: 900;
  text-decoration-thickness: 2px;
}
.nik-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}
.nik-heading-row > *,
.nik-hero__grid > *,
.nik-guide > *,
.nik-exhibition > * { min-width: 0; }

/* Hero */
.nik-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 78px;
  border-bottom: 2px solid var(--nik-ink);
  background-color: #fff8d9;
  background-image: radial-gradient(rgba(39, 37, 31, .13) 1.2px, transparent 1.2px);
  background-size: 19px 19px;
}
.nik-hero::before,
.nik-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}
.nik-hero::before {
  top: 34px;
  right: 5%;
  width: 80px;
  height: 80px;
  border: 15px solid var(--nik-blue);
  border-radius: 50%;
  transform: rotate(-12deg);
}
.nik-hero::after {
  bottom: -28px;
  left: 4%;
  width: 105px;
  height: 54px;
  border-radius: 80% 20% 65% 35%;
  background: var(--nik-coral);
  transform: rotate(14deg);
}
.nik-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: clamp(38px, 6vw, 76px);
  grid-template-columns: 1.05fr .95fr;
}
.nik-hero__copy {
  padding: 18px 0;
}
.nik-hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  font-size: clamp(42px, 5.5vw, 70px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}
.nik-marker {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}
.nik-marker::after {
  position: absolute;
  z-index: -1;
  right: -.05em;
  bottom: .03em;
  left: -.05em;
  height: .34em;
  content: "";
  background: var(--nik-yellow);
  transform: rotate(-1.2deg);
}
.nik-hero__lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: #514e46;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 2;
}
.nik-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
}
.nik-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}
.nik-hero__tags span {
  padding: 7px 12px;
  border: 1px solid var(--nik-ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  font-size: 12px;
  font-weight: 800;
}
.nik-hero__panel {
  padding: 30px;
  border: 2px solid var(--nik-ink);
  border-radius: 24px;
  background: var(--nik-white);
  box-shadow: 8px 8px 0 var(--nik-ink);
  transform: rotate(1deg);
}
.nik-hero__panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.nik-hero__panel-head p {
  margin: 0 0 3px;
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  font-size: 21px;
  font-weight: 800;
}
.nik-hero__panel-head small { color: var(--nik-muted); }
.nik-search-icon {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  border: 2px solid var(--nik-ink);
  border-radius: 50%;
  background: var(--nik-blue);
}
.nik-search-icon::before {
  position: absolute;
  top: 9px;
  left: 9px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--nik-ink);
  border-radius: 50%;
  content: "";
}
.nik-search-icon::after {
  position: absolute;
  right: 7px;
  bottom: 8px;
  width: 12px;
  height: 3px;
  border-radius: 999px;
  background: var(--nik-ink);
  content: "";
  transform: rotate(45deg);
}
.nik-search { display: flex; gap: 8px; }
.nik-search input[type="search"] {
  min-width: 0;
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 2px solid var(--nik-ink);
  border-radius: 10px;
  background: var(--nik-white);
  font-size: 15px;
}
.nik-search input[type="search"]:focus {
  outline: 4px solid rgba(189, 232, 255, .75);
  outline-offset: 1px;
}
.nik-search button {
  flex: 0 0 auto;
  min-width: 96px;
  min-height: 48px;
  border: 2px solid var(--nik-ink);
  border-radius: 10px;
  color: var(--nik-ink);
  background: var(--nik-yellow);
  font-weight: 900;
  cursor: pointer;
}
.nik-panel-label {
  margin: 22px 0 10px;
  color: var(--nik-muted);
  font-size: 12px;
  font-weight: 800;
}
.nik-quicklinks {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, 1fr);
}
.nik-quicklinks a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 10px;
  border: 1px solid var(--nik-line);
  border-radius: 10px;
  color: var(--nik-ink);
  background: #faf9f5;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color .16s ease, transform .16s ease;
  overflow-wrap: anywhere;
}
.nik-quicklinks a:hover {
  border-color: var(--nik-ink);
  transform: translateY(-2px);
}
.nik-quicklinks a span {
  display: grid;
  min-width: 36px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  color: var(--nik-ink);
  background: var(--nik-yellow-soft);
  font-size: 9px;
  font-weight: 900;
}
.nik-quicklinks a:nth-child(2) span { background: #ffd5cc; }
.nik-quicklinks a:nth-child(3) span { background: var(--nik-green); }
.nik-quicklinks a:nth-child(4) span { background: var(--nik-purple); }

/* Category */
.nik-find { background: var(--nik-white); }
.nik-category-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}
.nik-category {
  position: relative;
  display: flex;
  min-height: 230px;
  flex-direction: column;
  overflow: hidden;
  padding: 24px;
  border: 2px solid var(--nik-ink);
  border-radius: var(--nik-radius);
  color: var(--nik-ink);
  text-decoration: none;
  transition: box-shadow .16s ease, transform .16s ease;
}
.nik-category:hover {
  color: var(--nik-ink);
  box-shadow: 6px 6px 0 var(--nik-ink);
  transform: translate(-2px, -2px);
}
.nik-category--yellow { background: var(--nik-yellow-soft); }
.nik-category--blue { background: var(--nik-blue); }
.nik-category--green { background: var(--nik-green); }
.nik-category--purple { background: var(--nik-purple); }
.nik-category__icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 22px;
  border: 2px solid var(--nik-ink);
  border-radius: 17px;
  background: var(--nik-white);
  box-shadow: 3px 3px 0 var(--nik-ink);
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-weight: 800;
  transform: rotate(-3deg);
}
.nik-category__label {
  position: relative;
  z-index: 1;
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.45;
}
.nik-category__sub {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: #5e5a52;
  font-size: 12px;
  line-height: 1.7;
}
.nik-category__arrow {
  position: absolute;
  right: 18px;
  bottom: 17px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--nik-ink);
  border-radius: 50%;
  background: var(--nik-white);
  font-weight: 900;
}

/* WooCommerce */
.woocommerce ul.products,
.wp-block-woocommerce-product-template {
  display: grid !important;
  gap: 22px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  margin-inline: 0 !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.wp-block-woocommerce-product-template::before,
.wp-block-woocommerce-product-template::after {
  display: none !important;
  content: none !important;
}
.woocommerce ul.products li.product,
.wc-block-product {
  display: flex;
  width: auto !important;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  float: none !important;
  margin: 0 !important;
  padding: 0 0 20px !important;
  border: 2px solid var(--nik-ink);
  border-radius: 18px;
  background: var(--nik-white);
  box-shadow: 4px 4px 0 rgba(39, 37, 31, .12);
  transition: box-shadow .16s ease, transform .16s ease;
}
.woocommerce ul.products li.product:hover,
.wc-block-product:hover {
  box-shadow: 6px 6px 0 var(--nik-ink);
  transform: translate(-2px, -2px);
}
.woocommerce ul.products li.product > a:not(.button) { display: block; padding: 0 18px; }
.woocommerce ul.products li.product .woocommerce-loop-product__link:first-child { padding: 0; }
.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
  display: flex !important;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
}
.woocommerce ul.products li.product img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-bottom: 1px solid var(--nik-line);
  background: #f8f7f2;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 4.5em;
  padding: 17px 18px 4px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.woocommerce ul.products li.product .price {
  padding-inline: 18px;
  color: var(--nik-ink);
  font-size: 17px;
  font-weight: 900;
}
.woocommerce ul.products li.product .button,
.single_add_to_cart_button,
.wc-block-components-button,
.checkout-button {
  border: 2px solid var(--nik-ink) !important;
  border-radius: 10px !important;
  color: var(--nik-ink) !important;
  background: var(--nik-yellow) !important;
  box-shadow: 3px 3px 0 var(--nik-ink);
  font-weight: 900 !important;
  white-space: normal !important;
}
.woocommerce ul.products li.product .button {
  align-self: stretch;
  margin: 13px 18px 0;
  font-size: 13px;
  text-align: center;
}
.woocommerce span.onsale {
  min-width: auto;
  padding: 6px 11px;
  border: 2px solid var(--nik-ink);
  border-radius: 8px;
  color: var(--nik-ink);
  background: var(--nik-coral);
  font-size: 11px;
  font-weight: 900;
}
.single-product .product .summary { padding: clamp(10px, 3vw, 34px); }
.single-product div.product {
  gap: clamp(28px, 5vw, 68px);
}
.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary {
  min-width: 0;
}
.single-product .woocommerce-product-gallery__image img {
  width: 100%;
  object-fit: contain;
}
.single-product .product_title {
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  font-weight: 800;
  letter-spacing: -.03em;
}
.single-product div.product .price { color: var(--nik-ink); font-weight: 900; }
.single-product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.single-product form.cart .quantity { margin: 0 !important; }
.single-product form.cart .qty { min-height: 48px; }
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .upsells { clear: both; }
.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; }
.woocommerce-message,
.woocommerce-info {
  border: 2px solid #d4bb34;
  border-radius: 12px;
  background: #fff9d9;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.select2-container--default .select2-selection--single,
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
  min-height: 48px;
  border: 1px solid #bdb9ad;
  border-radius: 8px;
  background: #fff;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select { width: 100%; }
.woocommerce form .form-row,
.woocommerce form .form-row-wide,
.woocommerce form .form-row-first,
.woocommerce form .form-row-last {
  min-width: 0;
}
.select2-container { max-width: 100%; }
.woocommerce .col2-set,
.woocommerce-page .col2-set {
  display: grid;
  gap: clamp(24px, 4vw, 52px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.woocommerce .col2-set::before,
.woocommerce .col2-set::after,
.woocommerce-page .col2-set::before,
.woocommerce-page .col2-set::after { display: none; }
.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-1,
.woocommerce-page .col2-set .col-2 {
  width: auto;
  min-width: 0;
  float: none;
}
.woocommerce table.shop_table {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td,
.wc-block-components-product-name,
.wc-block-components-order-summary-item__description {
  overflow-wrap: anywhere;
}
.woocommerce nav.woocommerce-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 0;
}
.woocommerce nav.woocommerce-pagination ul li {
  overflow: hidden;
  border: 1px solid var(--nik-line);
  border-radius: 8px;
}
.woocommerce-cart table.cart img { width: clamp(64px, 8vw, 96px); }
.woocommerce-cart table.cart td.actions .coupon {
  display: flex;
  gap: 8px;
}
.woocommerce-cart table.cart td.actions .coupon .input-text {
  width: min(240px, 100%) !important;
  min-height: 46px;
}
.cart-collaterals,
.woocommerce-checkout-review-order,
.woocommerce-checkout #payment { min-width: 0; }
.wc-block-cart,
.wc-block-checkout {
  max-width: 100%;
  overflow: visible;
}
.wc-block-cart__main,
.wc-block-cart__sidebar,
.wc-block-checkout__main,
.wc-block-checkout__sidebar { min-width: 0; }
.woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 9px 13px;
  border: 1px solid var(--nik-line);
  border-radius: 999px;
  text-decoration: none;
}

/* Exhibition */
.nik-exhibition-section {
  overflow: hidden;
  background: var(--nik-white);
}
.nik-exhibition {
  position: relative;
  display: grid;
  align-items: center;
  gap: 38px;
  overflow: hidden;
  padding: clamp(30px, 5vw, 58px);
  border: 2px solid var(--nik-ink);
  border-radius: 28px;
  color: var(--nik-ink);
  background: var(--nik-blue);
  box-shadow: 8px 8px 0 var(--nik-ink);
  grid-template-columns: 170px minmax(0, 1fr) 145px;
}
.nik-exhibition::after {
  position: absolute;
  right: -45px;
  bottom: -60px;
  width: 150px;
  height: 150px;
  border: 24px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  content: "";
}
.nik-exhibition__date {
  display: grid;
  min-height: 180px;
  place-content: center;
  border: 2px solid var(--nik-ink);
  border-radius: 22px;
  background: var(--nik-yellow);
  box-shadow: 5px 5px 0 var(--nik-ink);
  text-align: center;
  transform: rotate(-3deg);
}
.nik-exhibition__date span,
.nik-exhibition__date small {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
}
.nik-exhibition__date strong {
  margin: 2px 0;
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  font-size: 43px;
  line-height: 1.15;
}
.nik-exhibition__label { color: #31556a; }
.nik-exhibition h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 47px);
  line-height: 1.35;
}
.nik-exhibition__body > p:not(.nik-exhibition__label) {
  max-width: 680px;
  margin: 16px 0 0;
  line-height: 1.9;
}
.nik-exhibition__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 800;
}
.nik-exhibition__facts li span {
  display: inline-block;
  margin-right: 7px;
  padding: 3px 7px;
  border: 1px solid var(--nik-ink);
  border-radius: 5px;
  background: var(--nik-white);
  font-size: 10px;
}
.nik-exhibition__deco {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}
.nik-exhibition__deco span {
  padding: 10px 8px;
  border: 2px solid var(--nik-ink);
  border-radius: 999px;
  background: var(--nik-white);
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}
.nik-exhibition__deco span:nth-child(2) { background: var(--nik-purple); transform: rotate(4deg); }
.nik-exhibition__deco span:nth-child(3) { background: #ffd5cc; transform: rotate(-3deg); }
.nik-sp-only { display: none; }

/* Guide / footer */
.nik-guide {
  display: grid;
  align-items: center;
  gap: 28px;
  padding: 42px;
  border: 2px solid var(--nik-ink);
  border-radius: 22px;
  background: var(--nik-white);
  box-shadow: 6px 6px 0 var(--nik-ink);
  grid-template-columns: 1fr auto;
}
.nik-guide__label { color: #6f5800; }
.nik-guide h2 {
  margin: 0 0 10px;
  color: var(--nik-ink);
  font-size: clamp(25px, 3vw, 37px);
}
.nik-guide p:not(.nik-guide__label) {
  margin: 0;
  color: var(--nik-muted);
  line-height: 1.8;
}
.nik-guide .nik-btn { white-space: nowrap; }
#footer { border-top: 4px solid var(--nik-yellow); }
#footer .ct-footer { background: #27251f; }
#footer, #footer a, #footer .ct-widget { color: #fff; }

/* Large notebook / small desktop */
@media (max-width: 1199px) {
  .ct-container,
  .nik-wrap { width: min(100% - 48px, 1080px); }
  .nik-section { padding-block: 78px; }
  .nik-hero__grid { gap: 44px; }
  .woocommerce ul.products,
  .wp-block-woocommerce-product-template {
    gap: 18px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .nik-exhibition {
    gap: 30px;
    grid-template-columns: 150px minmax(0, 1fr) 120px;
  }
}

/* iPad landscape / tablet */
@media (max-width: 1024px) {
  #header [data-row="middle"] > div { min-height: 70px; }
  #header [data-id="logo"] img { max-height: 48px; width: auto; }
  .nik-hero { padding-block: 58px 68px; }
  .nik-hero__grid { grid-template-columns: 1fr; }
  .nik-hero__copy { max-width: 800px; padding-bottom: 0; }
  .nik-hero h1 { font-size: clamp(46px, 7vw, 66px); }
  .nik-hero__panel {
    width: min(100%, 760px);
    max-width: none;
    padding: 28px;
    transform: none;
  }
  .nik-heading-row { align-items: start; }
  .nik-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nik-category { min-height: 210px; }
  .nik-exhibition {
    grid-template-columns: 145px minmax(0, 1fr);
  }
  .nik-exhibition__deco { display: none; }
  .nik-guide { padding: 36px; }
  .woocommerce-account.logged-in .woocommerce {
    display: grid;
    gap: 28px;
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .woocommerce-account.logged-in .woocommerce-MyAccount-navigation,
  .woocommerce-account.logged-in .woocommerce-MyAccount-content {
    width: auto;
    min-width: 0;
    float: none;
  }
  .woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul {
    align-items: stretch;
    flex-direction: column;
  }
}

/* iPad portrait / compact tablet */
@media (max-width: 880px) {
  .ct-container,
  .nik-wrap { width: min(100% - 40px, 760px); }
  .nik-section { padding-block: 70px; }
  .nik-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
  }
  .nik-copy { max-width: 680px; margin-top: 0; }
  .nik-more-link { align-self: flex-start; }
  .woocommerce ul.products,
  .wp-block-woocommerce-product-template {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .single-product div.product {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  .single-product div.product .woocommerce-product-gallery,
  .single-product div.product .summary {
    width: 100% !important;
    max-width: 680px;
    margin-inline: auto !important;
    float: none !important;
  }
  .woocommerce .col2-set,
  .woocommerce-page .col2-set { grid-template-columns: 1fr; }
  .woocommerce-checkout .col2-set .col-2 { margin-top: 0; }
  .wc-block-cart,
  .wc-block-checkout {
    display: block !important;
  }
  .wc-block-cart__main,
  .wc-block-cart__sidebar,
  .wc-block-checkout__main,
  .wc-block-checkout__sidebar {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .wc-block-cart__sidebar,
  .wc-block-checkout__sidebar { margin-top: 28px; }
  .nik-guide { grid-template-columns: 1fr; }
  .nik-guide .nik-btn { justify-self: start; }
  #footer [data-row] > div {
    gap: 28px;
  }
}

/* Smartphone */
@media (max-width: 767px) {
  :root {
    --nik-radius: 18px;
    --nik-shadow: 0 5px 0 rgba(39, 37, 31, .09);
  }
  body { font-size: 15px; }
  .ct-container,
  .nik-wrap {
    width: auto;
    max-width: none;
    margin-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  }
  #header [data-row="middle"] > div {
    min-height: 62px;
    gap: 8px;
  }
  #header [data-id="logo"] { min-width: 0; }
  #header [data-id="logo"] img {
    width: auto;
    max-width: min(48vw, 190px);
    max-height: 42px;
  }
  #header .ct-header-trigger,
  #header .ct-header-cart,
  #header .ct-header-account,
  #header button {
    min-width: 44px;
    min-height: 44px;
  }
  #offcanvas { width: min(90vw, 380px); }
  #offcanvas .mobile-menu a {
    min-height: 48px;
    padding-block: 12px;
    font-size: 16px;
  }
  .nik-section { padding-block: 56px; }
  .nik-title { font-size: clamp(28px, 8.7vw, 38px); line-height: 1.38; }
  .nik-copy { font-size: 14px; line-height: 1.85; }
  .nik-btn {
    min-height: 50px;
    padding: 11px 18px;
    box-shadow: 3px 3px 0 var(--nik-ink);
  }
  .nik-hero {
    padding-block: 42px 52px;
    background-size: 16px 16px;
  }
  .nik-hero::before {
    top: 16px;
    right: -28px;
    width: 70px;
    height: 70px;
    border-width: 12px;
  }
  .nik-hero::after {
    bottom: -30px;
    left: -24px;
    width: 90px;
    height: 48px;
  }
  .nik-hero__grid { gap: 32px; }
  .nik-hero__copy { padding-top: 8px; }
  .nik-kicker { margin-bottom: 12px; font-size: 12px; }
  .nik-hero h1 {
    max-width: 100%;
    font-size: clamp(35px, 11vw, 50px);
    line-height: 1.27;
    letter-spacing: -.045em;
  }
  .nik-marker { white-space: normal; }
  .nik-hero__lead {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.9;
  }
  .nik-hero__actions { gap: 16px; margin-top: 24px; }
  .nik-hero__tags { gap: 6px; margin-top: 24px; }
  .nik-hero__tags span { padding: 6px 10px; font-size: 11px; }
  .nik-hero__panel {
    width: 100%;
    padding: 20px;
    border-radius: 17px;
    box-shadow: 5px 5px 0 var(--nik-ink);
  }
  .nik-hero__panel-head { gap: 11px; margin-bottom: 16px; }
  .nik-hero__panel-head p { font-size: 19px; }
  .nik-hero__panel-head small { display: block; font-size: 11px; line-height: 1.5; }
  .nik-search { display: grid; grid-template-columns: 1fr; }
  .nik-search input[type="search"],
  .nik-search button,
  .woocommerce input,
  .woocommerce select,
  .woocommerce textarea,
  .wc-block-components-text-input input {
    font-size: 16px;
  }
  .nik-search button { width: 100%; }
  .nik-quicklinks { gap: 8px; }
  .nik-quicklinks a { min-height: 52px; }
  .nik-category-grid { gap: 14px; }
  .nik-category {
    min-height: 196px;
    padding: 20px;
  }
  .nik-category__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 17px;
    border-radius: 14px;
  }
  .nik-category__label { font-size: 18px; }
  .nik-category__sub { padding-right: 32px; }
  .woocommerce .woocommerce-result-count,
  .woocommerce .woocommerce-ordering {
    width: 100%;
    margin-bottom: 14px;
    float: none;
  }
  .woocommerce .woocommerce-ordering select { width: 100%; min-height: 48px; }
  .woocommerce ul.products,
  .wp-block-woocommerce-product-template { gap: 14px !important; }
  .woocommerce ul.products li.product,
  .wc-block-product {
    padding-bottom: 14px !important;
    border-radius: 14px;
    box-shadow: 3px 3px 0 rgba(39, 37, 31, .12);
  }
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 4.2em;
    padding: 12px 12px 3px;
    font-size: 14px;
    line-height: 1.55;
  }
  .woocommerce ul.products li.product .price {
    padding-inline: 12px;
    font-size: 15px;
  }
  .woocommerce ul.products li.product .button {
    min-height: 44px;
    margin: 10px 12px 0;
    padding: 8px 7px;
    box-shadow: 2px 2px 0 var(--nik-ink);
    font-size: 12px;
    line-height: 1.35;
  }
  .woocommerce span.onsale {
    top: 7px;
    left: 7px;
    padding: 4px 7px;
    font-size: 10px;
  }
  .single-product .product .summary { padding: 8px 0 0; }
  .single-product .product_title { font-size: clamp(27px, 8vw, 38px); line-height: 1.4; }
  .single-product form.cart { align-items: stretch; }
  .single-product form.cart .quantity { flex: 0 0 92px; }
  .single-product form.cart .single_add_to_cart_button { flex: 1 1 190px; }
  .woocommerce div.product .woocommerce-tabs ul.tabs {
    align-items: stretch;
    flex-direction: column;
  }
  .woocommerce div.product .woocommerce-tabs ul.tabs li,
  .woocommerce div.product .woocommerce-tabs ul.tabs li a { width: 100%; }
  .woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 12px;
  }
  .woocommerce-message,
  .woocommerce-info,
  .woocommerce-error {
    padding: 15px 16px;
    font-size: 14px;
    line-height: 1.7;
  }
  .woocommerce-message .button,
  .woocommerce-info .button {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    float: none;
  }
  .woocommerce-cart table.cart {
    border: 0;
  }
  .woocommerce table.shop_table_responsive thead,
  .woocommerce-page table.shop_table_responsive thead { display: none; }
  .woocommerce table.shop_table_responsive tbody,
  .woocommerce-page table.shop_table_responsive tbody,
  .woocommerce table.shop_table_responsive tr,
  .woocommerce-page table.shop_table_responsive tr {
    display: block;
    width: 100%;
  }
  .woocommerce table.shop_table_responsive tr {
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--nik-line);
    border-radius: 12px;
    background: var(--nik-white);
  }
  .woocommerce table.shop_table_responsive tr td,
  .woocommerce-page table.shop_table_responsive tr td {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 0;
    border-bottom: 1px solid var(--nik-line);
    text-align: right !important;
  }
  .woocommerce table.shop_table_responsive tr td:last-child,
  .woocommerce-page table.shop_table_responsive tr td:last-child { border-bottom: 0; }
  .woocommerce table.shop_table_responsive tr td::before,
  .woocommerce-page table.shop_table_responsive tr td::before {
    flex: 0 0 auto;
    content: attr(data-title);
    font-weight: 800;
    text-align: left;
  }
  .woocommerce table.shop_table_responsive tr td.product-name {
    align-items: flex-start;
  }
  .woocommerce table.shop_table_responsive tr td.product-name > a,
  .woocommerce table.shop_table_responsive tr td.product-name .variation {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .woocommerce table.shop_table_responsive tr td.product-thumbnail {
    display: none;
  }
  .woocommerce table.shop_table_responsive tr td.product-remove {
    justify-content: flex-end;
    padding-block: 8px;
  }
  .woocommerce table.shop_table_responsive tr td.product-remove::before,
  .woocommerce table.shop_table_responsive tr td.product-thumbnail::before,
  .woocommerce table.shop_table_responsive tr td.actions::before {
    display: none;
    content: none;
  }
  .woocommerce-cart table.cart td.actions {
    display: block;
    padding: 16px 0;
    border: 0;
  }
  .woocommerce-cart table.cart td.actions .coupon {
    width: 100%;
    flex-wrap: wrap;
  }
  .woocommerce-cart table.cart td.actions .coupon .input-text {
    width: 100% !important;
    flex: 1 1 100%;
  }
  .woocommerce-cart table.cart td.actions .coupon .button,
  .woocommerce-cart table.cart td.actions > .button {
    width: 100%;
    min-height: 46px;
  }
  .woocommerce-cart .cart-collaterals .cart_totals,
  .woocommerce-cart .cart-collaterals .cart_totals .checkout-button {
    width: 100%;
  }
  .cart_totals,
  .cart_totals table,
  .woocommerce-checkout-review-order table { width: 100% !important; }
  .wc-block-components-sidebar-layout {
    display: block !important;
  }
  .wc-block-cart-items .wc-block-cart-items__row {
    display: grid;
    gap: 8px 12px;
    grid-template-columns: 82px minmax(0, 1fr);
    padding-block: 18px;
  }
  .wc-block-cart-items .wc-block-cart-item__image {
    width: 82px !important;
    grid-column: 1;
  }
  .wc-block-cart-items .wc-block-cart-item__product {
    min-width: 0;
    grid-column: 2;
  }
  .wc-block-cart-items .wc-block-cart-item__total {
    grid-column: 2;
    text-align: left;
  }
  .wc-block-components-order-summary-item {
    grid-template-columns: 64px minmax(0, 1fr) !important;
  }
  .wc-block-components-order-summary-item__description { min-width: 0; }
  .woocommerce-account.logged-in .woocommerce { display: block; }
  .woocommerce-account.logged-in .woocommerce-MyAccount-navigation { margin-bottom: 24px; }
  .woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul {
    align-items: initial;
    flex-direction: row;
  }
  .nik-exhibition {
    gap: 24px;
    padding: 25px 22px 29px;
    border-radius: 20px;
    box-shadow: 5px 5px 0 var(--nik-ink);
    grid-template-columns: 1fr;
  }
  .nik-exhibition__date {
    width: 124px;
    min-height: 124px;
    justify-self: start;
    border-radius: 17px;
    box-shadow: 4px 4px 0 var(--nik-ink);
  }
  .nik-exhibition__date strong { font-size: 33px; }
  .nik-exhibition h2 { font-size: clamp(27px, 7.4vw, 34px); }
  .nik-exhibition__body > p:not(.nik-exhibition__label) {
    font-size: 14px;
    line-height: 1.85;
  }
  .nik-exhibition__facts {
    display: grid;
    gap: 10px;
    margin-block: 20px 24px;
  }
  .nik-exhibition__facts li {
    display: grid;
    align-items: start;
    gap: 8px;
    grid-template-columns: 45px minmax(0, 1fr);
  }
  .nik-exhibition__facts li span { margin-right: 0; text-align: center; }
  .nik-sp-only { display: inline; }
  .nik-guide {
    gap: 22px;
    padding: 27px 22px;
    border-radius: 18px;
    box-shadow: 4px 4px 0 var(--nik-ink);
  }
  .nik-guide h2 { font-size: clamp(25px, 7.8vw, 34px); }
  .nik-guide p:not(.nik-guide__label) { font-size: 14px; }
  #footer [data-column] { min-width: 0; }
  #footer .widget-title { font-size: 16px; }
}

/* Narrow smartphone */
@media (max-width: 560px) {
  .nik-section { padding-block: 48px; }
  .nik-heading-row { gap: 12px; margin-bottom: 24px; }
  .nik-hero h1 { font-size: clamp(33px, 9.5vw, 41px); }
  .nik-hero__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }
  .nik-hero__actions .nik-btn { width: 100%; }
  .nik-hero__actions .nik-text-link { padding-block: 7px; text-align: center; }
  .nik-quicklinks,
  .nik-category-grid { grid-template-columns: 1fr; }
  .nik-category {
    min-height: 166px;
    padding-right: 54px;
  }
  .nik-category__icon { margin-bottom: 14px; }
  .nik-category__sub { padding-right: 0; }
  .nik-exhibition .nik-btn,
  .nik-guide .nik-btn {
    width: 100%;
    white-space: normal;
  }
  .nik-guide .nik-btn { justify-self: stretch; }
}

/* Very small smartphone */
@media (max-width: 380px) {
  .ct-container,
  .nik-wrap {
    margin-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
  }
  #header [data-id="logo"] img { max-width: 43vw; }
  .nik-kicker { letter-spacing: .035em; }
  .nik-hero h1 { font-size: 33px; }
  .nik-hero__panel { padding: 17px; }
  .nik-hero__panel-head small { max-width: 205px; }
  .nik-exhibition h2 { font-size: 24px; }
  .woocommerce ul.products,
  .wp-block-woocommerce-product-template { gap: 10px !important; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding-inline: 9px;
    font-size: 13px;
  }
  .woocommerce ul.products li.product .price { padding-inline: 9px; font-size: 14px; }
  .woocommerce ul.products li.product .button {
    margin-inline: 9px;
    font-size: 11px;
  }
  .nik-exhibition { padding-inline: 18px; }
}

/* Touch devices: avoid sticky hover movement */
@media (hover: none), (pointer: coarse) {
  .nik-btn:hover,
  .nik-category:hover,
  .woocommerce ul.products li.product:hover,
  .wc-block-product:hover,
  .nik-quicklinks a:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
