/* ========================================
   HANDMADE STORE - MODERN BEAUTIFUL CSS
   ======================================== */


/* ========================================
   CSS VARIABLES - CUTE COLOR PALETTE 💕
   ======================================== */
:root {
  /* Primary Colors - Soft & Dreamy Pink */
  --primary-color: #FF6B9D;
  --primary-dark: #E5508A;
  --primary-light: #FFB6D2;
  --primary-gradient: linear-gradient(135deg, #FFB8D4 0%, #FF6B9D 50%, #FFA6C9 100%);
  --primary-gradient-hover: linear-gradient(135deg, #FF6B9D 0%, #E5508A 100%);

  /* Secondary Colors - Dreamy Purple & Blue */
  --secondary-color: #B794F6;
  --secondary-dark: #9F7AEA;
  --secondary-light: #DDD6FE;
  --secondary-gradient: linear-gradient(135deg, #DDD6FE 0%, #B794F6 100%);

  /* Accent Colors - Pastel Rainbow */
  --accent-lavender: #E0BBE4;
  --accent-peach: #FFDFD3;
  --accent-mint: #D4F1F4;
  --accent-yellow: #FFF4C2;
  --accent-coral: #FFB6C1;
  --accent-sky: #C3E5FF;

  /* Cute Gradients */
  --gradient-sunset: linear-gradient(135deg, #FFD3E1 0%, #FFDFE5 50%, #FFF0F5 100%);
  --gradient-unicorn: linear-gradient(135deg, #E0C3FC 0%, #FFD6E8 50%, #FFF0F5 100%);
  --gradient-candy: linear-gradient(135deg, #FFE8F5 0%, #FFF5E1 50%, #E8F4FF 100%);
  --gradient-pastel: linear-gradient(135deg, #FFDEE9 0%, #B5FFFC 100%);

  /* Neutrals - Soft & Gentle */
  --text-primary: #4A4A68;
  --text-secondary: #8B8BA7;
  --text-light: #B8B8CC;
  --bg-primary: #FFFFFF;
  --bg-secondary: #FDFBFF;
  --bg-gray: #F8F6FA;
  --bg-pink: #FFF5F9;

  /* Soft Shadows - Dreamy Effect */
  --shadow-sm: 0 2px 8px rgba(255, 107, 157, 0.08);
  --shadow-md: 0 4px 12px rgba(255, 107, 157, 0.12);
  --shadow-lg: 0 8px 24px rgba(255, 107, 157, 0.15);
  --shadow-xl: 0 12px 40px rgba(255, 107, 157, 0.2);
  --shadow-color: 0 8px 20px rgba(255, 107, 157, 0.25);
  --shadow-purple: 0 8px 20px rgba(183, 148, 246, 0.2);
  --shadow-dreamy: 0 10px 30px rgba(224, 187, 228, 0.3);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Border Radius - Super Rounded & Friendly */
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 1.75rem;
  --radius-xl: 2.5rem;
  --radius-pill: 100px;

  /* Transitions - Smooth & Bouncy */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ========================================
   GLOBAL STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  /* Direction set dynamically via html[dir] attribute */
}

/* RTL-specific styles */
html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] body {
  text-align: right;
}

/* LTR-specific styles */
html[dir="ltr"] {
  direction: ltr;
}

html[dir="ltr"] body {
  text-align: left;
}

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  color: var(--text-primary);
  background: var(--gradient-candy);
  background-attachment: fixed;
  line-height: 1.8;
  overflow-x: hidden;
  position: relative;
}

/* Cute floating shapes in background */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 182, 212, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}

body::after {
  content: '';
  position: fixed;
  bottom: -30%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(183, 148, 246, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(30px, -30px) rotate(5deg);
  }

  66% {
    transform: translate(-20px, 20px) rotate(-5deg);
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Almarai', 'Cairo', sans-serif;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text-primary);
}

/* ========================================
   NAVIGATION - MODERN & ELEGANT
   ======================================== */
.navbar {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
  transition: var(--transition-normal);
  border: none !important;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-family: 'Almarai', 'Cairo', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: var(--transition-normal);
}

.navbar-brand:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  padding: 0.5rem 1.25rem !important;
  margin: 0 0.25rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  background: rgba(255, 107, 157, 0.1);
}

/* Search Bar in Navbar */
.nav-search {
  display: flex;
  align-items: center;
  margin: 0 0.5rem;
}

.nav-search form {
  margin: 0;
  gap: 0.5rem;
}

.search-input {
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  transition: var(--transition-normal);
  background: white;
  color: var(--text-primary);
  min-width: 180px;
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
  outline: none;
  background: white;
}

.search-input::placeholder {
  color: var(--text-light);
  font-size: 0.85rem;
}

.search-btn {
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  min-width: 40px;
  max-width: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 0;
  background: white;
  color: var(--primary-color);
  transition: var(--transition-fast);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-btn:hover {
  background: var(--primary-gradient);
  color: white;
  border-color: var(--primary-color);
}

.search-btn i {
  font-size: 0.9rem;
}

/* Responsive search bar */
@media (max-width: 991px) {
  .nav-search {
    width: 100%;
    margin: 1rem 0;
  }

  .nav-search form {
    width: 100%;
  }

  .search-input {
    flex: 1;
    min-width: 0;
  }
}

/* ========================================
   BUTTONS - BEAUTIFUL & INTERACTIVE
   ======================================== */
.btn {
  border-radius: var(--radius-sm);
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-normal);
  border: none;
  position: relative;
  overflow: hidden;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-color);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  background: var(--primary-gradient-hover);
  box-shadow: var(--shadow-dreamy);
  transform: translateY(-3px) scale(1.02);
}

.btn-secondary {
  background: linear-gradient(135deg, #FFB6D2 0%, #FF6B9D 100%);
  color: white;
  box-shadow: 0 8px 16px rgba(255, 107, 157, 0.2);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #FF6B9D 0%, #E5508A 100%);
  box-shadow: 0 8px 16px rgba(255, 107, 157, 0.35);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

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

.btn-outline-primary:hover {
  background: var(--primary-gradient);
  color: white;
  transform: translateY(-3px);
}

/* ========================================
   CARDS - SUPER CUTE PRODUCT CARDS 💝
   ======================================== */
.card {
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-bounce);
  background: white;
  height: 100%;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: var(--transition-normal);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-dreamy);
}

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

.card-img-top {
  transition: var(--transition-normal);
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
  position: relative;
}

.card-title {
  font-family: 'Almarai', 'Cairo', sans-serif;
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card .price {
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Product Badge - Super Cute */
.badge-new {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #FFE8F5 0%, #FFF4C2 100%);
  color: var(--text-primary);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-color);
  border: 2px solid rgba(255, 255, 255, 0.8);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.badge-new::before {
  content: '✨ ';
}

/* ========================================
   HERO SECTION - DREAMY & MAGICAL ✨
   ======================================== */
.hero-section {
  background: var(--gradient-unicorn);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 2rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

/* Floating sparkles */
.hero-section::before {
  content: '✨';
  position: absolute;
  font-size: 3rem;
  top: 20%;
  right: 15%;
  opacity: 0.4;
  animation: sparkle 3s ease-in-out infinite;
}

.hero-section::after {
  content: '💕';
  position: absolute;
  font-size: 2.5rem;
  bottom: 20%;
  left: 10%;
  opacity: 0.4;
  animation: sparkle 4s ease-in-out infinite reverse;
}

@keyframes sparkle {

  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.4;
  }

  50% {
    transform: translateY(-20px) rotate(180deg) scale(1.2);
    opacity: 0.7;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  font-family: 'Almarai', 'Cairo', sans-serif;
  margin-bottom: 1rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ========================================
   PRODUCT GRID - BEAUTIFUL LAYOUT
   ======================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* ========================================
   FORMS - MODERN & CLEAN
   ======================================== */
.form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-control,
.form-select {
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: var(--transition-normal);
  font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
  outline: none;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #E2E8F0;
  margin-top: 0.125rem;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-label {
  margin-left: 0.5rem;
  color: var(--text-secondary);
}

/* ========================================
   TABLES - ELEGANT DATA DISPLAY
   ======================================== */
.table {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.table thead {
  background: var(--primary-gradient);
  color: white;
}

.table thead th {
  border: none;
  padding: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.table tbody tr {
  transition: var(--transition-fast);
  border-bottom: 1px solid #EDF2F7;
}

.table tbody tr:hover {
  background: rgba(255, 107, 157, 0.03);
  transform: scale(1.01);
}

.table td {
  padding: 1.25rem;
  vertical-align: middle;
  color: var(--text-secondary);
}

.table tfoot {
  background: var(--bg-gray);
  font-weight: 600;
}

.table tfoot th {
  padding: 1.25rem;
  border: none;
}

/* ========================================
   ALERTS - BEAUTIFUL NOTIFICATIONS
   ======================================== */
.alert {
  border: none;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-md);
  font-weight: 500;
  animation: slideInDown 0.5s ease-out;
}

.alert-success {
  background: linear-gradient(135deg, #D4EDDA 0%, #C3E6CB 100%);
  color: #155724;
}

.alert-warning {
  background: linear-gradient(135deg, #FFF3CD 0%, #FFE69C 100%);
  color: #856404;
}

.alert-danger {
  background: linear-gradient(135deg, #F8D7DA 0%, #F5C6CB 100%);
  color: #721C24;
}

.alert-info {
  background: linear-gradient(135deg, #D1ECF1 0%, #BEE5EB 100%);
  color: #0C5460;
}

/* ========================================
   FOOTER - ELEGANT & MODERN
   ======================================== */
.footer {
  background: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 5rem;
  border-top: none;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  font-family: 'Almarai', 'Cairo', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #CBD5E0;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-light);
  transform: translateY(-2px);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition-normal);
}

.social-icon:hover {
  background: var(--primary-gradient);
  color: white;
}

.footer-copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #A0AEC0;
  font-size: 0.9rem;
}

/* ========================================
   CONTAINER ENHANCEMENTS
   ======================================== */
.container {
  max-width: 1200px;
  padding: 0 1.5rem;
}

main {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

/* ========================================
   PAGE HEADERS
   ======================================== */
.page-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1rem 0;
}

.page-header h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header .lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* ========================================
   ANIMATIONS - MINIMAL
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Fade in animation for elements */
.fade-in {
  animation: fadeInUp 0.3s ease-out;
}

/* ========================================
   IMAGE GALLERY - PRODUCT DETAILS
   ======================================== */
.product-image-container {
  top: 100px;
}

.product-main-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: white;
  padding: 1rem;
}

.product-main-image {
  width: 100%;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  display: block;
}

.product-main-image:hover {
  opacity: 0.95;
}

.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.thumbnail-image {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-fast);
}

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

/* Product Details Card */
.product-details-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.product-title {
  font-size: 2.5rem;
  font-family: 'Almarai', 'Cairo', sans-serif;
  color: var(--text-primary);
  line-height: 1.2;
}

.product-rating {
  font-size: 1.1rem;
}

.product-description h5 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Product Options Card */
.product-options-card {
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  border: 2px dashed #CBD5E0;
}

.addon-checkbox {
  background: white;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid #E2E8F0;
  transition: var(--transition-fast);
}

.addon-checkbox:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.addon-checkbox input:checked+label {
  color: var(--primary-color);
  font-weight: 600;
}

/* Quantity Selector */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 200px;
}

.qty-btn {
  width: 45px;
  height: 45px;
  border: 2px solid var(--primary-color);
  background: white;
  color: var(--primary-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.quantity-selector input {
  flex: 1;
  height: 45px;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Custom Fields Info */
.custom-fields-info {
  background: linear-gradient(135deg, #FFF3CD 0%, #FFE69C 100%);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent-yellow);
}

.custom-fields-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-fields-list li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

/* Product Features */
.product-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 2px dashed #E2E8F0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.feature-item i {
  font-size: 1.25rem;
  color: var(--primary-color);
}

/* Breadcrumb Styling */
.breadcrumb {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.breadcrumb-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.breadcrumb-item a:hover {
  color: var(--primary-color);
}

.breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: 600;
}

.breadcrumb-item+.breadcrumb-item::before {
  color: var(--text-light);
  float: right;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
}

/* ========================================
   PRICE DISPLAY - ELEGANT
   ======================================== */
.price-display {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.price-current {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-original {
  font-size: 1.5rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.price-badge {
  background: var(--accent-yellow);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ========================================
   CART PAGE STYLES
   ======================================== */
.cart-items-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-item-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  transition: var(--transition-normal);
}

.cart-item-card:hover {
  box-shadow: var(--shadow-lg);
}

.cart-item-image {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-gray);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-image .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 2rem;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-size: 1.5rem;
  font-family: 'Almarai', 'Cairo', sans-serif;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.cart-item-variant {
  margin-bottom: 1rem;
}

.cart-item-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.price-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.quantity-selector-cart {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn-cart {
  width: 35px;
  height: 35px;
  border: 2px solid var(--primary-color);
  background: white;
  color: var(--primary-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.qty-btn-cart:hover {
  background: var(--primary-gradient);
  color: white;
}

.quantity-selector-cart input {
  width: 60px;
  height: 35px;
  text-align: center;
  font-weight: 600;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-sm);
}

.cart-item-total {
  text-align: right;
}

.total-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: block;
}

.total-value {
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cart Summary Card */
.cart-summary-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

/* Cart Summary Sticky Wrapper */
.cart-summary-sticky {
  position: sticky;
  top: 100px;
}

.cart-summary-title {
  font-size: 1.5rem;
  font-family: 'Almarai', 'Cairo', sans-serif;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.cart-summary-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

.cart-summary-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
  margin: 1rem 0;
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.cart-summary-total span:last-child {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 2px dashed #E2E8F0;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.trust-badge i {
  font-size: 1.25rem;
  color: var(--primary-color);
}

/* Promo Code Card */
.promo-code-card {
  background: linear-gradient(135deg, #F0FFF4 0%, #C6F6D5 100%);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.promo-code-card h5 {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0;
}

/* Empty Cart */
.empty-cart-container {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-cart-content {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.empty-cart-icon {
  font-size: 6rem;
  color: var(--primary-light);
  margin-bottom: 2rem;
}

.empty-cart-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* Cart Page Responsive */
@media (max-width: 768px) {
  .cart-item-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cart-item-image {
    margin: 0 auto;
  }

  .cart-item-actions {
    align-items: center;
  }
}

/* ========================================
   CART BADGE
   ======================================== */

/* ========================================
   CHECKOUT PAGE STYLES
   ======================================== */
.checkout-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.progress-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-gray);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition-normal);
  border: 3px solid var(--bg-gray);
}

.progress-step.active .progress-icon {
  background: var(--primary-gradient);
  color: white;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-color);
}

.progress-step span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
}

.progress-step.active span {
  color: var(--primary-color);
}

.progress-line {
  flex: 1;
  height: 3px;
  background: var(--bg-gray);
  margin: 0 1rem;
  max-width: 100px;
  transition: var(--transition-normal);
}

.progress-line.active {
  background: var(--primary-gradient);
}

.checkout-section-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.section-title {
  font-size: 1.5rem;
  font-family: 'Almarai', 'Cairo', sans-serif;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px dashed #E2E8F0;
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.checkout-item:hover {
  background: #E2E8F0;
}

.item-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.item-image {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

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

.no-image-small {
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.item-info h5 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.item-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Checkout Summary Card */
.checkout-summary-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 100px;
}

.summary-title {
  font-size: 1.5rem;
  font-family: 'Almarai', 'Cairo', sans-serif;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px dashed #E2E8F0;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

.summary-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
  margin: 1rem 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.total-amount {
  font-size: 2rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Security Badges */
.security-badges {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 2px dashed #E2E8F0;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-gray);
  border-radius: var(--radius-md);
}

.security-badge i {
  font-size: 2rem;
  color: var(--primary-color);
}

.security-badge strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.security-badge p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Payment Methods */
.payment-methods {
  padding-top: 1.5rem;
  border-top: 2px dashed #E2E8F0;
}

.payment-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 2rem;
  color: var(--text-secondary);
}

.payment-icons i {
  transition: var(--transition-fast);
}

.payment-icons i:hover {
  color: var(--primary-color);
}

/* Help Card */
.help-card {
  background: linear-gradient(135deg, #FFF3CD 0%, #FFE69C 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.help-card i {
  font-size: 3rem;
  color: var(--accent-yellow);
  margin-bottom: 1rem;
  display: block;
}

.help-card h5 {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.help-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Form Control Large */
.form-control-lg {
  font-size: 1rem;
  padding: 0.875rem 1.25rem;
}

/* Checkout Responsive */
@media (max-width: 768px) {
  .checkout-progress {
    padding: 1rem 0;
  }

  .progress-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .progress-step span {
    font-size: 0.75rem;
  }

  .progress-line {
    max-width: 50px;
    margin: 0 0.5rem;
  }

  .checkout-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .item-info {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================
   LOADING SPINNER
   ======================================== */
.spinner {
  border: 3px solid rgba(255, 107, 157, 0.1);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

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

  100% {
    transform: rotate(360deg);
  }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 0;
    border-radius: 0 0 1rem 1rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .page-header {
    padding: 0.5rem 0;
    margin-bottom: 1rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .page-header .lead {
    font-size: 0.9rem;
  }

  .section-divider {
    margin: 1rem auto;
    max-width: 80px;
  }

  .feature-card {
    padding: 1rem !important;
  }

  .card-body {
    padding: 1rem;
  }

  .card-title {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .btn-lg {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .filters-card {
    padding: 1rem;
  }

  .filters-card .form-label {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
  }

  .filters-card .form-control,
  .filters-card .form-select {
    font-size: 0.9rem;
    padding: 0.5rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  .card-img-top {
    height: 180px;
  }

  .badge-new {
    font-size: 0.65rem;
    padding: 0.35rem 0.75rem;
  }

  .price {
    font-size: 1rem !important;
  }
}

@media (max-width: 768px) {

  /* Hide hero section decorative pseudo-elements */
  .hero-section::before,
  .hero-section::after {
    display: none;
  }

  .footer {
    margin-top: 2rem;
    padding: 2rem 0 1rem;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

}

/* ========================================
   FEATURE CARDS - HOMEPAGE
   ======================================== */
.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  height: 100%;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* ========================================
   CALL TO ACTION SECTION
   ======================================== */
.cta-section {
  background: linear-gradient(135deg, #FFE8F0 0%, #E8F4FF 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.1) 0%, transparent 70%);
  top: -100px;
  right: -50px;
  border-radius: 50%;
}

.cta-section h2 {
  position: relative;
  z-index: 2;
}

.cta-section p {
  position: relative;
  z-index: 2;
}

.cta-section .btn {
  position: relative;
  z-index: 2;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-soft {
  box-shadow: var(--shadow-md);
}

.shadow-strong {
  box-shadow: var(--shadow-xl);
}

.rounded-soft {
  border-radius: var(--radius-md);
}

.rounded-strong {
  border-radius: var(--radius-xl);
}

.hover-lift {
  transition: var(--transition-normal);
}

.hover-lift:hover {
  box-shadow: var(--shadow-lg);
}

/* ========================================
   ADMIN DASHBOARD STYLES
   ======================================== */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.admin-header-content {
  flex: 1;
}

.admin-title {
  font-size: 3rem;
  font-family: 'Almarai', 'Cairo', sans-serif;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.admin-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.admin-header-actions {
  display: flex;
  gap: 1rem;
}

/* Stat Cards */
.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
}

.stat-card:hover {
  box-shadow: var(--shadow-lg);
}

.stat-card-purple::before {
  background: linear-gradient(135deg, #FFB6D2 0%, #FF6B9D 100%);
}

.stat-card-blue::before {
  background: linear-gradient(135deg, #FF6B9D 0%, #E5508A 100%);
}

.stat-card-yellow::before {
  background: linear-gradient(135deg, #FFA0C0 0%, #FF6B9D 100%);
}

.stat-card-green::before {
  background: linear-gradient(135deg, #FF8FB3 0%, #FF6B9D 100%);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.stat-card-purple .stat-icon {
  background: linear-gradient(135deg, #FFB6D2 0%, #FF6B9D 100%);
  color: white;
}

.stat-card-blue .stat-icon {
  background: linear-gradient(135deg, #FF6B9D 0%, #E5508A 100%);
  color: white;
}

.stat-card-yellow .stat-icon {
  background: linear-gradient(135deg, #FFA0C0 0%, #FF6B9D 100%);
  color: white;
}

.stat-card-green .stat-icon {
  background: linear-gradient(135deg, #FF8FB3 0%, #FF6B9D 100%);
  color: white;
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1;
}

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

.stat-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-link:hover {
  color: var(--primary-dark);
  gap: 0.75rem;
}

.stat-badge {
  background: var(--bg-gray);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Admin Card */
.admin-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  height: 100%;
}

.admin-card-title {
  font-size: 1.5rem;
  font-family: 'Almarai', 'Cairo', sans-serif;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px dashed #E2E8F0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Quick Links Grid */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.quick-link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition-normal);
  border: 2px solid transparent;
}

.quick-link-item:hover {
  border-color: var(--primary-color);
  background: rgba(255, 107, 157, 0.05);
  box-shadow: var(--shadow-md);
}

.quick-link-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.quick-link-item h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.quick-link-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Tips Container */
.tips-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tip-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.tip-item:hover {
  background: #E2E8F0;
}

.tip-icon {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #FFB6D2 0%, #FF6B9D 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.tip-content h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.tip-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Admin Page Header */
.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 2rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.admin-page-title {
  font-size: 2rem;
  font-family: 'Almarai', 'Cairo', sans-serif;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.admin-page-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 0;
}

.admin-page-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Admin Table */
.admin-table-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.admin-table {
  margin-bottom: 0;
}

.admin-table thead {
  background: var(--bg-gray);
}

.admin-table thead th {
  color: var(--text-primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 1.25rem 1rem;
  border: none;
}

.admin-table-row {
  transition: var(--transition-fast);
  border-bottom: 1px solid #E2E8F0;
}

.admin-table-row:hover {
  background: rgba(255, 107, 157, 0.02);
}

.admin-table td {
  padding: 1.25rem 1rem;
  vertical-align: middle;
}

.product-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.product-thumb-empty {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.5rem;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}

.status-active {
  background: linear-gradient(135deg, #D4EDDA 0%, #C3E6CB 100%);
  color: #155724;
}

.status-warning {
  background: linear-gradient(135deg, #FFF3CD 0%, #FFE69C 100%);
  color: #856404;
}

.status-inactive {
  background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E0 100%);
  color: #4A5568;
}

.badge-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.8rem;
}

/* Empty State */
.empty-state-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 5rem 3rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.empty-state-card i {
  font-size: 5rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  display: block;
}

.empty-state-card h3 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.empty-state-card p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Admin Responsive */
@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-title {
    font-size: 2rem;
  }

  .admin-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-page-actions {
    width: 100%;
    flex-direction: column;
  }

  .admin-page-actions .btn {
    width: 100%;
  }

  .quick-links-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  border: none;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  box-shadow: 0 12px 24px rgba(255, 107, 157, 0.4);
}

.scroll-to-top:active {
  transform: translateY(-2px);
}

.form-control.is-valid,
.form-select.is-valid {
  border-color: #10B981;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310B981' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #EF4444;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23EF4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23EF4444' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control:focus.is-valid,
.form-select:focus.is-valid {
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-control:focus.is-invalid,
.form-select:focus.is-invalid {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.thumbnail-image.active {
  border-color: var(--primary-color);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* Bootstrap override for better spacing */
.mb-3 {
  margin-bottom: 1.5rem !important;
}

.mb-4 {
  margin-bottom: 2rem !important;
}

.mt-3 {
  margin-top: 1.5rem !important;
}

.mt-4 {
  margin-top: 2rem !important;
}


a,
button,
input,
select,
textarea {
  transition: all 0.2s ease;
}

*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

button:focus,
.btn:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

/* Selection color */
::selection {
  background: var(--primary-color);
  color: white;
}

::-moz-selection {
  background: var(--primary-color);
  color: white;
}

/* Scrollbar styling - Cute & Colorful */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-pink);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-gradient);
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-pink);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-gradient-hover);
  border-color: white;
}

/* ========================================
   CUTE PRODUCT LIKE BUTTON 💕
   ======================================== */
.product-like-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition-bounce);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.product-like-btn i {
  color: var(--primary-color);
  font-size: 1.25rem;
  transition: var(--transition-fast);
}

.product-like-btn:hover {
  transform: scale(1.15);
  box-shadow: var(--shadow-color);
}

.product-like-btn.liked i {
  color: var(--primary-color);
  animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {

  0%,
  100% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.3);
  }

  50% {
    transform: scale(1.1);
  }

  75% {
    transform: scale(1.25);
  }
}

/* ========================================
   SHIMMER EFFECT - FOR LOADING/NEW ITEMS
   ======================================== */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  animation: shimmer 2s infinite;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.5) 50%,
      transparent 100%);
  background-size: 1000px 100%;
}

/* ========================================
   FLOATING LABELS - MODERN FORMS
   ======================================== */
.form-floating-custom {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-floating-custom input,
.form-floating-custom select,
.form-floating-custom textarea {
  border: 2px solid var(--bg-gray);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 1rem;
  transition: var(--transition-normal);
  width: 100%;
  background: white;
}

.form-floating-custom input:focus,
.form-floating-custom select:focus,
.form-floating-custom textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.1);
  outline: none;
}

/* ========================================
   CONFETTI EFFECT (for celebrations)
   ======================================== */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--primary-color);
  position: absolute;
  animation: confetti-fall 3s linear;
}

@keyframes confetti-fall {
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* ========================================
   CUTE BADGES & TAGS
   ======================================== */
.badge-cute {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.badge-pink {
  background: linear-gradient(135deg, #FFE8F5 0%, #FFD6E8 100%);
  color: var(--primary-dark);
}

.badge-purple {
  background: linear-gradient(135deg, #E0C3FC 0%, #DDD6FE 100%);
  color: var(--secondary-dark);
}

.badge-mint {
  background: linear-gradient(135deg, #D4F1F4 0%, #C3E5FF 100%);
  color: #0C5460;
}

.badge-peach {
  background: linear-gradient(135deg, #FFDFD3 0%, #FFE8F5 100%);
  color: #856404;
}

/* ========================================
   GLASS MORPHISM EFFECT
   ======================================== */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   CUTE TOOLTIPS
   ======================================== */
.tooltip-cute {
  position: relative;
  display: inline-block;
}

.tooltip-cute::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: var(--primary-gradient);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: var(--transition-normal);
  pointer-events: none;
  font-weight: 500;
}

.tooltip-cute:hover::after {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

/* ========================================
   NOTIFICATION BADGE (Cart Count)
   ======================================== */
.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary-gradient);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: var(--shadow-color);
  border: 2px solid white;
  animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* ========================================
   PRICE TAG - CUTE DESIGN
   ======================================== */
.price-tag-cute {
  display: inline-block;
  position: relative;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #FFE8F0 0%, #FFF4C2 100%);
  border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.price-tag-cute::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 0;
  border-left: 10px solid var(--accent-yellow);
  border-bottom: 10px solid transparent;
}

/* ========================================
   RIBBON BANNER
   ======================================== */
.ribbon {
  position: absolute;
  top: 20px;
  left: -5px;
  background: var(--primary-gradient);
  color: white;
  padding: 0.5rem 1.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow-color);
  z-index: 10;
}

.ribbon::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 0;
  border-left: 5px solid var(--primary-dark);
  border-bottom: 5px solid transparent;
}

/* ========================================
   CUTE SECTION DIVIDER
   ======================================== */
.section-divider {
  height: 3px;
  background: var(--primary-gradient);
  border-radius: var(--radius-pill);
  margin: 1.5rem auto;
  max-width: 120px;
  position: relative;
}

.section-divider::before,
.section-divider::after {
  content: '✨';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  animation: sparkle 2s ease-in-out infinite;
}

.section-divider::before {
  left: -40px;
}

.section-divider::after {
  right: -40px;
}

/* ========================================
   IMAGE HOVER EFFECTS - ZOOM
   ======================================== */
.image-zoom-container {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.image-zoom-container img {
  transition: var(--transition-slow);
}

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

/* ========================================
   PRODUCT CARD HOVER OVERLAY
   ======================================== */
.card-hover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  padding: 1.5rem 1rem 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-normal);
  display: flex;
  justify-content: center;
}

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

.product-card .image-zoom-container {
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* ========================================
   LOADING DOTS - CUTE ANIMATION
   ======================================== */
.loading-dots {
  display: inline-flex;
  gap: 0.5rem;
}

.loading-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-color);
  animation: loading 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) {
  animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loading {

  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ========================================
   RTL (RIGHT-TO-LEFT) ADJUSTMENTS
   ======================================== */

/* Navbar adjustments */
.navbar-nav {
  margin-right: 0 !important;
  margin-left: auto !important;
}

/* Badge positions */
.badge-new {
  right: auto;
  left: 1rem;
}

.notification-badge {
  right: auto;
  left: -8px;
}

.product-like-btn {
  left: auto;
  right: 1rem;
}

/* Ribbon adjustments */
.ribbon {
  left: auto;
  right: -5px;
}

.ribbon::after {
  left: auto;
  right: 0;
  border-left: none;
  border-right: 5px solid var(--primary-dark);
}

/* Section divider sparkles */
.section-divider::before {
  left: auto;
  right: -40px;
}

.section-divider::after {
  right: auto;
  left: -40px;
}

/* Price tag adjustment */
.price-tag-cute {
  border-radius: var(--radius-md) var(--radius-md) 0 var(--radius-md);
}

.price-tag-cute::after {
  left: auto;
  right: 0;
  border-left: none;
  border-right: 10px solid var(--accent-yellow);
}

/* Scroll to top button */
.scroll-to-top {
  right: auto;
  left: 30px;
}

/* Toast notifications */
.toast-notification {
  right: auto;
  left: 20px;
}

/* Icon spacing adjustments */
.nav-link i,
.btn i,
.feature-item i {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* Form labels with icons */
.form-label i {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* Better Arabic number display */
.price-current,
.price-value,
.total-value,
.stat-number {
  font-family: 'Cairo', sans-serif;
  direction: ltr;
  display: inline-block;
}

/* Adjust card layouts for RTL */
.cart-item-card {
  text-align: right;
}

/* Footer adjustments */
.footer-brand {
  text-align: right;
}

/* Better spacing for Arabic text */
p,
.lead,
.text-muted {
  line-height: 2;
}

/* Improve readability */
.card-text,
.product-description p {
  line-height: 2;
}

/* Social icons adjustment */
.footer-social {
  direction: ltr;
}


/* ========================================
   NAVBAR SEARCH BAR
   ======================================== */
.nav-search {
  display: flex;
  align-items: center;
  margin: 0 0.5rem;
}

.nav-search .search-input {
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  border: 2px solid rgba(255, 107, 157, 0.2);
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  width: 150px;
  transition: all 0.3s ease;
}

.nav-search .search-input:focus {
  width: 200px;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.nav-search .search-btn {
  border-radius: 0 var(--radius-pill) var(--radius-pill);
  border: 2px solid var(--primary-color);
}

.nav-search .search-btn:hover {
  background: var(--primary-gradient);
  color: white;
}

@media (max-width: 991px) {
  .nav-search {
    width: 100%;
    padding: 0.5rem 0;
  }
}

.loading-dots span:nth-child(1) {
  animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loading {

  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ========================================
   RTL (RIGHT-TO-LEFT) ADJUSTMENTS
   ======================================== */

/* Navbar adjustments */
.navbar-nav {
  margin-right: 0 !important;
  margin-left: auto !important;
}

/* Badge positions */
.badge-new {
  right: auto;
  left: 1rem;
}

.notification-badge {
  right: auto;
  left: -8px;
}

.product-like-btn {
  left: auto;
  right: 1rem;
}

/* Ribbon adjustments */
.ribbon {
  left: auto;
  right: -5px;
}

.ribbon::after {
  left: auto;
  right: 0;
  border-left: none;
  border-right: 5px solid var(--primary-dark);
}

/* Section divider sparkles */
.section-divider::before {
  left: auto;
  right: -40px;
}

.section-divider::after {
  right: auto;
  left: -40px;
}

/* Price tag adjustment */
.price-tag-cute {
  border-radius: var(--radius-md) var(--radius-md) 0 var(--radius-md);
}

.price-tag-cute::after {
  left: auto;
  right: 0;
  border-left: none;
  border-right: 10px solid var(--accent-yellow);
}

/* Scroll to top button */
.scroll-to-top {
  right: auto;
  left: 30px;
}

/* Toast notifications */
.toast-notification {
  right: auto;
  left: 20px;
}

/* Icon spacing adjustments */
.nav-link i,
.btn i,
.feature-item i {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* Form labels with icons */
.form-label i {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* Better Arabic number display */
.price-current,
.price-value,
.total-value,
.stat-number {
  font-family: 'Cairo', sans-serif;
  direction: ltr;
  display: inline-block;
}

/* Adjust card layouts for RTL */
.cart-item-card {
  text-align: right;
}

/* Footer adjustments */
.footer-brand {
  text-align: right;
}

/* Better spacing for Arabic text */
p,
.lead,
.text-muted {
  line-height: 2;
}

/* Improve readability */
.card-text,
.product-description p {
  line-height: 2;
}

/* Social icons adjustment */
.footer-social {
  direction: ltr;
}


/* ========================================
   NAVBAR SEARCH BAR
   ======================================== */
.nav-search {
  display: flex;
  align-items: center;
  margin: 0 0.5rem;
}

.nav-search .search-input {
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  border: 2px solid rgba(255, 107, 157, 0.2);
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  width: 150px;
  transition: all 0.3s ease;
}

.nav-search .search-input:focus {
  width: 200px;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.nav-search .search-btn {
  border-radius: 0 var(--radius-pill) var(--radius-pill);
  border: 2px solid var(--primary-color);
}

.nav-search .search-btn:hover {
  background: var(--primary-gradient);
  color: white;
}

@media (max-width: 991px) {
  .nav-search {
    width: 100%;
    padding: 0.5rem 0;
  }

  .nav-search form {
    width: 100%;
  }

  .nav-search .search-input {
    width: 100% !important;
  }
}

/* ========================================
   SWEETALERT2 CUSTOM STYLING - CUTE THEME 💕
   ======================================== */
.swal2-popup {
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-dreamy) !important;
  padding: 2rem !important;
  font-family: 'Cairo', 'Tajawal', sans-serif !important;
}

.swal2-popup.cute-alert {
  background: linear-gradient(135deg, #FFE8F5 0%, #FFF4F8 100%) !important;
}

.swal2-title {
  color: var(--text-primary) !important;
  font-family: 'Almarai', 'Cairo', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.5rem !important;
  padding: 1rem 0 !important;
}

.swal2-html-container {
  color: var(--text-secondary) !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

.swal2-icon {
  border-width: 3px !important;
  margin: 1.5rem auto 1rem !important;
}

.swal2-icon.swal2-warning {
  border-color: #FFB6C1 !important;
  color: #FF6B9D !important;
}

.swal2-icon.swal2-info {
  border-color: #B794F6 !important;
  color: #9F7AEA !important;
}

.swal2-icon.swal2-success {
  border-color: #D4F1F4 !important;
}

.swal2-icon.swal2-error {
  border-color: #FFB6C1 !important;
}

.swal2-confirm {
  background: var(--primary-gradient) !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.75rem 2rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: var(--shadow-color) !important;
  transition: var(--transition-normal) !important;
}

.swal2-confirm:hover {
  background: var(--primary-gradient-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-dreamy) !important;
}

.swal2-cancel {
  background: transparent !important;
  border: 2px solid var(--text-light) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.75rem 2rem !important;
  font-weight: 600 !important;
  color: var(--text-secondary) !important;
  transition: var(--transition-normal) !important;
}

.swal2-cancel:hover {
  background: var(--bg-gray) !important;
  border-color: var(--text-secondary) !important;
}

/* Cute animation for SweetAlert2 */
.swal2-show {
  animation: swal2-show 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

@keyframes swal2-show {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}