:root {
  --ink: #203354;
  --muted: #677189;
  --paper: #fffaf4;
  --white: #ffffff;
  --orange: #ff7124;
  --yellow: #ffc847;
  --blue: #25aadd;
  --pink: #fa7891;
  --purple: #9253cf;
  --green: #118965;
  --line: #e5e7eb;
  --shadow: 0 18px 50px rgba(32, 51, 84, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, "Segoe UI", Arial, sans-serif; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; padding: 10px clamp(18px, 4vw, 64px); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark { display: flex; overflow: hidden; width: 50px; height: 50px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 5px 18px rgba(32,51,84,.18); }
.brand-mark span { display: grid; width: 50%; place-items: center; color: #fff; font-weight: 900; }
.brand-mark span:first-child { background: var(--orange); }
.brand-mark span:last-child { background: var(--blue); }
.brand-copy strong { display: block; font-family: "Trebuchet MS", sans-serif; font-size: 18px; }
.brand-copy small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 750; }
.nav-links a { padding: 10px 12px; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--orange); border-bottom-color: var(--orange); outline: none; }
.nav-links .admin-link { margin-left: 8px; color: #fff; background: var(--ink); border-radius: 6px; }
.nav-links .admin-link:hover { color: #fff; background: #334a70; border-bottom-color: transparent; }
.icon-button { display: grid; width: 40px; height: 40px; padding: 0; place-items: center; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 50%; font-size: 23px; }
.menu-toggle { display: none; }

.hero { position: relative; min-height: min(760px, calc(100vh - 76px)); overflow: hidden; background: #fff7ec; }
.hero::before { position: absolute; inset: 0 45% 0 0; z-index: 1; background: linear-gradient(90deg, #fff7ec 70%, rgba(255,247,236,0)); content: ""; }
.hero-content { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: center; width: min(59%, 780px); min-height: inherit; padding: clamp(56px, 7vw, 100px) clamp(18px, 6vw, 96px) 150px; }
.eyebrow { margin: 0 0 14px; color: var(--orange); font-size: 12px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; font-family: "Trebuchet MS", sans-serif; letter-spacing: 0; }
h1 { max-width: 680px; margin-bottom: 22px; font-size: clamp(48px, 7vw, 92px); line-height: .98; }
.hero-content > p:not(.eyebrow) { max-width: 570px; margin: 0; color: #4e5d76; font-size: clamp(17px, 2vw, 21px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.button { display: inline-flex; min-height: 48px; padding: 12px 18px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 6px; font-weight: 850; }
.button.primary { color: #fff; background: var(--orange); }
.button.primary:hover { background: #e85f14; }
.button.secondary { color: var(--ink); background: #fff; border-color: #cbd3de; }
.button.secondary:hover { border-color: var(--blue); }
.hero-visual { position: absolute; inset: 0 0 0 36%; overflow: hidden; }
.hero-visual::after { position: absolute; inset: 0; background: linear-gradient(90deg, #fff7ec 0, rgba(255,247,236,.16) 35%, transparent 65%); content: ""; }
.hero-visual img { width: 100%; height: 100%; object-fit: contain; object-position: 78% center; mix-blend-mode: multiply; }
.hero-note { position: absolute; right: clamp(24px, 5vw, 72px); bottom: 34px; z-index: 2; width: 180px; padding: 15px; color: var(--ink); background: var(--yellow); border-radius: 6px; box-shadow: var(--shadow); transform: rotate(-2deg); }
.hero-note span { display: block; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.hero-note strong { display: block; margin-top: 4px; font-size: 20px; }
.hero-metrics { position: absolute; right: clamp(18px, 4vw, 64px); bottom: 0; left: clamp(18px, 6vw, 96px); display: grid; grid-template-columns: repeat(3, 1fr); background: var(--ink); }
.hero-metrics div { min-height: 90px; padding: 18px 24px; color: #fff; border-right: 1px solid rgba(255,255,255,.14); }
.hero-metrics strong { display: block; color: var(--yellow); font-size: 26px; }
.hero-metrics span { color: #d9e2ef; font-size: 13px; }

.collection-section, .catalog-section { padding: clamp(70px, 8vw, 112px) clamp(18px, 4vw, 64px); }
.section-heading { display: grid; grid-template-columns: minmax(0, .9fr) minmax(300px, .65fr); align-items: end; gap: 40px; max-width: 1200px; margin: 0 auto 38px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(36px, 5vw, 62px); line-height: 1.04; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.collection-showcase { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1200px; margin: auto; }
.collection-feature { display: grid; grid-template-columns: 1fr .82fr; min-height: 360px; overflow: hidden; border-radius: 8px; }
.collection-feature.yellow { background: #ffe073; }
.collection-feature.purple { color: #fff; background: #7f4abc; }
.collection-feature > div { z-index: 1; padding: clamp(25px, 4vw, 48px); align-self: center; }
.collection-feature span { font-size: 11px; font-weight: 900; text-transform: uppercase; }
.collection-feature h3 { margin: 12px 0; font-size: clamp(30px, 4vw, 46px); line-height: 1; }
.collection-feature p { line-height: 1.55; }
.collection-feature button { padding: 0 0 5px; color: inherit; background: none; border: 0; border-bottom: 2px solid currentColor; font-weight: 850; }
.collection-feature img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }

.catalog-section { background: #f7f8fa; }
.catalog-heading { margin-bottom: 28px; }
.catalog-toolbar { display: grid; grid-template-columns: minmax(210px, 1.4fr) repeat(4, minmax(130px, .7fr)) auto; gap: 10px; max-width: 1200px; margin: auto; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.catalog-toolbar label { display: grid; gap: 6px; min-width: 0; }
.catalog-toolbar label > span { color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.catalog-toolbar input, .catalog-toolbar select { width: 100%; height: 42px; padding: 0 11px; color: var(--ink); background: #fbfcfd; border: 1px solid #d9dee7; border-radius: 5px; outline: none; }
.catalog-toolbar input:focus, .catalog-toolbar select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,170,221,.13); }
.clear-button { align-self: end; height: 42px; padding: 0 14px; color: var(--ink); background: #fff; border: 1px solid #d9dee7; border-radius: 5px; font-weight: 800; }
.catalog-meta { display: flex; justify-content: space-between; max-width: 1200px; margin: 25px auto 14px; color: var(--muted); font-size: 13px; }
.catalog-meta strong { color: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; max-width: 1200px; margin: auto; }
.product-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 8px; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-image { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1.08; overflow: hidden; padding: 0; background: #fffaf4; border: 0; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.product-card:hover .product-image img { transform: scale(1.025); }
.featured-badge { position: absolute; top: 10px; left: 10px; padding: 5px 8px; color: #fff; background: var(--orange); border-radius: 4px; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.product-body { padding: 16px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.product-tags span { padding: 4px 7px; color: #31526e; background: #e9f7fc; border-radius: 4px; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.product-tags span:nth-child(2) { color: #704588; background: #f4eefa; }
.product-body h3 { margin: 12px 0 5px; font-size: 20px; line-height: 1.15; }
.product-body > p { min-height: 19px; margin: 0; color: var(--muted); font-size: 13px; }
.product-sizes { display: flex; gap: 5px; margin-top: 14px; }
.product-sizes span { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #d4dae3; border-radius: 50%; font-size: 11px; font-weight: 850; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }
.product-footer strong { color: var(--green); font-size: 18px; }
.product-footer button { padding: 7px 0; color: var(--orange); background: none; border: 0; font-size: 12px; font-weight: 850; }
.empty-state, .load-error { max-width: 1200px; margin: 20px auto; padding: 45px; text-align: center; background: #fff; border: 1px dashed #cdd4df; border-radius: 8px; }
.empty-state p, .load-error p { color: var(--muted); }

.contact-section { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding: clamp(54px, 7vw, 90px) clamp(18px, 6vw, 96px); color: #fff; background: var(--blue); }
.contact-section .eyebrow { color: #ffe67d; }
.contact-section h2 { margin-bottom: 10px; font-size: clamp(38px, 5vw, 62px); }
.contact-section p:not(.eyebrow) { max-width: 620px; margin: 0; color: #eaf8fd; font-size: 17px; line-height: 1.6; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-section .primary { color: var(--ink); background: var(--yellow); }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px clamp(18px, 4vw, 64px); background: #fff; border-top: 1px solid var(--line); }
footer p { color: var(--muted); font-size: 12px; }

.product-dialog { width: min(900px, calc(100vw - 30px)); max-height: calc(100vh - 30px); padding: 0; overflow: auto; border: 0; border-radius: 8px; box-shadow: 0 24px 90px rgba(13,29,52,.32); }
.product-dialog::backdrop { background: rgba(19,32,54,.65); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 12px; right: 12px; z-index: 3; font-size: 25px; }
#dialog-content { display: grid; grid-template-columns: 1fr 1fr; }
.dialog-image { min-height: 620px; background: var(--paper); }
.dialog-image img { width: 100%; height: 100%; object-fit: cover; }
.dialog-copy { align-self: center; padding: clamp(28px, 5vw, 54px); }
.dialog-code { margin: 18px 0 5px; color: var(--muted); font-size: 12px; font-weight: 800; }
.dialog-copy h2 { margin-bottom: 15px; font-size: 38px; line-height: 1.04; }
.dialog-copy > p:not(.dialog-code) { color: var(--muted); line-height: 1.55; }
.dialog-copy dl { margin: 24px 0; border-top: 1px solid var(--line); }
.dialog-copy dl div { display: grid; grid-template-columns: 90px 1fr; padding: 11px 0; border-bottom: 1px solid var(--line); }
.dialog-copy dt { color: var(--muted); font-size: 12px; font-weight: 800; }
.dialog-copy dd { margin: 0; font-size: 13px; font-weight: 750; }
.button.full { width: 100%; }
.dialog-copy small { display: block; margin-top: 12px; color: var(--muted); line-height: 1.45; }

@media (max-width: 1050px) {
  .catalog-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .collection-feature { grid-template-columns: 1fr; }
  .collection-feature img { height: 210px; }
}

@media (max-width: 760px) {
  .menu-toggle { display: grid; }
  .nav-links { position: absolute; top: 76px; right: 0; left: 0; display: none; padding: 12px 18px 18px; align-items: stretch; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(32,51,84,.1); }
  .menu-open .nav-links { display: flex; }
  .nav-links .admin-link { margin-left: 0; text-align: center; }
  .hero { min-height: 740px; }
  .hero::before { inset: 0; background: linear-gradient(180deg, #fff7ec 0%, rgba(255,247,236,.94) 55%, rgba(255,247,236,.55)); }
  .hero-content { width: 100%; min-height: 740px; justify-content: flex-start; padding: 58px 18px 140px; }
  h1 { max-width: 560px; font-size: clamp(45px, 13vw, 70px); }
  .hero-content > p:not(.eyebrow) { font-size: 17px; }
  .hero-visual { inset: 40% 0 90px 25%; opacity: .48; }
  .hero-note { display: none; }
  .hero-metrics { right: 18px; left: 18px; }
  .hero-metrics div { min-height: 82px; padding: 14px 10px; }
  .hero-metrics strong { font-size: 22px; }
  .hero-metrics span { font-size: 11px; }
  .section-heading { grid-template-columns: 1fr; gap: 15px; }
  .collection-showcase { grid-template-columns: 1fr; }
  .catalog-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-field { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-section { grid-template-columns: 1fr; }
  #dialog-content { grid-template-columns: 1fr; }
  .dialog-image { min-height: 0; aspect-ratio: 1 / .92; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 470px) {
  .brand-copy strong { font-size: 16px; }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { display: grid; grid-template-columns: 43% 57%; }
  .product-image { height: 100%; aspect-ratio: auto; }
  .product-body h3 { font-size: 17px; }
  .product-sizes span { width: 25px; height: 25px; }
  .product-footer { align-items: flex-start; flex-direction: column; }
}
