/* ==========================================================================
   KORILLA GO - Official Website Design System (Exact website_korilla Match)
   Clean, Responsive, High Performance Vanilla CSS
   ========================================================================== */

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

:root {
  --primary-navy: #000A46;
  --primary-red: #FB3E38;
  --hover-red: #F9402F;
  
  --nav-bg: #FFFFFF;
  --banner-bg: #FFFFFF;
  --banner-border: #F1F5F9;
  --feature-icon: #FB3E38;
  --category-text: #2F2105;
  
  --text-dark: #29313A;
  --text-muted: #757575;
  --text-light: #9E9E9E;
  
  --bg-page: #FFFFFF;
  --bg-card: #FFFFFF;
  --border-color: #EEEEEE;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-cat: 3px 3px 4px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);
  
  --font-main: 'Cairo', 'Poppins', -apple-system, sans-serif;
  --max-width: 1280px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

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

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

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

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

button {
  cursor: pointer;
}

/* ==========================================================================
   1. NAVBAR WIDGET (lib/widgets/navbar.dart)
   Background: #F6F6EE, Logo: korillagoheaderlogo.png
   ========================================================================== */
.website-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  border-bottom: 1px solid #F1F5F9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.navbar-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.navbar-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex: 1;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.navbar-logo img {
  height: 48px;
  max-width: 180px;
  object-fit: contain;
}

.navbar-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar-link {
  position: relative;
  font-size: 14.5px;
  font-weight: 600;
  color: #28313D;
  padding: 8px 10px;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
}

.navbar-link:hover {
  color: var(--hover-red);
}

.navbar-link.active {
  color: var(--primary-red);
  font-weight: 700;
}

.navbar-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 10px;
  right: 10px;
  height: 3px;
  background: var(--primary-red);
  border-radius: 4px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar-search-box {
  position: relative;
  width: 220px;
  min-width: 140px;
}

.navbar-search-inner {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 7px 14px;
  transition: all 0.2s ease;
}

.navbar-search-inner:focus-within {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(251, 62, 56, 0.12);
}

.navbar-search-inner input {
  flex: 1;
  background: transparent;
  padding: 0 8px;
  font-size: 13.5px;
  border: none;
  outline: none;
  color: #1E293B;
  min-width: 0;
}

/* Modern Language Pill */
.navbar-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 0 14px;
  color: #1E293B;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  white-space: nowrap;
  flex-shrink: 0;
}

#lang-btn-text {
  white-space: nowrap;
}

.navbar-action-pill:hover {
  border-color: rgba(251, 62, 56, 0.4);
  color: var(--primary-red);
  background: #FFF8F8;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(251, 62, 56, 0.1);
}

/* Modern Navbar Action Box (Cart Button) */
.navbar-action-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  flex-shrink: 0;
}

.navbar-action-box svg {
  color: #334155;
  transition: color 0.2s ease, transform 0.2s ease;
}

.navbar-action-box:hover {
  background: #FFF8F8;
  border-color: rgba(251, 62, 56, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(251, 62, 56, 0.1);
}

.navbar-action-box:hover svg {
  color: var(--primary-red);
  transform: scale(1.08);
}

/* Modern Account / Login Button */
.navbar-account-box {
  width: auto;
  min-width: unset;
  padding: 0 16px;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar-account-box svg {
  color: var(--primary-red);
  flex-shrink: 0;
}

.navbar-account-box span,
#navbar-auth-btn {
  font-size: 13.5px;
  font-weight: 700;
  color: #1E293B;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.navbar-account-box:hover span {
  color: var(--primary-red);
}

/* Red Brand Cart Badge (Matching brand theme) */
.cart-badge-count {
  position: absolute;
  top: -6px;
  left: -6px;
  background: linear-gradient(135deg, #FB3E38 0%, #D9221C 100%);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(251, 62, 56, 0.35);
  animation: badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[dir="ltr"] .cart-badge-count {
  right: -6px;
  left: auto;
}

@keyframes badgePop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   2. RESPONSIVE FEATURE BANNER (lib/widgets/responsive_feature_banner.dart)
   Background: #F4F6F3, Border: #E2E6E2
   ========================================================================== */
.feature-banner-strip {
  max-width: var(--max-width);
  margin: 16px auto 10px;
  padding: 0 16px;
  width: 100%;
}

.feature-banner-container {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.feature-col {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  text-align: right;
  padding: 8px 14px;
  border-radius: 12px;
  transition: all 0.25s ease;
  user-select: none;
}

[dir="ltr"] .feature-col {
  text-align: left;
}

.feature-col .feature-text,
.feature-col > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-icon-circle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(251, 62, 56, 0.1) 0%, rgba(251, 62, 56, 0.04) 100%);
  border: 1px solid rgba(251, 62, 56, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(251, 62, 56, 0.06);
}

.feature-col svg {
  color: var(--primary-red);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: color 0.25s ease, transform 0.25s ease;
}

/* Hover effects only on devices that support true mouse hover */
@media (hover: hover) and (pointer: fine) {
  .feature-col:hover {
    background: #FFF8F8;
    transform: translateY(-2px);
  }

  .feature-col:hover .feature-icon-circle {
    background: linear-gradient(135deg, #FB3E38 0%, #E02B25 100%);
    border-color: #FB3E38;
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 6px 16px rgba(251, 62, 56, 0.25);
  }

  .feature-col:hover svg {
    color: #FFFFFF;
  }
}

.feature-col:active {
  background: #FFF5F5;
  transform: scale(0.99);
}

.feature-col .f-title {
  font-size: 14px;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.3;
}

.feature-col .f-desc {
  font-size: 12px;
  font-weight: 500;
  color: #64748B;
  margin-top: 2px;
}

/* Phone numbers & Bidi Protection (Ensures phone numbers never flip in Arabic RTL) */
.phone-number, [data-phone], [data-i18n="support_sub"] {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-block !important;
  letter-spacing: 0.5px;
}

[dir="rtl"] .feature-col .phone-number,
[dir="rtl"] .feature-col [data-i18n="support_sub"] {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  text-align: right !important;
}

/* Responsive Breakpoints for Feature Banner (Side-by-side swipeable strip) */
@media (max-width: 1100px) {
  .feature-banner-strip {
    margin: 12px auto 8px;
    padding: 0 12px;
  }

  .feature-banner-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding: 8px 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
  }

  .feature-banner-container::-webkit-scrollbar {
    display: none;
  }

  .feature-col {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-width: 175px;
    max-width: 220px;
    padding: 8px 12px;
    background: #F8FAFC;
    border: 1px solid #EEF2F6;
    border-radius: 12px;
    gap: 10px;
    box-sizing: border-box;
  }

  .feature-icon-circle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 10px;
  }

  .feature-col svg {
    width: 18px;
    height: 18px;
  }

  .feature-col .f-title {
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
  }

  .feature-col .f-desc {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
  }
}

@media (max-width: 580px) {
  .feature-banner-strip {
    margin: 8px auto 6px;
    padding: 0 10px;
  }

  .feature-banner-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 8px;
    padding: 6px 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }

  .feature-col {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-width: 155px;
    max-width: 190px;
    padding: 6px 10px;
    gap: 8px;
    background: #F8FAFC;
    border: 1px solid #EEF2F6;
    border-radius: 10px;
  }

  .feature-icon-circle {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 8px;
  }

  .feature-col svg {
    width: 16px;
    height: 16px;
  }

  .feature-col .f-title {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
  }

  .feature-col .f-desc {
    font-size: 10.5px;
    font-weight: 500;
    white-space: nowrap;
  }
}

/* ==========================================================================
   3. HERO CAROUSEL SECTION (Matching Flutter Carousel & User Screenshot)
   Full-width hero banner, rounded corners (radius 20px), auto-slide & dots
   ========================================================================== */
.carousel-section-website {
  max-width: var(--max-width, 1280px);
  margin: 18px auto 26px;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}

.hero-carousel-wrapper {
  display: flex;
  align-items: stretch;
  gap: 20px;
  width: 100%;
}

.hero-carousel-main-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hero-carousel-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  background: #F4F6F3;
  touch-action: pan-y;
  user-select: none;
}

.hero-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  direction: ltr !important;
}

.hero-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.hero-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.hero-carousel-slide:hover img {
  transform: scale(1.02);
}

/* Prev / Next Floating Arrows */
.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: all 0.25s ease;
}

.hero-carousel-container:hover .hero-carousel-arrow {
  opacity: 0.95;
}

.hero-carousel-arrow:hover {
  opacity: 1 !important;
  background: #FFFFFF;
  color: var(--primary-red, #FB3E38);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 18px rgba(251, 62, 56, 0.25);
}

.hero-carousel-arrow.prev {
  left: 16px;
}

.hero-carousel-arrow.next {
  right: 16px;
}

/* Indicators (Dots matching user screenshot) */
.hero-carousel-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
}

.hero-indicator-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #E2E8F0;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.hero-indicator-dot:hover {
  background: #94A3B8;
  transform: scale(1.25);
}

.hero-indicator-dot.active {
  background: var(--primary-red, #FB3E38);
  width: 10px;
  height: 10px;
  transform: scale(1.15);
  box-shadow: 0 0 0 2px rgba(251, 62, 56, 0.25);
}

/* ==========================================================================
   COLLECTION BOXES (Exact Dimensions & Layout from Reference Design)
   Box 1: 227x107px | Box 2: 107x107px | Box 3: 107x107px | Box 4: 90x225px
   ========================================================================== */

.hero-collection-section {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.collection-boxes-container {
  display: flex;
  gap: 14px;
  align-items: stretch;
  direction: ltr !important;
}

/* Left Column: Top wide box + Bottom row of 2 square boxes */
.collection-col-left {
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 227px;
}

/* Bottom Row inside Left Column */
.collection-row-bottom {
  display: flex;
  gap: 13px;
  width: 227px;
}

/* Right Column: Tall vertical box */
.collection-col-right {
  display: flex;
  width: 90px;
}

/* Base Collection Box Card */
.collection-box {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(0, 10, 70, 0.08);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  box-sizing: border-box;
}

.collection-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(251, 62, 56, 0.16), 0 2px 8px rgba(0, 0, 0, 0.06);
  border-color: rgba(251, 62, 56, 0.35);
}

.collection-box:active {
  transform: translateY(-1px) scale(0.98);
}

.collection-box-inner {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%);
  padding: 8px;
  box-sizing: border-box;
  position: relative;
}

.collection-box-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.collection-box:hover .collection-box-img {
  transform: scale(1.06);
}

/* Exact Dimension Specifiers */
.box-227x107 {
  width: 227px;
  height: 107px;
}

.box-107x107 {
  width: 107px;
  height: 107px;
}

.box-90x225 {
  width: 90px;
  height: 225px;
}

/* Icons Cluster / Collages */
.collection-box-icons-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  height: 100%;
  padding: 4px;
}

.collection-box-icons-cluster.vertical {
  flex-direction: column;
  gap: 10px;
  padding: 4px;
}

.c-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.box-227x107 .c-badge-icon {
  font-size: 26px;
}

.box-107x107 .c-badge-icon {
  font-size: 24px;
}

.box-90x225 .c-badge-icon {
  font-size: 22px;
}

.collection-box:hover .c-badge-icon {
  transform: scale(1.15) rotate(4deg);
}

.collection-box:hover .c-badge-icon:nth-child(even) {
  transform: scale(1.15) rotate(-4deg);
}

/* Subtle pulse keyframe */
@keyframes softPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.collection-box:hover .pulse {
  animation: softPulse 1.2s infinite ease-in-out;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .hero-carousel-wrapper {
    flex-direction: column;
    gap: 22px;
  }

  .hero-carousel-container {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .hero-collection-section {
    width: 100%;
    overflow-x: auto;
    padding: 10px 4px 16px;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 768px) {
  .hero-carousel-container {
    border-radius: 14px;
    aspect-ratio: 16 / 9;
    min-height: 180px;
  }

  .hero-carousel-arrow {
    width: 34px;
    height: 34px;
    opacity: 0.8;
  }

  .hero-carousel-arrow.prev {
    left: 8px;
  }

  .hero-carousel-arrow.next {
    right: 8px;
  }

  .hero-carousel-indicators {
    gap: 7px;
    margin-top: 10px;
  }

  .collection-boxes-container {
    transform: scale(0.95);
    transform-origin: center top;
  }
}

@media (max-width: 480px) {
  .collection-boxes-container {
    transform: scale(0.88);
    transform-origin: center top;
  }
}

/* ==========================================================================
   4. CATEGORIES SECTION (lib/widgets/categoriessection.dart)
   Header with red underline, Card with 3px 3px 4px shadow, #2F2105 text
   ========================================================================== */
.categories-section-website {
  max-width: var(--max-width);
  margin: 30px auto;
  padding: 0 16px;
}

.section-header-wrap {
  margin-bottom: 24px;
  display: inline-block;
}

.section-header-title {
  font-size: 28px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 4px;
}

.section-header-bar {
  display: none !important;
}

.categories-grid-korilla {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.category-card-korilla {
  width: 187px;
  height: 261px;
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card-korilla:hover {
  transform: translateY(-5px);
  border-color: #E2E8F0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.category-card-korilla img {
  width: 155px;
  height: 155px;
  border-radius: 12px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.category-card-korilla:hover img {
  transform: scale(1.04);
}

.category-card-korilla-title {
  font-size: 17px;
  font-weight: 700;
  color: #1E293B;
  text-align: center;
  line-height: 1.3;
  margin-top: 6px;
}

/* Shop View In-Page Product Search Bar */
.shop-search-bar-wrap {
  margin: 0 0 16px 0;
  width: 100%;
}

.shop-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 10px 16px;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.shop-search-box:focus-within {
  border-color: var(--primary-red, #FB3E38);
  box-shadow: 0 0 0 3px rgba(251, 62, 56, 0.12);
}

.shop-search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #1E293B;
  min-width: 0;
  font-family: inherit;
}

.shop-search-clear-btn {
  background: #F1F5F9;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  flex-shrink: 0;
}

.shop-search-clear-btn:hover {
  background: #FB3E38;
  color: #FFFFFF;
}

/* Category Filter Pills (Shop View) */
.cat-pills-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 24px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cat-pills-row::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex: 0 0 auto;
  padding: 8px 18px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--primary-navy);
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.cat-pill:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
  background: #FFF8F8;
}

.cat-pill.active {
  background: var(--primary-red);
  color: #fff;
  border-color: var(--primary-red);
  box-shadow: 0 4px 12px rgba(251, 62, 56, 0.25);
}

/* ==========================================================================
   5. PRODUCTS GRID (lib/widgets/productsgrid.dart)
   157x131 image, "Buy X get X free" badge, EGP / item price
   ========================================================================== */
.products-section-website {
  max-width: var(--max-width);
  margin: 30px auto 60px;
  padding: 0 16px;
}

.products-grid-korilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.product-card-korilla {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-card-korilla:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #FFCDD2;
}

.p-card-thumb {
  position: relative;
  width: 100%;
  height: 160px;
  background: #F8FAFC;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
  padding: 24px 10px 8px;
  box-sizing: border-box;
}

.p-card-thumb img {
  max-width: 135px;
  max-height: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.p-card-thumb img.img-loaded {
  opacity: 1 !important;
}

/* Product Thumbnail Loading Spinner & Placeholders */
.p-card-img-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8FAFC;
  z-index: 1;
  pointer-events: none;
}

.p-card-img-loader.no-img {
  background: #F1F5F9;
}

.p-card-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(251, 62, 56, 0.16);
  border-top-color: #FB3E38;
  border-radius: 50%;
  animation: korillaSpin 0.75s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

@keyframes korillaSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.p-card-fallback-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #F8FAFC;
}

.p-card-fallback-icon {
  font-size: 28px;
  opacity: 0.45;
  filter: grayscale(30%);
}

/* Product Skeleton Loading Grid Cards */
.product-card-skeleton {
  pointer-events: none;
  cursor: default;
  opacity: 0.9;
}

.skeleton-line {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.p-card-offer-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #FB3E38;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 6px;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(251, 62, 56, 0.3);
  white-space: nowrap;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

[dir="rtl"] .p-card-offer-badge {
  left: auto;
  right: 8px;
  border-radius: 6px;
}

.p-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.35;
  height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: break-word;
  margin-bottom: 6px;
}

.p-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 10px;
}

.p-card-price-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-navy);
}

.p-card-price-unit {
  font-size: 12px;
  color: var(--primary-navy);
}

.p-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.p-card-old-price {
  font-size: 12px;
  color: #9E9E9E;
  text-decoration: line-through;
}

.p-card-add-btn {
  background: var(--primary-red);
  color: #FFFFFF;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(251, 62, 56, 0.2);
}

.p-card-add-btn:hover {
  background: var(--hover-red);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(251, 62, 56, 0.3);
}

.p-card-plus-icon {
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

/* Interactive Card Quantity Control (when item is in cart) */
.p-card-qty-control {
  display: inline-flex;
  align-items: center;
  background: #FFF5F5;
  border: 1.5px solid var(--primary-red);
  border-radius: 8px;
  padding: 2px 4px;
  gap: 4px;
}

.p-card-qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--primary-red);
  color: #FFFFFF;
  border: none;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.p-card-qty-btn:hover {
  background: var(--hover-red);
  transform: scale(1.08);
}

.p-card-qty-btn.minus {
  background: #FFFFFF;
  color: var(--primary-red);
  border: 1px solid rgba(251, 62, 56, 0.4);
}

.p-card-qty-btn.minus:hover {
  background: #FFF0F0;
}

.p-card-qty-val {
  min-width: 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-red);
}

/* Product Modal Quantity Selector */
.p-modal-qty-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.p-modal-qty-control {
  display: inline-flex;
  align-items: center;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 4px;
  gap: 8px;
}

.p-modal-qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #FFFFFF;
  color: #1E293B;
  border: 1px solid #CBD5E1;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.p-modal-qty-btn.plus {
  background: var(--primary-red);
  color: #FFFFFF;
  border-color: var(--primary-red);
}

.p-modal-qty-btn.plus:hover {
  background: var(--hover-red);
}

.p-modal-qty-val {
  min-width: 32px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: #1E293B;
}

/* Out of Stock Badges & Card styling */
.product-card-korilla.is-out-of-stock {
  opacity: 0.9;
}

.p-card-stock-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #DC2626;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

[dir="rtl"] .p-card-stock-tag {
  right: auto;
  left: 8px;
}

.p-out-of-stock-label {
  color: #DC2626;
  font-size: 12px;
  font-weight: 700;
}

/* Pick Up Only & Undeliverable (Frozen) Styling */
.p-card-pickup-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: #0284C7;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-bottom-right-radius: 6px;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

[dir="rtl"] .p-card-pickup-badge {
  left: auto;
  right: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 6px;
}

.p-undeliverable-label {
  color: #DC2626;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.p-card-add-btn.p-card-add-frozen-btn {
  background: #0284C7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.p-card-add-btn.p-card-add-frozen-btn:hover {
  background: #0369A1;
}

.cart-frozen-alert {
  background: #E1F5FE;
  border: 1.2px solid #81D4FA;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.cart-section-title {
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
  margin-bottom: 6px;
}

.cart-section-title.dry-title {
  color: #2E7D32;
}

/* ==========================================================================
   PRODUCT DETAILS MODAL EXTENSIONS (Details Accordion, Reviews & Ratings)
   ========================================================================== */
.p-modal-dialog {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 25px 60px -15px rgba(0, 10, 70, 0.25);
  overflow: hidden;
}

.p-modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #475569;
  z-index: 20;
  transition: all 0.2s ease;
}

[dir="rtl"] .p-modal-close-btn {
  right: auto;
  left: 16px;
}

.p-modal-close-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
  transform: scale(1.05);
}

.p-modal-scrollable {
  padding: 24px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.p-modal-top-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.p-modal-img-container {
  flex: 1;
  min-width: 240px;
  background: #F8FAFC;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid #F1F5F9;
}

.p-modal-img-container img {
  max-height: 240px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.p-modal-img-container:hover img {
  transform: scale(1.04);
}

.p-modal-info-col {
  flex: 1.3;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.p-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 8px;
  line-height: 1.35;
}

.p-modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.p-modal-price-main {
  font-size: 24px;
  font-weight: 900;
  color: #000A46;
}

.p-modal-price-old {
  font-size: 15px;
  color: #94A3B8;
  text-decoration: line-through;
  font-weight: 600;
}

.p-modal-badge-discount {
  background: #FEE2E2;
  color: #DC2626;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
}

/* Product Details Accordion Section */
.p-details-section {
  background: #FFFFFF;
  border-radius: 14px;
  margin-bottom: 18px;
}

.p-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.p-details-title {
  font-size: 18px;
  font-weight: 800;
  color: #1E293B;
  letter-spacing: -0.3px;
}

.p-details-toggle-btn {
  background: none;
  border: none;
  color: #FB3E38;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.p-details-toggle-btn:hover {
  background: #FFF0F0;
}

.p-details-body {
  margin-top: 10px;
  transition: all 0.25s ease-in-out;
  overflow: hidden;
}

.p-details-text {
  font-size: 14px;
  color: #64748B;
  line-height: 1.7;
  white-space: pre-line;
}

.p-modal-divider {
  border: 0;
  border-top: 1px solid #E2E8F0;
  margin: 22px 0;
}

/* Reviews Submission Section */
.p-reviews-section {
  margin-bottom: 24px;
}

.p-reviews-title {
  font-size: 18px;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 12px;
}

.p-review-textarea {
  width: 100%;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  color: #1E293B;
  resize: vertical;
  min-height: 95px;
  box-sizing: border-box;
  transition: all 0.2s ease;
  outline: none;
}

.p-review-textarea:focus {
  border-color: #FB3E38;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(251, 62, 56, 0.12);
}

.p-review-textarea::placeholder {
  color: #94A3B8;
  font-size: 14px;
}

.p-review-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.p-star-picker {
  display: flex;
  align-items: center;
  gap: 6px;
}

.p-star-btn {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #CBD5E1;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0 2px;
}

.p-star-btn:hover,
.p-star-btn.active {
  color: #FB3E38;
  transform: scale(1.12);
}

.btn-submit-review {
  background: #FB3E38;
  color: #FFFFFF;
  border: none;
  border-radius: 24px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(251, 62, 56, 0.3);
  transition: all 0.2s ease;
}

.btn-submit-review:hover {
  background: #E02B25;
  box-shadow: 0 6px 18px rgba(251, 62, 56, 0.4);
  transform: translateY(-1px);
}

.btn-submit-review:active {
  transform: translateY(0);
}

/* Customers Reviews Section */
.p-cust-reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.p-cust-reviews-title {
  font-size: 18px;
  font-weight: 800;
  color: #1E293B;
}

.p-badge-network {
  background: #B91C1C;
  color: #FFFFFF;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(185, 28, 28, 0.25);
  cursor: default;
}

.p-review-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.p-review-card:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.p-review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.p-reviewer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.p-reviewer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFE4E6, #FECDD3);
  color: #E11D48;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #FDA4AF;
}

.p-reviewer-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #1E293B;
}

.p-review-date {
  font-size: 12px;
  color: #94A3B8;
  margin-top: 1px;
}

.p-review-stars {
  color: #F59E0B;
  font-size: 15px;
  letter-spacing: 2px;
}

.p-review-text {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.cart-section-title.frozen-title {
  color: #0277BD;
}

.cart-section-count {
  font-size: 12px;
  color: #64748B;
  font-weight: 600;
}

.cart-drawer-item.cart-item-frozen {
  border-color: #BAE6FD;
  background: #F0F9FF;
}

.frozen-item-tag {
  font-size: 10px;
  font-weight: 700;
  background: #E0F2FE;
  color: #0284C7;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ==========================================================================
   6. CART OVERLAY DRAWER & MODALS
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 999;
  display: none;
}

.cart-drawer-overlay.active {
  display: block;
}

.cart-drawer-content {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

[dir="ltr"] .cart-drawer-content {
  left: auto;
  right: 0;
}

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

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #FAFAFA;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.cart-drawer-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.qty-btn-s {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

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

.btn-primary-website {
  width: 100%;
  background: var(--primary-red);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 12px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(251, 62, 56, 0.3);
  transition: background 0.15s;
}

.btn-primary-website:hover {
  background: var(--hover-red);
}

/* ==========================================================================
   7. FOOTER SECTION (lib/widgets/footer.dart)
   ========================================================================== */
.website-footer {
  background: #000A46;
  color: #FFFFFF;
  padding: 40px 16px 20px;
  margin-top: auto;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(4, minmax(0, 1fr));
  gap: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 30px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #FFFFFF;
}

.footer-col p, .footer-col li {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  list-style: none;
}

.footer-col a:hover {
  color: var(--primary-red);
}

.footer-branches-list li {
  margin-bottom: 10px;
}

.footer-subheading {
  margin-top: 18px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-social-link svg {
  flex: 0 0 18px;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 20px auto 0;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* Toasts */
#toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

.korilla-toast {
  background: #000A46;
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 1100px) and (min-width: 769px) {
  .footer-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-col:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .navbar-nav-links {
    display: none;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-col:first-child {
    grid-column: auto;
  }
  .section-header-title {
    font-size: 22px;
  }
  .category-card-korilla {
    width: 140px;
    height: 190px;
  }
  .category-card-korilla img {
    width: 100px;
    height: 100px;
  }
  .category-card-korilla-title {
    font-size: 13.5px;
  }
  .products-grid-korilla {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-card-korilla {
    padding: 10px 8px;
  }
  .p-card-thumb img {
    height: 120px;
  }
  .p-card-title {
    font-size: 13px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .categories-grid-korilla {
    gap: 10px;
  }
  .category-card-korilla {
    width: calc(50% - 6px);
    height: auto;
    min-height: 175px;
    padding: 10px 6px;
  }
  .category-card-korilla img {
    width: 85px;
    height: 85px;
  }
  .navbar-container {
    padding: 8px 12px;
  }
}

/* Auth Modal and Social Login Buttons */
.auth-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.auth-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ==========================================================================
   ABOUT US SECTION (Matching Container decoration in Flutter aboutusview.dart)
   Border: AppColors().Primary (#FB3E38), Border Radius: 20px
   ========================================================================== */
.about-hero-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 50px 36px;
  box-shadow: 0 10px 30px rgba(0, 10, 70, 0.05);
  text-align: center;
}

.about-logo-wrapper {
  margin-bottom: 24px;
}

.about-logo-img {
  max-width: 260px;
  width: 100%;
  height: 62px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.about-logo-img:hover {
  transform: scale(1.05);
}

.about-hero-text {
  font-size: 20px;
  line-height: 1.65;
  color: #26303B;
  font-weight: 700;
  max-width: 780px;
  margin: 0 auto 40px;
}

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.about-feature-box {
  background: #FBFBFA;
  border: 1px solid #ECEEE9;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.25s ease;
}

.about-feature-box:hover {
  border-color: var(--primary-red);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(251, 62, 56, 0.08);
  background: #FFFFFF;
}

.about-feature-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.about-feature-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.about-feature-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #555555;
}

.about-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: var(--nav-bg);
  border-radius: 14px;
  padding: 20px 30px;
  margin-top: 10px;
}

.about-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-red);
}

.about-stat-lbl {
  font-size: 13px;
  font-weight: 600;
  color: #555555;
  margin-top: 2px;
}

.about-stat-sep {
  width: 1px;
  height: 35px;
  background: #D8D8CC;
}

/* ==========================================================================
   POLICIES ACCORDION (Matching ExpandableSection in Flutter privacypolicy.dart)
   ========================================================================== */
.policies-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 30px 24px;
  box-shadow: 0 10px 30px rgba(0, 10, 70, 0.05);
}

.policy-accordion {
  border-bottom: 1px solid #EDEDE4;
  padding: 16px 0;
  transition: all 0.2s ease;
}

.policy-accordion:last-child {
  border-bottom: none;
}

.policy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 6px 0;
}

.policy-icon {
  font-size: 22px;
}

.policy-title {
  font-size: 17px;
  font-weight: 700;
  color: #26303B;
  transition: color 0.2s;
}

.policy-arrow {
  font-size: 18px;
  color: var(--primary-red);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.policy-accordion.active .policy-arrow {
  transform: rotate(180deg);
}

.policy-body {
  display: none;
  padding: 12px 10px 6px 36px;
  font-size: 14.5px;
  line-height: 1.75;
  color: #4A5568;
}

[dir="rtl"] .policy-body {
  padding: 12px 36px 6px 10px;
}

.policy-accordion.active .policy-body {
  display: block;
}

@media (max-width: 768px) {
  .about-features-grid {
    grid-template-columns: 1fr;
  }
  .about-stats-row {
    flex-direction: column;
    gap: 16px;
  }
  .about-stat-sep {
    display: none;
  }
}

/* ==========================================================================
   TOP DELIVERY ADDRESS BAR ("ولما يحط عنوان يظهر فوق")
   ========================================================================== */
.top-delivery-bar {
  background: #000A46;
  color: #FFFFFF;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-delivery-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-delivery-address {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  user-select: none;
}

.top-delivery-address:hover {
  opacity: 0.9;
}

.top-delivery-pin {
  font-size: 14px;
}

.top-delivery-text {
  font-weight: 500;
  max-width: 500px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-delivery-btn {
  background: #FB3E38;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  cursor: pointer;
  margin-inline-start: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s ease;
}

.top-delivery-btn:hover {
  background: #E02822;
}

.top-delivery-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0.95;
}

@media (max-width: 1200px) {
  .navbar-container {
    padding: 8px 16px;
    gap: 12px;
  }
  .navbar-nav-links {
    gap: 12px;
  }
  .navbar-link {
    font-size: 13.5px;
    padding: 6px 8px;
  }
  .navbar-search-box {
    width: 180px;
    min-width: 130px;
  }
}

@media (max-width: 992px) {
  .navbar-container {
    flex-direction: column;
    padding: 8px 14px 10px;
    gap: 8px;
  }
  .navbar-top-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .navbar-nav-links {
    display: none;
  }
  .navbar-logo img {
    height: 38px;
    max-width: 135px;
  }
  .navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .navbar-search-box {
    display: block !important;
    width: 100%;
    min-width: 100%;
    margin-top: 2px;
  }
  .navbar-search-inner {
    width: 100%;
    padding: 8px 14px;
    border-radius: 12px;
  }
}

@media (max-width: 580px) {
  .top-delivery-phone {
    display: none;
  }
  .top-delivery-container {
    justify-content: center;
    padding: 5px 12px;
  }
  .top-delivery-text {
    max-width: 220px;
    font-size: 11.5px;
  }
  .navbar-container {
    padding: 6px 12px 8px;
    gap: 6px;
  }
  .navbar-top-row {
    gap: 8px;
  }
  .navbar-logo img {
    height: 34px;
    max-width: 115px;
  }
  .navbar-actions {
    gap: 6px;
  }
  .navbar-action-pill {
    padding: 0 8px;
    font-size: 11.5px;
    height: 36px;
  }
  .navbar-action-box {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
  .navbar-account-box {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    justify-content: center;
  }
  .navbar-account-box span, #navbar-auth-btn {
    display: none !important;
  }
  .navbar-search-box {
    width: 100%;
    min-width: 100%;
  }
  .navbar-search-inner {
    padding: 6px 12px;
  }
  .navbar-search-inner input {
    font-size: 13px;
  }
}

/* ==========================================================================
   HEART FAVORITE BUTTON ON PRODUCT CARDS
   ========================================================================== */
.p-card-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 8;
  width: 34px;
  height: 34px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease;
}

[dir="rtl"] .p-card-fav-btn {
  right: auto;
  left: 10px;
}

.p-card-fav-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(251, 62, 56, 0.2);
  border-color: #FB3E38;
}

.p-card-fav-btn.active {
  background: #FFF5F5;
  border-color: #FB3E38;
}

/* ==========================================================================
   ACCOUNT DASHBOARD TABS
   ========================================================================== */
.account-tab-btn {
  padding: 10px 16px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.account-tab-btn:hover {
  color: var(--primary-navy);
}

.account-tab-btn.active {
  color: var(--primary-red);
  border-bottom-color: var(--primary-red);
}

/* ==========================================================================
   FLOATING CART WIDGET ("كارت طايرة في الجنب")
   ========================================================================== */
.floating-cart-widget {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #FB3E38 0%, #D9221C 100%);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(251, 62, 56, 0.45), 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

[dir="ltr"] .floating-cart-widget {
  left: auto;
  right: 28px;
}

.floating-cart-widget:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 35px rgba(251, 62, 56, 0.55), 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.floating-cart-widget:active {
  transform: translateY(-1px) scale(0.98);
}

.floating-cart-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  flex-shrink: 0;
}

.floating-cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #FFFFFF;
  color: var(--primary-red);
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

[dir="ltr"] .floating-cart-badge {
  right: -5px;
  left: auto;
}

.floating-cart-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.floating-cart-title {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
  letter-spacing: 0.3px;
}

.floating-cart-total {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* Subtle bump animation on cart update */
.floating-cart-widget.cart-bump {
  animation: floatingCartBump 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes floatingCartBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@media (max-width: 768px) {
  .floating-cart-widget {
    bottom: 20px;
    left: 16px;
    padding: 8px 14px;
  }
  [dir="ltr"] .floating-cart-widget {
    left: auto;
    right: 16px;
  }
  .floating-cart-title {
    display: none;
  }
}

/* ==========================================================================
   TOAST NOTIFICATION CONTAINER & TOASTS (High Priority Overlay)
   ========================================================================== */
#toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  width: 90%;
  max-width: 480px;
}

.korilla-toast {
  pointer-events: auto;
  background: #1E293B;
  color: #FFFFFF;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.korilla-toast.error {
  background: #DC2626;
  color: #FFFFFF;
  border-color: #EF4444;
}

.korilla-toast.success {
  background: #16A34A;
  color: #FFFFFF;
  border-color: #22C55E;
}

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

/* ==========================================================================
   RECIPES VIEW STYLING (Matching Dashboard Recipe Output)
   ========================================================================== */
.recipes-view-inner {
  max-width: 920px;
  margin: 0 auto;
}

.recipe-pills-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.recipe-pills-row::-webkit-scrollbar {
  display: none;
}

.recipe-pill {
  padding: 9px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  color: #334155;
}

.recipe-pill:hover {
  border-color: #FB3E38;
  color: #FB3E38;
}

.recipe-pill.active {
  border-color: #FB3E38;
  background: #FB3E38;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(251, 62, 56, 0.25);
}

.recipe-card-main {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #F1F5F9;
}

.recipe-detail-title {
  font-size: 26px;
  font-weight: 800;
  color: #000A46;
  margin: 0 0 18px;
  line-height: 1.35;
  letter-spacing: -0.3px;
}

.recipe-steps-box {
  margin-bottom: 28px;
  background: #F8FAFC;
  padding: 20px 24px;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
}

.recipe-steps-list {
  padding-inline-start: 22px;
  margin: 0;
  line-height: 1.85;
  color: #334155;
  font-size: 15px;
  font-weight: 500;
}

.recipe-steps-list li {
  margin-bottom: 10px;
  padding-inline-start: 4px;
}

.recipe-steps-list li:last-child {
  margin-bottom: 0;
}

.recipe-products-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1.5px dashed #E2E8F0;
}

.btn-add-all-recipe {
  background: #000A46;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-add-all-recipe:hover {
  background: #FB3E38;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .recipe-card-main {
    padding: 18px 14px;
  }
  .recipe-detail-title {
    font-size: 20px;
  }
  .recipe-steps-box {
    padding: 14px 16px;
  }
  .recipe-steps-list {
    font-size: 14px;
  }
}





