*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue: #4A7FD4; --blue-dark: #3565B8; --blue-light: #EAF0FB;
  --blush: #F5A8C4; --blush-light: #FEF0F6; --cream: #FDF8F4; --warm-grey: #F5F3F0;
  --text: #1E1E2E; --text-mid: #4A4A60; --text-light: #8888A0; --white: #FFFFFF;
  --line: #EDEDF5; --radius: 14px;
  --shadow: 0 4px 20px rgba(74,127,212,0.10); --shadow-hover: 0 12px 36px rgba(74,127,212,0.18);
  --font-display: 'Playfair Display', Georgia, serif; --font-body: 'Inter', system-ui, sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.65; font-size: 16px; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--text); }
.nav__brand img { width: 38px; height: 38px; border-radius: 8px; }
.nav__links { display: flex; list-style: none; gap: 32px; }
.nav__links a { font-size: 0.9rem; font-weight: 500; color: var(--text-mid); transition: color 0.2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--blue); }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; flex-direction: column; gap: 5px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* HERO */
.hero { background: linear-gradient(135deg, var(--blue-light) 0%, var(--blush-light) 100%); padding: 56px 0 48px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 50%, rgba(245,168,196,0.25) 0%, transparent 50%), radial-gradient(circle at 80% 30%, rgba(74,127,212,0.15) 0%, transparent 50%); pointer-events: none; }
.hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.2; max-width: 760px; margin-inline: auto; position: relative; text-wrap: balance; }
.hero__sub { margin-top: 14px; font-size: 1.05rem; color: var(--text-mid); max-width: 580px; margin-inline: auto; position: relative; }
.crumbs { position: relative; display: flex; justify-content: center; gap: 8px; font-size: 0.85rem; color: var(--text-mid); margin-bottom: 12px; }
.crumbs a { color: var(--blue); font-weight: 500; }

/* BUTTONS */
.btn { display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 0.92rem; padding: 13px 26px; border-radius: 30px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s; }
.btn-primary { background: var(--blue); color: #fff; border: 1px solid var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* SECTIONS */
.section { padding: 56px 0; }
.section--tight { padding: 36px 0 12px; }
.section--tight + .section--tight { padding-top: 12px; }
.section-light { background: var(--warm-grey); margin-top: 56px; }
.section__label { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; margin-bottom: 18px; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.cta h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); }
.cta p { color: var(--text-mid); max-width: 540px; }
.cta p a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cta .btn { margin-top: 6px; }

/* CATEGORY TILES */
.cat-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cat-tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5/3; max-width: 100%; background: var(--warm-grey); box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; color: #fff; transition: transform 0.25s, box-shadow 0.25s; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.cat-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(30,30,46,0.78) 0%, rgba(30,30,46,0.15) 55%, transparent 75%); }
.cat-tile__name, .cat-tile__n { position: relative; z-index: 1; }
.cat-tile__name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.cat-tile__n { font-size: 0.8rem; opacity: 0.9; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

/* TOOLBAR */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.search { position: relative; flex: 1 1 280px; display: block; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-light); pointer-events: none; }
.search input { width: 100%; font: inherit; font-size: 0.95rem; padding: 11px 16px 11px 40px; border: 1px solid #DCDCE8; border-radius: 30px; background: var(--white); color: var(--text); }
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(74,127,212,0.15); }
.sort { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-mid); font-weight: 500; }
.sort select { font: inherit; font-size: 0.9rem; padding: 9px 12px; border: 1px solid #DCDCE8; border-radius: 10px; background: var(--white); color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { font: inherit; font-size: 0.86rem; font-weight: 500; padding: 7px 14px; border-radius: 30px; border: 1px solid #DCDCE8; background: var(--white); color: var(--text-mid); cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip__n { font-size: 0.75rem; opacity: 0.75; margin-left: 2px; }
.search-results__count { font-size: 0.95rem; color: var(--text-mid); margin-bottom: 18px; }
.search-results__count b { color: var(--text); }
.search-results__count button { font: inherit; background: none; border: 0; color: var(--blue); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }

/* PRODUCT CARDS */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px; align-items: stretch; }
.product-card { border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s; display: flex; flex-direction: column; height: 100%; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.product-card[hidden] { display: none; }
.product-card__img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/5; background: var(--warm-grey); }
.product-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-card__img-wrap img { transform: scale(1.04); }
.product-card__badge { position: absolute; top: 12px; left: 12px; background: var(--blush); color: #fff; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; }
.product-card__body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product-card__title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.product-card__desc { font-size: 0.85rem; color: var(--text-mid); line-height: 1.55; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__cta { margin-top: 8px; font-size: 0.82rem; font-weight: 600; color: var(--blue); display: flex; align-items: center; gap: 5px; }
.product-card__cta::after { content: '→'; }
.other-cats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.9rem; }
.other-cats span { color: var(--text-light); font-weight: 500; width: 100%; }
.other-cats a { color: var(--blue); font-weight: 500; }

/* FOOTER */
.footer { background: var(--text); color: rgba(255,255,255,0.6); text-align: center; padding: 28px 20px; font-size: 0.84rem; }
.footer a { color: rgba(255,255,255,0.8); }

@media (max-width: 680px) {
  .nav__toggle { display: flex; }
  .nav__links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
  .nav__links.is-open { display: flex; }
  .nav__links li a { display: block; padding: 16px 24px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
  .product-card__body { padding: 14px; }
  .product-card__desc { display: none; }
  .cat-tiles { gap: 10px; }
  .cat-tile { aspect-ratio: 1/1; padding: 10px; }
  .cat-tile__name { font-size: 0.95rem; }
  .cat-tile__n { font-size: 0.72rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } html { scroll-behavior: auto; } }
