:root{
  --bg-main:#0b0b0d;
  --bg-top:#070709;
  --bg-card:#131316;

  --text:#f2f2f2;
  --muted:#9ca3af;
  --soft: rgba(255,255,255,0.08);
  --soft2: rgba(255,255,255,0.12);

  --accent:#b11226;
  --accentGlow: rgba(177,18,38,0.35);

  --radius: 18px;
  --shadow: 0 18px 60px rgba(0,0,0,0.55);
  --shadow2: 0 20px 70px rgba(177,18,38,0.22);

  --max: 1200px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 30% -10%, rgba(177,18,38,0.18), transparent 55%),
              radial-gradient(1200px 800px at 80% 20%, rgba(255,255,255,0.06), transparent 55%),
              linear-gradient(180deg, var(--bg-top), var(--bg-main));
  color: var(--text);
  overflow-x:hidden;
}

/* subtle grain overlay */
body::before{
  content:"";
  position: fixed;
  inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  opacity:.12;
  pointer-events:none;
  z-index:-1;
  mix-blend-mode: overlay;
}

a{ color:inherit; text-decoration:none; }
button, input, select{ font-family:inherit; }

/* =========================
   HEADER
========================= */
.header{
  position: sticky;
  top:0;
  z-index:999;
  background: rgba(10,10,12,0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--soft);
}

.nav{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}

.brand{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}

.logo{
  font-weight:800;
  letter-spacing:-0.02em;
  font-size: 18px;
}

.logo span{
  color: var(--accent);
}

.brand-sub{
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.links{
  display:flex;
  gap: 18px;
  align-items:center;
}

.links a{
  font-size: 14px;
  color: rgba(242,242,242,0.85);
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .2s ease, color .2s ease;
}

.links a:hover{
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.links a.active{
  background: rgba(177,18,38,0.16);
  border: 1px solid rgba(177,18,38,0.28);
  color: var(--text);
}

.actions{
  display:flex;
  align-items:center;
  gap: 10px;
}

.icon-btn{
  width: 40px;
  height: 40px;
  display:grid;
  place-items:center;
  border-radius: 12px;
  border: 1px solid var(--soft);
  background: rgba(255,255,255,0.04);
  color: rgba(242,242,242,0.92);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  position: relative;
}

.icon-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.07);
  border-color: var(--soft2);
}

.cart-badge{
  position:absolute;
  top: 7px;
  right: 7px;
  font-size: 11px;
  font-weight: 700;
  background: var(--accent);
  color: white;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* =========================
   PAGE WRAP
========================= */
.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px 44px;
}

.title{
  padding: 20px 0 14px;
}

.title h1{
  margin:0;
  font-size: 44px;
  letter-spacing: -0.03em;
}

.title p{
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 700px;
}

/* toolbar */
.toolbar{
  margin-top: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--soft);
  background: rgba(255,255,255,0.035);
  border-radius: var(--radius);
}

.search{
  display:flex;
  align-items:center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 240px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.25);
  color: rgba(242,242,242,0.9);
}

.search input{
  width: 100%;
  background: transparent;
  border:0;
  outline:0;
  color: var(--text);
  font-size: 14px;
}

.search input::placeholder{
  color: rgba(156,163,175,0.8);
}

.right-tools{
  display:flex;
  align-items:center;
  gap: 14px;
  flex: 0 0 auto;
}

.count{
  color: var(--muted);
  font-size: 13px;
}

.sort{
  display:flex;
  align-items:center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.sort select{
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  outline: none;
}

/* =========================
   GRID + CARDS
========================= */
.grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card{
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  overflow:hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.card:hover{
  transform: translateY(-6px);
  border-color: rgba(177,18,38,0.35);
  box-shadow: var(--shadow2);
}

.card-media{
  position: relative;
  display:block;
  padding: 18px;
  background: radial-gradient(600px 240px at 50% 0%, rgba(177,18,38,0.15), transparent 60%),
              linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.45));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.media-placeholder{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 20px 55px rgba(0,0,0,0.45);
  transform: translateZ(0);
  transition: transform .35s ease;
}

.card:hover .media-placeholder{
  transform: scale(1.04);
}

/* Placeholder styles (replace with images later) */
.media-placeholder.p1{
  background: linear-gradient(135deg, rgba(177,18,38,0.8), rgba(255,255,255,0.12));
}
.media-placeholder.p2{
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(177,18,38,0.35));
}
.media-placeholder.p3{
  background: linear-gradient(135deg, rgba(40,40,48,0.95), rgba(177,18,38,0.55));
}
.media-placeholder.p4{
  background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(40,40,48,0.95));
}

.badge{
  position:absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(177,18,38,0.22);
  border: 1px solid rgba(177,18,38,0.35);
  color: var(--text);
}

.badge.ghost{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(242,242,242,0.95);
}

.card-body{
  padding: 14px 16px 16px;
}

.card-title{
  margin:0;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.card-tag{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.card-bottom{
  margin-top: 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.price{
  font-weight: 800;
  letter-spacing: -0.01em;
}

.btn{
  cursor:pointer;
  border: 1px solid rgba(177,18,38,0.4);
  background: rgba(177,18,38,0.18);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(177,18,38,0.28);
  border-color: rgba(177,18,38,0.6);
}

.media-frame{
  width: 100%;
  aspect-ratio: 1 / 1;          /* perfect square */
  border-radius: 16px;          /* match your square rounding */
  overflow: hidden;             /* keeps image inside the rounded corners */
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 20px 55px rgba(0,0,0,0.45);
  background: rgba(255,255,255,0.04);
}

.media-frame img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;            /* fills square, may crop edges */
  object-position: center;
  transition: transform .35s ease;
}

.card:hover .media-frame img{
  transform: scale(1.04);
}


/* =========================
   FOOTER
========================= */
.footer{
  border-top: 1px solid var(--soft);
  background: rgba(0,0,0,0.25);
}

.footer-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links{
  display:flex;
  gap: 14px;
}

.footer-links a:hover{
  color: var(--text);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px){
  .grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 850px){
  .links{ display:none; } /* optional: swap to hamburger later */
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .title h1{ font-size: 36px; }
}

@media (max-width: 520px){
  .grid{ grid-template-columns: 1fr; }
  .toolbar{ flex-direction:column; align-items:stretch; }
  .right-tools{ justify-content:space-between; }
}
/* 🚫 COMING SOON / DISABLED (SHOP + PRODUCT PAGES) */
/* 🚫 COMING SOON / DISABLED (SHOP + PRODUCT) */
.coming-soon {
  cursor: not-allowed;           /* 🚫 cursor works now */
  user-select: none;

  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  color: rgba(242,242,242,0.45) !important;

  box-shadow: none !important;
  filter: grayscale(1);
}

/* Block interaction WITHOUT killing cursor */
.coming-soon {
  position: relative;
}

/* Invisible overlay to block clicks */
.coming-soon::after {
  content: "";
  position: absolute;
  inset: 0;
  cursor: not-allowed;
}
/* ===== Shop grid + cards polish (ADD TO BOTTOM OF shop.css) ===== */

#productGrid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  align-items: stretch;
}

/* If your CSS already uses .card, this will enhance it, not replace it */
.card{
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  position: relative;
  overflow: hidden;
}

/* ===== FIX PRODUCT IMAGE FORMATTING (paste at bottom of shop.css) ===== */

/* Card media frame */
.card-media{
  height: 170px;                 /* tweak: 160–220 looks good */
  padding: 14px;                 /* creates breathing room */
  display: flex;
  align-items: center;
  justify-content: center;

  /* glass frame look */
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.07),
    rgba(255,255,255,0.03)
  );
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

/* Image behavior: NO stretching */
.card-media img{
  width: 100%;
  height: 100%;

  /* KEY: keep the whole image visible */
  object-fit: contain;           /* <- use contain not cover */
  object-position: center;

  display: block;
  border-radius: 12px;

  /* subtle pop */
  filter: saturate(1.05) contrast(1.05);
}

/* ===== RED PRODUCT IMAGE FRAME ===== */

.card-media{
  height: 180px;
  padding: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.02)
  );

  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ===== CLEAN SQUARE PRODUCT FRAME (FADED RED) ===== */

.card-media{
  aspect-ratio: 1 / 1;          /* 🔑 forces perfect square */
  width: 100%;
  padding: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.05),
    rgba(255,255,255,0.015)
  );

  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* INNER FADED RED FRAME */
.card-media img{
  width: 100%;
  height: 100%;

  /* Image clarity */
  object-fit: contain;          /* shows whole product */
  object-position: center;

  /* 🟥 faded red frame */
  background: linear-gradient(
    180deg,
    rgba(90,10,10,0.55),
    rgba(30,5,5,0.65)
  );

  border: 1px solid rgba(180,60,60,0.45);
  border-radius: 14px;

  padding: 16px;               /* space between image + frame */

  /* subtle cinematic glow */
  box-shadow:
    inset 0 0 0 1px rgba(255,120,120,0.12),
    0 14px 32px rgba(0,0,0,0.55);

  display: block;
}

/* Slight polish on hover (not distracting) */
.card:hover .card-media img{
  transform: scale(1.025);
}

.card-media img{
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background .25s ease;
}

.card-top{
  padding: 14px 14px 10px 14px;
}

.card-title{
  margin: 0 0 6px 0;
  font-size: 16px;
  line-height: 1.2;
}

.card-sub{
  margin: 0;
  opacity: 0.75;
  font-size: 13px;
}

/* bottom actions */
.card-actions{
  padding: 0 14px 14px 14px;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content: space-between;
}

.card-price{
  font-weight: 800;
  letter-spacing: .2px;
}

/* button should fill nicely */
.card-actions .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
}
.card-actions .btn svg{
  margin-right: 6px;
  width: 16px;
  height: 16px;
  fill: white;
}
.cart-link{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cart-ico{
  font-size: 18px; /* swap if using svg */
  line-height: 1;
}

.cart-badge{
  position: absolute;
  top: -8px;
  right: -10px;

  min-width: 20px;
  height: 20px;
  padding: 0 6px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  background: rgba(220, 60, 60, 0.95);
  color: #fff;

  font-weight: 900;
  font-size: 12px;

  border: 2px solid rgba(0,0,0,0.65);
  box-shadow: 0 10px 22px rgba(220, 60, 60, 0.18);
}
/* ===== REAL MOCKUP LOOK FOR SHOP CARDS ===== */

/* The image stage (square frame) */
.card-media{
  aspect-ratio: 1 / 1;
  width: 100%;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);

  /* “studio backdrop” */
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,0.08), rgba(0,0,0,0) 55%),
    radial-gradient(120% 120% at 70% 80%, rgba(220,60,60,0.18), rgba(0,0,0,0) 60%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.12));
}

/* ===== OFFICIAL STORE PRODUCT IMAGE FRAME ===== */

.card-media{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;

  /* subtle studio backdrop */
  background:
    radial-gradient(140% 120% at 30% 20%, rgba(255,255,255,0.06), transparent 55%),
    radial-gradient(140% 120% at 70% 80%, rgba(220,60,60,0.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.25));

  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.card-media img{
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;      /* 🔑 fills the whole box */
  object-position: center;

  border-radius: 0;

  /* realism */
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    0 18px 40px rgba(0,0,0,0.45);

  transition: transform .35s ease, filter .35s ease;
  filter: contrast(1.05) saturate(1.05);
}
.card:hover .card-media img{
  transform: scale(1.06);
}
.card[data-out="true"] {
  opacity: 0.6;
  filter: grayscale(40%);
  cursor: not-allowed;
  position: relative;
  overflow: hidden;
}

.card[data-out="true"] * {
  cursor: not-allowed !important;
}
.ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;

  padding: 6px 12px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: #fff;
  background: linear-gradient(135deg, #5c0a0a, #b30f0f);

  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);

  pointer-events: none;
}