/* ==========================================================================
   COMPONENT: Product Card (partials/card.php)
   Light Theme - High-Contrast Luxury with Championship Gold & Obsidian
   ========================================================================== */

.pc {
  background: var(--card);
  border: 1px solid var(--ln);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s, box-shadow 0.28s;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-xs);
}

.pc::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 0.35s ease;
  z-index: 2;
}

.pc:hover::after {
  width: 100%;
}

.pc:hover {
  transform: translateY(-5px);
  border-color: #0F1117;
  box-shadow: 0 16px 32px rgba(15, 17, 23, 0.08);
}

.pc .im {
  aspect-ratio: 1 / 1;
  background: var(--soft);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc .im img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pc:hover .im img {
  transform: scale(1.06);
}

.pc .bd {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(15, 17, 23, 0.88);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pc .cb {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
  background: #FFFFFF;
}

.pc .cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pc .cat {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748B;
  font-family: var(--font-head);
}

.pc .rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #B45309;
}

.pc .rating svg {
  width: 12px;
  height: 12px;
  fill: #F59E0B;
}

.pc h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0 0 0.4em;
  font-family: var(--font-head);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pc h3 a {
  color: var(--tx);
  transition: color 0.2s ease;
}

.pc h3 a:hover {
  color: var(--brand-text);
}

.pc .cb p {
  flex: none;
  margin: 0 0 16px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--mu);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pf {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--ln);
}

.pf .pr {
  font-family: var(--font-head);
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--tx);
}

.ps {
  margin: 0;
  display: flex;
}

.ps .add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.84rem;
  background: #0B0C13;
  color: #FFFFFF;
  border: 1px solid #0B0C13;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(11, 12, 19, 0.14);
}

.ps .add:hover {
  background: #1E202E;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 12, 19, 0.22);
}

.ps .add[disabled] {
  background: var(--soft);
  border-color: var(--ln);
  color: var(--mu);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 560px) {
  .pc .bd { top: 8px; left: 8px; font-size: 0.58rem; padding: 2px 7px; }
  .pc .cb { padding: 12px 10px 12px; }
  .pc .cb p { display: none; }
  .pc .cat-row { margin-bottom: 4px; }
  .pc .cat { font-size: 0.64rem; letter-spacing: 0.08em; }
  .pc h3 { font-size: 0.86rem; line-height: 1.28; min-height: 2.3em; margin-bottom: 0.2em; }
  .pf {
    padding-top: 8px;
    margin-top: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid var(--ln-subtle);
  }
  .pf .pr { font-size: 1.05rem; font-weight: 800; line-height: 1.1; }
  .ps { width: auto; flex-shrink: 0; }
  .ps .add {
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
  }
  .ps .add .atx {
    display: none !important;
  }
  .ps .add svg {
    margin: 0;
    width: 16px;
    height: 16px;
  }
}
