:root{
  --bg:#050013;
  --card: rgba(255,255,255,0.06);
  --card2: rgba(0,0,0,0.25);
  --border: rgba(255,255,255,0.12);
  --text:#f3f2ff;
  --muted: rgba(243,242,255,0.72);
  --accent:#9BFF5A;
  --accent2:#7bffb6;
  --shadow: 0 18px 50px rgba(0,0,0,0.55);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  min-height:100vh;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(138,0,255,0.35), transparent 60%),
    radial-gradient(900px 500px at 80% 10%, rgba(0,255,140,0.20), transparent 60%),
    linear-gradient(180deg, #080016 0%, #050013 60%, #050013 100%);
}

a{color:inherit;text-decoration:none}

/* ======================
   HEADER / NAV
   ====================== */
header{
  position:sticky;
  top:0;
  z-index:999;
  backdrop-filter: blur(14px);
  background: linear-gradient(to right, rgba(10,1,45,0.92), rgba(2,15,22,0.92));
  border-bottom: 1px solid rgba(155,255,90,0.18);
}
.nav-inner{
  max-width:1100px;
  margin:0 auto;
  padding: 0.75rem 1rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}
.logo-link{display:flex;align-items:center}
.logo-circle{
  width:46px;height:46px;
  border-radius:999px;
  border:2px solid rgba(155,255,90,0.55);
  overflow:hidden;
  box-shadow: 0 0 0 6px rgba(155,255,90,0.08);
}
.logo-circle img{width:100%;height:100%;object-fit:cover;display:block}

nav{
  display:flex;
  align-items:center;
  gap:0.65rem;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.nav-link{
  padding:0.55rem 0.9rem;
  border-radius:999px;
  border:1px solid rgba(155,255,90,0.20);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-weight:700;
  letter-spacing:0.2px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.nav-link:hover{transform: translateY(-1px); background: rgba(255,255,255,0.06)}
.nav-link.active{
  background: var(--accent);
  color:#0a010d;
  border-color: rgba(0,0,0,0.15);
  box-shadow: 0 10px 30px rgba(155,255,90,0.22);
}
.cart-pill{
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
}
.cart-pill span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:26px;
  height:22px;
  padding:0 8px;
  border-radius:999px;
  background: rgba(0,0,0,0.25);
  border:1px solid rgba(0,0,0,0.25);
}

/* ======================
   PAGE LAYOUT
   ====================== */
.page{
  max-width:1100px;
  margin:0 auto;
  padding: 1.5rem 1rem 2.25rem;
}
h1,h2,h3{margin:0 0 0.75rem}
h2{font-size: 2rem; letter-spacing:-0.5px}
.subtitle{
  margin:0 0 1.25rem;
  color:var(--muted);
  font-size:0.98rem;
  line-height:1.45;
}

footer{
  max-width:1100px;
  margin:0 auto;
  padding: 1.25rem 1rem 2.25rem;
  text-align:center;
  color: var(--muted);
}
footer strong{color:var(--accent)}

/* ======================
   GRID / RECORD CARDS
   ====================== */
.products-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 800px){
  .products-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); gap:1.25rem; }
}
@media (min-width: 1100px){
  .products-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.record-card{
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  gap: 10px;
}

/* Title / meta */
.record-card h3{
  font-size: 1rem;
  margin: 0;
}
.record-grade{
  font-size: 0.86rem;
  color: var(--muted);
}
.record-price{
  font-weight: 900;
  font-size: 1.05rem;
}
.record-desc{
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.35;
}
.qty-text{
  font-size:0.85rem;
  color:var(--muted);
}

/* Buttons */
.btn-primary{
  border:none;
  background: var(--accent);
  color:#0a010d;
  font-weight:900;
  border-radius:999px;
  padding: 0.65rem 1rem;
  cursor:pointer;
  transition: transform .12s ease, filter .12s ease;
}
.btn-primary:hover{transform: translateY(-1px); filter:brightness(1.03)}
.btn-outline{
  border:1px solid rgba(155,255,90,0.55);
  background: rgba(155,255,90,0.10);
  color: var(--accent);
  font-weight:900;
  border-radius:999px;
  padding: 0.65rem 1rem;
  cursor:pointer;
}

/* ======================
   PAGINATION
   ====================== */
.pagination{
  display:flex;
  justify-content:center;
  gap:0.55rem;
  margin-top: 1.5rem;
  flex-wrap:wrap;
}
.pagination button{
  min-width:42px;
  padding: 0.45rem 0.85rem;
  border-radius:999px;
  border: 1px solid rgba(155,255,90,0.35);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-weight:800;
  cursor:pointer;
}
.pagination button.active{
  background: var(--accent);
  color:#0a010d;
  border-color: rgba(0,0,0,0.2);
  box-shadow: 0 0 18px rgba(155,255,90,0.25);
}

/* ======================
   FLOATING CONTACT BUTTON
   ====================== */
.floating-message{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: var(--accent);
  color:#0a010d;
  font-size: 1.25rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
  z-index: 9998;
  border: 1px solid rgba(0,0,0,0.2);
}

/* ======================
   ZOMBIE KITTY OVERLAY
   ====================== */
.zk-overlay{
  position: fixed;
  bottom: 90px;
  left: -420px; /* hidden offscreen */
  display:flex;
  align-items:flex-end;
  gap:10px;
  z-index: 9999;
  transition: left .6s ease;
  pointer-events:none;
}
.zk-overlay.active{ left: 18px; pointer-events:auto; }
.zk-kitty{
  width: 140px;
  opacity: 0.95;
  transform-origin: top right;
  animation: zk-blink 5s infinite, zk-wave 1.2s infinite ease-in-out;
}
@keyframes zk-blink{
  0%, 90%, 100% { filter: brightness(1); }
  92% { filter: brightness(0.2); }
  94% { filter: brightness(1); }
}
@keyframes zk-wave{
  0%{ transform: rotate(0deg); }
  20%{ transform: rotate(6deg); }
  40%{ transform: rotate(-2deg); }
  60%{ transform: rotate(6deg); }
  80%{ transform: rotate(-2deg); }
  100%{ transform: rotate(0deg); }
}
.zk-bubble{
  background: #ffeb3b;
  color:#0a010d;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 800;
  max-width: 240px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  position: relative;
  font-size: 0.92rem;
  line-height: 1.35;
}
.zk-tail{
  width:0;height:0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-right: 12px solid #ffeb3b;
  position:absolute;
  left:-12px;
  bottom: 18px;
}

/* ======================
   IMAGE FLIP EFFECT (your feature)
   ====================== */
.record-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  perspective: 1000px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.flip-wrapper { position: relative; width: 100%; height: 100%; }

.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
  border-radius: 18px;
  overflow: hidden;
}
@media (hover: hover) and (pointer: fine) {
  .record-card:hover .flip-inner { transform: rotateY(180deg); }
}
.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 18px;
}
.flip-back { transform: rotateY(180deg); }

.record-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

.image-missing {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: repeating-linear-gradient(
    45deg,
    #2a2140,
    #2a2140 10px,
    #1d1830 10px,
    #1d1830 20px
  );
}
:root{
  --bg1:#0b0620;
  --bg2:#2a0b5c;
  --card:#140a2f;
  --card2:#0f0825;
  --text:#eae7ff;
  --muted:rgba(234,231,255,.65);
  --accent:#a7ff5a;
  --shadow:0 14px 40px rgba(0,0,0,.35);
  --radius:22px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 700px at 30% 10%, rgba(167,255,90,.18), transparent 55%),
              radial-gradient(900px 600px at 80% 0%, rgba(160,90,255,.25), transparent 55%),
              linear-gradient(160deg, var(--bg1), var(--bg2) 60%, #0a0920);
}

/* Header / Nav */
header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(8,5,25,.55);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nav-inner{
  max-width:1100px;
  margin:0 auto;
  padding:14px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.logo-circle{
  width:54px;
  height:54px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.logo-circle img{width:100%; height:100%; object-fit:cover; display:block;}

nav{display:flex; gap:10px; align-items:center;}
.nav-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:999px;
  text-decoration:none;
  color:var(--text);
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.09);
}
.nav-link.active{
  background: rgba(167,255,90,.18);
  border-color: rgba(167,255,90,.35);
}
.cart-pill span{
  margin-left:8px;
  display:inline-grid;
  place-items:center;
  min-width:22px;
  height:22px;
  border-radius:999px;
  background: rgba(167,255,90,.25);
  border:1px solid rgba(167,255,90,.35);
}

/* Page */
.page{
  max-width:1100px;
  margin:0 auto;
  padding:24px 14px 50px;
}
h2{font-size:38px; margin:10px 0 8px}
.subtitle{margin:0 0 18px; color:var(--muted)}

/* Grid */
.products-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:16px;
}
@media (min-width: 900px){
  .products-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}

.record-card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* Title/Meta */
.record-title{
  font-size:22px;
  line-height:1.15;
  margin:2px 0 0;
}
.record-meta{
  color:var(--muted);
  font-size:16px;
}
.record-price{
  font-size:26px;
  font-weight:900;
  margin-top:2px;
}
.record-notes{
  color:rgba(234,231,255,.70);
  font-size:15px;
  line-height:1.35;
  min-height:40px;
}
.record-qty{color:rgba(234,231,255,.55); font-size:14px}

/* Buttons */
.btn{
  border:0;
  border-radius:999px;
  padding:14px 16px;
  font-weight:900;
  cursor:pointer;
}
.btn-primary{
  background: var(--accent);
  color:#151024;
  box-shadow: 0 14px 30px rgba(167,255,90,.25);
}
.btn-primary:active{transform: translateY(1px)}

/* Footer */
footer{
  text-align:center;
  padding:18px 10px 26px;
  color:rgba(234,231,255,.6);
}

/* ======================
   IMAGE FLIP EFFECT
   ====================== */

.record-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  perspective: 1000px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.flip-wrapper { position: relative; width: 100%; height: 100%; }

.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
  border-radius: 18px;
  overflow: hidden;
}

/* Desktop hover flip */
@media (hover: hover) and (pointer: fine) {
  .record-card:hover .flip-inner { transform: rotateY(180deg); }
}

/* ✅ Mobile tap flip (JS toggles .is-flipped) */
.record-card.is-flipped .flip-inner { transform: rotateY(180deg); }

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 18px;
}

.flip-back { transform: rotateY(180deg); }

.record-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

/* ======================
   MISSING IMAGE PLACEHOLDER
   ====================== */

.image-missing {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: repeating-linear-gradient(
    45deg,
    #2a2140,
    #2a2140 10px,
    #1d1830 10px,
    #1d1830 20px
  );
}

/* ======================
   FLOATING CHAT BUTTON
   ====================== */

.floating-message{
  position:fixed;
  right:20px;
  bottom:20px;
  width:52px;
  height:52px;
  border-radius:999px;
  background: rgba(167,255,90,.95);
  color:#151024;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.4rem;
  font-weight:900;
  box-shadow: 0 12px 24px rgba(0,0,0,.35);
  cursor:pointer;
  z-index:9999;
  user-select:none;
}

/* ======================
   ZOMBIE KITTY OVERLAY
   ====================== */

.zk-overlay{
  position:fixed;
  bottom:90px;
  right:-260px; /* hidden off screen */
  display:flex;
  align-items:flex-end;
  gap:12px;
  transition:right .45s ease;
  z-index:9998;
  pointer-events:none;
}
.zk-overlay.active{
  right:20px;
  pointer-events:auto;
}
.zk-kitty{
  width:140px;
  opacity:0.95;
}
.zk-bubble{
  background:#fff3b0;
  color:#111;
  padding:12px 14px;
  border-radius:14px;
  font-size:0.95rem;
  box-shadow: 0 10px 24px rgba(0,0,0,.30);
  max-width:220px;
  cursor:pointer;
  position:relative;
}
.zk-tail{
  position:absolute;
  left:-10px;
  bottom:18px;
  width:0;
  height:0;
  border-top:10px solid transparent;
  border-bottom:10px solid transparent;
  border-right:10px solid #fff3b0;
}

/* Pagination (simple) */
.pagination{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:18px;
}
.page-btn{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
}
.page-btn.active{
  background: rgba(167,255,90,.18);
  border-color: rgba(167,255,90,.35);
}
/* ===== Uniform product card heights (Shop page) ===== */

/* Make every card a flex column so we can push the button down */
.products-grid .record-card{
  display:flex;
  flex-direction:column;
  height:100%;
}

/* Lock image area */
.products-grid .record-card .record-image,
.products-grid .record-card .inv-thumb,
.products-grid .record-card img{
  width:100%;
}

/* If your image is inside .record-image, enforce a consistent box */
.products-grid .record-card .record-image{
  aspect-ratio: 1 / 1;       /* square image zone */
  overflow:hidden;
  border-radius:18px;        /* match your vibe */
}

/* Make the image fill the box */
.products-grid .record-card .record-image img,
.products-grid .record-card .record-image .flip-wrapper,
.products-grid .record-card .record-image .flip-inner,
.products-grid .record-card .record-image .flip-front,
.products-grid .record-card .record-image .flip-back{
  width:100%;
  height:100%;
}

.products-grid .record-card .record-image img{
  object-fit:cover;
  display:block;
}

/* Clamp title + description so text can’t make cards taller */
.products-grid .record-card h3{
  display:-webkit-box;
  -webkit-line-clamp: 2;     /* 2-line titles */
  -webkit-box-orient: vertical;
  overflow:hidden;
}

.products-grid .record-card .record-desc{
  display:-webkit-box;
  -webkit-line-clamp: 3;     /* 3-line descriptions */
  -webkit-box-orient: vertical;
  overflow:hidden;
}

/* Keep “Add to Cart” aligned at bottom */
.products-grid .record-card .btn-row,
.products-grid .record-card .actions,
.products-grid .record-card button.btn-primary{
  margin-top:auto;
}
/* ================================
   KORNDOG SHOP: KILL GRAY + LOCK GRID
   Paste at VERY BOTTOM of styles.css
   ================================ */

/* 1) Make the grid rows equal height (prevents “stair-step” cards) */
.products-grid {
  align-items: stretch;
}

.products-grid .record-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 2) Force ALL image areas into the same box size */
.record-image,
.record-image .flip-wrapper,
.record-image .flip-inner,
.record-image .flip-front,
.record-image .flip-back {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
}

/* Make sure every image fills the box the same way */
.record-image img,
.flip-front img,
.flip-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3) The gray you’re seeing is almost always a background on the content blocks.
      Nuke it and let the card background do the work. */
.record-card .record-details,
.record-card .record-meta,
.record-card .record-content,
.record-card .info,
.record-card .desc,
.record-card .record-desc,
.record-card .qty,
.record-card .qty-text {
  background: transparent !important;
}

/* 4) Keep the bottom button zone aligned on every card */
.record-card .btn-primary,
.record-card button.btn-primary,
.record-card .record-actions {
  margin-top: auto;
}

/* 5) Clamp text so long titles/descriptions don’t push cards taller */
.record-card h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.record-card .record-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
/* =========================================================
   KORNDOG SHOP HARD PATCH
   - Removes gray “bleed” overlays
   - Forces uniform card height + consistent spacing
   - Locks image boxes to 1:1 crop
   Paste at VERY BOTTOM of styles.css
   ========================================================= */

/* --- 0) Make sure shop page containers are not painting gray layers --- */
body,
.page,
main.page,
#products,
.products-grid {
  background: transparent !important;
}

/* --- 1) Grid: consistent spacing + stretch rows --- */
.products-grid {
  align-items: stretch !important;
  gap: 18px !important;              /* keep spacing consistent */
  grid-auto-rows: 1fr !important;    /* makes each grid row equal height */
}

/* --- 2) Card: force real, clean background + kill any weird overlays --- */
.record-card {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  background: rgba(25, 16, 55, 0.65) !important;  /* purple glass base */
  border: 1px solid rgba(255,255,255,0.08) !important;
  overflow: hidden !important; /* prevents “bleed” artifacts */
}

/* KILL the gray shine overlays (this is usually the culprit) */
.record-card::before,
.record-card::after,
.products-grid::before,
.products-grid::after,
.page::before,
.page::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
}

/* --- 3) Any inner “panels” must be transparent (no gray blocks) --- */
.record-card .record-details,
.record-card .record-meta,
.record-card .record-content,
.record-card .info,
.record-card .desc,
.record-card .record-desc,
.record-card .qty,
.record-card .qty-text,
.record-card .muted {
  background: transparent !important;
  box-shadow: none !important;
}

/* --- 4) Lock image area to a single uniform box --- */
.record-image,
.record-image .flip-wrapper,
.record-image .flip-inner,
.record-image .flip-front,
.record-image .flip-back {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

/* Every image fills the same way */
.record-image img,
.flip-front img,
.flip-back img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* --- 5) Keep buttons aligned at the bottom of every card --- */
.record-card .record-actions,
.record-card .btn-row,
.record-card button,
.record-card .btn-primary {
  margin-top: auto !important;
}

/* --- 6) Clamp text so one long title/desc doesn't stretch cards --- */
.record-card h3 {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
}

.record-card .record-desc {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  overflow: hidden !important;
}
/* =========================================================
   KORNDOG — EMERGENCY RESTORE (SHOP WASHOUT FIX)
   Paste at VERY BOTTOM of styles.css
   This restores the purple/green vibe + keeps cards uniform
   ========================================================= */

/* Bring back the site background (your gradient / dark base) */
html, body {
  background: radial-gradient(circle at 18% 12%, rgba(110, 255, 130, 0.18), transparent 42%),
              radial-gradient(circle at 82% 28%, rgba(165, 80, 255, 0.22), transparent 55%),
              linear-gradient(180deg, #070216 0%, #12063a 55%, #070216 100%) !important;
  color: #f2f2f7 !important;
}

/* Header bar should be dark “glass”, not gray */
header {
  background: rgba(10, 6, 24, 0.72) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

/* Make sure the shop page itself doesn’t paint white/gray */
main.page,
.page,
.products-grid,
#products {
  background: transparent !important;
}

/* Restore readable text on the shop page */
h2, .subtitle {
  color: #f2f2f7 !important;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}

/* Cards: keep the “purple glass” look and uniform height */
.record-card {
  background: rgba(26, 14, 60, 0.62) !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.22) !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

/* Kill the gray “bleed” overlays WITHOUT killing the whole page */
.record-card::before,
.record-card::after {
  content: none !important;
  display: none !important;
}

/* Grid spacing + equal-height rows */
.products-grid {
  gap: 18px !important;
  align-items: stretch !important;
  grid-auto-rows: 1fr !important;
}

/* Uniform image box */
.record-image,
.record-image .flip-wrapper,
.record-image .flip-inner,
.record-image .flip-front,
.record-image .flip-back {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

.record-image img,
.flip-front img,
.flip-back img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Keep buttons aligned consistently */
.record-card button,
.record-card .btn-primary {
  margin-top: auto !important;
}

/* Clamp title/desc so one card doesn’t stretch taller */
.record-card h3 {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
}

.record-card .record-desc {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  overflow: hidden !important;
}
