/* Global Variables & Design System */
:root {
  /* Default brand colors, customizable in admin panel */
  --primary: #1a202c;         /* Dark Charcoal */
  --primary-light: #2d3748;   /* Medium Charcoal */
  --accent: #c5a880;          /* Elegant Champagne/Gold */
  --accent-hover: #b0936b;
  --bg-color: #f9f8f5;        /* Warm Nude/Beige Light Background */
  --card-bg: #ffffff;
  --text-dark: #1a202c;
  --text-medium: #4a5568;
  --text-light: #718096;
  --border-color: #e2e8f0;
  --success: #4a5d4e;         /* Calm Forest Green */
  --success-bg: #edf2ee;
  --error: #a27b7b;           /* Soft Muted Red */
  --error-bg: #f9f2f2;
  
  --font-arabic: 'Tajawal', sans-serif;
  --font-accent: 'Playfair Display', serif;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 20px rgba(26, 32, 44, 0.05);
  --shadow-lg: 0 10px 30px rgba(26, 32, 44, 0.08);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-arabic);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 70px; /* Space for mobile bottom nav */
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-dark);
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, textarea {
  font-family: inherit;
  outline: none;
  border: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

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

.btn-secondary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background-color: rgba(26, 32, 44, 0.03);
}

/* Announcement Bar */
.announcement-bar {
  background-color: var(--accent);
  color: #ffffff;
  font-size: 0.8rem;
  text-align: center;
  padding: 6px 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
}

/* Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-logo-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  font-family: var(--font-accent);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.store-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-name {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-trigger {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 10px rgba(26, 32, 44, 0.1);
}

.cart-trigger:hover {
  transform: scale(1.05);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--accent);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  animation: popScale 0.3s ease-out;
}

@keyframes popScale {
  0% { transform: scale(0.5); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 45vh;
  min-height: 300px;
  max-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #f1ede4;
  background-size: cover;
  background-position: center;
  padding: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  color: #ffffff; /* Contrast text since custom background might be dark/light */
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content .hero-title {
  color: #ffffff;
}

.hero-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 1rem;
  color: #f7fafc;
  margin-bottom: 24px;
  font-weight: 400;
  opacity: 0.95;
}

.hero-btn {
  width: auto;
  padding: 12px 36px;
  font-size: 0.95rem;
}

/* Category Filter Bar */
.category-bar-wrapper {
  margin: 0 auto 24px;
  max-width: 1200px;
  padding: 0 20px;
}

.category-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none; /* Hide for Firefox */
}

.category-bar::-webkit-scrollbar {
  display: none; /* Hide for Chrome/Safari */
}

.category-tab {
  padding: 8px 20px;
  border-radius: var(--radius-lg);
  background-color: #ffffff;
  color: var(--text-medium);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

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

.category-tab.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Main Content Area */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.section-title-wrapper {
  margin-bottom: 20px;
  text-align: center;
}

.section-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-top: 4px;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
  gap: 15px;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Loading spinner */
.loading-spinner {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 60px 0;
  color: var(--text-light);
}

.loading-spinner i {
  font-size: 2rem;
  color: var(--accent);
}

/* Product Card */
.product-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(197, 168, 128, 0.4);
}

.product-img-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #f7f7f7;
  cursor: pointer;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--accent);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.product-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  cursor: pointer;
}

.product-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 40px;
  line-height: 1.4;
}

/* Redesigned Card Footer for BIG PROMINENT Add-to-cart Button */
.product-card-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
}

.product-card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-card-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}

.add-to-cart-btn-full {
  background-color: var(--primary);
  color: #ffffff;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.add-to-cart-btn-full:hover {
  background-color: var(--accent);
  color: #ffffff;
}

.add-to-cart-btn-full i {
  font-size: 0.9rem;
}

/* Mobile Bottom Nav Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 90;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  background: none;
  flex-grow: 1;
  height: 100%;
}

.nav-item i {
  font-size: 1.15rem;
  margin-bottom: 4px;
  transition: var(--transition-fast);
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active i {
  transform: translateY(-2px);
  color: var(--accent);
}

.nav-cart-wrapper {
  position: relative;
}

.nav-cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--accent);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none; /* Hide on desktop */
  }
  body {
    padding-bottom: 0;
  }
}

/* Footer styling */
.store-footer {
  background-color: #11151c;
  color: #a0aec0;
  padding: 40px 20px 80px; /* Extra bottom padding for mobile nav */
  font-size: 0.85rem;
  border-top: 1px solid #1a202c;
  transition: var(--transition-smooth);
}

@media (min-width: 768px) {
  .store-footer {
    padding: 60px 20px;
  }
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-store-name {
  color: #ffffff;
  font-size: 1.3rem;
  font-family: var(--font-arabic);
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
}

.footer-rights {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  width: 100%;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Common Overlay Backdrop */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  backdrop-filter: blur(2px);
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Side Drawers (Cart & Checkout) */
.side-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background-color: #ffffff;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
}

/* Position for RTL */
.side-drawer {
  left: 0;
  transform: translateX(-100%);
}

.side-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.drawer-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #f7fafc;
  color: var(--text-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.drawer-close-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.drawer-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
}

/* Bottom Sheet Drawer (Product details on mobile) */
.bottom-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 88vh;
  background-color: #ffffff;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
}

.bottom-drawer.active {
  transform: translateY(0);
}

.drawer-drag-indicator {
  width: 40px;
  height: 4px;
  background-color: var(--border-color);
  border-radius: 2px;
  margin: 10px auto 0;
}

/* Desktop override for bottom drawer to make it look like a nice modal/panel */
@media (min-width: 768px) {
  .bottom-drawer {
    height: auto;
    max-height: 80vh;
    width: 650px;
    margin: 0 auto;
    bottom: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%) scale(0.95);
    border-radius: var(--radius-lg);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .bottom-drawer.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
  }
  
  .drawer-drag-indicator {
    display: none;
  }
}

/* Cart Items & States */
.empty-cart-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0;
  gap: 15px;
}

.empty-cart-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--bg-color);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.empty-cart-state h5 {
  font-size: 1.05rem;
  font-weight: 700;
}

.empty-cart-state p {
  font-size: 0.8rem;
  color: var(--text-light);
  max-width: 220px;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background-color: #f7f7f7;
}

.cart-item-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2px;
}

.cart-item-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.qty-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  background-color: #fafafa;
}

.qty-controls-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  font-size: 0.75rem;
  color: var(--text-medium);
  transition: var(--transition-fast);
}

.qty-controls-btn:hover {
  background-color: #edf2f7;
  color: var(--primary);
}

.qty-controls-val {
  width: 28px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.remove-item-btn {
  background: none;
  color: var(--error);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px;
  transition: var(--transition-fast);
}

.remove-item-btn:hover {
  color: #8c6060;
}

.drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background-color: #fafafa;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-medium);
  margin-bottom: 8px;
}

.total-row {
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

.total-price {
  color: var(--primary);
}

.checkout-btn {
  margin-top: 15px;
}

/* Product Detail Drawer Content */
.product-drawer-body {
  padding: 0;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .product-drawer-body {
    flex-direction: row;
  }
}

.product-gallery {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  background-color: #f7f7f7;
  border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .product-gallery {
    width: 45%;
    aspect-ratio: 1 / 1;
    border-bottom: none;
    border-left: 1px solid var(--border-color);
  }
}

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

.product-info-panel {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-detail-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.product-detail-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 15px;
}

.product-detail-description {
  font-size: 0.85rem;
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 20px;
}

.product-options {
  border-top: 1px solid var(--border-color);
  padding: 15px 0;
  margin-bottom: auto;
}

.option-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  margin-bottom: 8px;
}

.option-selectors {
  display: flex;
  gap: 8px;
}

.option-btn {
  padding: 6px 16px;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  background-color: #f7fafc;
  color: var(--text-medium);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.option-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.product-actions-sticky {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.qty-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  background-color: #fafafa;
  margin-bottom: 5px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--text-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.qty-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.qty-value {
  font-size: 1rem;
  font-weight: 700;
}

.direct-whatsapp-btn {
  background-color: #25d366; /* WhatsApp Brand Color */
}

.direct-whatsapp-btn:hover {
  background-color: #20ba5a;
}

/* Checkout Drawer details */
.checkout-summary-box {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  overflow: hidden;
}

.checkout-summary-header {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
}

.checkout-summary-details {
  border-top: 1px solid var(--border-color);
  padding: 12px 16px;
  display: none;
  flex-direction: column;
  gap: 10px;
}

.checkout-summary-details.active {
  display: flex;
}

.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-medium);
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 5px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
}

.required {
  color: var(--error);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #fcfbfa;
  transition: var(--transition-fast);
  color: var(--text-dark);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
  background-color: #ffffff;
}

.payment-card input[type="radio"] {
  position: absolute;
  top: 14px;
  left: 16px; /* Positioned left for RTL layouts */
  accent-color: var(--accent);
}

.payment-card-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.payment-card-content i {
  font-size: 1.4rem;
  color: var(--text-light);
  transition: var(--transition-fast);
}

.payment-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pay-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.pay-desc {
  font-size: 0.7rem;
  color: var(--text-light);
}

.payment-card.active {
  border-color: var(--accent);
  background-color: rgba(197, 168, 128, 0.05);
}

.payment-card.active i {
  color: var(--accent);
}

/* Bank details */
.bank-details-box {
  background-color: #f7fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  animation: slideDownFade 0.25s ease-out;
}

@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.bank-info-note {
  font-size: 0.75rem;
  color: var(--text-medium);
  margin-bottom: 8px;
}

.bank-account-card {
  font-size: 0.75rem;
  line-height: 1.6;
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 10px;
  border-right: 3px solid var(--accent);
}

.iban-copy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.copy-iban-btn {
  background: none;
  cursor: pointer;
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
}

.copy-iban-btn:hover {
  background-color: rgba(197, 168, 128, 0.1);
}

.checkout-actions {
  margin-top: 20px;
}

/* Success Overlay Screen */
.success-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  transition: var(--transition-smooth);
}

.success-overlay.active {
  opacity: 1;
  visibility: visible;
}

.success-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-overlay.active .success-card {
  transform: translateY(0);
}

.success-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 16px;
}

/* Checkmark SVG Animation */
.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: var(--success);
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-svg {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #ffffff;
  fill: var(--success);
  box-shadow: inset 0px 0px 0px var(--success);
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% { stroke-dashoffset: 0; }
}
@keyframes scale {
  0%, 100% { transform: none; }
  50% { transform: scale3d(1.1, 1.1, 1); }
}
@keyframes fill {
  100% { box-shadow: inset 0px 0px 0px 30px var(--success); }
}

.success-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--success);
}

.success-msg {
  font-size: 0.85rem;
  color: var(--text-medium);
  margin-bottom: 16px;
}

.order-summary-box {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.success-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.success-summary-row span {
  color: var(--text-light);
}

.success-notice-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(197, 168, 128, 0.08);
  border: 1px solid rgba(197, 168, 128, 0.2);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.75rem;
  color: #92754d;
  text-align: right;
  margin-bottom: 20px;
  line-height: 1.4;
}

.success-notice-badge i {
  font-size: 1.1rem;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.whatsapp-confirm-btn {
  background-color: #25d366;
  color: #ffffff;
}

.whatsapp-confirm-btn:hover {
  background-color: #20ba5a;
}

.close-success-btn {
  font-size: 0.85rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  left: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

@media (min-width: 768px) {
  .toast-container {
    bottom: 20px;
    left: auto;
    right: 20px;
    width: 320px;
  }
}

.toast {
  background-color: var(--primary);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInLeft 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  pointer-events: auto;
}

.toast.error-toast {
  background-color: var(--error);
}

.toast.success-toast {
  background-color: var(--success);
}

@keyframes slideInLeft {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.fade-out {
  animation: fadeOutEffect 0.3s ease forwards;
}

@keyframes fadeOutEffect {
  to { opacity: 0; transform: translateY(10px); }
}
