/* Custom Styles for Nasayim Al Hayat - Natural Honey Store */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', sans-serif;
}

/* ============================================
   HONEY THEME COLOR SYSTEM
   ============================================ */
:root {
  /* Primary Colors - Honey Gold */
  --primary: #D4A574;              /* Honey Gold - Main Brand Color */
  --primary-dark: #8B6F47;         /* Dark Brown - Headings & Hover */
  --primary-light: #FFF8E7;        /* Light Cream - Backgrounds */

  /* Secondary Colors */
  --secondary: #F59E0B;            /* Amber - CTAs & Highlights */
  --secondary-light: #FEF3C7;      /* Light Amber - Special Offers */

  /* Accent Colors */
  --accent: #228B22;               /* Forest Green - Details & Icons */

  /* Neutral Colors */
  --white: #FFFFFF;                /* White - Main Background */
  --dark: #2C3E50;                 /* Dark Gray - Body Text */
  --gray-light: #F5F5F5;           /* Light Gray - Secondary Backgrounds */
  --gray-medium: #999999;          /* Medium Gray - Disabled States */
  --gray-dark: #333333;            /* Dark Gray - Primary Text */

  /* Status Colors */
  --success: #228B22;              /* Green - Success Messages */
  --warning: #F59E0B;              /* Amber - Warning Messages */
  --error: #DC3545;                /* Red - Error Messages */
  --info: #D4A574;                 /* Honey - Info Messages */

  /* Honey Specific */
  --honey-cream: #FFE4B5;          /* Moccasin - Hero BG */
  --honey-gradient: linear-gradient(135deg, #D4A574 0%, #8B6F47 100%);
  --hero-bg: linear-gradient(135deg, #FFF8E7 0%, #FFE4B5 100%);
  --star-color: #FFC107;           /* Gold - Star ratings */
}

/* ============================================
   HONEY GRADIENT CLASSES
   ============================================ */
.honey-gradient,
.theme-gradient {
  background: linear-gradient(135deg, #D4A574 0%, #8B6F47 100%);
}

.hero-bg {
  background: linear-gradient(135deg, #FFF8E7 0%, #FFE4B5 100%);
}

/* ============================================
   ANNOUNCEMENT BAR - SHIMMER EFFECT
   ============================================ */
.announcement-bar {
  background: linear-gradient(90deg, #D4A574 0%, #8B6F47 50%, #D4A574 100%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   FLOAT ANIMATION - HERO IMAGES
   ============================================ */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 100;
  animation: float 3s ease-in-out infinite;
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
}

.whatsapp-float a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Color Utility Classes */
.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.text-accent {
  color: var(--accent);
}

.text-dark {
  color: var(--dark);
}

.bg-primary {
  background-color: var(--primary);
}

.bg-primary-light {
  background-color: var(--primary-light);
}

.bg-secondary {
  background-color: var(--secondary);
}

.bg-secondary-light {
  background-color: var(--secondary-light);
}

.bg-accent {
  background-color: var(--accent);
}

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

.border-secondary {
  border-color: var(--secondary);
}

.border-accent {
  border-color: var(--accent);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Line Clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes fadeOutUp {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
}

.animate-fade-in-down {
  animation: fadeInDown 0.3s ease-out;
}

.animate-fade-out-up {
  animation: fadeOutUp 0.3s ease-out;
}

/* Flash Animation for Urgency */
@keyframes flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.flash-animation {
  animation: flash 1.5s infinite;
}

/* Custom Scrollbar - Honey Theme */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Loading Spinner */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================
   PRODUCT CARD - NASAYIM STYLE
   ============================================ */
.product-card {
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Star Rating */
.star-filled {
  color: #FFC107;
}

.star-empty {
  color: #E5E7EB;
}

/* Trust Badge Hover */
.trust-badge {
  transition: transform 0.3s ease;
}

.trust-badge:hover {
  transform: translateY(-5px);
}

/* Countdown Timer - Honey Style */
.countdown-timer {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.countdown-item {
  text-align: center;
  min-width: 60px;
}

.countdown-value {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-dark);
}

.countdown-label {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Badge Styles */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-success {
  background-color: #dcfce7;
  color: #166534;
}

.badge-warning {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background-color: #fee2e2;
  color: #991b1b;
}

.badge-info {
  background-color: var(--secondary-light);
  color: var(--primary-dark);
}

.badge-honey {
  background: var(--honey-gradient);
  color: white;
}

/* Image Zoom on Hover */
.image-zoom {
  overflow: hidden;
}

.image-zoom img {
  transition: transform 0.3s ease;
}

.image-zoom:hover img {
  transform: scale(1.1);
}

/* Sticky Add to Cart Button (Mobile) */
@media (max-width: 768px) {
  .sticky-cart-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: white;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 40;
  }
}

/* Payment Method Cards - Honey Theme */
.payment-method {
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-method:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.payment-method.selected {
  border-color: var(--primary);
  background-color: var(--secondary-light);
}

/* Form Styles - Honey Theme */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.2);
}

/* Center text in quantity inputs */
input[type="number"].text-center {
  text-align: center;
}

/* Button Styles - Honey Theme */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--honey-gradient);
  color: white;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background-color: #4b5563;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary-dark);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
}

/* Utility Classes */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.shadow-custom {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gradient-primary {
  background: var(--honey-gradient);
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Skeleton Image Wrapper - Async image loading with placeholders */
.skeleton-image-wrapper {
  background-color: #f0f0f0;
}

.skeleton-image-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skeleton-placeholder {
  z-index: 1;
}

/* ============================================
   OFFERS PAGE SPECIFIC STYLES
   ============================================ */
.offers-hero {
  background: linear-gradient(135deg, #FF6F00 0%, #FFA000 100%);
}

.countdown-box {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  padding: 1rem;
  min-width: 80px;
  text-align: center;
}

.countdown-box .number {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.countdown-box .label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.25rem;
}

/* Bundle Cards */
.bundle-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.bundle-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.bundle-card.featured {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(212, 165, 116, 0.3);
}

/* Flash Sale Badge */
.flash-badge {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: white;
  animation: flash 1.5s infinite;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
  background: var(--honey-gradient);
}

.newsletter-input {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 1rem;
}

.newsletter-input:focus {
  outline: none;
  background: white;
}

/* ============================================
   ABOUT PAGE SPECIFIC
   ============================================ */
.stats-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-5px);
}

.stats-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-dark);
}

/* ============================================
   CATEGORY FILTER SIDEBAR
   ============================================ */
.filter-section {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.filter-title {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
}

.filter-option {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.filter-option:hover {
  color: var(--primary-dark);
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.75rem;
  accent-color: var(--primary);
}

/* ============================================
   BLOG ARTICLE STYLES
   ============================================ */
.article-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1rem;
  padding-right: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* Info Box */
.info-box {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
  border-right: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

/* Warning Box */
.warning-box {
  background: #FEF2F2;
  border-right: 4px solid #EF4444;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

/* ============================================
   PRODUCT PAGE TABS - HONEY THEME
   ============================================ */
.tab-btn {
  transition: all 0.3s ease;
  border-bottom-width: 2px;
  border-bottom-style: solid;
  border-bottom-color: transparent;
}

.tab-btn:hover {
  color: var(--primary-dark);
  background-color: var(--primary-light);
}

.tab-btn.active {
  border-color: #D4A574;
  color: #8B6F47;
  background: #FFF8E7;
}

/* Product Image Zoom */
.zoom-container {
  overflow: hidden;
  cursor: zoom-in;
}

.zoom-container img {
  transition: transform 0.3s ease;
}

.zoom-container:hover img {
  transform: scale(1.5);
}

/* Thumbnail Gallery */
.thumbnail {
  transition: all 0.3s ease;
  cursor: pointer;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: #D4A574;
  transform: scale(1.05);
}

/* Pulse Animation for Urgency */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pulse-animation {
  animation: pulse 2s infinite;
}

/* Sticky CTA for Mobile */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
}

@media (min-width: 1024px) {
  .sticky-cta {
    display: none;
  }
}
