/* =============================================================
   PREMIUM PRODUCT CARD — Headissh — Compact Professional
   ============================================================= */

:root {
  --pc-gold:        #c9a84c;
  --pc-gold-light:  #e4d1a0;
  --pc-gold-bg:     #fdf9f0;
  --pc-dark:        #1a161e;
  --pc-dark2:       #2d2934;
  --pc-mid:         #6b6b72;
  --pc-light:       #f4f2ef;
  --pc-white:       #ffffff;
  --pc-border:      #ede8df;
  --pc-red:         #e05252;
  --pc-green:       #2e7d32;
  --pc-ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --pc-bounce:      cubic-bezier(0.34, 1.56, 0.64, 1);
  --pc-radius:      14px;
  --pc-radius-sm:   8px;
  --pc-shadow:      0 1px 6px rgba(0,0,0,0.05);
  --pc-shadow-hover: 0 20px 60px rgba(201,168,76,0.15), 0 8px 24px rgba(26,22,30,0.12);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CARD — WRAPPER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.pcard {
  position: relative;
  background: var(--pc-white);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  font-family: 'Inter', sans-serif;
  transition: transform 0.5s var(--pc-ease), box-shadow 0.5s var(--pc-ease), border-color 0.4s ease;
  box-shadow: var(--pc-shadow);
  /* entrance animation */
  opacity: 0;
  transform: translateY(24px);
  animation: pcFadeUp 0.6s var(--pc-ease) forwards;
}

/* Staggered entrance delay */
.pc-col:nth-child(1) .pcard { animation-delay: 0.00s; }
.pc-col:nth-child(2) .pcard { animation-delay: 0.06s; }
.pc-col:nth-child(3) .pcard { animation-delay: 0.12s; }
.pc-col:nth-child(4) .pcard { animation-delay: 0.18s; }
.pc-col:nth-child(5) .pcard { animation-delay: 0.24s; }
.pc-col:nth-child(6) .pcard { animation-delay: 0.30s; }
.pc-col:nth-child(7) .pcard { animation-delay: 0.36s; }
.pc-col:nth-child(8) .pcard { animation-delay: 0.42s; }

@keyframes pcFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.pcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--pc-shadow-hover);
  border-color: var(--pc-gold);
}

/* gold shimmer line on top */
.pcard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--pc-gold-light), var(--pc-gold), var(--pc-gold-light));
  background-size: 200% 100%;
  opacity: 0;
  z-index: 6;
  transition: opacity 0.4s ease;
  animation: none;
}
.pcard:hover::before {
  opacity: 1;
  animation: pcShimmer 1.8s linear infinite;
}
@keyframes pcShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}



/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   IMAGE AREA
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.pcard__img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--pc-light);
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

.pcard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--pc-ease);
  will-change: transform;
  backface-visibility: hidden;
}
.pcard:hover .pcard__img {
  transform: scale(1.08);
}

/* dim overlay */
.pcard__img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,22,30,0.0);
  transition: background 0.4s ease;
  z-index: 1;
  pointer-events: none;
}
.pcard:hover .pcard__img-overlay {
  background: rgba(26,22,30,0.12);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BADGES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.pcard__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pcard__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pcard__badge--sale {
  background: linear-gradient(135deg, var(--pc-gold), #d4aa5a);
  color: var(--pc-dark);
  box-shadow: 0 2px 10px rgba(201,168,76,0.4);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FLOATING ACTION BUTTONS (right side)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.pcard__actions-float {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pcard__fab {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--pc-mid);
  cursor: pointer;
  opacity: 0;
  transform: translateX(10px) scale(0.75);
  transition: all 0.35s var(--pc-bounce);
  text-decoration: none;
}

.pcard:hover .pcard__fab {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.pcard:hover .pcard__fab:nth-child(1) { transition-delay: 0.00s; }
.pcard:hover .pcard__fab:nth-child(2) { transition-delay: 0.06s; }

.pcard__fab:hover {
  background: var(--pc-dark) !important;
  color: var(--pc-gold-light) !important;
  transform: translateX(0) scale(1.1) !important;
  box-shadow: 0 4px 16px rgba(26,22,30,0.25) !important;
}

.pcard__fab--wishlist:hover {
  background: #fff0f0 !important;
  color: var(--pc-red) !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CARD BODY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.pcard__body {
  padding: 14px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* Category */
.pcard__cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pc-gold);
  line-height: 1;
}

/* Title */
.pcard__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard__title a {
  color: var(--pc-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}
.pcard__title a:hover {
  color: var(--pc-gold);
}

/* Stars */
.pcard__stars {
  display: flex;
  align-items: center;
  gap: 5px;
}
.pcard__stars-row {
  display: flex;
  gap: 1px;
}
.pcard__stars-row i {
  font-size: 10px;
  color: #ddd;
}
.pcard__stars-row i.lit {
  color: var(--pc-gold);
}
.pcard__stars-count {
  font-size: 10px;
  color: var(--pc-mid);
  font-weight: 500;
}

/* Specs */
.pcard__specs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.pcard__spec {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 50px;
  background: var(--pc-light);
  border: 1px solid var(--pc-border);
  font-size: 9px;
  font-weight: 600;
  color: var(--pc-mid);
  letter-spacing: 0.04em;
}
.pcard__spec i {
  font-size: 8px;
  color: var(--pc-gold);
}

/* Price row */
.pcard__price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.pcard__price {
  font-size: 18px;
  font-weight: 800;
  color: var(--pc-dark);
  letter-spacing: -0.03em;
  line-height: 1;
}
.pcard__price-old {
  font-size: 12px;
  color: var(--pc-mid);
  text-decoration: line-through;
  line-height: 1;
}
.pcard__discount {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 50px;
  background: #edf7ee;
  color: var(--pc-green);
  letter-spacing: 0.05em;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BOTTOM ACTION BAR
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.pcard__bar {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--pc-border);
}

.pcard__bar-cart {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--pc-dark);
  color: var(--pc-gold-light);
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, gap 0.3s ease, letter-spacing 0.3s ease;
}
.pcard__bar-cart:hover {
  background: var(--pc-gold);
  color: var(--pc-dark);
  gap: 12px;
  letter-spacing: 0.12em;
}
.pcard__bar-cart i {
  font-size: 13px;
  transition: transform 0.3s ease;
}
.pcard__bar-cart:hover i {
  transform: translateX(3px);
}

.pcard__bar-wishlist {
  width: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pc-white);
  border: none;
  border-left: 1px solid var(--pc-border);
  font-size: 15px;
  color: var(--pc-mid);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.pcard__bar-wishlist:hover {
  background: #fff0f0;
  color: var(--pc-red);
}
.pcard__bar-wishlist.active {
  color: var(--pc-red);
  background: #fff0f0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HELPER — column spacing
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.pc-col {
  margin-bottom: 24px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   REDUCED MOTION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (prefers-reduced-motion: reduce) {
  .pcard { animation: none; opacity: 1; transform: none; }
  .pcard__img { transition: none; }
  .pcard:hover .pcard__img { transform: none; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {
  .pcard:hover {
    transform: translateY(-3px);
  }
  .pcard__fab {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 480px) {
  .pcard__price { font-size: 15px; }
  .pcard__title { font-size: 12px; }
  .pcard__body { padding: 10px 11px 11px; }
  .pc-col { margin-bottom: 16px; }
}
