/* ==========================================================================
   DashFresh Base Vanilla CSS (Zero Build Step, Full-Page Fluid, LTR & RTL)
   Design Tokens, Fluid Containers, Semantic Utilities & Responsive Rules
   ========================================================================== */

:root {
  --df-red: #D90217;
  --df-red-hover: #AE0212;
  --df-red-soft: #FFF0F1;
  --df-dark: #0F172A;
  --df-ink: #000000;
  --df-muted: #52525B;
  --df-gray: #52525B;
  --df-surface: #FFFFFF;
  --df-bg: #F5F5F5;
  --df-border: #EAEAEA;
  --df-success: #1A9E3F;
  --df-page-gutter: clamp(14px, 2vw, 36px);
  --df-radius-sm: 13px;
  --df-radius-md: 16px;
  --df-radius-lg: 24px;
  --df-radius-xl: 28px;
  --shadow-1: none !important;
  --shadow-sm: none !important;
}

/* Global Flat Design Rule: No component or button across the entire app has shadows */
*,
*::before,
*::after {
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Global Input Design (Unified Flat Pill matching Phone Input: #F5F5F5 fill, #E0E0E0 border, 999px pill, #FFFFFF + #D90217 on focus) */
.input,
select.input,
textarea.input,
.input-premium,
.select-premium,
input[type="text"].input,
input[type="email"].input,
input[type="password"].input,
input[type="number"].input,
input[type="tel"].input,
input[type="url"].input,
input[type="search"].input {
  background: #F5F5F5 !important;
  border: 1px solid #E0E0E0 !important;
  color: #000000 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

textarea.input,
textarea.input-premium {
  border-radius: 20px !important;
}

.input::placeholder,
textarea.input::placeholder,
.input-premium::placeholder,
.df-newsletter-input::placeholder,
.snoonu-search-input::placeholder {
  color: #64748B !important;
  font-weight: 600;
  opacity: 1;
}

.input:focus,
select.input:focus,
textarea.input:focus,
.input-premium:focus,
.select-premium:focus {
  background: #FFFFFF !important;
  border-color: #D90217 !important;
  outline: none !important;
  box-shadow: none !important;
}

html {
  width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: clip;
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

button,
input,
select,
textarea,
optgroup {
  font-family: inherit;
}

/* ==================== FULL-PAGE FLUID CONTAINERS ==================== */
.df-fluid,
.wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: auto;
  padding-inline: var(--df-page-gutter) !important;
}

.df-page-shell {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding: 16px var(--df-page-gutter) 56px;
}

.df-table-wrap,
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ==================== SEMANTIC VANILLA LAYOUT UTILITIES ==================== */
.df-flex { display: flex; }
.df-inline-flex { display: inline-flex; }
.df-flex-col { display: flex; flex-direction: column; }
.df-items-center { align-items: center; }
.df-items-start { align-items: flex-start; }
.df-justify-between { justify-content: space-between; }
.df-justify-center { justify-content: center; }
.df-wrap { flex-wrap: wrap; }
.df-shrink-0 { flex-shrink: 0; }
.df-min-w-0 { min-width: 0; }
.df-w-full { width: 100%; }
.df-h-full { height: 100%; }

.df-grid { display: grid; gap: 20px; }
.df-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.df-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.df-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.df-grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px; }
.df-col-5 { grid-column: span 5 / span 5; }
.df-col-7 { grid-column: span 7 / span 7; }

.df-stack-3 > * + * { margin-top: 12px; }
.df-stack-4 > * + * { margin-top: 16px; }
.df-stack-6 > * + * { margin-top: 24px; }

/* ==================== COMMON UI PRIMITIVES (VANILLA REPLACEMENT) ==================== */
.df-surface-card {
  background: var(--df-surface);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--df-radius-lg);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.df-icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--df-red-soft);
  color: var(--df-red);
  flex-shrink: 0;
}

/* ==================== COMPATIBILITY UTILITIES (ZERO TAILWIND CDN) ==================== */
.min-h-screen { min-height: 100vh; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-6 { width: 1.5rem; } .h-6 { height: 1.5rem; }
.w-7 { width: 1.75rem; } .h-7 { height: 1.75rem; }
.w-8 { width: 2rem; } .h-8 { height: 2rem; }
.w-10 { width: 2.5rem; } .h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.mx-auto { margin-inline: auto; }
.m-0 { margin: 0; }
.p-0 { padding: 0; }
.p-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-inline: 1rem; }
.py-12 { padding-block: 2.5rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pb-16 { padding-bottom: 3.5rem; }
.my-5 { margin-block: 1.25rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.25rem; }
.mb-12 { margin-bottom: 2.75rem; }
.mr-1 { margin-inline-end: 0.25rem; }
.mr-1\.5 { margin-inline-end: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 1.75rem; }
.space-y-3\.5 > * + * { margin-top: 0.875rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.max-w-xl { max-width: 42rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.border { border: 1px solid #E5E7EB; }
.border-0 { border: 0; }
.border-gray-200 { border-color: #E5E7EB; }
.bg-white { background-color: #FFFFFF; }
.bg-gradient-to-br { background-image: linear-gradient(135deg, var(--df-grad-from, #D90217), var(--df-grad-to, #AE0212)); }
.text-white { color: #FFFFFF; }
.text-gray-300 { color: #D1D5DB; }
.text-gray-600 { color: #4B5563; }
.text-xs { font-size: 0.75rem; line-height: 1.4; }
.text-sm { font-size: 0.875rem; line-height: 1.5; }
.text-base { font-size: 1rem; line-height: 1.5; }
.text-lg { font-size: 1.125rem; line-height: 1.4; }
.text-2xl { font-size: 1.5rem; line-height: 1.25; }
.text-3xl { font-size: 1.875rem; line-height: 1.2; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-tight { line-height: 1.18; }
.leading-relaxed { line-height: 1.625; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }
.shadow-sm { box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06); }
.shadow-lg { box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14); }
.list-none { list-style: none; }
.no-underline { text-decoration: none; }
.cursor-pointer { cursor: pointer; }
.transition-all { transition: all 0.18s ease; }
.transition-colors { transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease; }

/* ==================== RESPONSIVE BREAKPOINTS ==================== */
@media (max-width: 1024px) {
  .df-grid-12 { grid-template-columns: 1fr; gap: 20px; }
  .df-col-5, .df-col-7 { grid-column: span 1 / span 1; }
  .df-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .df-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr !important; }
  .df-grid-2, .df-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .df-grid-4 { grid-template-columns: 1fr; }
  .grid-cols-2 { grid-template-columns: 1fr; }
}

[hidden] {
  display: none !important;
}
