/* The Dog Director Shop — storefront styles (premium hub-matched theme) */
:root {
  --ink: #1c1a16;
  --ink-soft: #6b6356;
  --bg: #fbf7ef;
  --cream: #f3e9d6;
  --panel: #fffdf8;
  --line: #e9e0cf;
  --accent: #c4842c;
  --accent-deep: #8a5618;
  --accent-glow: #e7a94b;
  --forest: #2f4a3a;
  --good: #2f4a3a;
  --radius: 16px;
  --shadow: 0 18px 50px -18px rgba(60,40,12,.34);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; overflow-x: hidden; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: none; color: var(--accent); }

/* ===== HEADER (glassy sticky) ===== */
header.site {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding: 13px 32px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  background: rgba(251,247,239,.82);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-logo { display: block; object-fit: contain; flex: 0 0 auto; }
.brand-logo-primary { width: 118px; height: 48px; }
.brand-logo-secondary { width: 52px; height: 52px; border-radius: 50%; }
.brand-divider { width: 1px; height: 34px; background: var(--line); flex: 0 0 auto; }
.brand-sub {
  font-family: "Inter", sans-serif;
  font-weight: 700; color: var(--accent-deep); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.16em;
}
header.site nav { display: flex; gap: 24px; font-size: 14px; font-weight: 500; }
header.site nav a { color: var(--ink-soft); }
header.site nav a:hover { color: var(--accent-deep); }

/* ===== HERO (warm gradient) ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 84px 32px 60px; text-align: center;
  background:
    radial-gradient(1200px 540px at 78% -10%, rgba(231,169,75,.30), transparent 60%),
    radial-gradient(900px 500px at 8% 12%, rgba(47,74,58,.12), transparent 55%),
    linear-gradient(180deg, #fbf3e3, var(--bg) 72%);
}
.hero:before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(138,86,24,.05) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; max-width: 760px; margin-left: auto; margin-right: auto; }
.hero h1 {
  font-family: "Playfair Display", Georgia, serif; font-weight: 900;
  font-size: clamp(40px, 6vw, 68px); line-height: 1.04; margin: 0 0 18px;
  letter-spacing: -1.2px;
}
.hero p { font-size: clamp(16px, 2vw, 19px); color: var(--ink-soft); max-width: 640px; margin: 0 auto; }

/* ===== MAIN / CATALOG ===== */
main { padding: 0 32px 70px; max-width: 1200px; margin: 0 auto; }
h2 {
  font-family: "Playfair Display", Georgia, serif; font-weight: 800;
  font-size: clamp(26px, 4vw, 36px); margin: 0 0 22px; letter-spacing: -.6px;
}
.catalog-bar {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin: 48px 0 28px;
}
.catalog-bar h2 { margin: 0; }
.shirt-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  padding: 4px; box-shadow: 0 10px 28px -16px rgba(60,40,12,.3);
}
.shirt-toggle[hidden] { display: none; }
.shirt-toggle span {
  padding: 0 8px; color: var(--ink-soft); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.shirt-toggle button {
  border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft);
  padding: 7px 13px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
  transition: background .15s, color .15s;
}
.shirt-toggle button.active { background: var(--ink); color: #fff; }

.catalog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 24px;
}
.card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .18s, box-shadow .18s; color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 28px -16px rgba(60,40,12,.3);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -20px rgba(60,40,12,.42);
  text-decoration: none; color: var(--ink);
}
.card .thumb {
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 35%, #fff, var(--cream));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-bottom: 1px solid var(--line);
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card h3 {
  margin: 16px 18px 4px; font-size: 16.5px; font-weight: 700; line-height: 1.25;
}
.card .sub { margin: 0 18px 10px; color: var(--ink-soft); font-size: 13.5px; min-height: 18px; }
.card .price {
  margin: 0 18px 16px; font-weight: 800; color: var(--accent-deep); font-size: 15px;
}

/* ===== PRODUCT MOCKS (unchanged geometry, warmer base) ===== */
.product-mock {
  position: relative; width: 100%; height: 100%; min-height: 250px;
  display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,.92), transparent 34%),
    linear-gradient(135deg, var(--cream), #fffdf8);
}
.product-mock .art {
  position: absolute; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0,0,0,.12));
  z-index: 3;
}
.product-mock .brand-mark {
  position: absolute; object-fit: contain; z-index: 4;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.12));
  pointer-events: none;
  display: none;
}
.product-mock.tee { background-size: 142%; background-position: center 34%; }
.product-mock.mug { background-size: 128%; background-position: center 48%; }
.product-mock.tee { background-image: url("lifestyle/tee-model-white.png"); }
.product-mock.tee.tee-dark { background-image: url("lifestyle/tee-model-black.png"); }
.product-mock.mug { background-image: url("lifestyle/mug-desk-white.png"); }
.product-mock.tee:before,
.product-mock.tee:after,
.product-mock.mug:before,
.product-mock.mug:after {
  display: none;
}
.product-mock.tee .art {
  width: 38%;
  height: 38%;
  top: 38%;
  left: 50%;
  transform: translate(-50%,-50%);
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.12));
}
.product-mock.mug .art {
  width: 30%;
  height: 34%;
  top: 52%;
  left: 40%;
  transform: translate(-50%,-50%);
  filter: drop-shadow(0 4px 7px rgba(0,0,0,.14));
}
.product-mock.tee .art,
.product-mock.mug .art { cursor: zoom-in; }
.product-mock:not(.tee):not(.mug).product-mock.tee:before {
  content:""; width: 72%; aspect-ratio: .82; border-radius: 26px 26px 18px 18px;
  background: var(--shirt, #151515);
  clip-path: polygon(27% 0, 37% 8%, 63% 8%, 73% 0, 96% 16%, 84% 38%, 74% 32%, 74% 100%, 26% 100%, 26% 32%, 16% 38%, 4% 16%);
  box-shadow: inset 0 22px 36px rgba(255,255,255,.12), inset 0 -26px 38px rgba(0,0,0,.18), 0 22px 42px rgba(0,0,0,.16);
}
.product-mock:not(.tee):not(.mug).product-mock.tee:after {
  content:""; position:absolute; top:23%; width:16%; aspect-ratio:1.9; border:2px solid rgba(255,255,255,.24);
  border-top:0; border-radius:0 0 999px 999px; z-index:2;
}
.product-mock.tote:before {
  content:""; width: 56%; aspect-ratio: .82; border-radius: 6px 6px 20px 20px;
  background: linear-gradient(115deg, #e4d3b8, #f4e7d2);
  box-shadow: inset -14px 0 26px rgba(0,0,0,.08), 0 22px 42px rgba(0,0,0,.14);
}
.product-mock.tote:after {
  content:""; position:absolute; top:20%; width:24%; height:18%;
  border:9px solid #c5aa82; border-bottom:0; border-radius:999px 999px 0 0;
}
.product-mock.tote .art { width: 29%; height: 29%; top: 52%; left: 50%; transform: translate(-50%,-50%); }
.product-mock.tote .brand-mark { width: 9%; height: 9%; top: 70%; left: 63%; opacity: .86; }
.product-mock.hoodie:before {
  content:""; width: 76%; aspect-ratio: .78; border-radius: 30px 30px 20px 20px;
  background: var(--shirt, #f8f5ef);
  clip-path: polygon(28% 0, 39% 9%, 61% 9%, 72% 0, 97% 17%, 85% 42%, 74% 36%, 74% 100%, 26% 100%, 26% 36%, 15% 42%, 3% 17%);
  box-shadow: inset 0 24px 36px rgba(255,255,255,.16), inset 0 -26px 38px rgba(0,0,0,.16), 0 22px 42px rgba(0,0,0,.16);
}
.product-mock.hoodie:after {
  content:""; position:absolute; top:22%; width:30%; height:16%;
  border:2px solid rgba(0,0,0,.16); border-top:0; border-radius:0 0 999px 999px; z-index:2;
}
.product-mock.hoodie .art { width: 29%; height: 29%; top: 46%; left: 50%; transform: translate(-50%,-50%); }
.product-mock.hoodie .brand-mark { width: 8%; height: 8%; top: 39%; left: 70%; transform: rotate(9deg); opacity: .88; }
.product-mock.sweatshirt:before {
  content:""; width: 74%; aspect-ratio: .8; border-radius: 34px 34px 18px 18px;
  background: var(--shirt, #f8f5ef);
  clip-path: polygon(29% 0, 38% 7%, 62% 7%, 71% 0, 95% 16%, 84% 40%, 74% 34%, 74% 100%, 26% 100%, 26% 34%, 16% 40%, 5% 16%);
  box-shadow: inset 0 22px 36px rgba(255,255,255,.14), inset 0 -24px 36px rgba(0,0,0,.14), 0 22px 42px rgba(0,0,0,.15);
}
.product-mock.sweatshirt:after {
  content:""; position:absolute; top:22%; width:17%; aspect-ratio:1.9;
  border:2px solid rgba(0,0,0,.15); border-top:0; border-radius:0 0 999px 999px; z-index:2;
}
.product-mock.sweatshirt .art { width: 31%; height: 31%; top: 43%; left: 50%; transform: translate(-50%,-50%); }
.product-mock.sweatshirt .brand-mark { width: 8%; height: 8%; top: 37%; left: 70%; transform: rotate(9deg); opacity: .88; }
.product-mock.sticker:before {
  content:""; width: 52%; aspect-ratio: 1; border-radius: 24px;
  background: linear-gradient(145deg, #ffffff, #f3efe6);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.04), 0 22px 42px rgba(0,0,0,.14);
  transform: rotate(-4deg);
}
.product-mock.sticker:after {
  content:""; position:absolute; right:25%; bottom:27%; width:15%; height:15%;
  border-radius: 0 0 20px 0; background: linear-gradient(135deg, rgba(0,0,0,.12), rgba(255,255,255,.72));
  transform: rotate(-4deg); z-index:2;
}
.product-mock.sticker .art { width: 36%; height: 36%; top: 49%; left: 50%; transform: translate(-50%,-50%) rotate(-4deg); }
.product-mock.sticker .brand-mark { width: 8%; height: 8%; top: 62%; left: 61%; opacity: .8; }
.product-mock.bandana:before {
  content:""; width: 62%; aspect-ratio: 1; border-radius: 12px;
  background: linear-gradient(145deg, #fffdf8, #eee5d5);
  clip-path: polygon(50% 4%, 96% 50%, 50% 96%, 4% 50%);
  box-shadow: inset -14px 0 26px rgba(0,0,0,.08), 0 22px 42px rgba(0,0,0,.14);
}
.product-mock.bandana .art { width: 30%; height: 30%; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.product-mock.bandana .brand-mark { width: 9%; height: 9%; top: 62%; left: 58%; opacity: .82; }

.loading {
  grid-column: 1 / -1; text-align: center; padding: 60px; color: var(--ink-soft);
}

/* ===== PRODUCT PAGE ===== */
.product-layout {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; padding: 40px 0;
}
@media (max-width: 760px) { .product-layout { grid-template-columns: 1fr; } }
.gallery {
  background: radial-gradient(circle at 50% 35%, #fff, var(--cream));
  border-radius: var(--radius); aspect-ratio: 1;
  display: grid; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.gallery img { max-width: 100%; max-height: 100%; }
.preview-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.preview-tabs button {
  border:1px solid var(--line); background:var(--panel); color:var(--ink-soft);
  border-radius:999px; padding:8px 13px; cursor:pointer; font-weight:700; font-size:12px;
  transition: background .15s, color .15s, border-color .15s;
}
.preview-tabs button:hover { border-color: var(--accent); color: var(--accent-deep); }
.preview-tabs button.active { background:var(--ink); color:white; border-color:var(--ink); }
.zoom-print {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 10px 15px;
  margin-top: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px -16px rgba(60,40,12,.3);
}
.zoom-print:hover { border-color: var(--accent); color: var(--ink); }
.zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(28,26,22,.78);
  display: grid;
  place-items: center;
  padding: 28px;
}
.zoom-modal img {
  max-width: min(92vw, 920px);
  max-height: 88vh;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.38);
}
.zoom-modal button {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}
.info h1 {
  font-family: "Playfair Display", Georgia, serif; font-weight: 800;
  font-size: clamp(30px, 4vw, 42px); margin: 0 0 6px; line-height: 1.05; letter-spacing: -.6px;
}
.info .subtitle { color: var(--ink-soft); margin-bottom: 18px; font-size: 15.5px; }
.info .price-big {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px; font-weight: 800; color: var(--accent-deep); margin: 18px 0;
}
.info label {
  display: block; font-size: 11px; color: var(--ink-soft); margin: 14px 0 5px;
  text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700;
}
.product-shirt-toggle { margin: 4px 0 8px; }
.info select, .info input {
  width: 100%; max-width: 300px; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--panel); font-size: 14px; font-family: inherit;
  color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.info select:focus, .info input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(196,132,44,.16);
}
.btn-buy {
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: white; border: none;
  padding: 15px 30px; border-radius: 999px; font-size: 16px; font-weight: 700;
  cursor: pointer; margin-top: 24px; font-family: inherit;
  box-shadow: 0 12px 30px -8px rgba(196,132,44,.6);
  transition: transform .15s, box-shadow .15s;
}
.btn-buy:hover {
  transform: translateY(-2px); text-decoration: none; color: #fff;
  box-shadow: 0 18px 38px -8px rgba(196,132,44,.7);
}
.btn-buy:disabled { opacity: 0.6; cursor: wait; transform: none; }
.small { font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; }

/* ===== FOOTER ===== */
footer {
  padding: 46px 32px 40px; border-top: 1px solid rgba(255,255,255,.12);
  background: var(--ink); color: #cfc6b6;
  text-align: center; font-size: 13.5px;
}
footer a { color: #e7d9bf; }
footer a:hover { color: #fff; }
footer .small { margin-top: 8px; color: #9d9484; }

/* ===== SUCCESS PAGE ===== */
.success { padding: 80px 32px; max-width: 640px; margin: 0 auto; text-align: center; }
.success-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 56px 36px; box-shadow: var(--shadow);
}
.success-card .big-mark {
  font-size: 52px; margin-bottom: 14px;
  background: linear-gradient(120deg, var(--accent-deep), var(--accent-glow));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.success-card h1 {
  font-family: "Playfair Display", Georgia, serif; font-weight: 800;
  font-size: clamp(28px, 4vw, 34px); margin: 0 0 12px; letter-spacing: -.5px;
}
.success-card .quote { font-style: italic; color: var(--ink-soft); margin: 24px 0; }

@media (max-width: 720px) {
  header.site { align-items: flex-start; flex-direction: column; padding: 12px 18px; }
  .brand { width: 100%; }
  .brand-logo-primary { width: 102px; height: 42px; }
  .brand-logo-secondary { width: 44px; height: 44px; }
  header.site nav { width: 100%; justify-content: space-between; gap: 12px; }
  .hero { padding: 56px 20px 44px; text-align: left; }
  .hero > * { margin-left: 0; }
  .hero p { margin: 0; }
  main { padding: 0 20px 56px; }
  .catalog-bar { align-items: flex-start; flex-direction: column; }
  .shirt-toggle { max-width: 100%; flex-wrap: wrap; }
}
