@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

/* Custom Styles for Rabaq Fragrance Store */

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

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

/* ============================================
   PROFESSIONAL COLOR SYSTEM - LUXURY TEAL THEME
   ============================================ */
:root {
  /* Primary Colors */
  --primary: #0D9488;              /* Teal - Main Brand Color */
  --primary-dark: #115E59;         /* Dark Teal - Headings */
  --primary-light: #CCFBF1;        /* Light Teal - Backgrounds */

  /* Secondary Colors */
  --secondary: #06B6D4;            /* Cyan - CTAs & Highlights */
  --secondary-light: #CFFAFE;      /* Light Cyan - Special Offers */

  /* Accent Colors */
  --accent: #0EA5E9;               /* Sky Blue - 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: #10B981;              /* Emerald - Success Messages */
  --warning: #F59E0B;              /* Amber - Warning Messages */
  --error: #DC3545;                /* Red - Error Messages */
  --info: #0D9488;                 /* Teal - Info Messages */
}

/* 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;
}

/* Custom Scrollbar */
::-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 Hover Effects */
.product-card {
  transition: all 0.3s ease;
}

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

/* Countdown Timer */
.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);
}

.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: #CCFBF1;
  color: #115E59;
}

/* 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 */
.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: #CCFBF1;
}

/* Form Styles */
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(13, 148, 136, 0.1);
}

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

/* Button Styles */
.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-color: var(--primary);
  color: white;
}

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

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

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

/* 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: linear-gradient(135deg, #0D9488 0%, #115E59 100%);
}

/* Theme gradient for shared components - Teal theme */
.theme-gradient {
  background: linear-gradient(135deg, #0D9488 0%, #115E59 100%);
}

/* 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;
}

/* Product Page Tabs */
.tab-btn {
  transition: all 0.3s ease;
  border-bottom-width: 2px;
  border-bottom-style: solid;
  border-bottom-color: transparent;
}

.tab-btn:hover {
  color: #115E59;
  background-color: #CCFBF1;
}

.tab-btn.active {
  border-color: #0D9488;
  color: #115E59;
  background: #CCFBF1;
}

/* Product Description Styles */
.product-description img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.product-description p {
  margin-bottom: 1rem;
}

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

.product-description li {
  margin-bottom: 0.5rem;
}

.product-description h2,
.product-description h3,
.product-description h4 {
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.product-description h2 {
  font-size: 1.5rem;
}

.product-description h3 {
  font-size: 1.25rem;
}

.product-description h4 {
  font-size: 1.125rem;
}

/* ============================================
   HEADER TOPBAR - HIDDEN
   ============================================ */
header > .container > div.border-b {
  display: none !important;
}
