.hero {
  position: relative;
  min-height: 85vh;
  overflow: hidden;
  padding: 0;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 85vh;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease, transform 6s ease;
  z-index: 0;
}

.hero-slide--active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.hero-slide--active .hero__content {
  animation: heroContentIn 0.8s ease 0.2s both;
}

@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__label {
  color: var(--color-accent) !important;
  margin-bottom: var(--space-4);
  display: block;
}

.hero__title {
  font-family: var(--font-primary);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-static-white);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-5);
}

.hero__subtitle {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 500px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero-slider__controls {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  z-index: 2;
}

.hero-slider__dots {
  display: flex;
  gap: var(--space-2);
}

.hero-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.hero-slider__dot--active {
  background: var(--color-white);
  width: 20px;
}

.product-card {
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-slow);
  background-color: var(--color-white);
}

.product-card:hover {
  border-color: var(--color-gray-200);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.product-card__image {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--color-gray-50);
}

.product-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--color-gray-300);
  background: linear-gradient(135deg, var(--color-gray-50), var(--color-gray-100));
  transition: background var(--transition-slow);
}

.product-card:hover .product-card__img-placeholder {
  background: linear-gradient(135deg, var(--color-gray-100), var(--color-gray-200));
}

.product-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 2;
}

.product-card__wishlist {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  z-index: 3;
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  transition: all var(--transition-fast);
  opacity: 0;
  transform: scale(0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card:hover .product-card__wishlist {
  opacity: 1;
  transform: scale(1);
}

.product-card__wishlist:hover {
  color: var(--color-primary);
  transform: scale(1.15);
}

.product-card__wishlist--active {
  opacity: 1;
  transform: scale(1);
  color: var(--color-primary);
  background-color: rgba(var(--color-primary-rgb), 0.1);
}

.product-card__wishlist--active:hover {
  background-color: rgba(var(--color-primary-rgb), 0.2);
}

.product-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: 2;
}

.product-card:hover .product-card__overlay {
  opacity: 1;
  transform: translateY(0);
}

.product-card__quick-add { width: 100%; }

.btn--success-state {
  background-color: var(--color-success) !important;
  border-color: var(--color-success) !important;
  color: var(--color-static-white) !important;
}

.product-card__info {
  padding: var(--space-4) var(--space-4) var(--space-5);
}

.product-card__category {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-1);
}

.product-card__name {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.product-card__name a {
  color: var(--color-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.product-card__name a:hover { color: var(--color-primary); }

.product-card__desc {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  margin-bottom: var(--space-3);
  line-height: var(--leading-normal);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__price {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.product-card--no-stock .product-card__img-placeholder {
  filter: grayscale(0.4);
}

.product-card__stock-badge {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-3);
  z-index: 2;
}

.section-footer {
  text-align: center;
  margin-top: var(--space-10);
}

.why-batci {
  background-color: var(--color-gray-50);
}

.why-card {
  text-align: center;
  padding: var(--space-8) var(--space-5);
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-100);
  transition: all var(--transition-slow);
}

.why-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.why-card__icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: var(--color-primary);
  background-color: rgba(var(--color-primary-rgb), 0.08);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-5);
}

.why-card__title {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-dark);
  margin-bottom: var(--space-3);
}

.why-card__text {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  line-height: var(--leading-relaxed);
  max-width: 100%;
}

.brand-story {
  position: relative;
  padding: var(--space-20) 0;
  overflow: hidden;
}

.brand-story__background {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--color-static-black) 0%, #1A1520 40%, #2D1F2F 100%);
  z-index: 0;
}

.brand-story__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}

.brand-story__label { color: var(--color-accent) !important; }

.brand-story__title {
  font-family: var(--font-primary);
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
  color: var(--color-static-white);
  margin-bottom: var(--space-5);
}

.brand-story__text {
  font-size: var(--text-md);
  color: var(--color-static-light);
  opacity: 0.75;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 100%;
}

.faq-item {
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--color-gray-300);
}

.faq-item--open {
  border-color: var(--color-primary);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-dark);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-item__question:hover {
  color: var(--color-primary);
}

.faq-item__icon {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.faq-item--open .faq-item__icon {
  transform: rotate(45deg);
  color: var(--color-primary);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item--open .faq-item__answer {
  max-height: 300px;
  padding: 0 var(--space-6) var(--space-5);
}

.faq-item__answer p {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  line-height: var(--leading-relaxed);
  max-width: 100%;
}

.chatbot-widget {
  position: fixed;
  bottom: var(--space-4);
  right: var(--space-4);
  z-index: var(--z-sticky);
}

@media (min-width: 768px) {
  .chatbot-widget {
    bottom: var(--space-6);
    right: var(--space-6);
  }

  .chatbot-widget__trigger {
    width: 56px;
    height: 56px;
    font-size: var(--text-xl);
  }
}

.chatbot-widget__trigger {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-static-white);
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.chatbot-widget__trigger:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-xl);
}

.chatbot-widget__trigger::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  opacity: 0.3;
  animation: chatbotPulse 2s ease-out infinite;
}

@keyframes chatbotPulse {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.5); opacity: 0; }
}

.animate-ready {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.hero.animate-ready {
  opacity: 1;
  transform: none;
}

@media (min-width: 768px) {
  .hero-slider, .hero { min-height: 90vh; }
  .hero-slide { height: 90vh; }
  .hero__title { font-size: var(--text-4xl); }
  .hero__subtitle { font-size: var(--text-lg); }
  .brand-story { padding: var(--space-32) 0; }
  .brand-story__title { font-size: var(--text-4xl); }

  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .hero__title { font-size: var(--text-5xl); }
  .hero__content { max-width: 700px; }

  .why-grid { grid-template-columns: repeat(4, 1fr); }
}

.rtl .hero__content { text-align: right; }
.rtl .brand-story__content { text-align: center; }

.product-card__low-stock {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-error);
  margin-bottom: var(--space-2);
}

.product-card__low-stock i {
  color: var(--color-warning);
  font-size: 10px;
}

.product-card__countdown {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  margin-top: var(--space-2);
}

.product-card__countdown i {
  font-size: 10px;
  animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- Dark mode overrides --- */
[data-theme="dark"] .product-card__wishlist {
  background-color: rgba(0, 0, 0, 0.7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
