/* =====================================================
   BREBES FRESH - Main Stylesheet
   Premium Mobile-First E-Commerce Design
   ===================================================== */

/* CSS Variables */
:root {
  /* Primary Colors - Fresh Green */
  --primary: #16a34a;
  --primary-light: #22c55e;
  --primary-dark: #15803d;
  --primary-50: #f0fdf4;
  --primary-100: #dcfce7;

  /* Secondary Colors */
  --secondary: #0ea5e9;
  --secondary-light: #38bdf8;

  /* Accent Colors */
  --accent-orange: #f97316;
  --accent-red: #ef4444;
  --accent-purple: #a855f7;
  --accent-yellow: #eab308;

  /* Neutral Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Status Colors */
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Background */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-dark: #0f172a;

  /* Text */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Border Radius */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;

  /* Font */
  --font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Safe Areas */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* Navigation Height */
  --nav-height: 64px;
  --header-height: 56px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Disable selection and long-press menu */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

/* Desktop Block Screen */
.desktop-block {
  display: none;
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  z-index: 99999;
  justify-content: center;
  align-items: center;
}

.desktop-block-content {
  text-align: center;
  color: white;
  padding: var(--space-6);
}

.desktop-block .phone-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-6);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

.desktop-block .phone-icon svg {
  width: 60px;
  height: 60px;
  stroke-width: 1.5;
}

.desktop-block h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--space-3);
  background: linear-gradient(135deg, var(--primary-light) 0%, #86efac 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.desktop-block p {
  font-size: 1rem;
  color: var(--gray-400);
  margin-bottom: var(--space-8);
}

.qr-placeholder {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.qr-placeholder svg {
  width: 80px;
  height: 80px;
  color: var(--gray-300);
}

.qr-placeholder span {
  font-size: 12px;
  color: var(--gray-500);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Page Loader (Premium Overlay) */
.page-loader {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: opacity 0.4s ease;
}

.page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center;
}

.loader-brand {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.brand-icon {
  width: 80px;
  height: 80px;
  background: var(--primary);
  color: white;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.3);
  animation: splashPulse 2s infinite ease-in-out;
}

.brand-icon i {
  width: 36px;
  height: 36px;
}

.brand-name {
  font-size: 24px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.5px;
}

.brand-name span {
  color: var(--primary);
}

.loader-progress-container {
  width: 120px;
  height: 4px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.loader-progress-bar {
  width: 30%;
  height: 100%;
  background: var(--primary);
  animation: progressFlow 1.5s infinite ease-in-out;
}

@keyframes splashPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 15px 35px rgba(22, 163, 74, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 20px 45px rgba(22, 163, 74, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 15px 35px rgba(22, 163, 74, 0.2);
  }
}

@keyframes progressFlow {
  0% {
    transform: translateX(-100%);
    width: 20%;
  }
  50% {
    width: 60%;
  }
  100% {
    transform: translateX(400%);
    width: 20%;
  }
}

/* Show desktop block on large screens */
@media (min-width: 768px) {
  .desktop-block {
    display: flex;
  }
  .app-container {
    display: none !important;
  }
}

/* App Container */
.app-container {
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg-secondary);
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
}

/* Page Header */
.page-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  gap: var(--space-3);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.page-header.transparent {
  background: transparent;
  box-shadow: none;
  position: absolute;
}

.page-header .back-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--text-primary);
  transition: all 0.2s;
}

.page-header .back-btn:active {
  transform: scale(0.98);
}

.page-header .page-title {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
}

.page-header .header-actions {
  display: flex;
  gap: var(--space-2);
}

.page-header .header-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  position: relative;
  transition: all 0.2s;
}

.page-header .header-btn:active {
  transform: scale(0.98);
}

.page-header .header-btn .badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 18px;
  height: 18px;
  background: var(--accent-red);
  color: white;
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-2) var(--space-3);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  transition: all 0.2s;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active svg {
  stroke-width: 2.5;
}

.nav-item .badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  background: var(--accent-red);
  color: white;
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}

.search-bar:focus-within {
  background: white;
  box-shadow: 0 0 0 2px var(--primary-100);
}

.search-bar svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  background: transparent;
  font-size: 14px;
  color: var(--text-primary);
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.2s;
  cursor: pointer;
}

/* .btn:active {
  transform: scale(0.98);
} */

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--text-primary);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.btn-danger {
  background: var(--accent-red);
  color: white;
}

.btn-lg {
  padding: var(--space-4) var(--space-6);
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-3);
  font-size: 12px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Cards */
.card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: var(--space-4);
  border-bottom: 1px solid var(--gray-100);
}

.card-body {
  padding: var(--space-4);
}

/* Product Card */
.product-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

/* .product-card:active {
  transform: scale(0.98);
} */

.product-card .product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-100);
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-card .discount-badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  padding: 2px 8px;
  background: var(--accent-red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.product-card .wishlist-btn {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 32px;
  height: 32px;
  background: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.product-card .wishlist-btn svg {
  width: 18px;
  height: 18px;
  color: var(--gray-400);
}

.product-card .wishlist-btn.active svg {
  fill: var(--accent-red);
  color: var(--accent-red);
}

.product-card .product-info {
  padding: var(--space-3);
}

.product-card .product-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.product-card .product-price {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.product-card .current-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.product-card .original-price {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card .product-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 11px;
  color: var(--text-muted);
}

.product-card .product-meta svg {
  width: 12px;
  height: 12px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  padding: var(--space-4);
}

/* Section */
.section {
  margin-bottom: var(--space-6);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-link svg {
  width: 16px;
  height: 16px;
}

/* Category Scroll */
.category-scroll {
  display: flex;
  gap: var(--space-3);
  padding: 0 var(--space-4);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  min-width: 72px;
}

.category-item .category-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.2s;
}

/* .category-item:active .category-icon {
  transform: scale(0.95);
} */

.category-item .category-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
}

/* Banner Slider */
.banner-slider {
  position: relative;
  padding: 0 var(--space-4);
  margin-bottom: var(--space-6);
}

.banner-track {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.banner-track::-webkit-scrollbar {
  display: none;
}

.banner-item {
  flex-shrink: 0;
  width: calc(100% - var(--space-4));
  scroll-snap-align: start;
}

.banner-item img {
  width: 100%;
  aspect-ratio: 2/1;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-3);
}

.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--gray-300);
  transition: all 0.3s;
}

.banner-dot.active {
  width: 20px;
  background: var(--primary);
}

/* Forms */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control.error {
  border-color: var(--accent-red);
}

.form-error {
  font-size: 12px;
  color: var(--accent-red);
  margin-top: var(--space-1);
}

.input-icon {
  position: relative;
}

.input-icon .form-control {
  padding-left: 44px;
}

.input-icon svg {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.input-icon .toggle-password {
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  padding: var(--space-2);
  color: var(--text-muted);
}

/* Toast */
.toast-container {
  position: fixed;
  top: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--gray-800);
  color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.toast.success {
  background: var(--success);
}
.toast.error {
  background: var(--error);
}
.toast.warning {
  background: var(--warning);
}
.toast.info {
  background: var(--info);
}

.toast svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  font-size: 14px;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  text-align: center;
}

.empty-state svg {
  width: 80px;
  height: 80px;
  color: var(--gray-300);
  margin-bottom: var(--space-4);
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

/* Loading */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Bottom Sheet */
.bottom-sheet {
  position: fixed;
  inset: 0;
  z-index: 9000;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s;
}

.bottom-sheet.active {
  visibility: visible;
  opacity: 1;
}

.bottom-sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.bottom-sheet-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-4);
  padding-bottom: calc(var(--space-4) + var(--safe-bottom));
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.bottom-sheet.active .bottom-sheet-content {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--gray-300);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-4);
}

/* Utilities */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.text-primary {
  color: var(--primary) !important;
}
.text-muted {
  color: var(--text-muted) !important;
}
.text-danger {
  color: var(--accent-red) !important;
}
.font-bold {
  font-weight: 700;
}
.font-semibold {
  font-weight: 600;
}

.d-flex {
  display: flex;
}
.d-block {
  display: block;
}
.d-none {
  display: none;
}
.flex-column {
  flex-direction: column;
}
.align-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.flex-1 {
  flex: 1;
}
.gap-1 {
  gap: var(--space-1);
}
.gap-2 {
  gap: var(--space-2);
}
.gap-3 {
  gap: var(--space-3);
}
.gap-4 {
  gap: var(--space-4);
}

.p-3 {
  padding: var(--space-3);
}
.p-4 {
  padding: var(--space-4);
}
.px-4 {
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}
.py-2 {
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}
.py-4 {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}
.mb-2 {
  margin-bottom: var(--space-2);
}
.mb-3 {
  margin-bottom: var(--space-3);
}
.mb-4 {
  margin-bottom: var(--space-4);
}
.mt-auto {
  margin-top: auto;
}

.rounded {
  border-radius: var(--radius);
}
.rounded-lg {
  border-radius: var(--radius-lg);
}
.rounded-full {
  border-radius: var(--radius-full);
}

.bg-white {
  background: var(--bg-primary);
}
.bg-gray {
  background: var(--gray-100);
}

.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}

.overflow-hidden {
  overflow: hidden;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  padding: var(--space-6);
  text-align: center;
}

.empty-state svg {
  width: 80px;
  height: 80px;
  color: var(--gray-300);
  margin-bottom: var(--space-4);
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  max-width: 260px;
}

.empty-state .btn {
  margin-top: var(--space-2);
}

/* Custom Modal */
.custom-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.custom-modal.active {
  opacity: 1;
  visibility: visible;
}

.custom-modal .modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.custom-modal .modal-content {
  position: relative;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  max-width: 320px;
  width: 100%;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.custom-modal.active .modal-content {
  transform: scale(1);
}

.custom-modal .modal-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.custom-modal .modal-icon svg {
  width: 32px;
  height: 32px;
}

.custom-modal .modal-icon.warning {
  background: #fef3c7;
  color: #d97706;
}

.custom-modal .modal-icon.danger {
  background: #fef2f2;
  color: #ef4444;
}

.custom-modal .modal-icon.success {
  background: #dcfce7;
  color: #16a34a;
}

.custom-modal .modal-icon.info {
  background: #dbeafe;
  color: #2563eb;
}

.custom-modal .modal-icon.error {
  background: #fef2f2;
  color: #ef4444;
}

.custom-modal .modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.custom-modal .modal-message {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

.custom-modal .modal-actions {
  display: flex;
  gap: var(--space-3);
}

.custom-modal .modal-actions .btn {
  flex: 1;
  height: 44px;
}

/* Action menu for long press */
.action-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-4);
  padding-bottom: calc(var(--space-4) + var(--safe-bottom));
  transform: translateY(100%);
  transition: transform 0.3s;
  z-index: 10001;
}

.action-menu.active {
  transform: translateY(0);
}

.action-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  font-size: 15px;
  border-radius: var(--radius);
}

/* .action-menu-item:active {
  background: var(--gray-100);
} */

.action-menu-item svg {
  width: 22px;
  height: 22px;
}

.action-menu-item.danger {
  color: var(--accent-red);
}

/* Animations */
.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Banner Slider Premium Style */
.banner-promo-card {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 60px 20px 30px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  gap: 12px;
}

.banner-promo-content {
  flex: 1;
  z-index: 5;
  min-width: 0;
  margin-left: 20px;
}

.banner-promo-content h3 {
  font-size: 24px;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.banner-promo-content p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.3;
  margin-bottom: 0;
  max-width: 160px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.banner-promo-image {
  width: 170px;
  height: 170px;
  flex-shrink: 0;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
  z-index: 5;
  margin-right: 20px;
}

.banner-promo-image img {
  width: 90%;
  height: 90%;
  object-fit: contain !important;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.25));
}

.banner-promo-card::before {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 240px;
  height: 240px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 1;
}

.banner-promo-card::after {
  content: "";
  position: absolute;
  left: -20px;
  top: -20px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: 1;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px) rotate(5deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}
