.nf-product-card {
  height: 100%;
  width: 100%;
  max-width: 100%;
}

.nf-product-card__inner {
  background: #ffffff;
  border: none;
  border-radius: var(--nf-card-radius, 20px);
  overflow: visible;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  width: 100%;
  position: relative;
  /* Multi-layered futuristic shadow for floating effect */
  box-shadow: 
    0 5px 15px rgba(0, 0, 0, 0.05),
    0 15px 35px rgba(0, 0, 0, 0.03),
    0 0 10px rgba(212, 175, 55, 0.05); /* Soft brand glow */
}

.nf-product-card__inner:hover {
  transform: translateY(-12px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 30px 60px rgba(0, 0, 0, 0.05),
    0 0 25px rgba(212, 175, 55, 0.15); /* More vibrant brand glow on hover */
}

.nf-product-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1; /* Decreased height even more as requested */
  overflow: hidden;
  background: transparent; /* Changed from #f1f5f9 to transparent to blend in */
  border-radius: inherit; /* Follow parent radius */
}

.nf-product-card__featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: var(--nf-surface, #ffffff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  color: var(--nf-brand-color, #d4af37);
  box-shadow: 
    0 4px 10px rgba(0, 0, 0, 0.1),
    0 0 15px rgba(212, 175, 55, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.nf-product-card__featured-badge .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
  animation: nf-star-pulse 2s infinite ease-in-out;
}

@keyframes nf-star-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

.nf-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Changed from contain to cover to fill the area */
  padding: 0; /* Removed padding to make image fit completely */
  transition: transform 0.6s ease;
  display: block;
}

.nf-product-card--square .nf-product-card__inner,
.nf-product-card--square .nf-product-card__media {
  border-radius: 0;
}

.nf-product-card__inner:hover .nf-product-card__media img {
  transform: scale(1.08);
}

.nf-product-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nf-product-card__inner:hover .nf-product-card__overlay {
  opacity: 1;
}

.nf-product-card__view-btn {
  background: #000;
  color: #fff;
  padding: 12px 24px;
  border-radius: calc(var(--nf-card-radius, 20px) * 1.5);
  font-family: var(--nf-title-font, 'Orbitron', sans-serif);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.nf-product-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 8px;
  text-align: left;
}

.nf-product-card__header {
  margin-bottom: 4px;
  padding-left: 0;
}

.nf-product-card__brand {
  display: block;
  font-family: var(--nf-title-font, 'Orbitron', sans-serif);
  font-size: 11px; /* Increased from 10px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 4px;
  color: var(--nf-brand-color, #d4af37) !important; /* Force color change from backend */
}

.nf-product-card__title {
  margin: 0;
  font-family: var(--nf-title-font, 'Orbitron', sans-serif);
  font-size: var(--nf-title-size, 16px); /* Use dynamic size from backend */
  font-weight: 700;
  line-height: 1.2;
  color: var(--nf-heading-color, #0f172a);
  white-space: nowrap; /* Force single line */
  overflow: hidden; /* Hide overflow */
  text-overflow: ellipsis; /* Add "..." for long names */
  display: block; /* Required for text-overflow to work on some elements */
}

.nf-product-card__title a {
  color: inherit;
  transition: color 0.3s ease;
}

.nf-product-card__title a:hover {
  color: #2563eb;
}

.nf-product-card__price-wrapper {
  display: flex;
  flex-direction: row; /* Prices now in the same line */
  align-items: baseline;
  flex-wrap: wrap; /* Wrap if too long */
  gap: 12px;
  margin: 15px 0;
  padding: 12px 16px;
  position: relative;
  background: rgba(0, 0, 0, 0.02); /* Very subtle transparency */
  backdrop-filter: blur(8px); /* Futuristic blur */
  border-radius: calc(var(--nf-card-radius, 20px) * 0.5); /* Responsive radius */
  border-left: 4px solid var(--nf-brand-color, #d4af37); /* Branding bar */
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.01);
  overflow: hidden;
}

/* Futuristic "Scanner" Bar Overlay */
.nf-product-card__price-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  transition: none;
}

.nf-product-card__inner:hover .nf-product-card__price-wrapper::after {
  animation: nf-scanner-sweep 1.5s infinite;
}

@keyframes nf-scanner-sweep {
  0% { left: -100%; }
  100% { left: 100%; }
}

.nf-product-card__price {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.nf-product-card__currency {
  font-family: var(--nf-title-font, 'Orbitron', sans-serif);
  font-size: 10px;
  font-weight: 800;
  color: var(--nf-brand-color, #d4af37);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nf-product-card__amount {
  font-family: var(--nf-price-font, 'Rajdhani', sans-serif);
  font-size: 32px; /* Large futuristic size */
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
}

.nf-product-card__price--old {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.5;
  margin-top: -2px;
}

.nf-product-card__currency--old {
  font-size: 9px !important;
  font-family: var(--nf-title-font, 'Orbitron', sans-serif);
  font-weight: 700;
  color: #ef4444 !important;
  text-decoration: line-through;
}

.nf-product-card__amount--old {
  font-size: 15px !important; /* Slightly smaller for better balance */
  font-family: 'Inter', 'Roboto', sans-serif; /* Clean, highly readable font */
  font-weight: 600; /* Medium-bold for clarity */
  color: #ef4444 !important;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px; /* Thicker strike-through for that "slashed" look */
  letter-spacing: 0; /* Standard spacing for readability */
}

.nf-product-card__ribbon {
  position: absolute;
  top: -12px;
  left: 20px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  padding: 8px 16px;
  font-family: var(--nf-title-font, 'Orbitron', sans-serif);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  z-index: 30;
  border-radius: calc(var(--nf-card-radius, 20px) / 2.5);
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.5);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nf-product-card__call-price {
  font-family: var(--nf-price-font, 'Rajdhani', sans-serif);
  font-size: 20px;
  font-weight: 800;
  color: #2563eb;
  padding: 8px 16px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: calc(var(--nf-card-radius, 20px) * 0.4);
  border-left: 4px solid #2563eb;
  backdrop-filter: blur(5px);
}

.nf-product-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto; /* Fixed to bottom */
  padding-top: 10px;
}

.nf-product-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: calc(var(--nf-card-radius, 20px) * 0.6); /* Responsive radius for buttons */
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.nf-product-card__btn svg {
  width: 14px;
  height: 14px;
}

.nf-product-card__btn--whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.nf-product-card__btn--whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.35);
  background: #22c35e;
}

.nf-product-card__btn--call {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.nf-product-card__btn--call:hover {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  transform: translateY(-2px);
}

.nf-product-card__placeholder {
  width: 100%;
  height: 100%;
  background: #f1f5f9;
}
