/* ==========================================================================
   KOVAI METRO SUPERMARKET - MAIN STYLESHEET
   Mobile-First, WCAG AA Compliant, SEO & Performance Optimized
   ========================================================================== */

:root {
  /* Dynamic Design Tokens - Default Palette (overridable via Customizer / Settings) */
  --kms-primary: #1b5e20;
  --kms-primary-hover: #144718;
  --kms-primary-light: #edf7ee;
  --kms-accent: #e65100;
  --kms-accent-hover: #bf360c;
  --kms-accent-light: #fff3e0;
  --kms-bg: #faf8f5;
  --kms-surface: #ffffff;
  --kms-text: #212121;
  --kms-text-muted: #555555;
  --kms-border: #e2ded7;
  --kms-focus: #0284c7;
  --kms-success: #2e7d32;
  --kms-error: #c62828;
  --kms-radius: 8px;
  --kms-container: 1200px;
  --kms-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --kms-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --kms-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --kms-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --kms-transition: all 0.2s ease-in-out;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--kms-bg);
  color: var(--kms-text);
}

body {
  font-family: var(--kms-font-family);
  font-size: 1.0625rem; /* 17px for excellent mobile sunlight readability */
  line-height: 1.6;
  color: var(--kms-text);
  background-color: var(--kms-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* Accessibility: Skip Link & Focus States */
.kms-skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  background: var(--kms-accent);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  z-index: 10000;
  font-weight: 700;
  border-radius: var(--kms-radius);
  text-decoration: none;
  box-shadow: var(--kms-shadow-md);
}
.kms-skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--kms-focus);
  outline-offset: 3px;
}

/* Container & Layout */
.kms-container {
  width: 100%;
  max-width: var(--kms-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.kms-site-main {
  flex: 1 0 auto;
  padding-bottom: 3.5rem;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--kms-text);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 1.875rem; /* 30px on mobile */
  letter-spacing: -0.01em;
}
@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
}
@media (min-width: 1024px) {
  h1 { font-size: 2.875rem; }
}

h2 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}
@media (min-width: 768px) {
  h2 { font-size: 1.875rem; }
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.25rem;
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--kms-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--kms-transition);
}
a:hover {
  color: var(--kms-primary-hover);
}

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

/* Buttons & Interactive Elements */
.kms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px; /* 48px tap target */
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--kms-radius);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--kms-transition);
  text-align: center;
  line-height: 1.2;
}

.kms-btn-primary {
  background-color: var(--kms-primary);
  color: #ffffff;
  border-color: var(--kms-primary);
}
.kms-btn-primary:hover {
  background-color: var(--kms-primary-hover);
  border-color: var(--kms-primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--kms-shadow-sm);
}

.kms-btn-accent {
  background-color: var(--kms-accent);
  color: #ffffff;
  border-color: var(--kms-accent);
}
.kms-btn-accent:hover {
  background-color: var(--kms-accent-hover);
  border-color: var(--kms-accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--kms-shadow-sm);
}

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

.kms-btn-sm {
  min-height: 40px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9375rem;
}

.kms-btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  border-color: #25d366;
}
.kms-btn-whatsapp:hover {
  background-color: #1eb956;
  color: #ffffff;
}

.kms-btn-call {
  background-color: #1565c0;
  color: #ffffff;
  border-color: #1565c0;
}
.kms-btn-call:hover {
  background-color: #0d47a1;
  color: #ffffff;
}

/* Header & Navigation */
.kms-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--kms-primary-hover);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--kms-shadow-sm);
}

.kms-top-bar {
  background-color: var(--kms-primary);
  color: #ffffff;
  font-size: 0.8125rem;
  padding: 0.4rem 0;
}
.kms-top-bar .kms-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}
.kms-top-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}
.kms-top-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.kms-top-bar .kms-svg-icon {
  width: 16px;
  height: 16px;
}
@media (max-width: 479px) {
  .kms-top-left { display: none; }
  .kms-top-bar .kms-container { justify-content: center; }
}
.kms-top-bar a {
  color: #ffffff;
  text-decoration: none;
}
.kms-top-bar a:hover {
  text-decoration: underline;
}

.kms-header-main {
  padding: 0.6rem 0;
  background-color: var(--kms-primary-hover);
}
.kms-header-main .kms-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
}

.kms-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #ffffff;
  flex: 0 1 auto;
  min-width: 0;
}
.kms-logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.kms-brand-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  white-space: nowrap;
}
.kms-brand-tagline {
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--kms-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
@media (min-width: 768px) {
  .kms-brand-title { font-size: 1.3rem; }
  .kms-brand-tagline { max-width: 320px; }
}
.kms-logo-img {
  max-height: 48px;
  width: auto;
}
.kms-logo-img-header {
  width: 132px;
  height: 86px;
  max-height: none;
  object-fit: contain;
  object-position: left center;
}

/* Desktop nav: only on wide screens so items never wrap or overflow */
.kms-nav-desktop {
  display: none;
}
@media (min-width: 1200px) {
  .kms-nav-desktop {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
  }
}
.kms-nav-desktop ul {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
  margin: 0;
  padding: 0;
}
.kms-nav-desktop li {
  position: relative;
  list-style: none;
}
.kms-nav-desktop a {
  display: block;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 0.5rem 0.6rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.kms-nav-desktop a:hover,
.kms-nav-desktop .current-menu-item > a {
  color: #ffffff;
  border-bottom-color: var(--kms-accent);
}
/* Dropdown sub-menus */
.kms-nav-desktop .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  align-items: stretch;
  min-width: 220px;
  background: var(--kms-surface);
  border: 1px solid var(--kms-border);
  border-radius: var(--kms-radius);
  box-shadow: var(--kms-shadow-md);
  padding: 0.4rem 0;
  z-index: 50;
}
.kms-nav-desktop li:hover > .sub-menu,
.kms-nav-desktop li:focus-within > .sub-menu {
  display: flex;
}

.kms-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.kms-header-call {
  display: none !important;
}
.kms-header-call.kms-btn-primary {
  background-color: #ffffff;
  border-color: #ffffff;
  color: var(--kms-primary-hover);
}
.kms-header-call.kms-btn-primary:hover {
  background-color: var(--kms-accent);
  border-color: var(--kms-accent);
  color: #ffffff;
}
@media (min-width: 640px) {
  .kms-header-call { display: inline-flex !important; }
}

/* Mobile Nav Toggle & Drawer */
.kms-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--kms-radius);
  cursor: pointer;
  padding: 0.5rem;
  color: #ffffff;
}
@media (min-width: 1200px) {
  .kms-menu-toggle {
    display: none;
  }
}

.kms-mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background-color: var(--kms-surface);
  z-index: 10001;
  box-shadow: var(--kms-shadow-lg);
  padding: 1.5rem;
  overflow-y: auto;
  transition: right 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.kms-mobile-drawer.is-active {
  right: 0;
}
.kms-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.kms-drawer-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}
.kms-drawer-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}
.kms-mobile-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.75rem;
  background: var(--kms-primary-hover);
  border-radius: var(--kms-radius);
  color: #ffffff;
}
.kms-mobile-brand-logo {
  width: 126px;
  height: 82px;
  object-fit: contain;
  object-position: left center;
}
.kms-mobile-brand strong {
  color: #ffffff;
}
.kms-mobile-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.kms-mobile-menu-list a {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--kms-text);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--kms-border);
}

/* Breadcrumbs */
.kms-breadcrumbs-wrap {
  background-color: #f2eee8;
  padding: 0.625rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--kms-border);
}
.kms-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
}
.kms-breadcrumb-separator {
  color: var(--kms-text-muted);
  font-size: 0.75rem;
}
.kms-breadcrumbs a {
  text-decoration: none;
  color: var(--kms-text-muted);
}
.kms-breadcrumbs a:hover {
  color: var(--kms-primary);
  text-decoration: underline;
}
.kms-breadcrumb-current {
  color: var(--kms-text);
  font-weight: 600;
}

/* Hero Section */
.kms-hero-section {
  background: linear-gradient(135deg, #edf7ee 0%, #faf8f5 100%);
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid var(--kms-border);
}
.kms-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .kms-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}
.kms-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.kms-badge-open {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background-color: #e8f5e9;
  color: #2e7d32;
  width: fit-content;
}
.kms-badge-open.is-closed {
  background-color: #ffebee;
  color: #c62828;
}
.kms-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: currentColor;
}
.kms-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 0.75rem;
}
.kms-hero-img-wrap {
  position: relative;
  border-radius: var(--kms-radius);
  overflow: hidden;
  box-shadow: var(--kms-shadow-md);
  background: var(--kms-surface);
}
.kms-hero-img-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Trust Strip */
.kms-trust-strip {
  background-color: var(--kms-surface);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--kms-border);
}
.kms-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.kms-trust-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.kms-trust-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--kms-primary-light);
  color: var(--kms-primary);
  border-radius: 50%;
}
.kms-trust-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.kms-trust-desc {
  font-size: 0.85rem;
  color: var(--kms-text-muted);
  margin: 0;
}

/* Section Headings */
.kms-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}
.kms-section-header.text-left {
  text-align: left;
  margin-left: 0;
}
.kms-section-title {
  font-size: 1.75rem;
  color: var(--kms-text);
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
  .kms-section-title { font-size: 2.125rem; }
}
.kms-section-desc {
  color: var(--kms-text-muted);
  font-size: 1rem;
}

/* Cards & Grids */
.kms-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .kms-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .kms-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.kms-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 500px) {
  .kms-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .kms-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.kms-card {
  background-color: var(--kms-surface);
  border: 1px solid var(--kms-border);
  border-radius: var(--kms-radius);
  overflow: hidden;
  box-shadow: var(--kms-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--kms-transition);
}
.kms-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--kms-shadow-md);
  border-color: var(--kms-primary);
}

.kms-card-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #f2eee8;
  position: relative;
}
.kms-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.kms-card:hover .kms-card-img-wrap img {
  transform: scale(1.04);
}

.kms-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.kms-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}
.kms-card-title a {
  color: var(--kms-text);
  text-decoration: none;
}
.kms-card-title a:hover {
  color: var(--kms-primary);
}
.kms-card-text {
  font-size: 0.9375rem;
  color: var(--kms-text-muted);
  flex: 1 1 auto;
  margin-bottom: 1rem;
}

/* Category Hub Specific */
.kms-cat-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.kms-cat-card .kms-card-body {
  text-align: center;
}
.kms-cat-card-icon {
  width: 56px;
  height: 56px;
  margin: -28px auto 0.75rem;
  background: var(--kms-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--kms-shadow-sm);
  border: 2px solid var(--kms-primary);
  color: var(--kms-primary);
}

/* Variety Card Specific */
.kms-variety-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  background: var(--kms-surface);
  color: var(--kms-text);
  box-shadow: var(--kms-shadow-sm);
}
.kms-variety-badge.in-stock {
  background-color: #2e7d32;
  color: #ffffff;
}
.kms-variety-badge.seasonal {
  background-color: var(--kms-accent);
  color: #ffffff;
}
.kms-variety-badge.out-of-stock {
  background-color: #757575;
  color: #ffffff;
}
.kms-price-tag {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--kms-primary);
  margin-bottom: 0.5rem;
}

/* Offer Card */
.kms-offer-card {
  border-top: 4px solid var(--kms-accent);
}
.kms-offer-discount {
  display: inline-block;
  background-color: var(--kms-accent);
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  font-weight: 800;
  border-radius: 4px;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.kms-offer-date {
  font-size: 0.8125rem;
  color: var(--kms-text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Price Table Component */
.kms-price-table-wrap {
  background: var(--kms-surface);
  border: 1px solid var(--kms-border);
  border-radius: var(--kms-radius);
  overflow-x: auto;
  box-shadow: var(--kms-shadow-sm);
  margin-bottom: 1.5rem;
}
.kms-price-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}
.kms-price-table th,
.kms-price-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--kms-border);
}
.kms-price-table th {
  background-color: var(--kms-primary-light);
  color: var(--kms-primary);
  font-weight: 700;
  position: sticky;
  top: 0;
}
.kms-price-table tbody tr:hover {
  background-color: #fbf9f6;
}
.kms-trend-up {
  color: #c62828;
  font-weight: 700;
}
.kms-trend-down {
  color: #2e7d32;
  font-weight: 700;
}
.kms-trend-same {
  color: #757575;
}
.kms-price-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: center;
}
.kms-filter-btn {
  background: var(--kms-surface);
  border: 1px solid var(--kms-border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.kms-filter-btn.active {
  background: var(--kms-primary);
  color: #ffffff;
  border-color: var(--kms-primary);
}

/* Area Chips */
.kms-area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.kms-area-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  background-color: var(--kms-surface);
  border: 1px solid var(--kms-border);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--kms-text);
  text-decoration: none;
  transition: var(--kms-transition);
}
.kms-area-chip:hover {
  background-color: var(--kms-primary-light);
  border-color: var(--kms-primary);
  color: var(--kms-primary);
}

/* Visit Us Block (NAP, Hours, Map) */
.kms-visit-us-block {
  background-color: var(--kms-surface);
  border: 1px solid var(--kms-border);
  border-radius: var(--kms-radius);
  overflow: hidden;
  box-shadow: var(--kms-shadow-md);
  margin: 2.5rem 0;
}
.kms-visit-grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .kms-visit-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.kms-visit-info {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.kms-visit-map {
  min-height: 340px;
  background-color: #f0ebe4;
}
.kms-visit-map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}
.kms-nap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.kms-nap-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.kms-nap-icon {
  color: var(--kms-primary);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.kms-hours-table {
  width: 100%;
  font-size: 0.875rem;
  border-collapse: collapse;
  margin-top: 0.5rem;
}
.kms-hours-table td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid #f0eee8;
}
.kms-hours-table tr.current-day {
  font-weight: 700;
  background-color: var(--kms-primary-light);
  color: var(--kms-primary);
}

/* FAQ Accordion Component */
.kms-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.kms-faq-item {
  background: var(--kms-surface);
  border: 1px solid var(--kms-border);
  border-radius: var(--kms-radius);
  overflow: hidden;
}
.kms-faq-summary {
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.kms-faq-summary::-webkit-details-marker {
  display: none;
}
.kms-faq-icon {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.kms-faq-item[open] .kms-faq-icon {
  transform: rotate(180deg);
}
.kms-faq-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--kms-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Forms: Contact, Delivery, Bulk */
.kms-form-card {
  background: var(--kms-surface);
  border: 1px solid var(--kms-border);
  border-radius: var(--kms-radius);
  padding: 1.75rem 1.25rem;
  box-shadow: var(--kms-shadow-sm);
  max-width: 680px;
  margin: 1.5rem auto;
}
@media (min-width: 600px) {
  .kms-form-card { padding: 2.25rem; }
}
.kms-form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.kms-form-label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--kms-text);
}
.kms-form-label .req {
  color: var(--kms-error);
}
.kms-form-input,
.kms-form-select,
.kms-form-textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--kms-text);
  background-color: var(--kms-bg);
  border: 1px solid var(--kms-border);
  border-radius: var(--kms-radius);
  transition: var(--kms-transition);
}
.kms-form-textarea {
  min-height: 120px;
  resize: vertical;
}
.kms-form-input:focus,
.kms-form-select:focus,
.kms-form-textarea:focus {
  background-color: #ffffff;
  border-color: var(--kms-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.15);
}
.kms-form-alert {
  padding: 1rem;
  border-radius: var(--kms-radius);
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.kms-form-alert.success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.kms-form-alert.error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}
.kms-hp-field {
  display: none !important;
  visibility: hidden !important;
}

/* Single Post Specific */
.kms-post-wrap {
  max-width: 840px;
  margin: 0 auto;
}
.kms-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--kms-text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--kms-border);
}
.kms-toc {
  background: var(--kms-primary-light);
  border-left: 4px solid var(--kms-primary);
  padding: 1.25rem;
  border-radius: var(--kms-radius);
  margin: 1.5rem 0 2rem;
}
.kms-toc-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.kms-toc-list {
  padding-left: 1.25rem;
}
.kms-toc-list a {
  text-decoration: none;
}
.kms-related-cat-block {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--kms-radius);
  padding: 1.25rem;
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Sticky Bottom Mobile Bar */
.kms-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--kms-surface);
  border-top: 1px solid var(--kms-border);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  display: flex;
  height: 60px;
}
@media (min-width: 768px) {
  .kms-mobile-bar {
    display: none;
  }
}
.kms-mobile-bar-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--kms-text);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem;
  border-right: 1px solid var(--kms-border);
}
.kms-mobile-bar-btn:last-child {
  border-right: none;
}
.kms-mobile-bar-btn:hover,
.kms-mobile-bar-btn:active {
  background-color: var(--kms-primary-light);
  color: var(--kms-primary);
}
.kms-mobile-bar-btn svg {
  width: 20px;
  height: 20px;
}

/* Footer */
.kms-footer {
  background-color: #172318;
  color: #e0e5e1;
  padding: 3rem 0 5rem; /* Extra padding bottom for mobile bar */
  font-size: 0.9375rem;
}
@media (min-width: 768px) {
  .kms-footer {
    padding-bottom: 3rem;
  }
}
.kms-footer a {
  color: #e0e5e1;
  text-decoration: none;
}
.kms-footer a:hover {
  color: #a5d6a7;
  text-decoration: underline;
}
.kms-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .kms-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .kms-footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.kms-footer-col h4 {
  color: #ffffff;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.kms-footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background-color: var(--kms-accent);
}
.kms-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.kms-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: 0.8125rem;
  color: #9e9e9e;
}
@media (min-width: 768px) {
  .kms-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.kms-footer-legal-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* SVG placeholder illustrations */
.kms-placeholder-svg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kms-primary);
}

/* ==========================================================================
   RESPONSIVE LAYOUT FIXES (v1.0.1)
   ========================================================================== */
html, body { overflow-x: hidden; max-width: 100%; }
body { padding-bottom: 60px; } /* room for sticky mobile bar */
@media (min-width: 768px) { body { padding-bottom: 0; } }

/* Mobile drawer sub-menus */
.kms-mobile-menu-list .sub-menu { list-style: none; padding-left: 1rem; }
.kms-mobile-menu-list .sub-menu a { font-size: 1rem; font-weight: 500; }

/* Two-column split layouts (replaces invalid inline @media) */
.kms-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 900px) {
  .kms-split-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
  .kms-split-grid.is-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kms-split-grid.is-media-left { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}
.kms-sticky-box { position: static; }
@media (min-width: 900px) { .kms-sticky-box { position: sticky; top: 110px; } }

/* Small-screen refinements */
@media (max-width: 599px) {
  .kms-container { padding-left: 1rem; padding-right: 1rem; }
  h1 { font-size: 1.625rem; }
  h2, .kms-section-title { font-size: 1.375rem; }
  .kms-hero-section { padding: 1.75rem 0 2rem; }
  .kms-hero-actions .kms-btn { width: 100%; }
 
  .kms-section-header { margin-bottom: 1.5rem; }
  .kms-form-card { padding: 1.25rem 1rem; }
  .kms-visit-info { padding: 1.5rem 1rem; }
  .kms-visit-map, .kms-visit-map iframe { min-height: 260px; }
  .kms-related-cat-block { flex-direction: column; align-items: flex-start; }
  .kms-related-cat-block .kms-btn { width: 100%; white-space: normal !important; }
  .kms-price-table { font-size: 0.875rem; }
  .kms-price-table th, .kms-price-table td { padding: 0.6rem 0.65rem; }
  .kms-footer-grid { gap: 1.5rem; }
}
.kms-price-table { min-width: 560px; }
.kms-btn { max-width: 100%; white-space: normal; }
iframe, video, table { max-width: 100%; }
.kms-post-body img { height: auto; }
