:root {
  color-scheme: light;
  --background: #fdfbf8;
  --card: #fff;
  --ink: #201631;
  --muted: #645771;
  --accent: #512e87;
  --accent-hover: #3d2267;
  --lavender: #e6d8f8;
  --line: #e5ddeb;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--background);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #7045b1; outline-offset: 4px; }
::selection { color: var(--ink); background: #dec9fa; }

.shell { width: min(90rem, calc(100% - 6rem)); margin-inline: auto; }
.masthead-inner { height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand, .footer-brand { font-size: 1.1rem; font-weight: 850; letter-spacing: .085em; }
.brand { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.brand span { width: .47rem; height: .47rem; border-radius: 50%; background: #7450b7; }
.shop-link { font-weight: 700; color: var(--accent); text-decoration-color: #a992cd; font-size: .9rem; }
.shop-link:hover { text-decoration-color: currentColor; }

.intro { min-height: 19rem; border-radius: 1.2rem; background: var(--lavender); display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; padding: 2.2rem clamp(2rem, 5vw, 5rem); overflow: hidden; }
.intro-copy { position: relative; z-index: 1; }
.intro h1 { margin: 0; font-family: 'Trebuchet MS', 'Segoe UI', sans-serif; font-size: clamp(3.3rem, 6.2vw, 6rem); line-height: .96; letter-spacing: -.04em; text-wrap: balance; }
.intro p { font-size: clamp(1rem, 1.6vw, 1.2rem); color: #46335e; margin: 1.15rem 0 0; max-width: 26rem; line-height: 1.5; }
.intro-gallery { min-height: 14rem; display: flex; align-items: center; justify-content: center; padding-inline: 1rem; }
.feature { width: clamp(7rem, 15vw, 13rem); aspect-ratio: 3/4; display: block; padding: .36rem; border-radius: .8rem; background: #fff; box-shadow: 0 .8rem 1.8rem #45316032; transform: rotate(-9deg); flex: 0 0 auto; }
.feature + .feature { transform: translate(-5%, 6%) rotate(10deg); margin-inline-start: -.55rem; }
.feature img { display: block; width: 100%; height: 100%; border-radius: .5rem; object-fit: contain; }
.feature:hover { z-index: 1; }

.catalog { padding-block: 2rem 4rem; }
.search-bar { display: flex; gap: .8rem; align-items: center; background: var(--card); border: 1px solid #cfc2de; border-radius: .8rem; padding-inline: 1rem; width: min(100%, 38rem); }
.search-bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px #e5d6f6; }
.search-icon { color: var(--accent); width: 1.35rem; height: 1.35rem; flex: none; }
.search-bar input { background: transparent; color: var(--ink); width: 100%; min-width: 0; padding: .9rem .1rem; border: 0; outline: none; caret-color: var(--accent); }
.search-bar input::placeholder { color: var(--muted); opacity: 1; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; margin-block: 1.75rem .9rem; }
.list-head h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.1rem); line-height: 1.1; letter-spacing: -.025em; }
.count, .state { color: var(--muted); font-size: .94rem; }
.count { margin: 0; font-variant-numeric: tabular-nums; }
.state { margin: 1.2rem 0; }
.cards { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; margin: 0; padding: 0; }
.product { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: .9rem; display: flex; flex-direction: column; }
.product-img { display: grid; place-items: center; aspect-ratio: 3/4; background: #f2ecf7; border-radius: .85rem .85rem 0 0; overflow: hidden; text-decoration: none; }
.product-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-img .image-error { color: var(--muted); font-size: .9rem; text-align: center; padding: .5rem; }
.product-body { display: flex; flex-direction: column; flex: 1; align-items: flex-start; padding: .95rem; }
.sku { color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums; }
.product h3 { margin: .25rem 0 .7rem; font-weight: 650; font-size: 1.03rem; line-height: 1.3; overflow-wrap: anywhere; }
.price { margin: auto 0 .73rem; font-size: clamp(1.125rem, 2vw, 1.45rem); line-height: 1.2; font-weight: 800; font-variant-numeric: tabular-nums; }
.vat { display: inline-block; margin-inline-start: .4rem; color: var(--muted); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.purchase, .more { border-radius: .55rem; text-align: center; font-weight: 700; font-size: .9rem; min-height: 2.75rem; }
.purchase { width: 100%; display: flex; align-items: center; justify-content: center; padding: .55rem .35rem; text-decoration: none; color: #fff; background: var(--accent); }
.purchase:hover { background: var(--accent-hover); }
.more { display: block; padding: .64rem 1.5rem; margin: 1.6rem auto 0; background: #fff; border: 1px solid #c7b5db; color: var(--accent); }
.more:hover { background: #eee5fa; }
.footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 5rem; display: flex; justify-content: space-between; align-items: center; gap: .6rem 1.5rem; flex-wrap: wrap; padding-block: 1.2rem; }
.footer-brand { font-size: .85rem; }
#price-date { color: var(--muted); font-size: .875rem; }
.visually-hidden { width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; position: absolute; }

@media (min-width: 84rem) { .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 61rem) { .shell { width: calc(100% - 3rem); } .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 42rem) {
  .shell { width: calc(100% - 1.75rem); }
  .masthead-inner { height: 3.7rem; }
  .shop-link { font-size: .8rem; }
  .intro { grid-template-columns: 1fr; min-height: 0; padding: 1.6rem 1.25rem; border-radius: .95rem; gap: .5rem; }
  .intro h1 { font-size: clamp(2.55rem, 9vw, 3.9rem); }
  .intro p { margin-top: .8rem; }
  .intro-gallery { display: none; }
  .catalog { padding-block: 1.1rem 2.4rem; }
  .list-head { margin-block: 1.35rem .8rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .product-body { padding: .65rem; }
  .product h3 { font-size: .94rem; }
  .sku { font-size: .8rem; }
  .purchase { font-size: .8rem; }
}

@media (max-width: 21rem) { .purchase { font-size: .74rem; } .shell { width: calc(100% - 1.2rem); } }
