/* ============================================================
   Pittsburgh Yetis Team Store
   Brand colors sampled from the Yetis logo
   ============================================================ */
:root {
  --navy: #041e5a;        /* logo dark blue */
  --navy-deep: #021240;
  --royal: #4869ba;       /* logo mid blue (Pro Lusty Blue) */
  --royal-dark: #3a58a3;
  --ice: #a5b7d6;         /* logo light blue */
  --ice-soft: #e9eef8;
  --white: #ffffff;

  --bg: #f2f5fb;
  --card: #ffffff;
  --text: #121a2e;
  --muted: #56617a;
  --border: #d6deec;
  --danger: #b42318;

  --radius: 12px;
  --shadow: 0 1px 2px rgba(4, 30, 90, .06), 0 6px 18px rgba(4, 30, 90, .06);
  --display: "Graduate", "Rockwell", Georgia, serif;
  --condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.55 var(--body); color: var(--text); background: var(--bg); }
a { color: var(--royal-dark); }
img { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 28px; padding-bottom: 56px; min-height: 60vh; }

h1, h2 { font-family: var(--display); font-weight: 400; color: var(--navy); letter-spacing: .02em; line-height: 1.15; }
h1 { margin: 0 0 10px; font-size: clamp(1.7rem, 4vw, 2.3rem); text-transform: uppercase; }
h2 { margin: 36px 0 14px; font-size: 1.3rem; text-transform: uppercase; }
small, em { color: var(--muted); }
.lede { color: var(--muted); margin-top: 0; }

/* ---------- header ---------- */
.site-header { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 10;
  box-shadow: 0 2px 0 var(--royal), 0 4px 0 var(--white), 0 6px 0 var(--navy); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand img { width: 56px; height: 56px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--display); font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; }
.brand-sub { font-family: var(--condensed); font-weight: 600; font-size: .85rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ice); }
.cart-link { display: inline-flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; font-family: var(--condensed);
  font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase;
  border: 2px solid var(--royal); border-radius: 999px; padding: 6px 14px; transition: background .15s; }
.cart-link:hover { background: var(--royal); }
.badge { background: var(--white); color: var(--navy); border-radius: 999px; padding: 0 8px; font-size: .9rem; line-height: 1.5; }

/* ---------- hero ---------- */
.hero { color: var(--white); position: relative; overflow: hidden; margin-top: 6px;
  background:
    radial-gradient(circle at 85% 40%, rgba(165, 183, 214, .28), transparent 45%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 14px, transparent 14px 28px),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 45%, var(--royal) 130%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--royal) 0 33%, var(--white) 33% 66%, var(--royal) 66%); }
.hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding-top: 40px; padding-bottom: 46px; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 4px 0 14px; text-shadow: 3px 3px 0 var(--royal); }
.hero p { margin: 0 0 8px; color: #dbe4f5; max-width: 60ch; }
.eyebrow { font-family: var(--condensed); font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--ice); font-size: .95rem; }
.hero-logo { width: clamp(180px, 26vw, 280px); height: auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,.45)); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { font-family: var(--condensed); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .9rem;
  border: 1px solid rgba(165, 183, 214, .55); color: var(--white); border-radius: 999px; padding: 4px 12px; background: rgba(255,255,255,.06); }
.tag.hot { background: var(--white); color: var(--navy); border-color: var(--white); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 0 14px;
  border-bottom: 3px solid var(--navy); padding-bottom: 6px; }
.section-head h2 { margin: 0; }
.count { font-family: var(--condensed); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* ---------- notices ---------- */
.notice { background: var(--ice-soft); border: 1px solid var(--ice); border-left: 5px solid var(--royal); padding: 10px 14px; border-radius: 8px; margin-bottom: 18px; }
.notice.warn { background: #fff7e6; border-color: #f5c26b; border-left-color: #d99a1e; }
.notice.error { background: #fdecea; border-color: #f1a9a0; border-left-color: var(--danger); color: var(--danger); }

/* ---------- product list ---------- */
.product-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.product-row { display: grid; grid-template-columns: 220px 1fr auto; gap: 20px; align-items: start; position: relative;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s; }
.product-row:hover { transform: translateY(-2px); border-color: var(--royal); box-shadow: 0 10px 28px rgba(4, 30, 90, .14); }
.product-row h2 { margin: 2px 0 4px; font-size: 1.2rem; }
.product-row h2 a { color: var(--navy); text-decoration: none; }
.product-row h2 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.product-row p { margin: 0 0 8px; }
.product-row .ext, .product-row .btn { position: relative; z-index: 1; }
.opt-summary { list-style: none; padding: 0; margin: 0 0 4px; font-size: .95rem; color: var(--muted); }
.opt-summary strong { font-family: var(--condensed); text-transform: uppercase; letter-spacing: .05em; color: var(--navy); }
.subtitle { color: var(--royal-dark); font-family: var(--condensed); font-weight: 600; font-size: 1rem; letter-spacing: .03em; margin-bottom: 6px; }
a.ext { display: inline-block; margin-top: 4px; font-size: .95rem; font-weight: 600; }
.buy { text-align: right; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; min-width: 150px; }
.price { font-family: var(--condensed); font-weight: 700; font-size: 1.6rem; color: var(--navy); line-height: 1; }

.thumb { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--white); border: 1px solid var(--border); }
.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.placeholder { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--display); font-size: 2rem; color: var(--navy);
  background: var(--ice-soft) url(images/brand/head.png) center / 45% no-repeat; text-shadow: 0 0 6px #fff; }

/* ---------- product detail ---------- */
.crumb { margin: 0 0 14px; font-family: var(--condensed); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.crumb a { text-decoration: none; }
.product-detail { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }
.thumb.large { max-width: 760px; aspect-ratio: auto; box-shadow: var(--shadow); }
.thumb.large img { height: auto; }
.thumb.large .placeholder { aspect-ratio: 16 / 9; }
.detail-body { background: var(--card); border: 1px solid var(--border); border-top: 5px solid var(--navy); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); max-width: 760px; }

/* ---------- forms ---------- */
.options-form, .checkout-form { display: grid; gap: 14px; margin-top: 16px; }
.checkout-form { grid-template-columns: 1fr 1fr; background: var(--card); border: 1px solid var(--border); border-top: 5px solid var(--navy);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.checkout-form.narrow { max-width: 380px; grid-template-columns: 1fr; }
.checkout-form .full { grid-column: 1 / -1; }
label { display: grid; gap: 4px; }
label > span { font-family: var(--condensed); font-weight: 700; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
label > span em { text-transform: none; letter-spacing: 0; font-weight: 500; }
input, select, textarea { font: inherit; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 8px; background: #fff; width: 100%; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(72, 105, 186, .3); border-color: var(--royal); }
.qty input { max-width: 110px; }
.qty-input { width: 72px; }
label.check { display: flex; gap: 10px; align-items: flex-start; }
label.check span { font-family: var(--body); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 1rem; color: var(--text); }
label.check input { width: auto; margin-top: 5px; accent-color: var(--royal); }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.btn { display: inline-block; background: var(--royal); color: var(--white); border: 2px solid var(--royal); border-radius: 8px; padding: 10px 18px;
  font-family: var(--condensed); font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; text-align: center; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--navy); border-color: var(--navy); }
.btn.secondary { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn.secondary:hover { background: var(--navy); color: var(--white); }
button.link { background: none; border: 0; color: var(--royal-dark); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
button.link.danger { color: var(--danger); }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table.cart { width: 100%; border-collapse: collapse; background: var(--card); }
.cart th, .cart td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.cart thead th { background: var(--navy); color: var(--white); font-family: var(--condensed); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .95rem; }
.cart tbody tr:nth-child(even) td { background: #f7f9fd; }
.cart tfoot th { font-family: var(--condensed); font-size: 1.2rem; color: var(--navy); background: var(--ice-soft); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- admin ---------- */
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.admin-head .actions { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.stats div { background: var(--navy); border-radius: var(--radius); padding: 14px 16px; color: var(--ice);
  font-family: var(--condensed); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.stats span { display: block; font-size: 2rem; font-weight: 700; color: var(--white); letter-spacing: 0; }
details.order { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 8px; }
details.order summary { cursor: pointer; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #c9d4ea; font-size: .95rem; border-top: 6px solid var(--royal); }
.site-footer .wrap { display: flex; align-items: center; gap: 14px; padding-top: 22px; padding-bottom: 22px; }
.site-footer img { width: 44px; height: auto; }
.footer-cheer { font-family: var(--display); color: var(--white); text-transform: uppercase; letter-spacing: .06em; font-size: 1.1rem; }

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 28px; padding-bottom: 34px; gap: 18px; }
  .hero-logo { order: -1; margin: 0 auto; width: 170px; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-tags { justify-content: center; }
  .product-row { grid-template-columns: 1fr; }
  .buy { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
  .checkout-form { grid-template-columns: 1fr; }
  .stats span { font-size: 1.4rem; }
  .brand-name { font-size: 1.05rem; }
  .brand img { width: 46px; height: 46px; }
  .cart-link span:not(.badge) { display: none; }
}
