@font-face {
  font-family: Nunito;
  src: url("../assets/Nunito-wght.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../assets/dm-sans-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../assets/dm-sans-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  --blue: #064687;
  --navy: #102b48;
  --ink: #152a40;
  --yellow: #ffd04a;
  --paper: #fffdf7;
  --muted: #4e5f71;
  --line: #d8e0e8;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.5 "DM Sans", Arial, sans-serif; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 4px; }
button, input { color: inherit; font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: Nunito, Arial, sans-serif; font-weight: 800; letter-spacing: -.045em; line-height: 1.04; }
h1 { font-size: clamp(2.35rem, 5.5vw, 6rem); }
h2 { font-size: clamp(1.75rem, 3.1vw, 3rem); }
h3 { font-size: 1.15rem; }
:focus-visible { outline: 3px solid #2768c2; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip { position: fixed; top: -100px; left: 15px; z-index: 10; padding: 12px; background: white; color: var(--ink); }
.skip:focus { top: 7px; }
.wrap { width: min(1260px, calc(100% - clamp(30px, 7vw, 112px))); margin-inline: auto; }
.demo-banner { background: #ffe6a0; color: #2f2714; font-size: 12px; }
.demo-banner .wrap { display: flex; align-items: center; gap: 3px 13px; flex-wrap: wrap; min-height: 38px; padding-block: 5px; }
.demo-banner a { margin-left: auto; display: inline-flex; align-items: center; min-height: 30px; font-weight: 700; }
.shop-header { background: var(--blue); color: white; }
.header-grid { display: grid; grid-template-columns: 89px minmax(0, 660px) auto; justify-content: space-between; align-items: center; gap: 14px 36px; padding-block: 14px 8px; }
.shop-logo { display: block; padding: 5px; background: white; border-radius: 12px; }
.shop-logo img { width: 100%; }
.search { display: flex; min-width: 0; min-height: 47px; background: white; border-radius: 9px; overflow: hidden; border: 1px solid #ffffff70; }
.search input { min-width: 0; flex: 1; padding: 8px 12px; border: 0; color: var(--ink); background: white; font-size: 16px; }
.search input:focus-visible { outline-offset: -4px; }
.search button { background: var(--yellow); color: var(--navy); padding-inline: 17px; border: 0; font-size: 14px; font-weight: 700; }
.cart-trigger { min-height: 46px; display: flex; align-items: center; gap: 7px; border: 1px solid #ffffff84; border-radius: 8px; background: transparent; padding-inline: 11px; color: white; font-size: 14px; font-weight: 700; }
#cart-count { min-width: 22px; padding-inline: 4px; color: var(--navy); background: var(--yellow); border-radius: 5px; text-align: center; }
.shop-nav { display: flex; flex-wrap: wrap; gap: 2px 15px; padding-block: 4px; }
.shop-nav a { display: inline-flex; align-items: center; min-height: 42px; color: #e9f3ff; font-size: 14px; font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; }
.shop-nav a:hover, .shop-nav a[aria-current] { color: #ffe391; border-color: #ffe391; }
.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  min-height: 380px;
  margin-top: 25px;
  overflow: hidden;
  border: 1px solid #dbe6f2;
  border-radius: 18px;
  background: #edf5fc;
}
.shop-hero-copy { align-self: center; padding: clamp(22px, 5vw, 65px); }
.label { color: var(--blue); text-transform: uppercase; font-size: 11px; letter-spacing: .12em; font-weight: 700; }
.shop-hero h1 { margin: 11px 0 14px; }
.shop-hero h1 em { color: var(--blue); font-style: normal; }
.shop-hero h1 + p { max-width: 440px; color: var(--muted); margin-bottom: 18px; }
.shop-hero-image { width: 100%; height: 100%; max-height: 520px; object-fit: cover; object-position: 50% 45%; }
.shop-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 9px; border: 1px solid transparent; border-radius: 8px; padding: 9px 13px; font-size: 14px; font-weight: 700; text-decoration: none; }
.primary { color: var(--navy); background: var(--yellow); }
.primary:hover, .search button:hover { background: #ffda6c; }
.secondary { color: var(--blue); border-color: #b9cde2; background: white; }
.secondary:hover { border-color: var(--blue); background: #eef6ff; }
.catalog { padding-block: clamp(30px, 5vw, 57px); scroll-margin-top: 13px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 5px 18px; margin-bottom: 17px; }
.catalog-heading h2 { overflow-wrap: anywhere; }
.catalog-heading p, .catalog-empty, .sample-note { color: var(--muted); font-size: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: white; }
.product-photo { background: #fffbf1; display: block; }
.product-photo:focus-visible { outline-offset: -5px; }
.product-photo img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.card-body { display: flex; flex: 1; min-width: 0; align-items: start; flex-direction: column; padding: 13px; gap: 6px; }
.card-body h3 { line-height: 1.15; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover { text-decoration: underline; }
.card-price { font-weight: 700; margin: 4px 0; }
.card-body button { margin-top: auto; }
.product-view { padding-block: 24px 45px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-weight: 700; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); align-items: start; gap: clamp(22px, 5vw, 75px); margin-top: 11px; }
.product-image { width: 100%; aspect-ratio: 1; object-fit: contain; background: white; border: 1px solid var(--line); border-radius: 15px; }
.thumbnails { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.thumb { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: 12px; }
.thumb[aria-pressed="true"] { border-color: var(--blue); background: #edf5fd; }
.thumb img { width: 32px; height: 32px; object-fit: cover; border-radius: 4px; }
.product-copy h1 { font-size: clamp(2rem, 4vw, 3.85rem); margin: 8px 0 15px; }
.detail-price { font: 800 clamp(1.55rem, 3vw, 2.6rem)/1.12 Nunito, Arial, sans-serif; color: var(--blue); }
.product-description { margin: 15px 0; color: var(--muted); }
.product-fulfillment { margin-top: 17px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #edf5fc; font-size: 14px; }
.shop-footer { background: var(--navy); color: white; padding: 21px 0; font-size: 13px; }
.shop-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 13px 22px; }
.shop-footer p { color: #dbe8f8; }

.cart-dialog { position: fixed; inset: 0 0 0 auto; width: min(460px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; padding: 0; margin: 0; color: var(--ink); border: 0; background: var(--paper); overscroll-behavior: contain; }
.cart-dialog::backdrop { background: #132a4e9e; }
.cart-heading { position: sticky; top: 0; z-index: 1; background: white; display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font-size: 22px; line-height: 1; }
.icon-button:disabled { opacity: .5; cursor: default; }
.cart-body { padding: 16px; }
.cart-items { list-style: none; padding: 0; margin: 0; }
.cart-item { display: grid; grid-template-columns: 65px minmax(0, 1fr); gap: 12px; align-items: start; border-bottom: 1px solid var(--line); padding: 12px 0; }
.cart-item img { aspect-ratio: 1; object-fit: contain; border: 1px solid var(--line); border-radius: 7px; }
.cart-item p { color: var(--muted); font-size: 13px; }
.quantity { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-summary { margin-top: 17px; }
.cart-summary p:first-child { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px; }
.cart-summary button, .checkout button { margin-top: 9px; }
.checkout { padding: 12px; margin-top: 15px; border-radius: 9px; background: #eef5fc; }
.checkout h3 { margin-bottom: 5px; }
.checkout p { color: var(--muted); font-size: 14px; }
.order-result:not(:empty) { margin-top: 13px; color: #184d35; padding: 11px; background: #e0f1e7; border-radius: 8px; font-weight: 700; }

@media (max-width: 760px) {
  .header-grid { grid-template-columns: 73px minmax(0, 1fr) auto; column-gap: 11px; }
  .shop-hero { min-height: 0; }
  .shop-hero h1 { font-size: clamp(2.15rem, 5.7vw, 3.45rem); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
}
@media (max-width: 530px) {
  .demo-banner .wrap { gap: 0 7px; font-size: 11px; }
  .demo-banner a { min-height: 27px; }
  .header-grid { grid-template-columns: 62px minmax(0, 1fr) auto; padding-block: 9px 4px; row-gap: 8px; }
  .search { grid-column: 1 / -1; grid-row: 2; min-height: 43px; }
  .cart-trigger { grid-column: 3; grid-row: 1; }
  .shop-nav { gap: 2px 12px; }
  .shop-nav a { font-size: 13px; }
  .shop-hero, .product-layout { grid-template-columns: minmax(0, 1fr); }
  .shop-hero { margin-top: 14px; }
  .shop-hero-image { height: clamp(170px, 60vw, 285px); object-position: 50% 37%; }
  .card-body { padding: 9px; }
  .card-body .label { font-size: 9px; }
  .card-body h3 { font-size: 1rem; }
  .card-body .shop-button { font-size: 13px; }
  .product-view { padding-block: 10px 28px; }
  .product-layout { gap: 16px; margin-top: 4px; }
}
