/* ==========================================================================
   Taj El Khalig Sweets - Main Design System & CSS Variables
   Derived from Logo: Royal Magenta (#E4007C), Warm Gold (#D4AF37), Cream (#FDFBF7)
   ========================================================================== */

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

:root {
  /* Brand Palette derived from logo */
  --primary: #E4007C;
  --primary-hover: #C70068;
  --primary-light: rgba(228, 0, 124, 0.08);
  --primary-glow: rgba(228, 0, 124, 0.25);
  --primary-gradient: linear-gradient(135deg, #E4007C 0%, #FF2A8D 100%);
  
  --gold: #D4AF37;
  --gold-hover: #BF9B27;
  --gold-light: rgba(212, 175, 55, 0.12);
  --gold-gradient: linear-gradient(135deg, #E5C378 0%, #C59B27 100%);

  /* Neutral & Semantic Tokens (Day / Light Mode default) */
  --bg-page: #FDFBF7;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-subtle: #F7F3EC;
  --border-color: #EDE4D8;
  --border-color-focus: #E4007C;

  --text-main: #23161C;
  --text-muted: #6E5F67;
  --text-light: #9C8C94;
  --text-inverse: #FFFFFF;

  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --info: #3B82F6;
  --info-bg: rgba(59, 130, 246, 0.1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(35, 22, 28, 0.04);
  --shadow-md: 0 6px 20px rgba(35, 22, 28, 0.07);
  --shadow-lg: 0 12px 32px rgba(35, 22, 28, 0.12);
  --shadow-glow: 0 8px 24px var(--primary-glow);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Fonts */
  --font-family-ar: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-family-en: 'Outfit', 'Cairo', system-ui, -apple-system, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Night / Dark Theme */
[data-theme="dark"] {
  --bg-page: #150B12;
  --bg-surface: #20111B;
  --bg-surface-elevated: #2B1725;
  --bg-subtle: #1D0E18;
  --border-color: #381F30;
  --border-color-focus: #FF2A8D;

  --text-main: #FBF4F7;
  --text-muted: #B8A3AF;
  --text-light: #7E6A76;
  --text-inverse: #150B12;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.6);
  --primary-light: rgba(228, 0, 124, 0.18);
  --gold-light: rgba(212, 175, 55, 0.2);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-ar);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* LTR Typography when English is active */
html[lang="en"] body {
  font-family: var(--font-family-en);
}

/* Base Utilities */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header & Navigation Bar */
.top-notice-bar {
  background: var(--primary-gradient);
  color: #FFFFFF;
  padding: 0.45rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
  z-index: 100;
}

.top-notice-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-notice-announcement {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.top-notice-bar .sample-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-inline-start: auto;
}

.top-social-label {
  font-size: 0.75rem;
  opacity: 0.95;
  font-weight: 700;
  margin-inline-end: 0.2rem;
}

.top-social-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.top-social-icon:hover {
  background: #FFFFFF;
  color: var(--primary);
  transform: translateY(-2px);
}

@media (max-width: 680px) {
  .top-notice-inner {
    justify-content: center;
  }
  .top-bar-social {
    margin-inline-start: 0;
  }
}

.site-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 90;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.brand-slogan {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Nav Links */
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

/* Header Actions Controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.875rem;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.control-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}

.theme-toggle-btn {
  width: 42px;
  padding: 0;
}

.cart-toggle-btn {
  position: relative;
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  padding: 0 1.1rem;
}

.cart-toggle-btn:hover {
  background: var(--primary-hover);
  color: #FFFFFF;
  border-color: var(--primary-hover);
}

.cart-badge {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  background: var(--gold);
  color: #23161C;
  font-size: 0.75rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Dashboard Link button in header */
.dashboard-link-btn {
  background: var(--gold-light);
  color: var(--gold-hover);
  border-color: rgba(212, 175, 55, 0.3);
}

.dashboard-link-btn:hover {
  background: var(--gold);
  color: #170B13;
  border-color: var(--gold);
}

/* Mobile Hamburger Toggle */
.mobile-hamburger-btn {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  gap: 0.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #1A0D15;
  border: 1px solid transparent;
}

.btn-gold:hover {
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
  transform: translateY(-2px);
}

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

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

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  border: 1px solid transparent;
}

.btn-whatsapp:hover {
  background: #20BA5A;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

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

.required-star {
  color: var(--danger);
}

.form-control, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-main);
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(228, 0, 124, 0.3);
}

.product-card-media {
  position: relative;
  width: 100%;
  height: 220px;
  background: var(--bg-subtle);
  overflow: hidden;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-discount-tag {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: var(--primary);
  color: #FFFFFF;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(228, 0, 124, 0.4);
}

.product-stock-tag {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
}

.product-stock-tag.in-stock {
  background: rgba(16, 185, 129, 0.9);
  color: #FFFFFF;
}

.product-stock-tag.out-of-stock {
  background: rgba(239, 68, 68, 0.9);
  color: #FFFFFF;
}

.product-card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--text-main);
  line-height: 1.35;
}

.product-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.current-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

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

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: var(--bg-surface);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* LTR Direction: drawer on the right side */
html[dir="ltr"] .cart-drawer,
:root:not([dir="rtl"]) .cart-drawer {
  right: 0;
  left: auto;
  transform: translateX(100%);
}

html[dir="ltr"] .cart-drawer.active,
:root:not([dir="rtl"]) .cart-drawer.active {
  transform: translateX(0) !important;
}

/* RTL Direction: drawer on the left side (aligns with cart button on left) */
html[dir="rtl"] .cart-drawer {
  left: 0;
  right: auto;
  transform: translateX(-100%);
}

html[dir="rtl"] .cart-drawer.active {
  transform: translateX(0) !important;
}

.cart-drawer.active {
  transform: translateX(0) !important;
}

/* Empty Cart State */
.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1.5rem;
  gap: 1rem;
}

.cart-empty-icon {
  font-size: 3.5rem;
  line-height: 1;
}

.cart-empty-state h4 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
}

.cart-empty-state p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 300px;
}

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

.cart-drawer-title {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.drawer-close-btn:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

.cart-drawer-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cart-drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.cart-item-price {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.cart-item-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
}

.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-main);
}

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

.qty-value {
  padding: 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.cart-remove-btn {
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.cart-remove-btn:hover {
  color: var(--danger);
}

/* Free Delivery Progress Box */
.free-delivery-card {
  background: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.free-delivery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.progress-bar-bg {
  height: 8px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.progress-bar-fill.completed {
  background: var(--success);
}

/* Fulfillment Selector */
.fulfillment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.3rem;
}

.fulfillment-opt-btn {
  padding: 0.7rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.fulfillment-opt-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.branch-summary-card {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.btn-gps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  width: 100%;
}

.btn-gps:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.gps-status-msg {
  font-size: 0.8rem;
  margin-top: 0.35rem;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
}

.gps-status-msg.text-success {
  background: var(--success-bg);
  color: var(--success);
}

.gps-status-msg.text-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

/* Cart Summary & Total */
.cart-summary-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.summary-line.grand-total {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-color);
}

.summary-line.grand-total span:last-child {
  color: var(--primary);
}

/* Modals & Dialogs */
.taj-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

.taj-modal-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  text-align: center;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-success-badge {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.modal-order-number {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.order-number-badge {
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 900;
}

.modal-details-summary {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: start;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
}

/* Toast */
.taj-toast {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1A0D15;
  color: #FFFFFF;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(228, 0, 124, 0.4);
}

.taj-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: 280px;
  background: var(--bg-surface);
  z-index: 1000;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
}

html[dir="rtl"] .mobile-nav-drawer {
  transform: translateX(100%);
}

html[dir="rtl"] .mobile-nav-drawer.active,
.mobile-nav-drawer.active {
  transform: translateX(0) !important;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

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

/* Animations */
@keyframes bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.badge-bump {
  animation: bump 0.3s ease-out;
}

.btn-bounce {
  transform: scale(0.95);
}

/* Responsive queries */
@media (max-width: 991px) {
  .header-nav {
    display: none;
  }
  .mobile-hamburger-btn {
    display: inline-flex;
  }
}

@media (max-width: 600px) {
  .header-inner {
    height: 70px;
  }
  .header-logo-img {
    height: 44px;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-slogan {
    display: none;
  }
  .control-btn .control-label {
    display: none;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .cart-drawer {
    max-width: 100%;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
