/* Got Your Back Apparel: palette pulled from the Cape Breton tartan
   (green for the highlands, gold for the sun, grey for granite, black for coal). */
:root {
  --ink: #1c1c1a;
  --bone: #f5efe4;
  --paper: #fffdf8;
  --fern: #35553b;
  --fern-dark: #243d29;
  --gold: #d8a52a;
  --granite: #8b8d86;
  --lobster: #c4392c;
  --line: #e2d9c8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 28, 26, .10);
  --display: "Anton", "Impact", sans-serif;
  --body: "Work Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bone); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: 1.02; margin: 0 0 .4em; text-transform: uppercase; }
h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: 1.5rem; }
.eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--fern); margin: 0 0 .6em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .9em 1.5em; border-radius: 999px; font: 600 1rem var(--body); text-decoration: none; border: 2px solid var(--ink); cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--ink); color: var(--bone); }
.btn-primary:hover { background: var(--fern-dark); border-color: var(--fern-dark); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bone); }
.btn-block { width: 100%; }
.icon-btn { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: inherit; padding: .2em .4em; }

/* Tartan band: woven with two crossing gradient layers */
.tartan, .announce {
  background-color: var(--fern);
  background-image:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(216,165,42,.85) 18px 22px, transparent 22px 40px, rgba(28,28,26,.55) 40px 52px, transparent 52px 64px, rgba(245,239,228,.55) 64px 66px, transparent 66px 80px),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(216,165,42,.6) 18px 22px, transparent 22px 40px, rgba(28,28,26,.45) 40px 52px, transparent 52px 64px, rgba(245,239,228,.45) 64px 66px, transparent 66px 80px);
}
.tartan { height: 28px; }
.announce { color: var(--paper); text-align: center; font-size: .85rem; font-weight: 600; padding: .55em 1em; text-shadow: 0 1px 2px rgba(0,0,0,.6); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1.5rem; padding: .7rem clamp(16px, 4vw, 48px); background: rgba(245,239,228,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand span { font-family: var(--display); font-size: 1.35rem; text-transform: uppercase; line-height: 1; }
.brand small { display: block; font: 600 .7rem var(--body); letter-spacing: .2em; color: var(--fern); }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--fern); }
.cart-btn { position: relative; background: var(--ink); color: var(--bone); border: 0; border-radius: 999px; width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer; }
.cart-count { position: absolute; top: -4px; right: -4px; background: var(--lobster); color: #fff; font-size: .72rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.cart-count.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(32px, 6vw, 88px) clamp(16px, 4vw, 48px); max-width: 1280px; margin: 0 auto; }
.lede { font-size: 1.15rem; max-width: 34em; color: #3b3b37; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-art { position: relative; }
.hero-art img { border-radius: 24px; box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; transform: rotate(1.5deg); border: 8px solid var(--paper); }
.hero-badge { position: absolute; left: -12px; bottom: 28px; background: var(--gold); color: var(--ink); font-family: var(--display); text-transform: uppercase; font-size: 1.1rem; padding: .45em .9em; border-radius: 8px; transform: rotate(-4deg); box-shadow: var(--shadow); }

/* Sections */
.section { padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 48px); max-width: 1280px; margin: 0 auto; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .5rem 2rem; margin-bottom: 1.8rem; }
.section-head p { margin: 0 0 .6em; color: #55554f; }

/* Collections */
.collections { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.collection-tile { position: relative; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 4/5; background: var(--paper); text-align: left; }
.collection-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.collection-tile:hover img { transform: scale(1.05); }
.collection-tile span { position: absolute; inset: auto 0 0 0; padding: 2.4rem 1rem 1rem; color: #fff; font-family: var(--display); text-transform: uppercase; font-size: 1.45rem; line-height: 1.05; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.collection-tile small { display: block; font: 500 .8rem var(--body); text-transform: none; opacity: .85; margin-top: .2rem; }

/* Filters */
.filters { display: grid; gap: 14px; margin-bottom: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--ink); background: transparent; border-radius: 999px; padding: .45em 1em; font: 600 .9rem var(--body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bone); }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-row select, .filter-row input { font: 500 .95rem var(--body); padding: .65em .9em; border: 1.5px solid var(--line); background: var(--paper); border-radius: 10px; color: var(--ink); }
.filter-row input { flex: 1 1 200px; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; text-align: left; padding: 0; font: inherit; color: inherit; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 1; background: #fff; position: relative; }
.card-img { overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img img.alt { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; background: #fff; }
.card:hover .card-img img.alt { opacity: 1; }
.tag { position: absolute; top: 10px; left: 10px; background: var(--ink); color: var(--bone); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3em .7em; border-radius: 6px; }
.tag.low { background: var(--gold); color: var(--ink); }
.tag.out { background: var(--granite); }
.card-body { padding: 14px 16px 18px; display: grid; gap: 4px; }
.card-coll { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--fern); font-weight: 700; }
.card-name { font-weight: 600; line-height: 1.3; }
.card-price { font-weight: 700; }
.swatches { display: flex; gap: 5px; margin-top: 4px; }
.swatch-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); }
.empty { grid-column: 1/-1; text-align: center; padding: 3rem 1rem; color: #66665f; }
.skeleton { aspect-ratio: 3/4; border-radius: var(--radius); background: linear-gradient(90deg, #ece4d5, #f6f0e5, #ece4d5); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Story */
.story { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.story-text p { font-size: 1.08rem; max-width: 36em; }
.story-points { display: grid; gap: 14px; }
.story-points div { background: var(--paper); border-left: 6px solid var(--gold); border-radius: 10px; padding: 18px 20px; }
.story-points strong { display: block; font-family: var(--display); text-transform: uppercase; font-size: 1.6rem; font-weight: 400; }

/* Gallery: snapshot wall of people wearing the brand */
.gallery-band { background: var(--fern-dark); color: var(--bone); }
.gallery-band .eyebrow { color: var(--gold); }
.gallery-band .section-head p { color: rgba(245,239,228,.8); max-width: 30em; }
.gallery-grid { columns: 4 240px; column-gap: 16px; }
.snap { display: block; width: 100%; break-inside: avoid; margin: 0 0 16px; padding: 8px 8px 10px; background: var(--paper); border: 0; border-radius: 4px; cursor: zoom-in; box-shadow: 0 8px 22px rgba(0,0,0,.28); transform: rotate(var(--tilt, 0deg)); transition: transform .2s, box-shadow .2s; position: relative; }
.snap:hover, .snap:focus-visible { transform: rotate(0) scale(1.02); box-shadow: 0 14px 34px rgba(0,0,0,.4); z-index: 1; }
.snap img { width: 100%; height: auto; border-radius: 2px; background: #ddd; }
.snap .place { position: absolute; left: 14px; bottom: 18px; background: var(--gold); color: var(--ink); font: 700 .72rem var(--body); letter-spacing: .08em; text-transform: uppercase; padding: .3em .65em; border-radius: 4px; }
.gallery-foot { text-align: center; margin-top: 1.6rem; }
.gallery-foot p { color: rgba(245,239,228,.85); margin-top: 1.2rem; }
.gallery-foot a { color: var(--gold); font-weight: 600; }
.btn-light { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn-light:hover { background: var(--gold); border-color: var(--gold); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox::backdrop { background: rgba(14,20,15,.92); }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 10px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 90px); object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: var(--bone); font-weight: 600; font-size: .9rem; }
.lb-nav { background: none; border: 0; color: var(--bone); font-size: 3.2rem; cursor: pointer; height: 100%; }
.lb-nav:hover { color: var(--gold); }
.lb-close { position: absolute; top: 10px; right: 16px; color: var(--bone); z-index: 2; }

/* Visit */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.visit-card, .popups { background: var(--fern-dark); color: var(--bone); border-radius: 20px; padding: clamp(24px, 4vw, 40px); }
.popups { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.visit-card a:not(.btn) { color: var(--gold); font-weight: 600; }
.visit-card .btn-primary { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.visit-card .btn-ghost { color: var(--bone); border-color: var(--bone); }
.visit-card .btn-ghost:hover { background: var(--bone); color: var(--ink); }
.addr { font-size: 1.15rem; font-weight: 600; }
.visit-ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.popups ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.popups li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.popups .date { background: var(--lobster); color: #fff; border-radius: 10px; text-align: center; font-family: var(--display); line-height: 1.05; padding: .45em 0; text-transform: uppercase; }
.popups .date b { display: block; font-size: 1.6rem; font-weight: 400; }

/* Newsletter */
.newsletter { text-align: center; }
.newsletter p { color: #55554f; }
.newsletter-form { display: flex; gap: 10px; max-width: 480px; margin: 1.2rem auto 0; flex-wrap: wrap; }
.newsletter-form input { flex: 1 1 220px; padding: .9em 1.2em; border-radius: 999px; border: 1.5px solid var(--ink); font: 500 1rem var(--body); background: var(--paper); }
.form-note { color: var(--fern) !important; font-weight: 600; }

/* Footer */
.site-footer { background: var(--ink); color: var(--bone); padding: 40px clamp(16px, 4vw, 48px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.site-footer img { filter: invert(1); margin-bottom: .5rem; }
.site-footer p { margin: 0; font-size: .9rem; opacity: .8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }
.footer-links a { text-decoration: none; font-weight: 600; }
.secure { font-size: .82rem; opacity: .7; }

/* Product dialog */
.product-dialog { border: 0; border-radius: 22px; padding: 0; width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.product-dialog[open] { display: grid; grid-template-columns: 1.05fr 1fr; }
.product-dialog::backdrop { background: rgba(28,28,26,.55); backdrop-filter: blur(3px); }
.product-dialog .close { position: absolute; top: 10px; right: 12px; z-index: 2; }
.pd-media { background: #fff; padding: 20px; display: grid; gap: 12px; align-content: start; }
.pd-media > img { aspect-ratio: 1; object-fit: contain; width: 100%; }
.pd-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-thumbs button { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; }
.pd-thumbs button[aria-current="true"] { border-color: var(--ink); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-info { padding: 34px 30px 30px; overflow-y: auto; }
.pd-info h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.pd-price { font-size: 1.4rem; font-weight: 700; margin: 0 0 1rem; }
.opt-group { margin-bottom: 1rem; }
.opt-label { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .45rem; }
.opt-label span { font-weight: 500; text-transform: none; letter-spacing: 0; color: #55554f; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-width: 48px; padding: .55em .9em; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; font: 600 .92rem var(--body); cursor: pointer; }
.opt[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bone); }
.opt.soldout { color: #aaa; text-decoration: line-through; }
.opt.swatch { width: 38px; height: 38px; min-width: 0; padding: 0; border-radius: 50%; border: 2px solid var(--line); box-shadow: inset 0 0 0 3px #fff; }
.opt.swatch[aria-pressed="true"] { border-color: var(--ink); }
.stock-note { min-height: 1.4em; font-weight: 600; font-size: .92rem; color: var(--fern); margin: 0 0 .8rem; }
.stock-note.warn { color: var(--lobster); }
.qty-row { display: flex; gap: 12px; align-items: stretch; margin-bottom: 1.2rem; }
.qty-row .btn { flex: 1; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.qty button { background: none; border: 0; width: 40px; height: 100%; font-size: 1.2rem; cursor: pointer; }
.qty span { min-width: 26px; text-align: center; font-weight: 700; }
.pd-desc { color: #45453f; font-size: .97rem; }

/* Cart drawer */
.cart { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100vw); background: var(--paper); z-index: 40; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s ease; box-shadow: -10px 0 40px rgba(0,0,0,.2); }
.cart.open { transform: none; }
.scrim { position: fixed; inset: 0; background: rgba(28,28,26,.45); z-index: 30; opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.show { opacity: 1; pointer-events: auto; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 8px; }
.cart-head h2 { margin: 0; font-size: 1.8rem; }
.ship-meter { margin: 0 20px 8px; font-size: .88rem; font-weight: 600; }
.ship-bar { height: 6px; background: var(--line); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.ship-bar i { display: block; height: 100%; background: var(--fern); transition: width .3s; }
.cart-items { list-style: none; margin: 0; padding: 0 20px; flex: 1; overflow-y: auto; }
.cart-items li { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-items img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 8px; }
.ci-name { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.ci-var { font-size: .82rem; color: #66665f; }
.ci-qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.ci-qty button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.ci-right { text-align: right; font-weight: 700; }
.ci-remove { display: block; background: none; border: 0; color: #888; font-size: .8rem; cursor: pointer; text-decoration: underline; margin-top: 4px; }
.cart-empty { text-align: center; color: #66665f; padding: 2.5rem 0; border: 0 !important; display: block !important; }
.cart-foot { padding: 16px 20px 22px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.15rem; margin-bottom: .2rem; }
.fine { font-size: .8rem; color: #66665f; margin: .3rem 0 .9rem; }
.center { text-align: center; }
.error { color: var(--lobster); font-weight: 600; font-size: .9rem; margin: .4rem 0 0; min-height: 1em; }

/* Responsive */
@media (max-width: 860px) {
  .nav { display: none; }
  .cart-btn { margin-left: auto; }
  .hero, .story, .visit { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; }
  .product-dialog[open] { grid-template-columns: 1fr; overflow-y: auto; }
  .pd-info { overflow: visible; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px 12px 14px; }
  .collections { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .collection-tile span { font-size: 1.1rem; }
  .brand span { font-size: 1.1rem; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .chip { flex: none; }
  .filter-row select { flex: 1 1 40%; min-width: 0; }
  .gallery-grid { columns: 2; column-gap: 10px; }
  .snap { margin-bottom: 10px; padding: 5px 5px 7px; }
  .snap .place { left: 9px; bottom: 12px; font-size: .62rem; }
  .lightbox[open] { grid-template-columns: 40px 1fr 40px; }
  .lb-nav { font-size: 2.4rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
