html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  overflow-x: hidden;
}

/* ---------- TOP BAR ---------- */
.topbar {
  background: var(--brand);
  color: #f2dedd;
  font-size: 0.82rem;
  font-weight: 500;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 42px;
  gap: 1rem;
}
.topbar a {
  transition: color 0.25s var(--ease);
}
.topbar a:hover {
  color: #fff;
}
.topbar .tb-left {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.topbar .tb-right {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}
.tb-pill {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-s);
  font-weight: 700;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}
@media (max-width: 780px) {
  .topbar .tb-right span:not(.tb-pill) {
    display: none;
  }
}
@media (max-width: 640px) {
  .topbar .wrap {
    height: auto;
    min-height: 38px;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .topbar .tb-left a:not(:first-child) {
    display: none;
  }
  .topbar {
    font-size: 0.76rem;
  }
}

/* ---------- HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.header.scrolled {
  box-shadow: var(--shadow-s);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  height: 92px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.logo img {
  height: 58px;
  width: auto;
}

.site-search {
  flex: 1;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  padding: 0.3rem 0.3rem 0.3rem 1.05rem;
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}
.site-search:hover {
  border-color: #d6d4d0;
}
.site-search:focus-within {
  border-color: var(--brand);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--brand-tint);
}
.search-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  color: var(--muted);
}
.search-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.site-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  background: none;
  color: var(--ink);
  text-overflow: ellipsis;
}
.site-search input::placeholder {
  color: var(--muted);
}
.site-search button {
  flex-shrink: 0;
  background: var(--graphite);
  color: #fff;
  border-radius: calc(var(--radius-m) - 4px);
  height: 44px;
  padding: 0 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.site-search button svg {
  width: 19px;
  height: 19px;
}
.site-search button:hover {
  background: var(--brand);
  box-shadow: 0 6px 16px -6px rgba(150, 33, 31, 0.55);
}
@media (max-width: 1080px) {
  .site-search button .search-btn-label {
    display: none;
  }
  .site-search button {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
}

.hdr-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-s);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--graphite);
  transition: background 0.2s var(--ease);
  position: relative;
}
.wishlist-trigger {
  border: 0;
  background: transparent;
}
.icon-btn:hover {
  background: var(--brand-tint);
}
.icon-btn svg {
  width: 24px;
  height: 24px;
}
.cart-count {
  position: absolute;
  top: 0.2rem;
  right: 0.45rem;
  background: var(--brand);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid var(--white);
}
.burger {
  display: none;
}
@media (max-width: 1260px) {
  .site-search {
    display: none;
  }
  .burger {
    display: flex;
  }
}
@media (max-width: 640px) {
  .header .wrap {
    height: 72px;
    gap: 0.8rem;
  }
  .logo img {
    height: 44px;
  }
  .hdr-actions {
    gap: 0.15rem;
  }
  .icon-btn {
    padding: 0.45rem 0.55rem;
  }
  .hdr-actions .icon-btn:nth-child(1) {
    display: none;
  }
  .hdr-actions .icon-btn > span {
    display: none;
  }
}

/* ---------- NAV ---------- */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  height: 56px;
  position: relative;
}
.nav .wrap::-webkit-scrollbar {
  display: none;
}
@media (max-width: 760px) {
  .nav .wrap {
    overflow-x: auto;
  }
}
.nav-all {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-s);
  margin-right: 0.6rem;
  transition: background 0.25s var(--ease);
}
.nav-all:hover {
  background: var(--brand-dark);
}
.nav-link {
  flex-shrink: 0;
  padding: 0.6rem 0.95rem;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--graphite);
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}
.nav-link:hover {
  background: var(--paper);
  color: var(--brand);
}
.nav-link.hot {
  color: var(--brand);
}
.nav-link.hot:hover {
  background: var(--brand-tint);
}

/* ---------- MEGA MENU ---------- */
.nav-all-wrap {
  flex-shrink: 0;
  margin-right: 0.6rem;
}
.nav-all-wrap .nav-all {
  margin-right: 0;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.nav-all .chev {
  transition: transform 0.3s var(--ease);
}
.nav-all-wrap.open .chev {
  transform: rotate(180deg);
}
.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  display: grid;
  grid-template-columns: 290px 1fr;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.26s var(--ease),
    transform 0.26s var(--ease),
    visibility 0.26s var(--ease);
  z-index: 80;
}
.nav-all-wrap.open .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 38px;
  width: 14px;
  height: 14px;
  background: var(--white);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.mega-list {
  background: var(--paper);
  border-right: 1px solid var(--line);
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.mega-cat {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  text-align: left;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--graphite);
  cursor: pointer;
  transition: background 0.18s var(--ease);
}
.mega-cat .mega-cat-ico {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.mega-cat svg:last-child {
  margin-left: auto;
  width: 16px;
  height: 16px;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.18s var(--ease),
    transform 0.18s var(--ease);
}
.mega-cat:hover,
.mega-cat.active {
  background: var(--brand-tint);
}
.mega-cat.active {
  color: var(--brand);
}
.mega-cat.active svg:last-child {
  opacity: 1;
  transform: translateX(0);
}
.mega-panels {
  position: relative;
  padding: 1.5rem 1.6rem;
}
.mega-panel {
  display: none;
  gap: 2rem;
  align-items: stretch;
}
.mega-panel.active {
  display: flex;
  animation: megaFade 0.3s var(--ease);
  height: 100%;
}
.mega-panel > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}
@keyframes megaFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.mega-panel h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.mega-subs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.1rem 0.8rem;
  align-content: start;
}
.mega-subs a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  transition:
    background 0.16s var(--ease),
    color 0.16s var(--ease);
}
.mega-subs a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--brand);
  flex-shrink: 0;
  transition: transform 0.16s var(--ease);
}
.mega-subs a:hover {
  background: var(--brand-tint);
  color: var(--brand);
}
.mega-subs a:hover::before {
  transform: scale(1.7);
}
.mega-feature {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  display: block;
  width: 380px;
  flex-shrink: 0;
  min-height: 230px;
}
.mega-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.mega-feature:hover img {
  transform: scale(1.07);
}
.mega-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(36, 38, 43, 0.92) 0%,
    rgba(36, 38, 43, 0.1) 55%,
    transparent 100%
  );
}
.mega-feature-txt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  z-index: 2;
  color: #fff;
}
.mega-feature-txt span {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.mega-feature-txt strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}
.mega-foot {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
}
.mega-foot span {
  color: var(--muted);
  font-weight: 500;
}
.mega-foot a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  color: var(--brand);
  font-weight: 700;
  white-space: nowrap;
}
.mega-foot a svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}
.mega-foot a:hover {
  color: var(--brand-dark);
}
@media (max-width: 760px) {
  .nav-all-wrap {
    display: none;
  }
  .mega {
    display: none;
  }
}

@media (max-width: 1100px) and (min-width: 761px) {
  .mega {
    grid-template-columns: 260px 1fr;
  }
  .mega-panels {
    padding: 1.25rem;
  }
  .mega-panel {
    gap: 1.25rem;
  }
  .mega-subs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mega-feature {
    width: 280px;
  }
  .mega-foot span {
    display: none;
  }
}


/* ---------- QUICK VIEW ---------- */
.qv-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(27, 28, 29, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.32s var(--ease),
    visibility 0.32s var(--ease);
}
.qv-overlay.open {
  opacity: 1;
  visibility: visible;
}
.qv-dialog {
  width: min(1180px, 100%);
  max-height: min(820px, calc(100dvh - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  box-shadow: 0 45px 100px -35px rgba(13, 14, 16, 0.74);
  transform: translateY(20px) scale(0.985);
  transition: transform 0.38s var(--ease);
  background-color: white;
}
.qv-overlay.open .qv-dialog {
  transform: none;
}
.qv-gallery {
  --qv-media-max-height: min(640px, calc(100dvh - 48px));
  position: relative;
  min-width: 0;
  min-height: var(--qv-media-max-height);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #e8e7e2;
}
.qv-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #deddd8;
}
.qv-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.16s ease;
}
.qv-stage img.changing {
  opacity: 0.35;
}
.qv-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.8rem;
  color: #77736c;
  text-align: center;
}
.qv-placeholder[hidden] {
  display: none;
}
.qv-placeholder svg {
  width: 64px;
  height: 64px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.qv-placeholder small {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.qv-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(251, 250, 247, 0.92);
  border: 1px solid rgba(222, 219, 212, 0.9);
  color: var(--graphite);
  box-shadow: 0 12px 26px -16px rgba(36, 38, 43, 0.6);
  transform: translateY(-50%);
  opacity: 0;
  transition:
    opacity 0.22s var(--ease),
    background 0.22s var(--ease),
    color 0.22s var(--ease);
}
.qv-arrow svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.6;
}
.qv-gallery:hover .qv-arrow,
.qv-arrow:focus-visible {
  opacity: 1;
}
.qv-arrow:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
@media (hover: none) {
  .qv-arrow {
    opacity: 1;
  }
}
.qv-prev {
  left: 18px;
}
.qv-next {
  right: 18px;
}
.qv-gallery.single .qv-arrow {
  display: none;
}
.qv-thumbs {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 10px;
  border-radius: var(--radius-l);
  background: rgba(7, 7, 7, 0.32);
  box-shadow: 0 15px 36px -24px rgba(36, 38, 43, 0.5);
  scrollbar-width: thin;
}
.qv-thumbs:empty {
  display: none;
}
.qv-thumb {
  width: 72px;
  height: auto;
  aspect-ratio: var(--product-image-ratio);
  flex: 0 0 72px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius-s);
  background: #e8e7e2;
  transition:
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.qv-thumb:hover {
  transform: translateY(-1px);
}
.qv-thumb.active {
  border-color: var(--brand);
}
.qv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qv-info {
  position: relative;
  min-width: 0;
  min-height: min(640px, calc(100dvh - 48px));
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: clamp(2.1rem, 4vw, 3.25rem);
}
.qv-close {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  z-index: 4;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(251, 250, 247, 0.92);
  color: var(--graphite);
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}
.qv-close svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}
.qv-close:hover {
  color: #fff;
  background: var(--brand);
}
.qv-brand {
  max-width: calc(100% - 48px);
  color: #8c8983;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.qv-info h3 {
  max-width: calc(100% - 30px);
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--graphite);
}
.qv-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-top: 1.45rem;
}
.qv-price {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
}
.qv-net {
  color: #8e8b85;
  font-size: 0.95rem;
}
.qv-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}
.qv-stock svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.qv-stock--out {
  color: var(--graphite);
}
.qv-stock--order {
  color: var(--steel);
}
.qv-specs {
  flex: none;
  margin-top: clamp(2rem, 5vh, 3.1rem);
  overflow: hidden;
  border: 1px solid #dedbd4;
  border-radius: var(--radius-m);
  background: var(--white);
}
.qv-spec-head {
  padding: 0.85rem 1rem;
  background: #f0eee9;
  color: #85827c;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.qv-spec-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem;
  align-items: center;
  padding: 0.78rem 1rem;
}
.qv-spec-row + .qv-spec-row {
  border-top: 1px solid #ebe8e2;
}
.qv-spec-row dt {
  color: #88857f;
  font-size: 0.88rem;
}
.qv-spec-row dd {
  color: var(--graphite);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: right;
}
.qv-actions {
  flex: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.8rem;
}
/* Bez koszyka zostaje jedna akcja - nie zostawiamy pustej kolumny siatki. */
.qv-actions--single {
  grid-template-columns: 1fr;
}
.qv-cart,
.qv-link {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-m);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  transition:
    background 0.22s var(--ease),
    border-color 0.22s var(--ease),
    color 0.22s var(--ease),
    transform 0.22s var(--ease);
}
.qv-cart svg,
.qv-link svg {
  width: 19px;
  height: 19px;
  flex: none;
}
.qv-cart {
  background: var(--brand);
  color: #fff;
}
.qv-cart:hover {
  background: var(--brand-dark);
}
.qv-link {
  border: 1px solid #d3cfc7;
  color: var(--graphite);
  background: transparent;
}
.qv-link:hover {
  border-color: var(--graphite);
  background: var(--white);
}
.qv-cart:active,
.qv-link:active {
  transform: scale(0.98);
}
body.qv-locked {
  overflow: hidden;
}
@media (max-width: 880px) {
  .qv-overlay {
    align-items: end;
    padding: 12px;
  }
  .qv-dialog {
    max-height: calc(100dvh - 12px);
    grid-template-columns: 1fr;
    grid-template-rows: minmax(280px, 46dvh) minmax(0, 1fr);
    border-radius: 22px 22px 0 0;
  }
  .qv-gallery,
  .qv-info {
    min-height: 0;
  }
  .qv-gallery {
    --qv-media-max-height: 46dvh;
  }
  .qv-info {
    padding: 1.5rem;
  }
  .qv-specs {
    margin-top: 1.5rem;
  }
}
@media (max-width: 560px) {
  .card-body {
    min-height: 218px;
  }
  .qv-overlay {
    padding: 0;
  }
  .qv-dialog {
    max-height: 100dvh;
    min-height: 100dvh;
    grid-template-rows: 42dvh minmax(0, 58dvh);
    border: 0;
    border-radius: 0;
  }
  .qv-gallery {
    --qv-media-max-height: 42dvh;
  }
  .qv-thumbs {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .qv-info {
    padding: 1.35rem 1.2rem 1.6rem;
  }
  .qv-close {
    top: 0.85rem;
    right: 0.85rem;
  }
  .qv-info h3 {
    font-size: 1.55rem;
  }
  .qv-price-wrap {
    margin-top: 1rem;
  }
  .qv-specs {
    margin-top: 1.25rem;
  }
  .qv-actions {
    grid-template-columns: 1fr;
  }
  .qv-cart,
  .qv-link {
    min-height: 50px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card,
  .card-img img,
  .quick-view,
  .add-cart,
  .qv-overlay,
  .qv-dialog,
  .qv-stage img {
    transition: none;
  }
}

/* WordPress/WooCommerce shell adaptations. */
body.admin-bar .header{top:32px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.logo{flex-direction:column;align-items:flex-start;justify-content:center;color:var(--graphite)}
.logo-word{font-family:var(--font-display);font-size:1.8rem;font-weight:800;line-height:.9;letter-spacing:-.07em}.logo-word span{color:var(--brand)}
.logo small{font-size:.48rem;letter-spacing:.02em;margin-top:5px;white-space:nowrap}
.site-search .woocommerce-product-search{display:flex;width:100%;height:100%;align-items:center;gap:.6rem}
.site-search .search-field{flex:1;min-width:0;background:transparent;border:0;outline:0;padding:0;font:inherit;color:var(--ink)}
.site-search .woocommerce-product-search button{height:44px;padding:0 1.25rem;color:#fff;background:var(--graphite);border-radius:var(--radius-s);font-weight:700}
.hdr-actions a.icon-btn{text-decoration:none}
.icon-btn svg,.nav-all svg,.foot-contact svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.nav .menu-item{display:contents}.nav .menu-item>a{display:inline-flex;align-items:center;padding:.75rem .9rem;font-weight:600;white-space:nowrap}
@media (max-width:1399px) and (min-width:1261px){.nav .wrap{gap:.1rem}.nav-all-wrap{margin-right:.25rem}.nav-all{padding-inline:1rem}.nav .menu-item>a{padding-inline:.5rem;font-size:.88rem}}
.nav-all svg:first-child{width:19px;height:19px}.nav-all svg:last-child{width:15px;height:15px;margin-left:auto}
.mega-cat svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.4}
.menu-overlay{position:fixed;inset:0;background:rgba(18,19,22,.5);z-index:998;opacity:0;visibility:hidden;transition:.3s var(--ease)}.menu-overlay.open{opacity:1;visibility:visible}
.mm-head strong{font:800 1.5rem var(--font-display);letter-spacing:-.05em}.mm-head button svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2.4}
.content-shell{min-height:50vh}.content-entry{max-width:900px;margin:0 auto}.content-entry+.content-entry{margin-top:4rem}.content-entry h1,.content-entry h2,.content-entry h3{font-family:var(--font-display);margin:1.4em 0 .6em}.content-entry p{line-height:1.75;margin:0 0 1.25rem}
.woocommerce-shell{min-height:60vh}.woocommerce .products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.5rem}.woocommerce ul.products::before,.woocommerce ul.products::after{display:none}.woocommerce ul.products li.product{width:auto!important;margin:0!important;padding:1rem;border:1px solid var(--line);border-radius:var(--radius-m)}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{background:var(--brand)!important;color:#fff!important;border-radius:var(--radius-s)!important}
.woocommerce-message,.woocommerce-info{border-top-color:var(--brand)}.woocommerce-message::before,.woocommerce-info::before{color:var(--brand)}
.cart-drawer .widget_shopping_cart_content{height:100%;display:flex;flex-direction:column}.cart-drawer .woocommerce-mini-cart{overflow:auto;padding:0 1.4rem;flex:1}.cart-drawer .woocommerce-mini-cart-item{position:relative;display:grid;grid-template-columns:76px 1fr;gap:.9rem;padding:1rem 1.8rem 1rem 0;border-bottom:1px solid var(--line)}.cart-drawer .woocommerce-mini-cart-item>a:not(.remove){font-weight:700}.cart-drawer .woocommerce-mini-cart-item img{width:76px;height:62px;object-fit:cover;border-radius:8px;float:none;margin:0;grid-row:span 2}.cart-drawer .remove{position:absolute;right:0;top:1rem;color:var(--brand)!important}.cart-drawer .quantity{grid-column:2;color:var(--muted);font-size:.9rem}.cart-drawer .woocommerce-mini-cart__total{display:flex;justify-content:space-between;padding:1.2rem 1.4rem;border-top:1px solid var(--line);font-size:1.05rem}.cart-drawer .woocommerce-mini-cart__buttons{display:grid;gap:.7rem;padding:0 1.4rem 1.4rem}.cart-drawer .woocommerce-mini-cart__empty-message{padding:3rem 1.4rem;text-align:center;color:var(--muted)}
.qv-price-wrap ins{text-decoration:none}.qv-price-wrap .amount{font:inherit;color:inherit}.qv-price del{color:var(--muted);font-size:.48em;font-weight:500}.qv-price del .amount{color:inherit}.qv-price ins{color:var(--brand)}
@media(max-width:980px){.woocommerce .products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:782px){body.admin-bar .header{top:46px}}
@media(max-width:480px){.woocommerce .products{grid-template-columns:1fr}}
@media(max-width:640px){.burger{width:44px;height:44px;display:flex;align-items:center;justify-content:center}.mobile-menu a{min-height:48px}}
.mobile-menu{transform:none;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .3s var(--ease),visibility .3s var(--ease)}.mobile-menu.open{transform:none;opacity:1;visibility:visible;pointer-events:auto}
.cart-drawer{transform:none;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .3s var(--ease),visibility .3s var(--ease)}.cart-drawer.open{transform:none;opacity:1;visibility:visible;pointer-events:auto}


/* ---------- FOOTER ---------- */
.footer {
  background: var(--graphite);
  color: #c8cbd0;
  margin-top: 116px;
  box-shadow: inset 0 4px 0 var(--brand);
}
.foot-shop-shell {
  position: relative;
  transform: translateY(-56px);
  margin-bottom: -14px;
  padding: 6px;
  border-radius: 26px;
  background: var(--graphite-soft);
  box-shadow: 0 28px 64px -34px rgba(36, 38, 43, 0.68);
}
.foot-shop-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2rem, 4vw, 3.25rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 94% 8%, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(135deg, var(--brand-deep), var(--brand-dark) 70%, var(--brand));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #fff;
}
.foot-shop-copy {
  max-width: 690px;
}
.foot-shop-copy h2 {
  max-width: 16ch;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.foot-shop-copy p {
  max-width: 62ch;
  margin-top: 1rem;
  color: #f2dedd;
  font-size: clamp(0.94rem, 1.5vw, 1.05rem);
  line-height: 1.65;
}
.foot-shop-actions {
  display: grid;
  gap: 0.75rem;
  min-width: min(100%, 292px);
}
.foot-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 58px;
  padding: 7px 7px 7px 20px;
  border-radius: var(--radius-m);
  font-size: 0.94rem;
  font-weight: 800;
  white-space: nowrap;
  transition:
    transform 0.32s var(--ease),
    background 0.32s var(--ease),
    color 0.32s var(--ease),
    box-shadow 0.32s var(--ease);
}
.foot-cta:hover {
  transform: translateY(-2px);
}
.foot-cta:active {
  transform: translateY(1px) scale(0.99);
}
.foot-cta-primary {
  background: #fff;
  box-shadow: 0 14px 34px -20px rgba(9, 10, 12, 0.78);
  color: var(--graphite);
}
.foot-cta-primary:hover {
  background: var(--paper);
}
.foot-cta-secondary {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.foot-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}
.foot-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: var(--radius-s);
  background: rgba(36, 38, 43, 0.09);
  transition: transform 0.32s var(--ease);
}
.foot-cta-secondary .foot-cta-icon {
  background: rgba(255, 255, 255, 0.12);
}
.foot-cta:hover .foot-cta-icon {
  transform: translateX(2px);
}
.foot-cta-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.76fr 0.76fr 1.35fr;
  gap: clamp(2rem, 4vw, 4.8rem);
  padding: 62px 0 68px;
}
.foot-brand-logo {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: var(--radius-m);
  background: #fff;
  box-shadow: 0 16px 34px -24px rgba(0, 0, 0, 0.7);
}
.foot-brand-logo img {
  width: auto;
  height: 50px;
}
.foot-brand p {
  max-width: 38ch;
  margin-top: 1.35rem;
  color: #bcc0c6;
  font-size: 0.91rem;
  line-height: 1.7;
}
.foot-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.3rem;
  color: #fff;
  font-size: 0.87rem;
  font-weight: 700;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.foot-map-link:hover {
  color: #efaaa6;
  transform: translateX(3px);
}
.foot-map-link > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, 0.08);
  color: #e18b86;
}
.foot-map-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
}
.foot-col h2,
.foot-contact-card h2 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 1.35rem;
}
.foot-col a {
  display: inline-flex;
  color: #c8cbd0;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.foot-col li + li {
  margin-top: 0.75rem;
}
.foot-col a:hover {
  color: #fff;
  transform: translateX(3px);
}
.foot-contact-card {
  padding: 28px;
  border-radius: var(--radius-l);
  background: var(--graphite-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.foot-contact-card h2 {
  margin-bottom: 0.4rem;
}
.foot-contact-lead {
  color: #aeb2b9;
  font-size: 0.82rem;
  line-height: 1.5;
}
.foot-phone-list {
  display: grid;
  margin-top: 1.15rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.foot-phone-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.48rem 0;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.foot-phone-list a:hover {
  color: #efaaa6;
  transform: translateX(3px);
}
.foot-phone-whatsapp {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.foot-phone-whatsapp > a:first-child {
  flex: 1;
}
.foot-phone-list .foot-whatsapp-link {
  flex: none;
  color: #9fe3b5;
  font-size: 0.72rem;
  font-weight: 700;
}
.foot-phone-list strong {
  color: #fff;
  font-size: 0.92rem;
}
.foot-phone-list small {
  color: #9fa3aa;
  font-size: 0.72rem;
}
.foot-contact-details {
  display: grid;
  gap: 0.72rem;
  margin-top: 1.15rem;
}
.foot-contact-details a,
.foot-contact-details div {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: #c8cbd0;
  font-size: 0.8rem;
  line-height: 1.45;
}
.foot-contact-details a {
  transition: color 0.3s var(--ease);
}
.foot-contact-details a:hover {
  color: #fff;
}
.foot-contact-details svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #e18b86;
  margin-top: 2px;
  fill: none;
  stroke: currentColor;
}
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 26px 64px 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #aeb2b9;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.foot-pay {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.foot-pay span {
  padding: 0.34rem 0.62rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #e3e4e7;
  font-size: 0.68rem;
  font-weight: 700;
}
.foot-pay .foot-pay-label {
  padding-left: 0;
  background: transparent;
  color: #9fa3aa;
  font-weight: 500;
}
.footer :is(a, button):focus-visible {
  outline-color: rgba(255, 255, 255, 0.72);
}
@media (max-width: 1080px) {
  .foot-shop-panel {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .foot-shop-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 680px) {
  .footer {
    margin-top: 56px;
  }
  .foot-shop-shell {
    transform: none;
    margin-bottom: 0;
    padding: 5px;
    border-radius: 21px;
  }
  .foot-shop-panel {
    gap: 1.5rem;
    padding: 1.55rem;
    border-radius: var(--radius-l);
  }
  .foot-shop-copy h2 {
    font-size: clamp(1.8rem, 9vw, 2.55rem);
    line-height: 1.02;
  }
  .foot-shop-actions {
    grid-template-columns: 1fr;
  }
  .foot-cta {
    width: 100%;
  }
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 48px 0;
  }
  .foot-contact-card {
    padding: 24px;
  }
  .foot-bottom {
    align-items: flex-start;
    flex-direction: column;
    padding-right: 56px;
  }
  .foot-pay {
    align-items: flex-start;
  }
  .foot-pay .foot-pay-label {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .foot-cta,
  .foot-cta-icon,
  .foot-map-link,
  .foot-col a,
  .foot-phone-list a,
  .foot-contact-details a {
    transition: none;
  }
}

/* ---------- REVEAL ANIM ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-d="1"] {
  transition-delay: 0.08s;
}
.reveal[data-d="2"] {
  transition-delay: 0.16s;
}
.reveal[data-d="3"] {
  transition-delay: 0.24s;
}
.reveal[data-d="4"] {
  transition-delay: 0.32s;
}
.reveal[data-d="5"] {
  transition-delay: 0.4s;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-track {
    transition: none;
  }
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--graphite);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}
.mobile-menu.open {
  transform: none;
}
.mm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.mm-head img {
  height: 48px;
  background: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-s);
}
.mm-head button {
  color: #fff;
}
.mobile-menu a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 140%);
  background: var(--graphite);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-l);
  z-index: 200;
  transition: transform 0.4s var(--ease);
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.toast.show {
  transform: translate(-50%, 0);
}
.toast svg {
  width: 20px;
  height: 20px;
  color: #c96a66;
  stroke-width: 2.4;
}

/* ---------- CART DRAWER ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(21, 22, 25, 0.5);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s var(--ease),
    visibility 0.4s var(--ease);
}
.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  width: min(420px, 100vw);
  background: var(--white);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-l);
  transform: translateX(105%);
  transition: transform 0.45s var(--ease);
}
.cart-drawer.open {
  transform: none;
}
.cd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.cd-head h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--graphite);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.cd-count {
  background: var(--brand);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 6px;
}
.cd-close {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-s);
  display: grid;
  place-items: center;
  color: var(--graphite);
  transition: background 0.2s var(--ease);
}
.cd-close:hover {
  background: var(--paper);
}
.cd-close svg {
  width: 20px;
  height: 20px;
}
.cd-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.6rem 1.4rem;
}
.cd-item {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  animation: cdItemIn 0.35s var(--ease);
}
@keyframes cdItemIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
}
.cd-item:last-child {
  border-bottom: none;
}
.cd-item img {
  width: 84px;
  height: 63px;
  object-fit: cover;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.cd-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.cd-item-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.25;
  color: var(--graphite);
}
.cd-item-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand);
}
.cd-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.2rem;
}
.cd-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  overflow: hidden;
}
.cd-qty button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--graphite);
  transition: background 0.2s var(--ease);
}
.cd-qty button:hover {
  background: var(--paper);
}
.cd-qty span {
  min-width: 30px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
}
.cd-remove {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-s);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease);
}
.cd-remove:hover {
  color: var(--brand);
  background: var(--brand-tint);
}
.cd-remove svg {
  width: 17px;
  height: 17px;
}
.cd-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}
.cd-empty svg {
  width: 52px;
  height: 52px;
  color: var(--line);
  margin-bottom: 0.6rem;
}
.cd-empty b {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--graphite);
}
.cd-empty span {
  font-size: 0.88rem;
}
.cart-drawer.has-items .cd-empty {
  display: none;
}
.cart-drawer:not(.has-items) .cd-items,
.cart-drawer:not(.has-items) .cd-foot {
  display: none;
}
.cd-foot {
  border-top: 1px solid var(--line);
  padding: 1.15rem 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--paper);
}
.cd-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}
.cd-total span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.cd-total b {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--graphite);
}
.cd-btn {
  justify-content: center;
  width: 100%;
}
body.drawer-locked {
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .cart-drawer,
  .drawer-overlay {
    transition: none;
  }
  .cd-item {
    animation: none;
  }
}

/* Closed off-canvas elements stay inside the viewport to prevent layout overflow. */
.mobile-menu{transform:none;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .3s var(--ease),visibility .3s var(--ease)}
.mobile-menu.open{transform:none;opacity:1;visibility:visible;pointer-events:auto}
.cart-drawer{transform:none;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .3s var(--ease),visibility .3s var(--ease)}
.cart-drawer.open{transform:none;opacity:1;visibility:visible;pointer-events:auto}

/* ---------- BACK TO TOP ---------- */
.back-to-top[hidden] {
  display: none;
}
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 95;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--graphite);
  color: var(--white);
  box-shadow: var(--shadow-m);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease), transform 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

/* ---------- MOBILE HEADER REFINEMENT ---------- */
.mobile-search {
  display: none;
}

@media (max-width: 1260px) {
  .topbar,
  .nav {
    display: none;
  }

  .header {
    background: rgba(255, 255, 255, 0.98);
  }

  .header .wrap {
    height: 68px;
  }

  .mobile-search {
    display: block;
    padding: 0 18px 12px;
  }

  .mobile-search .woocommerce-product-search {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 44px;
    align-items: center;
    min-height: 48px;
    gap: 10px;
    padding-left: 14px;
    border: 1px solid #d8d6d2;
    border-radius: var(--radius-m);
    background: var(--paper);
  }

  .mobile-search .search-icon {
    color: #62656b;
  }

  .mobile-search .search-field {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: 500 16px/1.2 var(--font-body);
  }

  .mobile-search .search-field::placeholder {
    color: #62656b;
    opacity: 1;
  }

  .mobile-search .woocommerce-product-search:focus-within {
    border-color: var(--brand);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--brand-tint);
  }

  .mobile-search button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 46px;
    border: 0;
    border-radius: calc(var(--radius-m) - 2px);
    background: var(--graphite);
    color: #fff;
  }

  .mobile-search button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .mobile-search .search-btn-label {
    display: none;
  }

  .mobile-menu {
    inset: 0;
    z-index: 999;
    width: 100%;
    max-width: none;
    padding: max(18px, env(safe-area-inset-top)) 18px max(16px, env(safe-area-inset-bottom));
    background: var(--white);
    color: var(--graphite);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    transition: opacity 0.2s var(--ease), visibility 0.2s var(--ease);
  }

  .menu-overlay {
    display: none;
  }

  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .mm-head {
    flex: 0 0 auto;
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }

  .mm-head > div {
    display: grid;
    gap: 2px;
  }

  .mm-head strong {
    font: 800 1.55rem/1 var(--font-display);
    letter-spacing: -0.03em;
  }

  .mm-head span {
    color: var(--muted);
    font-size: 0.82rem;
  }

  .mm-head button {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-s);
    background: var(--paper);
    color: var(--graphite);
  }

  .mm-head button:focus-visible,
  .mobile-menu a:focus-visible,
  .mm-category summary:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
  }

  .mm-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
  }

  .mm-section-title {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
  }

  .mm-categories {
    display: grid;
    gap: 8px;
  }

  .mm-category {
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: var(--white);
    overflow: clip;
  }

  .mm-category[open] {
    border-color: #d2cfca;
    background: var(--paper);
  }

  .mm-category summary {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 8px 12px 8px 8px;
    cursor: pointer;
    list-style: none;
    color: var(--graphite);
    font: 700 1rem/1.2 var(--font-display);
  }

  .mm-category summary::-webkit-details-marker {
    display: none;
  }

  .mm-category summary img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-s);
    object-fit: cover;
  }

  .mm-category summary svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.2s var(--ease);
  }

  .mm-category[open] summary svg {
    transform: rotate(180deg);
  }

  .mm-subcategories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 12px 12px 68px;
  }

  .mobile-menu .mm-subcategories a {
    min-height: 44px;
    padding: 11px 8px 11px 0;
    border: 0;
    color: var(--graphite);
    font: 600 0.88rem/1.35 var(--font-body);
  }

  .mobile-menu .mm-subcategories .mm-all-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--brand);
    font-weight: 800;
  }

  .mobile-menu .mm-subcategories a[class*="mm-depth-"] {
    padding-left: 16px;
    color: var(--muted);
  }

  .mm-all-link svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .mm-links {
    display: block;
    margin-top: 14px;
    padding: 0;
    overflow: clip;
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: var(--white);
    list-style: none;
  }

  .mm-links li {
    display: block;
  }

  .mm-links li + li,
  .mm-links > a + a {
    border-top: 1px solid var(--line);
  }

  .mobile-menu .mm-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 14px;
    border: 0;
    border-radius: 0;
    color: var(--graphite);
    font: 700 0.88rem/1.25 var(--font-body);
    text-align: left;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
  }

  .mobile-menu .mm-links a:hover {
    background: var(--brand-tint);
    color: var(--brand);
  }

  .mobile-menu .mm-links a:focus-visible {
    outline-offset: -3px;
  }

  .mm-contact {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-m);
    background: var(--graphite);
    color: #fff;
  }

  .mm-contact span {
    color: #d8d9dc;
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .mobile-menu .mm-contact a {
    flex-shrink: 0;
    min-height: 44px;
    padding: 12px 16px;
    border: 0;
    border-radius: var(--radius-s);
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 18px -10px rgba(150, 33, 31, 0.8);
    font: 800 0.9rem/1.2 var(--font-body);
    text-align: center;
    transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  }

  .mobile-menu .mm-contact a:hover {
    background: var(--brand-dark);
    box-shadow: 0 10px 22px -10px rgba(150, 33, 31, 0.9);
  }

  .mobile-menu .mm-contact a:active {
    transform: translateY(1px);
  }
}

@media (max-width: 359px) {
  .mobile-search {
    padding-right: 12px;
    padding-left: 12px;
  }

  .mm-contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-menu .mm-contact a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mm-category summary svg {
    transition: none;
  }
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top svg {
  width: 22px;
  height: 22px;
}
.back-to-top:hover {
  background: var(--brand);
}
.back-to-top:active {
  transform: translateY(2px);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
/* Nie zasłaniaj paska zakupu na karcie produktu ani otwartych paneli. */
body.pdp-bar-on .back-to-top {
  bottom: 88px;
}
body.drawer-locked .back-to-top,
body.qv-locked .back-to-top,
body.shop-filters-open .back-to-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 768px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
  body.pdp-bar-on .back-to-top {
    bottom: 80px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
  .back-to-top:active {
    transform: none;
  }
}
