/* Home Page - Modern Futuristic Theme */

/* Force remove all white backgrounds */
* {
  background-color: transparent !important;
}

body {
  background: var(--bg-primary) !important;
}

.container,
.container-fluid,
.row,
.col,
[class*="col-"] {
  background-color: transparent !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 80vh;
  overflow: hidden;
  padding: 4rem 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-primary);
}

.hero-badge {
  animation: fadeInUp 0.6s ease-out;
}

.hero-badge .badge {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-lg);
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease-out;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  animation: fadeInUp 1s ease-out;
}

.hero-actions {
  animation: fadeInUp 1.2s ease-out;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  animation: fadeInUp 1.4s ease-out;
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: block;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.hero-image-container {
  position: relative;
  z-index: 2;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-primary);
  animation: fadeInUp 1s ease-out;
}

.hero-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: var(--transition-normal);
}

.hero-image:hover {
  transform: scale(1.05);
}

.hero-floating-card {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-primary);
  animation: float 3s ease-in-out infinite;
  max-width: 250px;
}

.floating-card-content {
  min-width: 200px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Product Cards */
.product-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-secondary);
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-cyan));
  opacity: 0;
  transition: var(--transition-fast);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-primary), var(--shadow-glow);
}

.product-image-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.product-card:hover .product-image {
  transform: scale(1.1);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.product-badge.new {
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: var(--text-primary);
}

.product-badge.sale {
  background: linear-gradient(135deg, var(--accent-red), #dc2626);
  color: var(--text-primary);
}

.product-badge.popular {
  background: linear-gradient(135deg, var(--accent-amber), #d97706);
  color: var(--text-primary);
}

.product-content {
  padding: 20px 20px 0.7rem 20px;
  display: flex;
  flex-direction: column;
  height: 14rem;
}

.product-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.product-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 5px;
  line-height: 1.5;
  flex: 1;
  min-height: 35px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.product-price-container {
  display: flex;
  align-items: center;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #22c55e;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.08));
  border-radius: 2rem;
  padding: 0.1rem 0.6rem;
  border: 1px solid rgba(34, 197, 94, 0.25);
  box-shadow: 0 2px 4px rgba(34, 197, 94, 0.1);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.product-price:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(34, 197, 94, 0.2);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.12));
}

.product-price.old-price {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-original-price {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--text-muted);
  text-decoration-thickness: 2px;
  text-decoration-style: solid;
  position: relative;
}

.product-original-price::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: var(--text-muted);
  transform: translateY(-50%);
  z-index: 1;
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.discount-badge .badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rating-stars {
  color: #ffd700 !important;
}

.rating-stars i {
  color: #ffd700 !important;
}

.rating-stars .fas.fa-star {
  color: #ffd700 !important;
}

.rating-stars .far.fa-star {
  color: #ffd700 !important;
  opacity: 0.3;
}

.rating-stars .fas.fa-star-half-alt {
  color: #ffd700 !important;
}

.rating-count {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.product-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-product {
  flex: 1;
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-product::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-product:hover::before {
  left: 100%;
}

.btn-product.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed, #6d28d9);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-product.btn-primary:hover {
  background: linear-gradient(135deg, #6d28d9, #7c3aed, #8b5cf6);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-product.btn-outline-primary {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
  border: 2px solid #8b5cf6;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-product.btn-outline-primary:hover {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #ffffff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: transparent;
}

/* Stats Section */
.stats-section {
  background: var(--bg-secondary);
  padding: 5rem 0;
  position: relative;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.stat-item {
  text-align: center;
  position: relative;
  z-index: 2;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Review Section Rating Stars */
.review-card .rating.text-warning {
  color: #ffd700 !important;
}

.review-card .rating.text-warning i {
  color: #ffd700 !important;
}

.review-card .rating.text-warning .fas.fa-star {
  color: #ffd700 !important;
}

.review-card .rating.text-warning .far.fa-star {
  color: #ffd700 !important;
  opacity: 0.3;
}

/* Reviews Section */
.reviews-section {
  padding: 5rem 0;
  position: relative;
}

.reviews-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.05) 0%, transparent 50%), radial-gradient(circle at 30% 70%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.reviews-section .display-5 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-align: center;
}

.reviews-section .lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 3rem;
}

.review-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-secondary);
  transition: var(--transition-normal);
  padding: 2rem;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-primary);
}

/* About Section */
.about-section {
  background: var(--bg-secondary);
  padding: 5rem 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.about-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  z-index: -1;
}

.about-section .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.about-section .row {
  margin: 0;
  position: relative;
}

.about-section .col-lg-6 {
  padding: 0 15px;
  position: relative;
}

.about-section .display-5 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.about-section .lead {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.about-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.feature-item {
  margin-bottom: 20px;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-cyan));
  color: var(--text-primary);
  flex-shrink: 0;
  margin-right: 1rem;
  box-shadow: var(--shadow-secondary);
}

.feature-item span {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.about-image {
  position: relative;
  width: 100%;
}

.about-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-primary);
  transition: var(--transition-normal);
  width: 100%;
  height: auto;
  display: block;
}

.about-image img:hover {
  transform: scale(1.02);
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-cyan));
  padding: 5rem 0;
  position: relative;
}

.newsletter-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.newsletter-section h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-align: center;
}

.newsletter-form {
  position: relative;
  z-index: 2;
}

.newsletter-form .form-control {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  border-radius: var(--radius-md);
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-form .btn {
  background: var(--text-primary);
  color: var(--primary-color);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition-fast);
}

.newsletter-form .btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

/* Home Page Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Home Page Responsive */
@media (max-width: 768px) {
  /* Hero Section Mobile */
  .hero-image {
    height: 260px;
  }

  .hero-section {
    min-height: 60vh;
    padding: 2rem 0;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .hero-stats {
    display: none;
  }

  .hero-floating-card {
    display: none;
  }

  /* Product Cards Mobile - 2 per row */
  .row.g-4 {
    margin: 0 !important;
    --bs-gutter-x: 5px !important;
    --bs-gutter-y: 5px !important;
  }

  .row.g-4 > * {
    padding-right: calc(var(--bs-gutter-x) * 0.5) !important;
    padding-left: calc(var(--bs-gutter-x) * 0.5) !important;
    margin-top: var(--bs-gutter-y) !important;
  }

  .product-card {
    margin-bottom: 0;
  }

  .product-image-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100px;
  }

  .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .product-content {
    padding: 0.5rem 0.5rem 0.7rem 0.5rem;
    display: flex;
    flex-direction: column;
    height: 9rem;
  }

  .product-title {
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
    line-height: 1.2;
  }

  .product-description {
    font-size: 0.6rem;
    margin-bottom: 0.2rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
    flex: 1;
    min-height: 20px;
  }

  .product-price {
    font-size: 0.6rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
  }

  .product-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
  }

  .product-rating .rating-stars {
    font-size: 0.6rem;
    display: flex;
    gap: 1px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .product-rating .rating-stars i {
    font-size: 0.6rem;
    line-height: 1;
  }

  .product-rating .rating-count {
    font-size: 0.5rem;
    margin-left: 2px;
    flex-shrink: 0;
  }

  .product-price-container {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex-wrap: nowrap;
  }

  .product-price-container .product-price {
    margin-bottom: 0;
  }

  .product-price-container .old-price {
    font-size: 0.5rem;
    text-decoration: line-through;
    opacity: 0.7;
  }

  .product-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.2rem;
    gap: 0.3rem;
  }

  .product-actions {
    flex-direction: row;
    gap: 0.5rem;
    align-items: stretch;
    margin-top: auto;
  }

  .btn-product {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    flex: 1;
  }

  .btn-product.btn-primary {
    position: relative;
  }

  .btn-product.btn-outline-primary {
    flex: 0 0 auto;
    width: auto;
    min-width: 40px;
    padding: 0.4rem 0.6rem;
  }

  /* Hide floating notifications on mobile */
  .toast-container {
    display: none;
  }

  /* Compact sections */
  .stats-section {
    padding: 2rem 0;
  }

  .reviews-section {
    padding: 2rem 0;
  }

  .about-section {
    padding: 2rem 0;
  }

  .newsletter-section {
    padding: 2rem 0;
  }

  /* Compact headers */
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .reviews-section .display-5,
  .about-section .display-5 {
    font-size: 2rem;
  }

  .stats-section .stat-number {
    font-size: 2rem;
  }
}

/* Desktop - 4 cards per row with increased gap */
@media (min-width: 992px) {
  .row.g-4 {
    --bs-gutter-x: 20px !important;
    --bs-gutter-y: 20px !important;
  }

  .row.g-4 > * {
    padding-right: calc(var(--bs-gutter-x) * 0.5) !important;
    padding-left: calc(var(--bs-gutter-x) * 0.5) !important;
    margin-top: var(--bs-gutter-y) !important;
  }

  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .product-price {
    font-size: 0.9rem;
  }

  .product-rating .rating-stars {
    font-size: 0.8rem;
  }

  .product-rating .rating-count {
    font-size: 0.75rem;
  }

  .product-actions {
    flex-direction: row;
    gap: 0.5rem;
    align-items: stretch;
    margin-top: auto;
  }

  .btn-product {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    flex: 1;
  }

  .btn-product.btn-primary {
    position: relative;
  }

  .btn-product.btn-outline-primary {
    flex: 0 0 auto;
    width: auto;
    min-width: 40px;
    padding: 0.4rem 0.6rem;
  }
}

/* Tablet - 2 cards per row with same gap */
@media (max-width: 991.98px) and (min-width: 768px) {
  .row.g-4 {
    --bs-gutter-x: 5px !important;
    --bs-gutter-y: 5px !important;
  }

  .row.g-4 > * {
    padding-right: calc(var(--bs-gutter-x) * 0.5) !important;
    padding-left: calc(var(--bs-gutter-x) * 0.5) !important;
    margin-top: var(--bs-gutter-y) !important;
  }

  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 767.98px) {
  .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 575.98px) {
  .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  /* Extra small mobile optimizations */
  .product-price {
    font-size: 0.55rem;
  }

  .product-price-container .old-price {
    font-size: 0.45rem;
  }

  .product-rating {
    gap: 1px;
  }

  .product-rating .rating-stars {
    font-size: 0.55rem;
    gap: 0.5px;
  }

  .product-rating .rating-stars i {
    font-size: 0.55rem;
  }

  .product-rating .rating-count {
    font-size: 0.45rem;
  }

  .product-meta {
    gap: 0.2rem;
  }
}
