:root {
  --paper: #f8f3ef;
  --paper-deep: #efe3dd;
  --blush: #ead8d3;
  --rose: #9d6565;
  --rose-dark: #6e4142;
  --ink: #2d2624;
  --muted: #756a65;
  --line: rgba(72, 52, 48, 0.16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.45; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  height: 106px; padding: 0 clamp(24px, 5vw, 76px); display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px; background: rgba(248, 243, 239, 0.95); position: relative; z-index: 20;
}
.desktop-nav { display: flex; align-items: center; gap: clamp(22px, 2.4vw, 44px); font-size: .82rem; }
.desktop-nav a { padding: 10px 0; position: relative; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; bottom: 4px; width: 0; height: 1px; background: var(--rose-dark); transition: width .25s ease; }
.desktop-nav a:hover::after, .desktop-nav a.active::after { width: 100%; }
.logo { font-family: var(--serif); display: flex; flex-direction: column; align-items: center; color: var(--rose-dark); line-height: .8; position: relative; }
.logo > span { font-size: clamp(2.7rem, 4.2vw, 4.25rem); letter-spacing: -.07em; }
.logo > i { font: 1rem var(--sans); position: absolute; right: -12px; top: 5px; transform: rotate(13deg); }
.logo small { font: .62rem var(--sans); letter-spacing: .36em; margin-top: 13px; color: var(--muted); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.icon-button { width: 30px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; position: relative; }
.icon-button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.menu-button { display: none; }
.badge { position: absolute; top: 0; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--rose); color: white; font-size: 10px; line-height: 16px; }
.mobile-menu { display: none; }

.hero { min-height: 520px; position: relative; overflow: hidden; display: flex; align-items: center; }
.hero-art { position: absolute; inset: 0; background: linear-gradient(110deg, #e8ddd3 0%, #eadfd5 42%, #d4c1b2 100%); background-image: url("./assets/hero-jewelry.png"); background-size: cover; background-position: center; transform: scale(1.005); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,241,235,.96) 0%, rgba(247,241,235,.82) 31%, rgba(247,241,235,.18) 54%, rgba(247,241,235,0) 72%); }
.hero-copy { position: relative; z-index: 1; width: min(520px, 48vw); margin-left: clamp(28px, 5vw, 78px); padding: 56px 0; }
.eyebrow { margin: 0 0 15px; color: var(--rose-dark); font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; }
.hero h1, .section-heading h2, .about-copy h2 { font-family: var(--serif); font-weight: 400; }
.hero h1 { margin: 0; font-size: clamp(2.6rem, 4.1vw, 4.55rem); line-height: .98; letter-spacing: -.035em; }
.hero h1 span { color: var(--rose-dark); font-family: var(--sans); font-size: .7em; display: inline-block; transform: rotate(-10deg) translate(8px, -4px); }
.hero-text { max-width: 390px; margin: 20px 0 26px; font-size: 1rem; }
.primary-button { display: inline-flex; align-items: center; gap: 28px; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--rose); color: white; transition: transform .2s ease, background .2s ease; }
.primary-button:hover { transform: translateY(-2px); background: var(--rose-dark); }
.primary-button span { font-size: 1.5rem; }

.category-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; max-width: 1220px; margin: 0 auto; padding: 34px clamp(24px, 4vw, 50px) 38px; }
.category-strip a { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.category-icon { width: 126px; height: 76px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 52% 48% 44% 56% / 45% 55% 47% 53%; background: var(--paper-deep); color: var(--rose); transition: transform .25s ease, background .25s ease; }
.category-icon svg { width: 48px; height: 48px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.category-icon svg circle[r="2.7"] { fill: var(--paper-deep); stroke-width: 1.8; }
.category-strip a:hover .category-icon { transform: translateY(-4px) rotate(-2deg); background: #e7d2ce; }
.category-label { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 24px; white-space: nowrap; }
.category-strip b { font-size: .92rem; font-weight: 500; line-height: 1; }
.category-strip i { font-style: normal; font-size: 1.2rem; line-height: 1; transform: translateY(-1px); }

.products-section { max-width: 1400px; margin: 0 auto; padding: 10px clamp(24px, 5vw, 76px) 62px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.section-heading .eyebrow { display: none; }
.section-heading h2 { margin: 0; font-size: clamp(2.1rem, 3vw, 3.2rem); letter-spacing: -.03em; }
.section-heading > a { color: var(--muted); font-size: .84rem; display: flex; gap: 16px; align-items: center; padding: 8px 0; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { min-width: 0; position: relative; }
.product-image { aspect-ratio: 1.02; border-radius: 10px; overflow: hidden; position: relative; background-color: #ddd0c7; transition: transform .3s ease, box-shadow .3s ease; }
.product-card:hover .product-image { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(82, 54, 47, .12); }
.keychains-section, .bracelets-section, .earrings-section { scroll-margin-top: 24px; }
.product-photo { aspect-ratio: 3 / 4; background-image: none; }
.product-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-info .product-description { color: var(--muted); font-size: .82rem; }
.tag { position: absolute; top: 13px; left: 13px; padding: 4px 13px; border-radius: 999px; background: rgba(244,225,222,.88); color: var(--rose-dark); font-size: .75rem; }
.product-info { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding-top: 13px; }
.product-info h3 { margin: 0 0 4px; font-size: .9rem; font-weight: 500; }
.product-info p { margin: 0; font-size: .88rem; }
.heart-button { border: 0; background: transparent; color: var(--ink); cursor: pointer; padding: 0 2px; font: 1.7rem/1 var(--serif); transition: color .2s ease, transform .2s ease; }
.heart-button:hover { transform: scale(1.12); }
.heart-button.selected { color: var(--rose); }
.quick-add { width: 100%; min-height: 42px; margin-top: 12px; border: 1px solid var(--rose); border-radius: 999px; background: transparent; color: var(--rose-dark); cursor: pointer; opacity: 0; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease, background .2s ease, color .2s ease; }
.product-card:hover .quick-add, .quick-add:focus-visible { opacity: 1; transform: translateY(0); }
.quick-add:hover { background: var(--rose); color: white; }

.about-section { background: var(--blush); display: grid; grid-template-columns: minmax(260px, 1.05fr) 1.4fr 1.25fr; gap: clamp(30px, 5vw, 76px); align-items: center; padding: 34px clamp(30px, 6vw, 90px); min-height: 250px; position: relative; overflow: hidden; }
.about-art { height: 175px; border-radius: 14px; background: linear-gradient(#bdd0dd, #efd9d3); background-image: url("./assets/clouds.png"); background-size: cover; background-position: center; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; text-shadow: 0 2px 12px rgba(65,45,43,.22); }
.about-art span { font: italic 2.25rem var(--serif); letter-spacing: .04em; }
.about-art i { font: 2rem var(--serif); }
.about-copy h2 { margin: 0 0 8px; font-size: 2rem; }
.about-copy .eyebrow { display: none; }
.about-copy > p:not(.eyebrow) { margin: 0; max-width: 500px; font-size: .88rem; }
.signature { display: block; margin-top: 18px; color: var(--rose-dark); font: italic 1.2rem var(--serif); letter-spacing: .12em; transform: rotate(-2deg); }
.benefits { display: grid; gap: 20px; }
.benefits > div { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; }
.benefits > div > span { font: 2rem var(--serif); text-align: center; }
.benefits p { margin: 0; }
.benefits b { display: block; font-size: .83rem; font-weight: 500; }
.benefits small { display: block; color: var(--muted); font-size: .72rem; margin-top: 3px; }

.search-panel { position: fixed; inset: 0; z-index: 50; display: grid; place-items: start center; padding-top: 18vh; background: rgba(56,43,39,.28); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.search-panel.open { opacity: 1; pointer-events: auto; }
.search-form { width: min(620px, calc(100% - 32px)); padding: 28px; border-radius: 20px; background: var(--paper); box-shadow: 0 24px 80px rgba(45,28,23,.2); }
.search-form label { display: block; margin-bottom: 15px; font: 1.65rem var(--serif); }
.search-form > div { display: flex; border-bottom: 1px solid var(--ink); }
.search-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 4px; font-size: 1rem; }
.search-close { border: 0; background: transparent; font-size: 1.8rem; cursor: pointer; }
.search-result { min-height: 1.5em; color: var(--muted); margin: 14px 0 0; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 999px; background: var(--rose-dark); color: white; opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .site-header { height: 84px; padding: 0 20px; grid-template-columns: 1fr auto 1fr; }
  .desktop-nav { display: none; }
  .menu-button { display: grid; justify-self: start; }
  .header-actions { gap: 8px; }
  .search-button { display: none; }
  .logo > span { font-size: 2.7rem; }
  .logo small { font-size: .5rem; }
  .mobile-menu { display: grid; grid-template-rows: repeat(4, 0fr); overflow: hidden; position: absolute; top: 84px; left: 0; right: 0; z-index: 19; background: var(--paper); transition: grid-template-rows .28s ease, padding .28s ease; }
  .mobile-menu.open { grid-template-rows: repeat(4, 1fr); padding: 12px 20px 20px; box-shadow: 0 16px 30px rgba(68,48,42,.09); }
  .mobile-menu a { min-height: 0; overflow: hidden; padding: 8px 0; }
  .hero { min-height: 610px; align-items: flex-end; }
  .hero-art { background-position: 62% center; }
  .hero-shade { background: linear-gradient(180deg, rgba(247,241,235,.08) 10%, rgba(247,241,235,.18) 36%, rgba(247,241,235,.96) 78%); }
  .hero-copy { width: 100%; margin: 0; padding: 34px 24px; }
  .hero h1 { font-size: clamp(2.35rem, 9vw, 3.6rem); }
  .hero-text { max-width: 520px; }
  .category-strip { grid-template-columns: repeat(6, minmax(126px, 1fr)); overflow-x: auto; justify-content: start; padding: 28px 20px; scrollbar-width: none; }
  .category-strip::-webkit-scrollbar { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-add { opacity: 1; transform: none; }
  .about-section { grid-template-columns: 1fr 1.3fr; }
  .benefits { grid-column: 1 / 3; grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .site-header { padding: 0 14px; }
  .header-actions { gap: 2px; }
  .favorites-button { display: none; }
  .hero { min-height: 570px; }
  .hero h1 br:nth-of-type(1) { display: none; }
  .eyebrow { font-size: .72rem; }
  .product-grid { grid-template-columns: 1fr; gap: 34px; }
  .section-heading > a { display: none; }
  .products-section { padding-bottom: 44px; }
  .about-section { grid-template-columns: 1fr; padding: 34px 22px 42px; }
  .about-art, .benefits { grid-column: auto; }
  .benefits { grid-template-columns: 1fr; }
}

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