:root {
  font-family: system-ui, "Segoe UI", sans-serif; color: #222321; background: #f7f5f0;
  --accent: #344939; --soft: #f3e7e3; --border: #dedbd2; --muted: #5c6057;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #526b50; outline-offset: 2px; }
.topbar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 12px max(16px, calc((100vw - 1152px) / 2)); background: #f7f5f0; border-bottom: 1px solid var(--border); }
.brand { font-size: 1.55rem; font-weight: 850; letter-spacing: -.07em; color: #222321; text-decoration: none; }
.brand span, .price { color: var(--accent); }
.cart-button, .primary { color: white; background: var(--accent); border: 1px solid var(--accent);
  padding: 9px 14px; min-height: 42px; font-weight: 750; border-radius: 9px; }
.cart-button span { display: inline-block; margin-left: 5px; min-width: 1.75em; border-radius: 99px;
  text-align: center; padding: 2px 5px; background: white; color: var(--accent); }
.quiet { background: white; border: 1px solid var(--border); color: #2e382d; border-radius: 9px; padding: 8px 12px; min-height: 40px; }
main { max-width: 1184px; margin: 0 auto; padding: 21px 16px 36px; }
.heading, .sheet-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.6rem, 5vw, 2.35rem); letter-spacing: -.045em; }
.filters { display: flex; gap: 12px; margin: 14px 0; flex-wrap: wrap; }
.filters label { display: grid; gap: 5px; font-size: .86rem; font-weight: 650; color: var(--muted); }
.filters .search { flex: 1; min-width: 150px; }
input, select { min-width: 0; background: white; border: 1px solid #bcbeb4; border-radius: 9px; padding: 9px 11px; min-height: 42px; color: #222321; }
#status { margin-bottom: 13px; color: var(--muted); }
#status:empty { display: none; }
.catalog { display: grid; gap: clamp(9px, 2vw, 16px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 205px), 1fr)); }
.card { background: white; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; min-width: 0; display: flex; flex-direction: column; }
.photo { display: block; padding: 0; background: #edece5; border: 0; width: 100%; }
.photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.card-body { padding: 11px; display: flex; flex-direction: column; flex-grow: 1; gap: 6px; }
.card h2 { font-size: 1rem; overflow-wrap: anywhere; line-height: 1.25; }
.product-link { font: inherit; color: inherit; text-align: left; padding: 0; border: 0; background: none; }
.details { color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stock { font-size: .85rem; color: #176046; font-weight: 650; }
.out { color: #884657; }
.card .price { margin-top: auto; padding-top: 3px; }
.price { font-size: 1.15rem; font-weight: 800; }
.card .primary { padding-inline: 5px; margin-top: 2px; width: 100%; }
.overlay { position: fixed; z-index: 2; inset: 0; background: #1f251ec0; display: grid; place-items: end center; }
.sheet { width: min(610px,100%); max-height: 92vh; overflow: auto; background: #f7f5f0;
  border-radius: 20px 20px 0 0; padding: 18px 16px max(20px, env(safe-area-inset-bottom)); }
.sheet h2 { font-size: 1.3rem; overflow-wrap: anywhere; }
.sheet-heading { padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.sheet-body { margin-top: 14px; display: grid; gap: 10px; }
.product-media { margin-top: 14px; }
.media-track { overflow: hidden; border-radius: 12px; background: #edece5;
  touch-action: pan-y; touch-action: pan-y pinch-zoom; }
.media-slide { position: relative; display: grid; place-items: center; min-width: 0; height: clamp(190px, 48vh, 440px); }
.media-slide img, .media-slide video { display: block; width: 100%; height: 100%; object-fit: contain; }
.media-slide img { user-select: none; -webkit-user-select: none; }
.media-slide video { background: #1f191d; }
.media-error { position: absolute; left: 12px; top: 12px; color: white; background: #241a21; padding: 8px; border-radius: 6px; }
.media-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 8px;
  color: var(--muted); font-variant-numeric: tabular-nums; }
.media-controls button { width: 44px; height: 44px; padding: 0; font-size: 1.5rem; }
.sheet-body .details { white-space: pre-wrap; }
.line { display: grid; grid-template-columns: minmax(0,1fr) 84px auto; gap: 8px; align-items: end; }
.line + .line { border-top: 1px solid var(--border); padding-top: 10px; }
.line-name { font-weight: 730; overflow-wrap: anywhere; }
.line label { display: grid; gap: 4px; min-width: 0; font-size: .8rem; }
.total { padding-top: 13px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 8px; font-weight: 800; }
.error { color: #8d153a; background: var(--soft); padding: 9px; border-radius: 8px; }
@media (max-width: 500px) {
  .catalog { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .card-body { padding: 9px; }
  .card .primary { font-size: .85rem; }
}
@media (min-width: 740px) {
  .overlay { place-items: center; }
  .sheet { border-radius: 20px; max-height: 85vh; }
}

:root {
  color: #231e26; background: #f6f4f7;
  --accent: #9d321b; --soft: #fff0e9; --border: #e9e3e9; --muted: #625967;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.topbar {
  background: #fff; gap: clamp(12px, 3vw, 36px); padding-block: 14px;
  padding-inline: max(16px, calc((100% - 1248px) / 2));
}
.brand { flex: none; font-size: clamp(1.15rem, 3.5vw, 1.75rem); letter-spacing: -.06em; color: #271b2d; }
.brand span { color: var(--accent); }
.search { position: relative; flex: 1; min-width: 0; }
.search input { width: 100%; min-height: 46px; padding: 8px 12px 8px 43px; background: #f6f3f7; border-color: var(--border); }
.search-icon {
  pointer-events: none; position: absolute; width: 14px; height: 14px; left: 16px; top: 14px;
  border: 2px solid var(--muted); border-radius: 50%;
}
.search-icon::after { content: ""; position: absolute; width: 7px; height: 2px; left: 9px; top: 10px; background: currentColor; transform: rotate(45deg); color: var(--muted); }
.cart-button { flex: none; background: #2e2036; border-color: #2e2036; }
.cart-button span { color: #2e2036; }
main { max-width: 1280px; padding-top: 18px; min-height: 74vh; }
.collection {
  position: relative; isolation: isolate; display: flex; align-items: center; overflow: hidden;
  border-radius: 20px; min-height: clamp(220px, 28vw, 330px);
  margin-bottom: clamp(22px, 4vw, 40px); background: linear-gradient(115deg,#33213e 25%,#623957 64%,#c96849);
  color: #fff8f3;
}
.collection-inner { padding: clamp(24px, 6vw, 72px); }
.collection h1 { font-size: clamp(2.5rem, 7vw, 5rem); line-height: .96; letter-spacing: -.07em; }
.collection a {
  display: inline-flex; align-items: center; gap: .85em; margin-top: 22px; padding: 10px 14px;
  border-radius: 8px; background: #ffe3d0; color: #342037; text-decoration: none; font-weight: 750;
}
.hero-art {
  position: absolute; z-index: -1; right: 8%; width: clamp(130px,29vw,350px); aspect-ratio: 1;
  display: grid; place-items: center; border: 1px solid #fff4; border-radius: 50%;
  box-shadow: 0 0 0 24px #fff1, 0 0 0 54px #fff1;
  color: #ffe3d0; background: radial-gradient(circle at 30% 25%,#e6a28230,#87464d00);
}
.hero-art span { font-size: clamp(5rem,20vw,16rem); line-height: 1; font-weight: 850; opacity: .55; transform: rotate(-12deg); }
html { scroll-padding-top: 128px; }
.heading { margin-bottom: 14px; flex-wrap: wrap; }
.heading h2 { font-size: clamp(1.4rem, 4vw, 2rem); letter-spacing: -.045em; }
.catalog-controls { display: flex; gap: 8px; align-items: center; max-width: 100%; }
.catalog-controls select { max-width: min(50vw, 230px); }
.quiet, .catalog-controls select { border-color: var(--border); color: #382742; }
#status { padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.catalog { grid-template-columns: repeat(auto-fill,minmax(min(100%,185px),1fr)); gap: 12px; }
.card { border-radius: 12px; transition: border-color .15s ease, box-shadow .15s ease; }
.card:hover, .card:focus-within { border-color: #cdbbc9; box-shadow: 0 6px 16px #2e203612; }
.photo { background: #f4f0f4; }
.photo img { aspect-ratio: 1; }
.card-body { padding: 12px; gap: 7px; }
.card .price { color: var(--accent); font-size: 1.25rem; }
.card .primary:disabled { color: #625967; background: #f1edf1; border-color: #f1edf1; opacity: 1; }
.sheet { background: #fff; }
footer { padding: 24px 16px; text-align: center; background: #fff; border-top: 1px solid var(--border); }
footer a { color: #2e2036; font-weight: 750; text-decoration: none; }
@media (max-width: 620px) {
  .topbar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding-block: 9px; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .cart-button { grid-column: 2; grid-row: 1; }
  .hero-art { right: -18px; opacity: .52; }
  .catalog { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .card-body { padding: 9px; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }
.product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; }
.card .product-price { margin-top: auto; padding-top: 3px; }
.card .product-price .price { margin: 0; padding: 0; }
.original-price { color: #504656; font-size: 1.075rem; font-weight: 650; line-height: 1.25; white-space: nowrap; text-decoration-thickness: 1px; }
.product-details .original-price { font-size: 1.3rem; }
.variant-label { font-weight: 750; }
.variant-options { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.variant-color, .variant-size {
  border: 1px solid var(--border); color: #2e2036; background: #fff;
  border-radius: 8px; overflow: hidden; padding: 0; min-height: 40px;
}
.variant-color { width: 76px; display: flex; flex-direction: column; justify-content: center; }
.variant-color img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f4f0f4; }
.variant-color span { display: block; width: 100%; padding: 6px 3px; font-size: .83rem; overflow-wrap: anywhere; }
.variant-size { border-radius: 99px; padding: 6px 14px; }
.variant-options [aria-pressed="true"] { border-color: #623957; box-shadow: inset 0 0 0 1px #623957; background: #f7f0f6; }
.variant-size:disabled { text-decoration: line-through; }

.product-details { gap: 12px; align-content: start; }
.product-details > .product-price { margin: 0; }
.product-details > .product-price .price { font-size: 1.75rem; line-height: 1.1; }
.product-details > .primary { min-height: 46px; border-radius: 12px; }
.product-description { border-top: 1px solid var(--border); padding-top: 12px; }
.product-description summary { cursor: pointer; font-weight: 650; color: #382742; }
.product-description p { margin-top: 8px; }
.variant-color { width: 84px; justify-content: flex-start; }
.variant-color:not(:has(img)) { justify-content: center; }
.variant-color img { height: 84px; object-fit: contain; }
.variant-color span { padding: 7px 4px; }
.variant-options [aria-pressed="true"] { outline: 2px solid #623957; outline-offset: -2px; }
@media (min-width: 840px) {
  .sheet:has(.product-media) { width: min(950px, calc(100% - 32px)); }
  #sheet-content:has(.product-media) { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; }
}
.hero-motion { position:absolute; z-index:-1; right:7%; width:min(41%,390px); }
.hero-motion img { width:100%; height:auto; display:block; border-radius:38%; mask-image:radial-gradient(ellipse,#000 52%,transparent 76%); }
.language { min-height:42px; background:#fff; font-weight:700; padding-inline:9px; border-color:var(--border); }
.cart-button .cart-label { margin:0; padding:0; background:none; color:inherit; }
@media (max-width:620px) {
  .topbar { grid-template-columns:minmax(0,1fr) auto auto; }
  .language { grid-column:3; grid-row:1; min-height:38px; }
  .cart-button { min-height:38px; padding-inline:8px; }
  .hero-motion { right:0; width:47%; opacity:.66; }
}

.collection::before, .collection::after {
  content: ""; position: absolute; pointer-events: none; z-index: -2;
}
.collection::before {
  width: 160px; height: 175%; top: -35%; left: -22%;
  background: linear-gradient(90deg, transparent, #ffcc9733, transparent);
  transform: rotate(28deg);
  animation: banner-sweep 7s ease-in-out infinite;
}
.collection::after {
  width: 65%; height: 135%; right: -18%; top: -30%;
  border-radius: 50%; background: radial-gradient(ellipse, #ffa56c66, transparent 69%);
  animation: banner-glow 4s ease-in-out infinite alternate;
}
.hero-motion { animation: banner-float 3s ease-in-out infinite; }
@keyframes banner-sweep {
  0% { left: -22%; }
  55%, 100% { left: 115%; }
}
@keyframes banner-glow {
  from { transform: scale(.86); opacity: .42; }
  to { transform: scale(1.18); opacity: .96; }
}
@keyframes banner-float {
  0%, 100% { transform: translateY(6px) rotate(-3deg); }
  50% { transform: translateY(-13px) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .collection::before, .collection::after, .hero-motion { animation: none; }
}
.collection:has(.hero-ads:not([hidden])) .hero-motion { display:none; }
.hero-ads { position:absolute; right:8%; width:min(34%,290px); display:grid; justify-items:center; gap:8px; }
.hero-product { width:100%; padding:0; color:#39243f; background:#fff5ef; border:2px solid #ffe3ce; border-radius:18px; overflow:hidden; box-shadow:0 18px 34px #20132675; }
.hero-product img { display:block; width:100%; height:clamp(115px,18vw,215px); object-fit:contain; background:#f4eef3; animation:hero-photo-enter .28s ease-out both; }
.hero-ad-name { display:flex; align-items:center; justify-content:space-between; gap:5px; padding:8px 10px; font-size:.81rem; font-weight:750; text-align:left; }
.hero-ad-price { white-space:nowrap; color:#9d321b; }
.hero-ad-controls { display:flex; gap:8px; }
.hero-ad-controls button { display:grid; place-items:center; width:36px; height:34px; border:1px solid #fff7; border-radius:9px; color:#fff; background:#39243f; font-weight:800; }
@keyframes hero-photo-enter { from { opacity:.58; transform:translateX(13px) scale(.98); } to { opacity:1; transform:none; } }
@media (max-width:620px) {
  .hero-ads { right:12px; width:36%; }
  .collection:has(.hero-ads:not([hidden])) .collection-inner { max-width:63%; padding-inline:16px; }
  .collection:has(.hero-ads:not([hidden])) h1 { font-size:clamp(1.5rem,6.7vw,2.55rem); overflow-wrap:anywhere; }
  .hero-product { border-radius:12px; }
  .hero-product img { height:clamp(85px,23vw,140px); }
  .hero-ad-name { display:grid; font-size:.73rem; padding:5px; }
}
@media (prefers-reduced-motion: reduce) { .hero-product img { animation:none; } }

.share-product { justify-self: start; min-height: 36px; color: #623957; font-weight: 700; }
