/* ==== Site max width & centering ==== */
:root { --site-max: 1400px; }
/* Site-wide custom cursor */

/* Constrain main content blocks */
.wrap,
.site-header,
.site-footer {
  max-width: var(--site-max);
  margin-inline: auto;
  padding-inline: clamp(12px, 3vw, 24px); 
}

/* --- DTMF custom font --- */
@font-face {
  font-family: "DTMF";
  src: url("../webfonts/dtmf.otf") format("otf"),
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Reset-ish */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

/* Background */
body {
  font-family: "DTMF", Impact, sans-serif;
  color: #FFF5DA;
  background: #1e90c2 url("../../images/maxresdefault.webp") center/cover fixed no-repeat;
}

/* Top banner */
.top-banner {
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  background: rgba(255,255,255,0.15);
  text-transform: uppercase;
}

/* Header */
/* ===== Header (logo above links, NOT sticky) ===== */
.site-header{
  max-width: var(--site-max);
  margin-inline: auto;
  padding: 16px clamp(16px,4vw,40px);
  display: grid; align-items: center;
  grid-template-columns: 1fr auto 1fr;         
  grid-template-rows: auto auto;                 
  grid-template-areas:
    "burger brand tools"
    "nav    nav   nav";
  row-gap: 30px;
}

/* brand (center) */
.brand{ grid-area: brand; justify-self: center; }
.logo img{
  /* width: clamp(96px, 10vw, 128px);   */
  display: block;
}

/* tools (right) */
.tools{ grid-area: tools; justify-self: end; display:flex; align-items:center; gap:12px; font-weight:700; }
.tools .icon{ width:52px; height:52px; display:inline-block; color:#fff; }

/* nav (under logo) */
.site-nav{ grid-area: nav; justify-self: center; display:flex; gap:24px; }
.site-nav span{
  font-weight:700; text-transform:capitalize;
  cursor:inherit; user-select:none;
}

/* burger (left) */
.burger{ grid-area: burger; display:none; cursor:pointer; align-items:center; justify-content:center; }
.burger{ display:none; }
.burger span{
  display:block; width:24px; height:2px; background:#fff; border-radius:2px; margin:3px 0;
}

/* ----- Mobile header behavior ----- */
@media (max-width: 900px){
  .burger{ display:inline-flex; flex-direction: column; }
  .site-nav{ display:none; flex-direction:column; gap:16px; text-align:center; }
  #nav-toggle:checked ~ .site-nav{ display:flex; }

  /* hide currency on mobile but keep cart icon */
  .tools .region-currency{ display:none; }
  .tools .cart-icon{ display:inline-flex; }
  .site-header{
  /* three columns: left (burger) | center (logo) | right (tools) */
  grid-template-columns: minmax(44px,1fr) auto minmax(52px,1fr);
  /* adds breathing room between logo and the ends */
  column-gap: clamp(16px, 8vw, 48px);
}
}



/* Layout wrapper */
.wrap { padding: 40px clamp(12px, 4vw, 48px) 72px; }

/* Product grid: 3 on desktop, 1 on mobile */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 32px);
}
@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* Cards */
.product-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  /* keep everything non-interactive simply by not using <a>.
     don't disable pointer-events on the card; we need :hover. */
  cursor: inherit;
}

.product-card .media {
  position: relative;
  border-radius: 18px;          /* round just the image edges (optional) */
  overflow: hidden;
  /* subtle floating look without a container */
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.25));
  background: transparent;
}

/* Front/back hover swap */
.product-card .media img {
  width: 100%;
  display: block;
  transition: opacity .25s ease;
}
.product-card .media img.back {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.product-card:hover .media img.back { opacity: 1; }
.product-card:hover .media img.front { opacity: 0; }



/* Badges */
.pill {
  position: absolute; left: 12px; top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  color: #FFF5DA;
  background: #22c55e; /* green "Sale" look if you use class="pill sale" */
}
.pill.sold { background: #b0a9a2; text-transform: uppercase; }

/* Typography area under the image */
.product-card .title {
  margin: 14px 0 6px;
  font-weight: 800;
}
.price { margin: 0 0 18px; font-weight: 800; }
.price .was { opacity: .7; text-decoration: line-through; margin-right: 10px; }

/* Grid stays 3-up desktop / 1-up mobile */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; } }
/* Footer */
.site-footer {
  text-align: center;
  opacity: .75;
  padding: 32px 12px 56px;
}

/* optional: use DTMF for headings/titles */
.title, .site-nav span, .wordmark { font-family: "DTMF", Impact, sans-serif; }

/* Single-image cards: don't fade the front on hover */
.product-card.single:hover .media img.front { opacity: 1; }

/* Single-image cards: gentle zoom on hover */
.product-card.single .media:hover img.front { transform: scale(1.04); }

/* (Optional safety) If a .back slipped in, hide it on single cards */
.product-card.single .media img.back { display: none; }

/* Make every grid item the same height per row */
.product-grid { align-items: stretch; }

/* Let each card fill that height and stack internally */
.product-card { display: flex; flex-direction: column; }

/* Push the text block to the bottom so titles line up across the row */
.product-card .title { margin-top: auto; }
/* (optional) tiny spacing between title and price */
.product-card .price { margin-top: 6px; }
/* Tame wide/short products (like the hat) without touching others */
.product-card.wide .media img{
 height: auto;
  width: auto;
  max-width: 80%;
  display: block;
  margin: 15% auto 0;
}


/* optional: a touch looser on mobile */
@media (max-width:900px){
  .product-card.wide .media img{ max-width: 88%; }
}
