/* TechSafari Ke - Smart Merchandising & Rotation System CSS */

/* Spotlight Device Hero Card */
.spotlight-section {
  padding: 40px 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.spotlight-card {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 30, 38, 0.85) 0%, rgba(18, 18, 24, 0.95) 100%);
  border: 1px solid rgba(255, 157, 0, 0.25);
  border-radius: 24px;
  padding: 36px 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .spotlight-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 247, 250, 0.9) 100%);
  border-color: rgba(255, 157, 0, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.spotlight-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: linear-gradient(135deg, #ff9d00 0%, #ff6b00 100%);
  color: #000;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(255, 157, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
}

.spotlight-content-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 992px) {
  .spotlight-content-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .spotlight-card {
    padding: 28px 24px;
  }
}

.spotlight-image-col {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .spotlight-image-col {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}

.spotlight-main-img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.3));
  transition: transform 0.4s ease;
}

.spotlight-card:hover .spotlight-main-img {
  transform: scale(1.04) translateY(-4px);
}

.spotlight-category-tag {
  color: #ff9d00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  display: inline-block;
  margin-bottom: 8px;
}

.spotlight-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text, #fff);
  line-height: 1.25;
}

.spotlight-desc {
  color: var(--muted, #aaa);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.spotlight-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .spotlight-specs-grid {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

.spotlight-spec-item {
  font-size: 13px;
  color: var(--text, #ddd);
}

.spec-label {
  font-weight: 700;
  color: #ff9d00;
}

.spotlight-price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.spotlight-original-price {
  font-size: 18px;
  color: var(--muted, #888);
  text-decoration: line-through;
}

.spotlight-final-price {
  font-size: 34px;
  font-weight: 900;
  color: #ff9d00;
}

.spotlight-discount-badge {
  background: rgba(255, 157, 0, 0.15);
  color: #ff9d00;
  border: 1px solid rgba(255, 157, 0, 0.3);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.spotlight-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-spotlight-buy {
  background: linear-gradient(135deg, #ff9d00 0%, #ff6b00 100%) !important;
  color: #000 !important;
  font-weight: 800 !important;
  padding: 14px 28px !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 25px rgba(255, 157, 0, 0.35) !important;
  transition: all 0.25s ease !important;
}

.btn-spotlight-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 157, 0, 0.5) !important;
}

.btn-spotlight-details {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: var(--text, #fff) !important;
  padding: 14px 24px !important;
  border-radius: 14px !important;
}

[data-theme="light"] .btn-spotlight-details {
  border-color: rgba(0, 0, 0, 0.2) !important;
  color: #333 !important;
}

/* Pinned Product Card Styling */
.product-rotation-card.pinned-card {
  border: 1.5px solid rgba(255, 157, 0, 0.6) !important;
  box-shadow: 0 8px 25px rgba(255, 157, 0, 0.15) !important;
  position: relative;
}

.pinned-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff9d00;
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.card-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 12px;
}

.stock-status.in-stock {
  color: #10b981;
  font-weight: 700;
}

.stock-status.out-stock {
  color: #ef4444;
  font-weight: 700;
}

/* Storefront Product Card Image Visibility Guarantee */
.product-rotation-card .card-image-wrapper img.active,
.merchandising-grid .card-image-wrapper img.active,
.product-grid .card-image-wrapper img.active {
  opacity: 1 !important;
  display: block !important;
  visibility: visible !important;
  z-index: 1 !important;
}
