/**
 * Product Card CSS — White bottle images + HTML/CSS branding overlays
 * NO text rendered in images. All branding is HTML/CSS.
 * PSL brand colors: Teal #00D4C8, Gold #D4A843, Dark #0A0F1E
 */

/* ===== PSL Logo SVG ===== */
.psl-logo-svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* ===== Brand text in overlay ===== */
.psl-brand-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
}

/* ===== Product Card Overlay Wrapper ===== */
.product-card-overlay {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
  background: var(--card-bg, #12141e);
}

/* Product image — fills card, overlays layer on top */
.psl-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* PSL Branding Overlay — top strip */
.psl-branding-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(10,15,30,0.7) 0%, transparent 100%);
  z-index: 2;
}

.psl-mini-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.psl-mini-logo svg {
  width: 18px;
  height: 18px;
  display: block;
}

.psl-cat-accent {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 9px;
  letter-spacing: 1.5px;
  padding: 2px 7px;
  border-radius: 2px;
  opacity: 0.9;
  margin-left: auto;
}

/* Product Name Overlay — bottom strip */
.psl-name-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px 10px;
  background: linear-gradient(0deg, rgba(10,15,30,0.92) 0%, rgba(10,15,30,0.5) 60%, transparent 100%);
  z-index: 2;
}

.psl-product-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  color: #D4A843;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.psl-product-serving {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}

/* ===== Category Accent Colors (PSL brand palette) ===== */
.cat-energy     { background: rgba(0,212,200,0.2); color: #00D4C8; border: 1px solid rgba(0,212,200,0.3); }
.cat-cognitive  { background: rgba(148,0,255,0.15); color: #9400ff; border: 1px solid rgba(148,0,255,0.25); }
.cat-protein    { background: rgba(100,200,80,0.15); color: #64c850; border: 1px solid rgba(100,200,80,0.25); }
.cat-meal       { background: rgba(255,180,0,0.15); color: #D4A843; border: 1px solid rgba(255,180,0,0.25); }
.cat-recovery   { background: rgba(0,150,200,0.15); color: #0096c8; border: 1px solid rgba(0,150,200,0.25); }
.cat-wellness   { background: rgba(80,180,80,0.15); color: #50c850; border: 1px solid rgba(80,180,80,0.25); }
.cat-superfood  { background: rgba(50,160,50,0.15); color: #32b432; border: 1px solid rgba(50,160,50,0.25); }
.cat-chronic    { background: rgba(200,60,60,0.15); color: #dc5050; border: 1px solid rgba(200,60,60,0.25); }
.cat-vegan      { background: rgba(200,160,50,0.15); color: #ffc83c; border: 1px solid rgba(200,160,50,0.25); }
.cat-default    { background: rgba(0,212,200,0.15); color: #00D4C8; border: 1px solid rgba(0,212,200,0.25); }

/* ===== Product Card (replaces <img> in listings) ===== */
.psl-product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--card-bg, #12141e);
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
  position: relative;
}

.psl-product-card:hover {
  border-color: rgba(0,212,200,0.4);
  transform: translateY(-3px);
}

.psl-product-card .card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.psl-product-card .card-cat {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.8;
}

.psl-product-card .card-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  color: #D4A843;
  line-height: 1.1;
}

.psl-product-card .card-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.psl-product-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}

.psl-product-card .card-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  color: #D4A843;
}

.add-btn {
  background: #00D4C8;
  color: #0A0F1E;
  border: none;
  border-radius: 4px;
  padding: 8px 14px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.add-btn:hover { opacity: 0.85; }

.add-btn-sm {
  background: #00D4C8;
  color: #0A0F1E;
  border: none;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.add-btn-sm:hover { opacity: 0.85; }

/* ===== Detail Page Hero Card ===== */
.psl-hero-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #12141e;
}

.psl-hero-card .psl-branding-overlay {
  padding: 12px 16px;
}

.psl-hero-card .psl-mini-logo svg {
  width: 26px;
  height: 26px;
}

.psl-hero-card .psl-brand-text {
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.8);
}

.psl-hero-card .psl-name-overlay {
  padding: 14px 16px;
}

.psl-hero-card .psl-product-name {
  font-size: 22px;
  letter-spacing: 2px;
  color: #D4A843;
}

.psl-hero-card .psl-product-serving {
  font-size: 12px;
  margin-top: 6px;
}

/* Hero card image sizing */
.psl-hero-card .psl-card-img {
  object-fit: contain;
  object-position: center;
}

/* ===== Related / Homepage Compact Cards ===== */
.psl-mini-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--card-bg, #12141e);
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.psl-mini-card:hover { border-color: rgba(0,212,200,0.4); }

.psl-mini-card .mini-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.psl-mini-card .mini-body {
  padding: 12px;
}

.psl-mini-card .mini-cat {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 4px;
}

.psl-mini-card .mini-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
}

.psl-mini-card .mini-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.psl-mini-card .mini-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: #D4A843;
  letter-spacing: 1px;
}

/* ===== Badge Positioning ===== */
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 2px;
  z-index: 3;
  background: #D4A843;
  color: #0A0F1E;
}

.hero-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  padding: 5px 12px;
  border-radius: 2px;
  z-index: 3;
  background: #D4A843;
  color: #0A0F1E;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .psl-hero-card .psl-product-name { font-size: 16px; }
  .psl-brand-text { font-size: 8px; }
}