/*
Theme Name: Sidelsky Print Catalog
Theme URI: https://sidelsky-print.local/
Author: Sidelsky Print Company
Author URI: https://sidelsky-print.local/
Description: Mobile-first multilingual WooCommerce print catalog theme for Sidelsky Print Company, with WhatsApp ordering and RTL Hebrew support.
Version: 1.1.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sidelsky-print-catalog
*/

:root {
  --bg: #f7f4ee;
  --paper: #fffdfa;
  --ink: #151515;
  --muted: #6f6a62;
  --line: rgba(21, 21, 21, 0.12);
  --soft: #ebe6dc;
  --shadow: 0 22px 60px rgba(25, 24, 22, 0.1);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.9), transparent 24rem),
    radial-gradient(circle at 88% 18%, rgba(227, 218, 202, 0.5), transparent 28rem),
    linear-gradient(180deg, #f8f5ef 0%, #f3eee5 48%, #f8f5ef 100%);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 26% 36%, rgba(255, 255, 255, 0.44), transparent 15rem),
    radial-gradient(circle at 76% 68%, rgba(214, 206, 190, 0.3), transparent 18rem);
  opacity: 0.8;
  animation: soft-drift 16s ease-in-out infinite alternate;
}

html[lang="he"] body {
  font-family: Rubik, "Rubik Light", "Segoe UI", Arial, sans-serif;
  font-weight: 300;
}

html[lang="he"] h1,
html[lang="he"] h2,
html[lang="he"] h3,
html[lang="he"] .category-card h3,
html[lang="he"] .product-card h3,
html[lang="he"] .sheet-copy h2 {
  font-weight: 400;
}

html[lang="he"] .sheet-copy p,
html[lang="he"] .option-row button,
html[lang="he"] legend,
html[lang="he"] .notes-field span,
html[lang="he"] .upload-field span,
html[lang="he"] .price-box span {
  font-weight: 300;
}

.hero,
.owner,
.hero-actions,
.owner-facts,
.featured-grid,
.category-grid,
.product-grid,
.products-heading,
.featured-card,
.category-card,
.product-card,
.sheet-card,
.sheet-gallery,
.thumbs,
.help,
.footer {
  direction: ltr;
}

html[dir="rtl"] .hero-copy,
html[dir="rtl"] .owner-copy,
html[dir="rtl"] .section-heading,
html[dir="rtl"] .category-card-body,
html[dir="rtl"] .product-card-body,
html[dir="rtl"] .sheet-copy,
html[dir="rtl"] fieldset,
html[dir="rtl"] .price-box,
html[dir="rtl"] .notes-field,
html[dir="rtl"] .upload-field,
html[dir="rtl"] .help > div {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .price-box {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .hero-copy,
html[dir="ltr"] .owner-copy,
html[dir="ltr"] .section-heading,
html[dir="ltr"] .category-card-body,
html[dir="ltr"] .product-card-body,
html[dir="ltr"] .sheet-copy,
html[dir="ltr"] fieldset,
html[dir="ltr"] .price-box,
html[dir="ltr"] .notes-field,
html[dir="ltr"] .upload-field,
html[dir="ltr"] .help > div {
  direction: ltr;
  text-align: left;
}

@keyframes soft-drift {
  from {
    transform: translate3d(-1rem, -0.5rem, 0) scale(1);
  }

  to {
    transform: translate3d(1rem, 0.7rem, 0) scale(1.035);
  }
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  direction: ltr;
  gap: 0.75rem;
  align-items: center;
  min-height: 4.2rem;
  padding: 0.65rem max(0.85rem, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
  background: rgba(247, 244, 238, 0.86);
  backdrop-filter: blur(18px);
}

:target {
  scroll-margin-top: 5rem;
}

.brand {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  white-space: nowrap;
  direction: ltr;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: #151515;
  color: #fff;
  font-size: 0.72rem;
}

.top-nav {
  display: none;
  direction: ltr;
  text-align: center;
}

.header-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-end;
  direction: ltr;
}

.language-switcher {
  display: inline-flex;
  flex-direction: row;
  gap: 0.15rem;
  direction: ltr;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem;
  background: rgba(255, 255, 255, 0.7);
}

.language-switcher button,
.language-switcher a {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.48rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
}

.language-switcher button.is-active,
.language-switcher a.is-active {
  background: #151515;
  color: #fff;
}

.whatsapp-mini {
  display: inline-flex;
  min-width: 7.7rem;
  justify-content: center;
  direction: ltr;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.55rem;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 650;
}

.section {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding: 1.2rem 0.9rem;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

[dir="rtl"] .eyebrow {
  text-transform: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 0.8rem;
  font-size: clamp(2.65rem, 13vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 600;
}

h2 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.75rem, 7vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 550;
}

h3 {
  margin-bottom: 0.35rem;
  font-size: 1.08rem;
  line-height: 1.05;
  font-weight: 600;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.hero {
  display: grid;
  gap: 1rem;
  padding-top: 1.05rem;
}

.hero-copy {
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(1.2rem, 6vw, 4rem);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-copy p:not(.eyebrow) {
  max-width: 34rem;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 1px solid #151515;
  border-radius: 999px;
  padding: 0.85rem 1.05rem;
  background: #151515;
  color: #fff;
  cursor: pointer;
  font-weight: 650;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, color 220ms ease;
}

.button-soft {
  background: transparent;
  color: #151515;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(21, 21, 21, 0.42);
  outline-offset: 3px;
}

.hero-media,
.owner-photo {
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  background: #ece7dc;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  min-height: 18rem;
  object-fit: cover;
}

.owner {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.75rem;
  border-radius: calc(var(--radius) + 10px);
  padding: 0.85rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.owner-photo img {
  width: 100%;
  height: 100%;
  min-height: 26rem;
  max-height: 34rem;
  object-fit: cover;
  object-position: center 12%;
}

.owner-copy {
  padding: 0.35rem 0.2rem 0;
  background: transparent;
}

.owner-copy h2 {
  max-width: 12ch;
  font-size: clamp(2.15rem, 11vw, 5rem);
}

.owner-copy p:not(.eyebrow) {
  max-width: 41rem;
  margin-bottom: 0.9rem;
}

.owner-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 1rem 0 0;
}

.owner-facts div {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.8rem;
  background: #fff;
}

.owner-facts dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.owner-facts dd {
  margin: 0.2rem 0 0;
  font-weight: 600;
}

.section-heading {
  margin-bottom: 0.9rem;
}

.section-heading p:not(.eyebrow) {
  max-width: 38rem;
}

.featured-grid,
.category-grid,
.product-grid {
  display: grid;
  gap: 0.85rem;
}

.featured-card,
.category-card,
.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: var(--radius);
  padding: 0;
  background: var(--paper);
  color: inherit;
  text-align: start;
  box-shadow: 0 10px 30px rgba(25, 24, 22, 0.07);
  cursor: pointer;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.featured-card {
  display: grid;
  min-height: 19rem;
}

.featured-card img,
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease, filter 700ms ease;
}

.featured-card img {
  position: absolute;
  inset: 0;
}

.featured-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.72));
}

.featured-card div {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: 1rem;
  color: #fff;
}

.featured-card span,
.product-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.45rem;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  background: rgba(255, 255, 255, 0.82);
  color: #151515;
  font-size: 0.72rem;
  font-weight: 500;
}

.featured-card h3 {
  margin: 0;
  color: #fff;
  font-size: 2rem;
  font-weight: 550;
}

.featured-card p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.category-grid {
  grid-template-columns: 1fr;
}

.category-card {
  display: grid;
  min-height: 17.5rem;
  isolation: isolate;
  background: var(--paper);
}

.category-card::before {
  position: absolute;
  inset: 0.9rem;
  z-index: 2;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: calc(var(--radius) - 6px);
  background:
    radial-gradient(circle at 86% 16%, rgba(255, 255, 255, 0.88) 0 3px, transparent 4px),
    radial-gradient(circle at 91% 16%, rgba(255, 255, 255, 0.56) 0 3px, transparent 4px),
    linear-gradient(90deg, transparent 0 70%, rgba(255, 255, 255, 0.36) 70% 70.35%, transparent 70.35%),
    linear-gradient(0deg, transparent 0 28%, rgba(255, 255, 255, 0.26) 28% 28.35%, transparent 28.35%);
  opacity: 0.88;
}

.category-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 24%, rgba(0, 0, 0, 0.76) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent 56%);
}

.category-card img {
  position: absolute;
  inset: 0;
  filter: saturate(0.92) contrast(1.06);
  transform: scale(1.01);
}

.category-card-body {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: end;
  padding: 1rem;
}

.category-card h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: clamp(1.48rem, 7vw, 2.45rem);
  font-weight: 520;
  line-height: 1.02;
  letter-spacing: -0.02em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-card p {
  display: -webkit-box;
  max-width: 28rem;
  margin: 0.42rem 0 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.products[hidden] {
  display: none;
}

.products {
  padding-top: 0.4rem;
}

.back-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  background: #fff;
  cursor: pointer;
  font-weight: 550;
}

.product-card {
  display: grid;
  min-height: 18rem;
  isolation: isolate;
  background: #151515;
}

.product-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.01) 42%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.14), transparent 60%);
}

.product-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.04);
  transition: transform 700ms ease, filter 700ms ease;
}

.product-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: end;
  padding: 1rem;
  color: #fff;
}

.product-card h3 {
  max-width: 12ch;
  margin: 0;
  color: #fff;
  font-size: clamp(1.34rem, 6vw, 2rem);
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.015em;
}

.product-card p {
  display: -webkit-box;
  margin: 0.34rem 0 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.help {
  position: relative;
  display: grid;
  gap: 1rem;
  width: min(880px, calc(100% - 1.8rem));
  overflow: hidden;
  margin: 0.6rem auto 1.2rem;
  border-radius: calc(var(--radius) + 14px);
  padding: clamp(1.05rem, 4vw, 1.75rem);
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 255, 255, 0.12), transparent 14rem),
    linear-gradient(135deg, #121212 0%, #1b1a18 58%, #2b2925 100%);
  color: #fff;
}

.help::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(255, 255, 255, 0.08) 48% 48.15%, transparent 48.15%),
    radial-gradient(circle at 90% 22%, rgba(235, 230, 220, 0.16), transparent 10rem);
  opacity: 0.75;
}

.help > * {
  position: relative;
  z-index: 1;
}

.help h2 {
  max-width: 17ch;
  margin-bottom: 0.45rem;
  color: #fff;
  font-size: clamp(1.85rem, 5.2vw, 3.25rem);
  line-height: 1;
}

.help p,
.help .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.help .button {
  border-color: #fff;
  background: #fff;
  color: #151515;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  padding: 1.3rem 0.9rem 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-sheet {
  width: min(54rem, calc(100vw - 0.65rem));
  max-height: calc(100dvh - 0.65rem);
  overflow: hidden;
  border: 0;
  padding: 0;
  background: transparent;
}

.detail-sheet::backdrop {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.sheet-card {
  position: relative;
  display: grid;
  gap: 0.62rem;
  max-height: calc(100dvh - 0.65rem);
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 28px;
  padding: 0.62rem;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
  scrollbar-width: thin;
}

.detail-sheet[open] .sheet-card {
  animation: sheet-in 260ms ease both;
}

.sheet-close {
  position: absolute;
  top: 0.7rem;
  inset-inline-end: 0.7rem;
  z-index: 3;
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 300;
}

.sheet-gallery {
  display: grid;
  gap: 0.48rem;
}

.detail-media,
.detail-media img,
.detail-media video {
  width: 100%;
  aspect-ratio: 1 / 0.76;
  border-radius: 22px;
}

.detail-media {
  overflow: hidden;
  background: #151515;
}

.detail-media img,
.detail-media video {
  display: block;
  height: 100%;
  object-fit: cover;
}

.thumbs {
  display: flex;
  justify-content: flex-end;
  gap: 0.38rem;
  overflow-x: auto;
  padding-inline: 0.1rem;
}

.thumbs button {
  flex: 0 0 3.55rem;
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.14);
  border-radius: 12px;
  padding: 0;
  background: #fff;
  opacity: 0.78;
}

.thumbs button.is-active {
  border-color: #151515;
  opacity: 1;
}

.thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.video-thumb {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  background: #151515;
  color: #fff;
  font-weight: 500;
}

.sheet-copy h2 {
  margin-bottom: 0.28rem;
  font-size: clamp(1.65rem, 7vw, 2.45rem);
  font-weight: 550;
  letter-spacing: -0.025em;
}

.sheet-copy .eyebrow {
  margin-bottom: 0.22rem;
  font-size: 0.68rem;
}

.sheet-copy p {
  display: -webkit-box;
  margin-bottom: 0.15rem;
  overflow: hidden;
  color: rgba(21, 21, 21, 0.58);
  font-size: 0.96rem;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  border-radius: 18px;
  padding: 0.48rem 0.56rem;
  background: rgba(235, 230, 220, 0.3);
}

legend,
.notes-field span,
.upload-field span,
.price-box span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.option-row {
  display: flex;
  direction: ltr;
  gap: 0.4rem;
  justify-content: flex-start;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}

.option-row button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.44rem 0.72rem;
  background: #fff;
  cursor: pointer;
  color: rgba(21, 21, 21, 0.82);
  font-weight: 500;
}

.option-row button.is-active {
  border-color: #151515;
  background: #151515;
  color: #fff;
}

.custom-quantity-input {
  width: min(12rem, 100%);
  margin-top: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.54rem 0.78rem;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  outline: none;
}

.custom-quantity-input:focus {
  border-color: #151515;
  box-shadow: 0 0 0 3px rgba(21, 21, 21, 0.08);
}

.price-box {
  display: flex;
  direction: ltr;
  align-items: center;
  justify-content: space-between;
  border-radius: 18px;
  padding: 0.62rem 0.78rem;
  background: var(--soft);
}

.price-box span {
  margin: 0;
}

.price-box strong {
  font-size: 1.18rem;
  font-weight: 600;
}

.notes-field,
.upload-field {
  display: grid;
}

textarea,
input[type="file"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.64rem;
  background: #fff;
  font-weight: 400;
}

.sheet-whatsapp {
  width: 100%;
  min-height: 2.85rem;
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(0.75rem) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (hover: hover) {
  .featured-card:hover,
  .category-card:hover,
  .product-card:hover {
    border-color: rgba(21, 21, 21, 0.18);
    box-shadow: 0 18px 50px rgba(25, 24, 22, 0.14);
    transform: translateY(-3px);
  }

  .featured-card:hover img,
  .category-card:hover img,
  .product-card:hover img {
    filter: saturate(1.03) contrast(1.08);
    transform: scale(1.035);
  }

  .button:hover {
    box-shadow: 0 10px 24px rgba(21, 21, 21, 0.14);
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (min-width: 720px) {
  .detail-sheet {
    width: min(66rem, calc(100vw - 1.4rem));
  }

  .sheet-card {
    grid-template-columns: minmax(0, 1.18fr) minmax(20rem, 0.82fr);
    align-items: start;
    gap: 0.62rem 1rem;
    padding: 0.78rem;
  }

  .sheet-gallery {
    position: sticky;
    top: 0.78rem;
    grid-column: 1;
    grid-row: 1 / span 8;
  }

  .detail-media,
  .detail-media img,
  .detail-media video {
    aspect-ratio: 1 / 0.86;
    border-radius: 24px;
  }

  .sheet-copy {
    grid-column: 2;
    align-self: end;
    padding-top: 0.35rem;
  }

  .sheet-copy h2 {
    max-width: 11ch;
    font-size: clamp(2.15rem, 4.4vw, 3.65rem);
    line-height: 0.96;
  }

  .sheet-copy p {
    -webkit-line-clamp: 2;
  }

  .sheet-card fieldset,
  .price-box,
  .notes-field,
  .upload-field,
  .sheet-whatsapp {
    grid-column: 2;
  }

  .top-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    justify-content: center;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 550;
  }

  .whatsapp-mini {
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
  }

  .section {
    padding: 2.2rem 1.2rem;
  }

  .hero,
  .owner {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: stretch;
  }

  .owner-photo {
    order: 2;
  }

  .owner-photo img {
    min-height: 0;
    max-height: none;
  }

  .owner-copy {
    display: grid;
    align-content: center;
    padding: 2rem;
  }

  .hero-actions {
    grid-template-columns: auto auto;
    justify-content: start;
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-card {
    min-height: 22rem;
  }

  .category-card p {
    display: -webkit-box;
    margin: 0.25rem 0 0;
    overflow: hidden;
    font-size: 0.82rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    grid-template-columns: 1fr;
    min-height: 20rem;
  }

  .product-card img {
    height: 100%;
  }

  .help {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (max-width: 390px) {
  .brand span:last-child {
    display: none;
  }

  .category-grid {
    gap: 0.62rem;
  }
}

@media (max-width: 560px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 0.45rem;
    min-height: 3.65rem;
    padding-block: 0.48rem;
  }

  .brand span:last-child {
    max-width: 9.5rem;
    overflow: hidden;
    font-size: 0.76rem;
    text-overflow: ellipsis;
  }

  .header-actions {
    gap: 0.34rem;
  }

  .language-switcher button,
  .language-switcher a {
    width: 1.95rem;
    padding-inline: 0.35rem;
  }

  .whatsapp-mini {
    min-width: auto;
    padding-inline: 0.48rem;
  }

  .owner,
  .hero-copy,
  .help {
    border-radius: 24px;
  }

  .category-card {
    min-height: 16.5rem;
  }

  .product-card {
    min-height: 16.25rem;
  }

  .category-card h3 {
    font-size: clamp(1.75rem, 10vw, 2.65rem);
  }
}

.woo-catalog-page .catalog {
  padding-bottom: 0.6rem;
}

.woo-category-strip {
  margin-top: 1rem;
}

.archive-description p,
.woo-result-count,
.catalog-empty p {
  color: var(--muted);
  line-height: 1.55;
}

.catalog-empty {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.72);
}

.product-card.woocommerce {
  text-decoration: none;
}

.woo-product-price {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.58rem;
  border-radius: 999px;
  padding: 0.32rem 0.62rem;
  background: rgba(255, 255, 255, 0.9);
  color: #151515;
  font-size: 0.82rem;
  font-weight: 650;
}

.woo-product-price del {
  margin-inline-end: 0.35rem;
  color: rgba(21, 21, 21, 0.48);
  font-weight: 500;
}

.woocommerce-pagination,
.catalog-pagination {
  display: flex;
  justify-content: center;
  margin-top: 1.2rem;
}

.woocommerce-pagination ul,
.page-numbers {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-pagination a,
.woocommerce-pagination span,
.page-numbers a,
.page-numbers span {
  display: grid;
  min-width: 2.35rem;
  min-height: 2.35rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #151515;
  font-weight: 600;
}

.woocommerce-pagination .current,
.page-numbers .current {
  border-color: #151515;
  background: #151515;
  color: #fff;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(25, 24, 22, 0.06);
  list-style: none;
}

.single-product-layout {
  display: grid;
  gap: 1rem;
}

.single-product-gallery,
.single-product-summary {
  min-width: 0;
}

.single-product-gallery .detail-media {
  box-shadow: var(--shadow);
}

.single-product-gallery .thumbs {
  margin-top: 0.55rem;
}

.single-product-gallery .thumbs a {
  flex: 0 0 4rem;
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.14);
  border-radius: 12px;
  background: #fff;
}

.single-product-gallery .thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.single-product-summary {
  border-radius: calc(var(--radius) + 10px);
  padding: clamp(1rem, 4vw, 2rem);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.single-product-summary h1 {
  max-width: 12ch;
  margin-bottom: 0.7rem;
  font-size: clamp(2.3rem, 10vw, 5rem);
}

.single-product-price {
  margin-bottom: 0.9rem;
  font-size: 1.45rem;
  font-weight: 700;
}

.single-product-price del {
  margin-inline-end: 0.5rem;
  color: var(--muted);
  font-weight: 500;
}

.single-product-excerpt {
  max-width: 42rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.single-product-attributes {
  margin: 1rem 0;
  border-radius: 18px;
  padding: 0.85rem;
  background: rgba(235, 230, 220, 0.35);
}

.single-product-attributes h2 {
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.single-product-attributes table {
  width: 100%;
  border-collapse: collapse;
}

.single-product-attributes th,
.single-product-attributes td {
  border-top: 1px solid var(--line);
  padding: 0.6rem 0;
  text-align: start;
  vertical-align: top;
}

.single-product-attributes th {
  width: 34%;
  color: var(--muted);
  font-weight: 600;
}

.single-product-actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.single-product-actions form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.single-product-actions .quantity input {
  width: 5.5rem;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 0.8rem;
  background: #fff;
}

.single_add_to_cart_button,
.single-product-actions .button {
  min-height: 3rem;
  border: 1px solid #151515;
  border-radius: 999px;
  padding: 0.85rem 1.05rem;
  background: #151515;
  color: #fff;
  cursor: pointer;
  font-weight: 650;
}

.single-product-actions .button-soft {
  background: transparent;
  color: #151515;
}

.variations {
  width: 100%;
  margin-bottom: 0.6rem;
}

.variations th,
.variations td {
  display: block;
  padding: 0.25rem 0;
  text-align: start;
}

.variations select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 0.9rem;
  background: #fff;
}

.single-product-description {
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

@media (min-width: 720px) {
  .single-product-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
    align-items: start;
  }

  .single-product-gallery {
    position: sticky;
    top: 5.4rem;
  }

  .single-product-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}
