/*
Theme Name: Pegnix Commerce
Theme URI: https://example.com/mosa-six
Author: Pegnix
Description: A WooCommerce-ready storefront theme for 6mm diamond blocks, built around the calm editorial shopping rhythm of modern craft stores.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: mosa-six
*/

:root {
  --mosa-ink: #202322;
  --mosa-muted: #737873;
  --mosa-line: #dedfdc;
  --mosa-paper: #ffffff;
  --mosa-soft: #f6f6f3;
  --mosa-accent: #ff6f5e;
  --mosa-yellow: #f5d567;
  --mosa-mint: #cfe8dc;
  --mosa-blue: #d7e5f8;
  --mosa-pink: #efcdd8;
  --mosa-radius: 10px;
  --mosa-max: 1350px;
  --mosa-font-sans: "Inter", "Noto Sans KR", "Apple SD Gothic Neo", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--mosa-ink);
  background: var(--mosa-paper);
  font-family: var(--mosa-font-sans);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.mosa-drawer-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.mosa-skip-link {
  position: absolute;
  z-index: 100;
  top: -50px;
  left: 16px;
  padding: 10px 14px;
  color: #fff;
  background: var(--mosa-ink);
}
.mosa-skip-link:focus { top: 12px; }

.mosa-shipping-bar {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 8px 24px;
  color: var(--mosa-ink);
  background: var(--mosa-soft);
  border-bottom: 1px solid var(--mosa-line);
  font-size: 14px;
  line-height: 22.4px;
  font-weight: 500;
  text-align: center;
}
.mosa-shipping-bar strong { font-weight: 700; }

.mosa-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 66px;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--mosa-line);
  backdrop-filter: blur(12px);
}
.mosa-header__inner {
  width: min(var(--mosa-max), calc(100% - 80px));
  min-height: 66px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.mosa-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}
.mosa-brand__mark {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--mosa-accent);
  border: 1px solid var(--mosa-ink);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
  transform: rotate(-7deg);
}
.mosa-brand__name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 25.6px;
}
.mosa-brand__name span { color: var(--mosa-accent); }
.mosa-primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 27px;
  font-size: 14px;
  line-height: 23.4px;
  font-weight: 700;
}
.mosa-primary-nav a { position: relative; padding: 24px 0 22px; }
.mosa-primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  height: 2px;
  background: var(--mosa-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}
.mosa-primary-nav a:hover::after,
.mosa-primary-nav a:focus-visible::after { transform: scaleX(1); }
.mosa-header__actions { display: flex; align-items: center; justify-content: end; gap: 6px; }
.mosa-icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--mosa-ink);
  background: transparent;
  border: 0;
  border-radius: 50%;
}
.mosa-icon-button:hover, .mosa-icon-button:focus-visible { background: var(--mosa-soft); }
.mosa-icon-button svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.mosa-cart-button { position: relative; }
.mosa-cart-count {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  color: #fff;
  background: var(--mosa-accent);
  border: 1px solid var(--mosa-paper);
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
}
.mosa-menu-toggle { display: none; }

.mosa-hero {
  width: min(var(--mosa-max), calc(100% - 80px));
  height: 560px;
  min-height: 560px;
  margin: 24px auto 0;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #d9e8e2;
  border-radius: 15px;
  isolation: isolate;
}
.mosa-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--mosa-hero-image, url("https://images.unsplash.com/photo-1513475382585-d06e58bcb0e0?auto=format&fit=crop&w=1900&q=86")) center / cover;
}
.mosa-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(21,27,27,.06), rgba(21,27,27,.14));
}
.mosa-hero__copy { max-width: 620px; margin: 0 auto; padding: 160px 36px; color: #fff; text-align: center; text-shadow: 0 2px 18px rgba(0,0,0,.22); }
.mosa-eyebrow { margin: 0 0 12px; font-size: 12px; line-height: 14.4px; font-weight: 500; letter-spacing: 0; text-transform: uppercase; }
.mosa-hero h1 { margin: 0; font-size: 48px; font-weight: 700; line-height: 48px; letter-spacing: 0; }
.mosa-hero p { max-width: 440px; margin: 18px auto 26px; font-size: 14px; line-height: 22.4px; font-weight: 400; }
.mosa-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  color: var(--mosa-ink);
  background: #fff;
  border: 1px solid rgba(32,35,34,.16);
  border-radius: 999px;
  font-size: 14px;
  line-height: 22.4px;
  font-weight: 400;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease;
}
.mosa-button:hover, .mosa-button:focus-visible { background: var(--mosa-yellow); transform: translateY(-1px); }
.mosa-button--ink { color: #fff; background: var(--mosa-ink); border-color: var(--mosa-ink); }
.mosa-button--ink:hover, .mosa-button--ink:focus-visible { background: #363b39; }
.mosa-button--small { min-height: 40px; padding: 9px 16px; font-size: 13px; }

.mosa-showcase { width: min(var(--mosa-max), calc(100% - 80px)); margin: 10px auto 0; }
.mosa-showcase__comparison { position: relative; width: 100%; height: 560px; overflow: hidden; border-radius: 15px; background: var(--mosa-soft); isolation: isolate; }
.mosa-showcase__comparison-media { position: absolute; inset: 0; }
.mosa-showcase__comparison-media img { width: 100%; height: 100%; object-fit: cover; }
.mosa-showcase__comparison-media--top { width: 100%; overflow: hidden; z-index: 1; clip-path: inset(0 calc(100% - var(--comparison-split, 50%)) 0 0); }
.mosa-showcase__comparison-media--top img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.mosa-showcase__divider { position: absolute; top: 0; bottom: 0; left: var(--comparison-split, 50%); z-index: 3; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(32,35,34,.12); transform: translateX(-1px); pointer-events: none; }
.mosa-showcase__handle { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; display: block; background: #fff; border: 1px solid var(--mosa-line); border-radius: 50%; box-shadow: 0 5px 15px rgba(32,35,34,.16); transform: translate(-50%, -50%); }
.mosa-showcase__handle::before, .mosa-showcase__handle::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border-top: 1.5px solid var(--mosa-ink); border-right: 1.5px solid var(--mosa-ink); }
.mosa-showcase__handle::before { left: 10px; transform: translateY(-50%) rotate(-135deg); }
.mosa-showcase__handle::after { right: 10px; transform: translateY(-50%) rotate(45deg); }
.mosa-showcase__range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.mosa-showcase__button { position: absolute; left: 50%; bottom: 24px; z-index: 5; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 16px 24px; color: var(--mosa-ink); background: #fff; border-radius: 999px; font-size: 14px; line-height: 22.4px; white-space: nowrap; transform: translateX(-50%); }
.mosa-showcase__button:hover { background: var(--mosa-yellow); }
.mosa-showcase__button svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }

.mosa-reviews { width: 100%; margin-top: 112px; padding: 60px max(40px, calc((100vw - var(--mosa-max)) / 2)) 56px; background: #fff; }
.mosa-reviews__heading { max-width: 620px; margin: 0 auto 34px; text-align: center; }
.mosa-reviews__rating { margin: 0 0 12px; font-size: 14px; line-height: 22.4px; font-weight: 600; }
.mosa-reviews__heading h2 { margin: 0; font-size: 32px; line-height: 35.2px; font-weight: 700; }
.mosa-reviews__track { width: min(100%, 1120px); margin: 0 auto; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 16px; overflow-x: auto; scrollbar-width: none; }
.mosa-reviews__track::-webkit-scrollbar { display: none; }
.mosa-reviews__track blockquote { min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; margin: 0; padding: 24px; background: var(--mosa-soft); border-radius: 10px; font-size: 14px; line-height: 22.4px; }
.mosa-reviews__track footer { margin-top: 20px; color: var(--mosa-muted); font-size: 12px; line-height: 14.4px; }

.mosa-feature-strip { width: min(var(--mosa-max), calc(100% - 80px)); margin: 28px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mosa-feature-tile { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; padding: 22px 24px; border-radius: 15px; transition: transform .2s ease; }
.mosa-feature-tile:hover { transform: translateY(-3px); }
.mosa-feature-tile span { font-size: 12px; line-height: 14px; text-transform: uppercase; font-weight: 500; }
.mosa-feature-tile strong { max-width: 210px; font-size: 22px; line-height: 24px; font-weight: 700; }
.mosa-feature-tile b { font-size: 18px; font-weight: 400; }
.mosa-feature-tile--mint { background: var(--mosa-mint); }
.mosa-feature-tile--pink { background: var(--mosa-pink); }
.mosa-feature-tile--blue { background: var(--mosa-blue); }

.mosa-section { width: min(var(--mosa-max), calc(100% - 80px)); margin: 96px auto 0; }
.mosa-section__heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.mosa-section__heading h2 { margin: 0; font-size: 24px; line-height: 24px; font-weight: 700; letter-spacing: 0; }
.mosa-section__heading p { max-width: 420px; margin: 0; color: var(--mosa-muted); font-size: 14px; line-height: 22.4px; }
.mosa-view-all { display: inline-flex; align-items: center; gap: 7px; color: var(--mosa-muted); font-size: 14px; line-height: 22.4px; font-weight: 400; white-space: nowrap; }
.mosa-view-all:hover { color: var(--mosa-accent); }
.mosa-view-all svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
.mosa-carousel-wrap { position: relative; }
.mosa-carousel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  overflow-x: visible;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}
.mosa-carousel::-webkit-scrollbar { display: none; }
.mosa-carousel > * { min-width: 0; }
.mosa-carousel-arrow {
  position: absolute;
  z-index: 2;
  top: 42%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  background: #fff;
  border: 1px solid var(--mosa-line);
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(32,35,34,.1);
}
.mosa-carousel-arrow:hover { background: var(--mosa-yellow); }
.mosa-carousel-arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.mosa-carousel-arrow--prev { left: -20px; }
.mosa-carousel-arrow--next { right: -20px; }
.mosa-product-card { min-width: 0; }
.mosa-product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--card-bg, var(--mosa-soft));
  border-radius: var(--mosa-radius);
}
.mosa-product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mosa-product-card:hover .mosa-product-card__media img { transform: scale(1.03); }
.mosa-pixel-art { width: 64%; aspect-ratio: 1; display: grid; grid-template-columns: repeat(8,1fr); gap: 4px; transform: rotate(-4deg); }
.mosa-pixel-art span, .mosa-pixel-art i { display: block; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.mosa-product-card__badge { position: absolute; top: 12px; left: 12px; padding: 5px 8px; color: var(--mosa-ink); background: var(--mosa-yellow); border-radius: 4px; font-size: 11px; line-height: 14px; font-weight: 500; }
.mosa-product-card__body { padding: 13px 2px 0; }
.mosa-product-card__title { display: block; min-height: 44.8px; font-size: 14px; font-weight: 400; line-height: 22.4px; }
.mosa-product-card__meta { margin: 4px 0 0; color: var(--mosa-muted); font-size: 12px; line-height: 14.4px; }
.mosa-product-card__price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.mosa-product-card__price { font-size: 12px; line-height: 14.4px; font-weight: 500; }
.mosa-add-button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; color: #fff; background: var(--mosa-ink); border: 0; border-radius: 50%; }
.mosa-add-button:hover, .mosa-add-button:focus-visible { background: var(--mosa-accent); }
.mosa-add-button svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; }

.mosa-split-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 390px;
  overflow: hidden;
  border-radius: var(--mosa-radius);
  background: var(--mosa-mint);
}
.mosa-split-banner__copy { display: flex; flex-direction: column; justify-content: center; padding: 54px; }
.mosa-split-banner__copy h2 { max-width: 440px; margin: 0; font-size: 48px; font-weight: 700; line-height: 48px; }
.mosa-split-banner__copy p { max-width: 420px; margin: 17px 0 25px; color: var(--mosa-muted); }
.mosa-split-banner__media { min-height: 390px; background: url("https://images.unsplash.com/photo-1577083552431-6e5fd01988a5?auto=format&fit=crop&w=1200&q=84") center / cover; }

.mosa-review-section { width: 100%; margin-top: 112px; padding: 74px max(40px, calc((100vw - var(--mosa-max)) / 2)); background: var(--mosa-soft); }
.mosa-review-section__heading { max-width: 610px; margin: 0 auto 34px; text-align: center; }
.mosa-review-section__heading h2 { margin: 0; font-size: 32px; font-weight: 700; line-height: 35.2px; }
.mosa-review-section__heading p { margin: 12px 0 0; color: var(--mosa-muted); }
.mosa-review-carousel { width: min(100%, 1120px); margin: 0 auto; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 16px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.mosa-review-carousel::-webkit-scrollbar { display: none; }
.mosa-review { min-height: 258px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; background: #fff; border: 1px solid var(--mosa-line); border-radius: var(--mosa-radius); scroll-snap-align: start; }
.mosa-review__stars { color: var(--mosa-accent); letter-spacing: .12em; }
.mosa-review blockquote { margin: 15px 0 20px; font-size: 14px; line-height: 22.4px; }
.mosa-review__byline { display: flex; align-items: center; gap: 10px; color: var(--mosa-muted); font-size: 12px; line-height: 14.4px; font-weight: 500; }
.mosa-review__avatar { width: 31px; height: 31px; display: grid; place-items: center; color: #fff; background: var(--mosa-accent); border-radius: 50%; font-size: 12px; }

.mosa-footer { margin-top: 112px; padding: 72px max(40px, calc((100vw - var(--mosa-max)) / 2)) 24px; color: var(--mosa-ink); background: #fff; border-top: 1px solid var(--mosa-line); }
.mosa-footer__grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr 1.35fr; gap: 56px; align-items: start; }
.mosa-footer__brand { max-width: 260px; }
.mosa-footer__brand .mosa-brand__name { font-size: 22px; }
.mosa-footer__brand .mosa-brand__mark { width: 40px; height: 40px; }
.mosa-footer__brand p { margin: 16px 0 0; color: var(--mosa-muted); }
.mosa-footer h3 { margin: 0 0 18px; font-size: 14px; line-height: 22.4px; font-weight: 700; }
.mosa-footer nav { display: grid; gap: 9px; color: var(--mosa-muted); font-size: 14px; line-height: 22.4px; }
.mosa-footer nav a:hover { color: var(--mosa-accent); }
.mosa-subscribe p { margin: 0 0 13px; color: var(--mosa-muted); font-size: 14px; line-height: 22.4px; }
.mosa-subscribe__form { display: flex; gap: 8px; }
.mosa-subscribe__form input { min-width: 0; flex: 1; height: 44px; padding: 0 13px; color: var(--mosa-ink); background: #fff; border: 1px solid var(--mosa-line); border-radius: 5px; }
.mosa-subscribe__form input::placeholder { color: var(--mosa-muted); }
.mosa-subscribe__form button { height: 44px; padding: 0 14px; color: var(--mosa-ink); background: var(--mosa-yellow); border: 0; border-radius: 14px; font-size: 13px; line-height: 20.8px; font-weight: 500; }
.mosa-footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 62px; padding-top: 18px; border-top: 1px solid var(--mosa-line); color: var(--mosa-muted); font-size: 12px; }
.mosa-footer__social { letter-spacing: .28em; color: var(--mosa-ink); }
.mosa-footer__bottom a:hover { color: var(--mosa-accent); }

.mosa-search-overlay { position: fixed; inset: 0; z-index: 60; display: none; background: rgba(32,35,34,.55); }
.mosa-search-overlay.is-open { display: block; }
.mosa-search-panel { width: min(720px, calc(100% - 32px)); margin: 110px auto 0; padding: 24px; background: #fff; border-radius: var(--mosa-radius); box-shadow: 0 24px 60px rgba(0,0,0,.2); }
.mosa-search-panel__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.mosa-search-panel h2 { margin: 0; font-size: 24px; line-height: 24px; font-weight: 700; }
.mosa-search-form { display: flex; gap: 8px; }
.mosa-search-form input { min-width: 0; flex: 1; height: 48px; padding: 0 14px; border: 1px solid var(--mosa-line); border-radius: 5px; }
.mosa-search-form button { width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: var(--mosa-ink); border: 0; border-radius: 5px; }
.mosa-search-form svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.mosa-cart-drawer { position: fixed; inset: 0; z-index: 55; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .22s ease, visibility .22s ease; }
.mosa-cart-drawer.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.mosa-cart-drawer__scrim { position: absolute; inset: 0; background: rgba(32,35,34,.42); }
.mosa-cart-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); display: flex; flex-direction: column; background: #fff; box-shadow: -18px 0 48px rgba(0,0,0,.18); transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.7,.2,1); }
.mosa-cart-drawer.is-open .mosa-cart-drawer__panel { transform: translateX(0); }
.mosa-cart-drawer__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--mosa-line); }
.mosa-cart-drawer__header h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 25px; line-height: 1; font-weight: 700; }
.mosa-cart-drawer__count { min-width: 26px; height: 26px; display: inline-grid; place-items: center; padding: 0 7px; color: var(--mosa-ink); background: var(--mosa-soft); border-radius: 50%; font-size: 12px; font-weight: 500; }
.mosa-cart-drawer__body { flex: 1; padding: 24px; overflow: auto; }
.mosa-cart-drawer__content { min-height: 100%; }
.mosa-cart-items { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.mosa-cart-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: start; gap: 14px; }
.mosa-cart-item__image { width: 64px; aspect-ratio: 1; overflow: hidden; background: var(--mosa-soft); border-radius: 4px; }
.mosa-cart-item__image img { width: 100%; height: 100%; object-fit: cover; }
.mosa-cart-item__details { min-width: 0; display: grid; gap: 6px; }
.mosa-cart-item__name { font-size: 14px; line-height: 1.4; }
.mosa-cart-item__quantity { color: var(--mosa-muted); font-size: 12px; }
.mosa-cart-item__price { font-size: 13px; font-weight: 600; }
.mosa-cart-item__price .amount { white-space: nowrap; }
.mosa-cart-item__remove { width: 28px; height: 28px; display: grid; place-items: center; color: var(--mosa-muted); }
.mosa-cart-item__remove:hover { color: var(--mosa-accent); }
.mosa-cart-item__remove svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.mosa-cart-drawer__footer { padding: 20px 24px 24px; border-top: 1px solid var(--mosa-line); }
.mosa-cart-drawer__total { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; font-size: 14px; }
.mosa-cart-drawer__total strong { font-size: 18px; font-weight: 600; }
.mosa-cart-drawer__total .woocommerce-Price-currencySymbol { margin-right: 2px; }
.mosa-cart-drawer__note { margin: -10px 0 18px; color: var(--mosa-muted); font-size: 12px; line-height: 1.5; }
.mosa-cart-drawer__footer .mosa-button { width: 100%; min-height: 52px; border-radius: 7px; }
.mosa-cart-checkout { text-align: center; }
.mosa-mini-cart-note { color: var(--mosa-muted); font-size: 14px; line-height: 22.4px; }
.mosa-locale { position: relative; }
.mosa-locale select { height: 34px; padding: 0 25px 0 8px; color: var(--mosa-ink); background: #fff; border: 1px solid var(--mosa-line); border-radius: 4px; font-size: 12px; line-height: 14.4px; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .mosa-cart-drawer, .mosa-cart-drawer__panel { transition: none; }
}

.woocommerce .site-main, .woocommerce-page .site-main { width: min(var(--mosa-max), calc(100% - 80px)); margin: 60px auto; }
.woocommerce .button, .woocommerce a.button { border-radius: 5px; background: var(--mosa-ink); color: #fff; }
.woocommerce .button:hover, .woocommerce a.button:hover { background: var(--mosa-accent); color: #fff; }

.mosa-collection-page { width: 100%; margin: 0; }
.mosa-collection-intro { width: min(var(--mosa-max), calc(100% - 80px)); margin: 76px auto 0; text-align: left; }
.mosa-collection-intro h1 { margin: 0 0 16px; font-size: 48px; line-height: 1.08; font-weight: 700; letter-spacing: 0; }
.mosa-collection-intro p { max-width: 810px; margin: 0; color: var(--mosa-muted); font-size: 15px; line-height: 1.72; }
.mosa-collection-results { width: min(var(--mosa-max), calc(100% - 80px)); margin: 64px auto 0; }
.mosa-collection-toolbar { min-height: 52px; display: flex; align-items: center; gap: 20px; border-top: 1px solid var(--mosa-line); border-bottom: 1px solid var(--mosa-line); }
.mosa-collection-filter-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 0; color: var(--mosa-ink); background: transparent; border: 0; font-size: 13px; }
.mosa-collection-filter-toggle svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; transform: rotate(0deg); transition: transform .2s ease; }
.mosa-collection-filter-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mosa-collection-count { color: var(--mosa-muted); font-size: 12px; }
.mosa-collection-sort { margin-left: auto; }
.mosa-collection-sort select { min-width: 148px; height: 36px; padding: 0 27px 0 10px; color: var(--mosa-ink); background: #fff; border: 1px solid var(--mosa-line); border-radius: 4px; font-size: 12px; }
.mosa-collection-grid-toggle { display: inline-flex; align-items: center; gap: 5px; }
.mosa-collection-grid-toggle button { width: 29px; height: 29px; display: grid; grid-template-columns: repeat(2, 5px); grid-auto-rows: 5px; place-content: center; gap: 3px; padding: 0; background: transparent; border: 1px solid transparent; border-radius: 4px; }
.mosa-collection-grid-toggle button.is-active { border-color: var(--mosa-line); background: var(--mosa-soft); }
.mosa-collection-grid-toggle span { display: block; width: 5px; height: 5px; background: currentColor; }
.mosa-collection-filter-panel { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid var(--mosa-line); font-size: 13px; }
.mosa-collection-filter-panel[hidden] { display: none; }
.mosa-collection-filter-panel strong { margin-right: 8px; font-weight: 600; }
.mosa-collection-filter-panel a { color: var(--mosa-muted); }
.mosa-collection-filter-panel a:hover { color: var(--mosa-accent); }
.mosa-collection-price-filter { display: flex; align-items: end; gap: 8px; }
.mosa-collection-price-filter label { display: grid; gap: 4px; color: var(--mosa-muted); font-size: 11px; }
.mosa-collection-price-filter input { width: 88px; height: 32px; padding: 0 8px; border: 1px solid var(--mosa-line); border-radius: 4px; }
.mosa-collection-price-filter button { height: 32px; padding: 0 12px; color: #fff; background: var(--mosa-ink); border: 0; border-radius: 4px; font-size: 12px; }
.mosa-collection-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 42px 16px; padding-top: 34px; }
.mosa-collection-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mosa-collection-card__price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.mosa-collection-card__price-row .price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 7px; font-size: 13px; line-height: 1.5; }
.mosa-collection-card__price-row .price del { color: var(--mosa-muted); font-size: 12px; opacity: .75; }
.mosa-collection-card__price-row .price ins { color: var(--mosa-ink); font-weight: 600; text-decoration: none; }
.mosa-collection-card__price-row .mosa-add-button { flex: 0 0 38px; }
.mosa-collection-empty { grid-column: 1 / -1; padding: 60px 0; color: var(--mosa-muted); text-align: center; }

/* Product detail layout mirrors the reference shop while using Pegnix data. */
.mosa-product-page { width: min(var(--mosa-max), calc(100% - 80px)); margin: 68px auto 0; }
.mosa-product-detail { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 70px; align-items: start; }
.mosa-product-gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; align-items: start; }
.mosa-product-thumbs { display: grid; gap: 12px; }
.mosa-product-thumb { width: 76px; aspect-ratio: 1; padding: 0; overflow: hidden; background: var(--mosa-soft); border: 1px solid transparent; border-radius: 3px; cursor: pointer; }
.mosa-product-thumb.is-active { border-color: var(--mosa-ink); }
.mosa-product-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.mosa-product-thumb--empty { background: var(--mosa-soft); }
.mosa-product-main-image { aspect-ratio: 1 / 1; overflow: hidden; background: var(--mosa-soft); border-radius: var(--mosa-radius); }
.mosa-product-main-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.mosa-product-image-placeholder { height: 100%; display: grid; place-items: center; color: var(--mosa-muted); font-size: 22px; }
.mosa-product-summary { padding: 8px 0 0; }
.mosa-product-title { max-width: 560px; margin: 0; font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: 0; }
.mosa-product-price { margin-top: 18px; font-size: 18px; line-height: 1.4; font-weight: 600; }
.mosa-product-price del { color: var(--mosa-muted); font-size: 14px; font-weight: 400; }
.mosa-product-price ins { text-decoration: none; }
.mosa-product-cart { display: flex; align-items: stretch; gap: 10px; margin-top: 28px; }
.mosa-product-cart:has(.mosa-color-variants) { flex-wrap: wrap; }
.mosa-color-variants { display: grid; grid-template-columns: repeat(7, minmax(42px, 1fr)); gap: 8px; width: 100%; margin-bottom: 18px; }
.mosa-product-cart > .mosa-color-variants { flex-basis: 100%; }
.mosa-color-swatch { min-height: 34px; padding: 0 5px; color: #172019; background: #d9ef55; border: 1px solid rgba(23,32,25,.12); border-radius: 8px; font-size: 11px; font-weight: 600; cursor: pointer; }
.mosa-color-swatch:nth-child(7n+2) { background: #59e83c; }.mosa-color-swatch:nth-child(7n+3) { background: #a7ee89; }.mosa-color-swatch:nth-child(7n+4) { background: #43c932; }.mosa-color-swatch:nth-child(7n+5) { background: #38dc57; }.mosa-color-swatch:nth-child(7n+6) { background: #68d8ad; }.mosa-color-swatch:nth-child(7n) { background: #3db28a; }
.mosa-color-swatch:nth-child(7n+1):nth-last-child(-n+5) { background: #b8dc58; }
.mosa-color-swatch.is-selected, .mosa-color-swatch:focus-visible { border: 3px solid #1e2a20; padding: 0 3px; outline: 0; }
.mosa-product-cart--variable .mosa-color-variants { margin-bottom: 2px; }
.mosa-product-cart--variable { display: block; }
.mosa-product-cart--variable > form { margin-top: 16px; }
.mosa-product-cart--variable .variations { order: 2; }
.mosa-product-cart--variable form:before { content: 'Color'; display: block; grid-row: 1; font-size: 13px; font-weight: 600; }
.mosa-quantity { display: grid; grid-template-columns: 38px 48px 38px; height: 52px; border: 1px solid var(--mosa-line); border-radius: 5px; }
.mosa-quantity button { padding: 0; color: var(--mosa-ink); background: #fff; border: 0; font-size: 20px; cursor: pointer; }
.mosa-quantity input { width: 48px; padding: 0; text-align: center; border: 0; font-size: 14px; }
.mosa-quantity input::-webkit-inner-spin-button, .mosa-quantity input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.mosa-product-add { flex: 1; min-height: 52px; border-radius: 5px; }
.mosa-product-cart--variable form { width: 100%; display: grid; gap: 14px; }
.mosa-product-cart--variable .variations { width: 100%; margin: 0; border: 0; }
.mosa-product-cart--variable .variations tr { display: grid; gap: 8px; margin-bottom: 14px; }
.mosa-product-cart--variable .variations th, .mosa-product-cart--variable .variations td { display: block; padding: 0; text-align: left; border: 0; }
.mosa-product-cart--variable .variations label { font-size: 13px; font-weight: 500; }
.mosa-product-cart--variable .variations select { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid var(--mosa-line); border-radius: 5px; background: #fff; }
.mosa-product-cart--variable .reset_variations { margin-left: 10px; color: var(--mosa-muted); font-size: 12px; }
.mosa-product-cart--variable .single_variation_wrap { display: grid; gap: 14px; }
.mosa-product-cart--variable .woocommerce-variation-add-to-cart { display: flex; gap: 10px; align-items: stretch; }
.mosa-product-cart--variable .quantity { display: flex; align-items: center; }
.mosa-product-cart--variable .quantity .qty { width: 88px; height: 52px; border: 1px solid var(--mosa-line); border-radius: 5px; text-align: center; }
.mosa-product-cart--variable .single_add_to_cart_button { flex: 1; min-height: 52px; }
.woocommerce .mosa-product-page, .woocommerce-page .mosa-product-page { width: min(var(--mosa-max), calc(100% - 80px)); margin: 68px auto 0; }
.mosa-product-stock { margin-top: 28px; color: var(--mosa-muted); }
.mosa-product-description { margin-top: 34px; color: var(--mosa-muted); font-size: 14px; line-height: 1.75; }
.mosa-product-description p { margin: 0 0 16px; }
.mosa-product-description ul { margin: 8px 0 18px 20px; padding: 0; }
.mosa-product-description li { margin: 6px 0; }
.mosa-product-meta { display: grid; gap: 8px; margin-top: 28px; padding-top: 20px; color: var(--mosa-muted); border-top: 1px solid var(--mosa-line); font-size: 12px; line-height: 1.5; }
.mosa-product-recommendations { margin-top: 112px; padding-top: 62px; border-top: 1px solid var(--mosa-line); }
.mosa-product-recommendations h2 { margin: 0 0 30px; font-size: 30px; line-height: 1.15; font-weight: 600; }
.mosa-product-recommendations .products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 16px; margin: 0; padding: 0; list-style: none; }
.mosa-product-recommendations .product { margin: 0 !important; width: auto !important; }
.mosa-product-recommendations .product a img { width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0 0 12px; background: var(--mosa-soft); }
.mosa-product-recommendations .woocommerce-loop-product__title { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 400; }
.mosa-product-recommendations .price { display: block; margin-top: 7px; color: var(--mosa-ink); font-size: 13px; }
.mosa-product-recommendations .button { display: none; }
.mosa-pagination { display: flex; justify-content: center; margin: 58px 0 20px; }
.mosa-pagination ul { display: flex; align-items: center; gap: 7px; margin: 0; padding: 0; list-style: none; }
.mosa-pagination a, .mosa-pagination span { min-width: 34px; height: 34px; display: grid; place-items: center; padding: 0 9px; color: var(--mosa-ink); border: 1px solid transparent; border-radius: 4px; font-size: 13px; }
.mosa-pagination .current { background: var(--mosa-ink); color: #fff; }
.mosa-pagination a:hover { border-color: var(--mosa-line); background: var(--mosa-soft); }
.mosa-pagination svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.mosa-pagination__prev { transform: rotate(180deg); }

@media (max-width: 920px) {
  .mosa-header__inner, .mosa-section { width: min(var(--mosa-max), calc(100% - 40px)); }
  .mosa-header__inner { grid-template-columns: auto 1fr auto; gap: 12px; }
  .mosa-menu-toggle { display: inline-grid; justify-self: start; order: -1; }
  .mosa-primary-nav { position: absolute; top: 66px; right: 20px; left: 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; background: #fff; border: 1px solid var(--mosa-line); box-shadow: 0 18px 32px rgba(32,35,34,.11); }
  .mosa-primary-nav.is-open { display: flex; }
  .mosa-primary-nav a { padding: 13px 12px; border-bottom: 1px solid var(--mosa-line); }
  .mosa-primary-nav a:last-child { border-bottom: 0; }
  .mosa-primary-nav a::after { display: none; }
  .mosa-brand { justify-self: center; }
  .mosa-header__actions { gap: 0; }
  .mosa-header__actions .mosa-account-link { display: none; }
  .mosa-hero { margin-top: 20px; }
  .mosa-hero__copy { padding: 120px 24px; }
  .mosa-split-banner { grid-template-columns: 1fr; }
  .mosa-split-banner__copy { padding: 40px 28px; }
  .mosa-split-banner__media { min-height: 300px; }
  .mosa-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .mosa-carousel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosa-collection-intro, .mosa-collection-results { width: min(var(--mosa-max), calc(100% - 40px)); }
  .mosa-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .woocommerce .mosa-product-page, .woocommerce-page .mosa-product-page { width: min(var(--mosa-max), calc(100% - 40px)); }
  .mosa-product-detail { grid-template-columns: 1fr; gap: 42px; }
  .mosa-product-summary { padding-top: 0; }
}
@media (max-width: 620px) {
  .mosa-shipping-bar { min-height: 36px; padding: 7px 16px; font-size: 14px; line-height: 22.4px; white-space: nowrap; overflow: hidden; }
  .mosa-header__inner { width: calc(100% - 24px); min-height: 62px; }
  .mosa-header { min-height: 62px; }
  .mosa-primary-nav { top: 62px; right: 12px; left: 12px; }
  .mosa-brand__name { font-size: 14px; }
  .mosa-brand__mark { width: 29px; height: 29px; }
  .mosa-hero, .mosa-section, .mosa-showcase { width: calc(100% - 32px); }
  .mosa-collection-intro, .mosa-collection-results { width: calc(100% - 32px); }
  .mosa-collection-intro { margin-top: 48px; }
  .mosa-collection-intro h1 { font-size: 36px; line-height: 1.1; }
  .mosa-collection-results { margin-top: 42px; }
  .mosa-collection-toolbar { gap: 10px; }
  .mosa-collection-count { display: none; }
  .mosa-collection-sort select { min-width: 118px; }
  .mosa-collection-grid { gap: 30px 10px; padding-top: 24px; }
  .woocommerce .mosa-product-page, .woocommerce-page .mosa-product-page { width: calc(100% - 32px); margin-top: 42px; }
  .mosa-product-gallery { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; }
  .mosa-product-thumb { width: 56px; }
  .mosa-product-title { font-size: 30px; }
  .mosa-product-cart { flex-direction: column; }
  .mosa-color-variants { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .mosa-quantity { width: 100%; grid-template-columns: 1fr 1fr 1fr; }
  .mosa-quantity input { width: 100%; }
  .mosa-product-recommendations { margin-top: 76px; padding-top: 46px; }
  .mosa-product-recommendations .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .mosa-collection-grid .mosa-product-card__title { min-height: 0; font-size: 13px; line-height: 19px; }
  .mosa-hero { height: 340px; min-height: 340px; margin-top: 16px; border-radius: 15px; }
  .mosa-hero__copy { padding: 100px 20px; }
  .mosa-hero h1 { font-size: 36px; line-height: 36px; }
  .mosa-hero p { font-size: 14px; line-height: 22.4px; }
  .mosa-showcase { margin-top: 12px; }
  .mosa-showcase__comparison { height: 340px; border-radius: 15px; }
  .mosa-showcase__button { left: 50%; bottom: 14px; min-height: 44px; padding: 11px 16px; transform: translateX(-50%); }
  .mosa-section { margin-top: 72px; }
  .mosa-section__heading { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 18px; }
  .mosa-section__heading h2 { font-size: 24px; line-height: 24px; }
  .mosa-carousel { grid-template-columns: 1fr; gap: 24px; }
  .mosa-carousel-arrow { display: none; }
  .mosa-review-section { margin-top: 76px; padding: 54px 12px; }
  .mosa-reviews { margin-top: 76px; padding: 54px 16px 48px; }
  .mosa-review-section__heading h2 { font-size: 32px; line-height: 35.2px; }
  .mosa-review-carousel { grid-auto-columns: minmax(285px, 86vw); }
  .mosa-footer { margin-top: 76px; padding: 48px 24px 22px; }
  .mosa-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .mosa-footer__bottom { flex-direction: column; margin-top: 38px; }
  .mosa-subscribe__form { flex-direction: column; }
  .mosa-subscribe__form button { width: 100%; }
  .mosa-cart-drawer__panel { width: 100%; }
  .mosa-cart-drawer__header { padding: 19px 18px; }
  .mosa-cart-drawer__body { padding: 20px 18px; }
  .mosa-cart-drawer__footer { padding: 18px; }
}
