/* ==========================================================================
   Abeysekara Stores - Modern Grocery Store Stylesheet
   Clean, Responsive, Mobile-First Design System with Sinhala font support
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Sinhala:wght@400;500;600;700&display=swap');

:root {
  /* Brand Palette */
  --color-primary: #047857;       /* Emerald Green */
  --color-primary-dark: #065f46;  /* Deep Forest Green */
  --color-primary-light: #10b981; /* Fresh Mint */
  --color-primary-bg: #ecfdf5;    /* Soft Mint Tint */
  --color-accent: #d97706;        /* Warm Amber */
  --color-accent-hover: #b45309;  /* Deep Gold */
  --color-whatsapp: #25d366;      /* WhatsApp Green */
  --color-whatsapp-dark: #128c7e;

  /* Neutrals */
  --color-text-main: #0f172a;     /* Slate 900 */
  --color-text-muted: #475569;    /* Slate 600 */
  --color-text-light: #94a3b8;    /* Slate 400 */
  --color-bg-body: #f8fafc;       /* Slate 50 */
  --color-bg-surface: #ffffff;
  --color-border: #e2e8f0;        /* Slate 200 */
  --color-border-subtle: #f1f5f9;

  /* Typography */
  --font-sans: 'Inter', 'Noto Sans Sinhala', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 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.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --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);
  --shadow-float: 0 12px 30px rgba(4, 120, 87, 0.25);

  /* Container */
  --max-w: 1200px;
  --header-height: 74px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-body);
  color: var(--color-text-main);
  line-height: 1.5;
  font-size: 15px;
  padding-bottom: 70px; /* Space for mobile floating cart */
}

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

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

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-full { width: 100%; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(4, 120, 87, 0.25);
}
.btn-primary:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 4px 8px rgba(4, 120, 87, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--color-text-main);
  border-color: var(--color-border);
}
.btn-secondary:hover {
  background-color: var(--color-bg-body);
  border-color: var(--color-text-light);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  background-color: #20bd5a;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}

.btn-outline-primary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline-primary:hover {
  background: var(--color-primary-bg);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.top-notice-bar {
  background: linear-gradient(90deg, #065f46 0%, #047857 100%);
  color: #ffffff;
  font-size: 0.82rem;
  padding: 0.4rem 0;
  font-weight: 500;
}
.top-notice-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.store-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.status-indicator-dot {
  width: 8px;
  height: 8px;
  background-color: #4ade80;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.4);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.top-contact-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.top-link {
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.15s;
}
.top-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: var(--header-height);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--color-border);
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.brand-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.header-search-wrap {
  flex: 1;
  max-width: 500px;
  position: relative;
}
.header-search-input {
  width: 100%;
  padding: 0.65rem 2.5rem 0.65rem 2.6rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background-color: var(--color-bg-body);
  font-size: 0.9rem;
  color: var(--color-text-main);
  transition: all 0.2s;
  outline: none;
}
.header-search-input:focus {
  border-color: var(--color-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.15);
}
.search-icon-inside {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-light);
  pointer-events: none;
}
.clear-search-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 0.9rem;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 0.25rem;
  display: none;
}
.clear-search-btn:hover {
  color: var(--color-text-main);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.btn-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--color-bg-body);
  border: 1px solid var(--color-border);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text-main);
  transition: all 0.15s;
}
.btn-lang:hover {
  background: #ffffff;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-cart-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-primary-bg);
  color: var(--color-primary-dark);
  border: 1.5px solid var(--color-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-cart-nav:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}
.cart-badge-count {
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  min-width: 20px;
  text-align: center;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
  color: #ffffff;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}

.hero-backdrop-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2.5rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.hero-cta-group .btn {
  padding: 0.8rem 1.4rem;
  font-size: 1rem;
}

.hero-features-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
}
.hero-feat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hero-feat-icon {
  font-size: 1.3rem;
}
.hero-feat-title {
  font-weight: 700;
  font-size: 0.9rem;
}
.hero-feat-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid rgba(255, 255, 255, 0.2);
  background: #ffffff;
}
.hero-store-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.hero-visual-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  padding: 1.5rem 1.25rem 1rem;
  color: #ffffff;
}
.hero-store-caption {
  font-size: 0.95rem;
  font-weight: 700;
}
.hero-store-location {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.2rem;
}

/* ==========================================================================
   Store Highlights / Photo Showcase
   ========================================================================== */
.section-store-photos {
  padding: 3rem 0;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
}
.section-header {
  margin-bottom: 2rem;
}
.section-tag {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.section-title {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: var(--color-text-main);
  letter-spacing: -0.02em;
}
.section-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-top: 0.35rem;
  max-width: 650px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.gallery-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  background: #ffffff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.gallery-card-body {
  padding: 0.85rem 1rem;
}
.gallery-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-main);
}
.gallery-card-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
}

/* ==========================================================================
   Products Catalog & Filters
   ========================================================================== */
.catalog-section {
  padding: 3.5rem 0;
}

.catalog-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.category-pills-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
}
.category-pills-wrap::-webkit-scrollbar {
  height: 4px;
}
.category-pills-wrap::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: var(--color-text-main);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
}
.category-pill:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-bg);
}
.category-pill.active {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 2px 4px rgba(4, 120, 87, 0.25);
}
.category-count {
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.08);
  font-weight: 700;
}
.category-pill.active .category-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.products-count-badge {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease-in-out;
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.product-image-container {
  position: relative;
  width: 100%;
  padding-top: 80%; /* Clean square/card ratio */
  background-color: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}
.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.6rem;
  background-color: #ffffff;
  transition: transform 0.25s ease;
}
.product-card:hover .product-image {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-sm);
}

.product-brand {
  position: absolute;
  bottom: 0.5rem;
  left: 0.65rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

.product-details {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-header {
  margin-bottom: 0.5rem;
}
.product-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.3;
}
.product-subtitle {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: block;
  margin-top: 0.15rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--color-border);
}
.product-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--color-primary);
  font-weight: 600;
}
.stock-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-primary-light);
  border-radius: 50%;
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.price-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.btn-add-cart {
  background-color: var(--color-primary-bg);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s;
}
.btn-add-cart:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
}
.qty-stepper button {
  background: var(--color-primary-bg);
  border: none;
  width: 28px;
  height: 28px;
  font-weight: 800;
  color: var(--color-primary-dark);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s;
}
.qty-stepper button:hover {
  background: var(--color-primary);
  color: #ffffff;
}
.qty-number {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text-main);
}

.empty-products-notice {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border);
}
.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Quick Shopping List Section
   ========================================================================== */
.quick-list-section {
  padding: 3rem 0;
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.quick-list-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  max-width: 800px;
  margin: 0 auto;
}
.quick-list-textarea {
  width: 100%;
  min-height: 140px;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  font-size: 0.92rem;
  color: var(--color-text-main);
  outline: none;
  resize: vertical;
  margin-top: 0.75rem;
  transition: border-color 0.15s;
}
.quick-list-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.12);
}
.quick-list-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}
.form-control-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s;
}
.form-control-input:focus {
  border-color: var(--color-primary);
}

/* ==========================================================================
   Location & Contact Section (Google Maps)
   ========================================================================== */
.location-section {
  padding: 3.5rem 0;
  background-color: #ffffff;
}
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}
.location-info-card {
  background: var(--color-bg-body);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--color-border);
}
.location-detail-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}
.location-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.loc-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.loc-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-main);
}
.loc-val {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}

.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  height: 420px;
}
.map-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   Cart Modal / Dialog (Modern HTML5 <dialog> with Fallbacks)
   ========================================================================== */
dialog {
  border: none;
  background: transparent;
  max-width: 100%;
  max-height: 100%;
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  opacity: 1;
  transition: opacity 0.2s;
}

.cart-drawer-card {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: slide-in-right 0.25s ease-out;
}
@keyframes slide-in-right {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  background-color: #ffffff;
}
.drawer-title {
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary-dark);
}
.btn-close-drawer {
  background: var(--color-bg-body);
  border: 1px solid var(--color-border);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--color-text-muted);
  transition: all 0.15s;
}
.btn-close-drawer:hover {
  background: var(--color-border);
  color: var(--color-text-main);
}

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

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--color-border-subtle);
}
.cart-item-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}
.cart-item-info {
  flex: 1;
}
.cart-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}
.cart-item-unit {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: block;
}
.cart-item-total {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.cart-item-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
}
.cart-item-stepper button {
  background: none;
  border: none;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-weight: 700;
  color: var(--color-text-main);
}
.cart-item-stepper button:hover {
  background: var(--color-bg-body);
}
.cart-qty {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
}

.btn-cart-remove {
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 0.9rem;
}
.btn-cart-remove:hover {
  color: #ef4444;
}

.cart-empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--color-text-muted);
}
.cart-empty-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.drawer-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.25rem;
  background-color: var(--color-bg-body);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--color-text-muted);
}
.summary-row.total-row {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text-main);
  border-top: 1px dashed var(--color-border);
  padding-top: 0.65rem;
  margin-top: 0.65rem;
}

/* ==========================================================================
   Checkout Step Inside Drawer
   ========================================================================== */
.checkout-step-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.checkout-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  align-self: flex-start;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text-main);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.12);
}
.payment-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.radio-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: #ffffff;
  cursor: pointer;
  font-size: 0.88rem;
}
.radio-card:has(input:checked) {
  border-color: var(--color-primary);
  background-color: var(--color-primary-bg);
}

/* ==========================================================================
   Receipt Modal / Thermal Slip Style
   ========================================================================== */
.receipt-dialog-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  width: 92vw;
  max-width: 580px;
  max-height: 90vh;
  margin: auto;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: zoom-in 0.2s ease-out;
}
@keyframes zoom-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.receipt-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.receipt-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin: 0 auto 0.75rem;
  border-radius: var(--radius-md);
}
.receipt-store-sub {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.receipt-phone {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}
.receipt-divider {
  height: 1px;
  background: repeating-linear-gradient(90deg, #94a3b8 0, #94a3b8 4px, transparent 4px, transparent 8px);
  margin: 1rem 0;
}
.receipt-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-primary-bg);
  color: var(--color-primary-dark);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
}
.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary-light);
}

.receipt-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
  font-size: 0.85rem;
  background: var(--color-bg-body);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}
.meta-label {
  color: var(--color-text-muted);
  display: block;
  font-size: 0.75rem;
}
.order-code {
  font-family: monospace;
  font-size: 1.05rem;
  color: var(--color-primary-dark);
}
.highlight-time {
  color: var(--color-accent);
}

.receipt-notes {
  background: #fef3c7;
  color: #92400e;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.receipt-table-wrapper {
  margin-bottom: 1.25rem;
  overflow-x: auto;
}
.receipt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.receipt-table th {
  border-bottom: 1.5px solid var(--color-text-main);
  padding: 0.5rem 0.25rem;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
}
.receipt-table td {
  padding: 0.55rem 0.25rem;
  border-bottom: 1px solid var(--color-border);
}
.item-name-en {
  font-weight: 600;
}
.item-name-si {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.receipt-table tfoot th {
  border-top: 2px solid var(--color-text-main);
  border-bottom: none;
  padding-top: 0.75rem;
  font-size: 0.95rem;
}
.total-cell {
  color: var(--color-primary-dark);
  font-size: 1.15rem;
  font-weight: 800;
}

.receipt-location-alert {
  background: var(--color-primary-bg);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 0.85rem;
  font-size: 0.82rem;
  color: #065f46;
  margin-bottom: 1.5rem;
}

.receipt-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* ==========================================================================
   Floating Widgets (WhatsApp & Mobile Cart Bar)
   ========================================================================== */
.floating-whatsapp-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background-color: var(--color-whatsapp);
  color: #ffffff;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.floating-whatsapp-widget:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}
.wa-icon {
  font-size: 1.4rem;
}

.mobile-floating-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: #ffffff;
  border-top: 1px solid var(--color-border);
  padding: 0.75rem 1.25rem;
  display: none;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}
.mobile-cart-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.mobile-cart-info {
  display: flex;
  flex-direction: column;
}
.mobile-cart-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.mobile-cart-sum {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 100;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #0f172a;
  color: #cbd5e1;
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.footer-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.6;
}
.footer-heading {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.88rem;
}
.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: #64748b;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual-card {
    order: -1;
    max-height: 280px;
  }
  .hero-store-img {
    height: 280px;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .location-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 64px;
  }
  .top-notice-bar {
    display: none;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-sub {
    font-size: 0.65rem;
  }
  .header-search-wrap {
    display: none; /* Accessible in body search */
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.85rem;
  }
  .product-details {
    padding: 0.75rem;
  }
  .product-title {
    font-size: 0.88rem;
  }
  .price-val {
    font-size: 1rem;
  }
  .quick-list-inputs-grid {
    grid-template-columns: 1fr;
  }
  .mobile-floating-cart-bar {
    display: block;
  }
  .floating-whatsapp-widget span {
    display: none;
  }
  .floating-whatsapp-widget {
    padding: 0.75rem;
    border-radius: 50%;
    bottom: 4.8rem;
    right: 1rem;
  }
}

/* ==========================================================================
   Print Stylesheet for Order Receipt
   ========================================================================== */
@media print {
  body * {
    visibility: hidden;
  }
  #receiptDialog, #receiptDialog * {
    visibility: visible;
  }
  #receiptDialog {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    box-shadow: none;
    border: none;
  }
  .receipt-actions, .btn-close-drawer, .site-header, .site-footer, .floating-whatsapp-widget {
    display: none !important;
  }
}


/* ==========================================================================
   Multi-Page Navigation & Additional Page Components
   ========================================================================== */

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.site-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--color-border);
  display: none;
  justify-content: space-around;
  padding: 0.5rem 0.35rem;
  z-index: 50;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.08);
}
.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  gap: 0.15rem;
  position: relative;
}
.mobile-bottom-nav a.active {
  color: var(--color-primary);
}
.mobile-nav-icon {
  font-size: 1.2rem;
}
.mobile-nav-badge {
  position: absolute;
  top: -2px;
  right: 10px;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-full);
  font-weight: 800;
}

/* Page Header Banner */
.page-header-banner {
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
  color: #ffffff;
  padding: 2.5rem 0;
}
.page-header-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-header-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-top: 0.4rem;
  max-width: 600px;
}

/* Special Custom Item Card */
.custom-item-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px dashed #f59e0b;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.custom-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.custom-item-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #92400e;
}
.custom-item-desc {
  font-size: 0.85rem;
  color: #78350f;
  margin-bottom: 1rem;
}
.custom-item-form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr auto;
  gap: 0.65rem;
  align-items: center;
}

/* Cart Page Table */
.cart-table-full {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.cart-table-full th {
  background: var(--color-bg-body);
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}
.cart-table-full td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--color-border-subtle);
  vertical-align: middle;
}
.cart-product-cell {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.cart-thumb {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}
.cart-item-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-main);
}
.cart-item-pack {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.cart-item-note {
  font-size: 0.75rem;
  color: #92400e;
  background: #fef3c7;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-top: 0.2rem;
}
.badge-custom-pill {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  margin-left: 0.4rem;
}
.custom-item-highlight {
  background-color: #fffdf5;
}
.btn-delete-row {
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.35rem;
}
.btn-delete-row:hover {
  color: #ef4444;
}

/* Checkout Sidebar Card */
.checkout-sidebar-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}

@media (max-width: 900px) {
  .custom-item-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none; /* Accessible in mobile bottom nav */
  }
  .mobile-bottom-nav {
    display: flex;
  }
  body {
    padding-bottom: 75px;
  }
  .cart-table-full thead {
    display: none;
  }
  .cart-table-full tr {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    position: relative;
  }
  .cart-table-full td {
    padding: 0.35rem 0;
    border: none;
  }
  .cart-col-action {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
  }
}

/* Print Rules */
@media print {
  .no-print, .site-header, .site-footer, .mobile-bottom-nav, .floating-whatsapp-widget {
    display: none !important;
  }
}
