/* =========================================================
   DUKA TEMPLATE — MAIN STYLESHEET
   All theme colors are controlled from the :root block below.
   Change values here to re-skin the entire site.
   ========================================================= */

:root {
  --primary-color: #128C7E;      /* main brand color (buttons, links, header) */
  --secondary-color: #075E54;    /* darker shade, used for hover/footer */
  --accent-color: #FF7A00;       /* price tags, badges, highlights */
  --whatsapp-color: #25D366;     /* WhatsApp brand green, used for order buttons */
  --text-color: #222222;
  --text-muted: #6b6b6b;
  --background-color: #ffffff;
  --surface-color: #f6f7f9;
  --border-color: #e4e6e9;
  --danger-color: #d9534f;

  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 10px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  --header-height: 112px;   /* two-row header: logo/search/call row + nav row */
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background: var(--background-color);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.section { padding: 40px 0; }

.section-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  text-align: center;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover { background: var(--secondary-color); }

.btn-whatsapp {
  background: var(--whatsapp-color);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-whatsapp:hover { opacity: 0.9; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--background-color);
  border-bottom: 1px solid var(--border-color);
}

/* ---------- Header Row 1: logo | search | call-to-order ---------- */
.header-row-1 {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  min-width: 0;         /* let children shrink below their intrinsic width */
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.brand img { height: 36px; width: auto; flex-shrink: 0; }
.brand-name { white-space: nowrap; }

.header-search-wrap {
  position: relative;
  flex: 1;
  min-width: 0;         /* allow this flex child to actually shrink on narrow screens */
  max-width: 480px;
  margin: 0 auto;
}

.header-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 9px 16px;
}
.header-search-box i { color: var(--text-muted); font-size: 0.95rem; flex-shrink: 0; }
.header-search-box input {
  flex: 1;
  min-width: 0;         /* prevents the input's intrinsic width from forcing page overflow */
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-color);
}

#searchResults {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 360px;
  overflow-y: auto;
  z-index: 1300;
  padding: 8px 12px;
}
#searchResults.open { display: block; }
#searchResults .search-result-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}
#searchResults .search-result-item:last-child { border-bottom: none; }
#searchResults .search-result-item img {
  width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex-shrink: 0;
}
#searchResults .no-results { padding: 12px 0; color: var(--text-muted); font-size: 0.9rem; }

.call-to-order {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  background: var(--primary-color);
  color: #fff;
  padding: 9px 16px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}
.call-to-order i { font-size: 1rem; }
.call-to-order:hover { background: var(--secondary-color); color: #fff; }

.header-whatsapp-icon-btn {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--whatsapp-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.hamburger {
  display: none;
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-color);
}

/* ---------- Header Row 2: horizontal menu, scrollable with arrows ---------- */
.header-row-2 {
  border-top: 1px solid var(--border-color);
  padding: 4px 0;
}

.nav-scroll-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.nav-arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--surface-color);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background-color 0.15s ease;
}
.nav-arrow:hover { background-color: rgba(18, 140, 126, 0.15); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;               /* let it shrink and scroll internally instead of overflowing the row */
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE/Edge */
}
.main-nav::-webkit-scrollbar { display: none; }  /* Chrome/Safari */

.main-nav a,
.nav-static-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.984rem;        /* base 0.82rem increased 20% */
  color: var(--text-color);
  text-transform: capitalize;
  letter-spacing: 0.01em;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.main-nav a i,
.nav-static-link i { font-size: 1.05rem; color: var(--primary-color); }

.main-nav a:hover,
.main-nav a:visited,
.nav-static-link:hover,
.nav-static-link:visited {
  color: var(--primary-color);
  background-color: rgba(18, 140, 126, 0.09);
}

.main-nav a .mega-caret { font-size: 0.65rem; margin-left: 2px; color: var(--text-muted); }
.main-nav a.has-mega:hover .mega-caret,
.main-nav a.has-mega.mega-active .mega-caret { color: var(--primary-color); }
.main-nav a.has-mega.mega-active {
  color: var(--primary-color);
  background-color: rgba(18, 140, 126, 0.09);
}

/* ---------- Mega menu panel (desktop) ---------- */
.mega-menu-panel {
  display: none;
  position: absolute;     /* overlays page content instead of pushing it down */
  top: 100%;
  left: 0;
  right: 0;
  border-top: 1px solid var(--border-color);
  background: var(--background-color);
  box-shadow: var(--shadow);
  z-index: 1150;
}
.mega-menu-panel.open { display: block; }

.mega-menu-inner { padding: 22px 16px; }

.mega-menu-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px 28px;
}
.mega-menu-grid.active { display: grid; }

.mega-menu-col-title {
  grid-column: 1 / -1;
  margin-bottom: 6px;
}
.mega-menu-col-title a {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary-color);
}

.mega-menu-grid a {
  font-size: 0.85rem;
  color: var(--text-color);
  padding: 5px 0;
  transition: color 0.15s ease;
}
.mega-menu-grid a:hover { color: var(--primary-color); }

/* mobile nav drawer */
.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: var(--background-color);
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  z-index: 1200;
  transition: right 0.25s ease;
  padding: 20px;
  overflow-y: auto;
}
.mobile-nav-panel.open { right: 0; }

.mobile-nav-panel .close-btn {
  background: none; border: none; font-size: 1.5rem; float: right; cursor: pointer;
}

.mobile-nav-panel nav {
  clear: both;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-panel nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.01em;
  font-size: 0.85rem;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-nav-panel nav a i { font-size: 1rem; color: var(--primary-color); width: 18px; text-align: center; }

.mobile-nav-panel nav a:hover,
.mobile-nav-panel nav a:visited {
  color: var(--primary-color);
  background-color: rgba(18, 140, 126, 0.09);
}

/* Mobile accordion for categories with subcategories */
.mobile-nav-item { border-bottom: 1px solid var(--border-color); }
.mobile-nav-item .mobile-nav-row {
  display: flex;
  align-items: center;
}
.mobile-nav-item .mobile-nav-row a {
  flex: 1;
  border-bottom: none;
}
.mobile-subcat-toggle {
  background: none;
  border: none;
  padding: 12px 10px;
  cursor: pointer;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}
.mobile-subcat-toggle.open { transform: rotate(180deg); color: var(--primary-color); }
.mobile-subcat-list {
  display: none;
  flex-direction: column;
  padding: 0 10px 10px 38px;
  gap: 2px;
}
.mobile-subcat-list.open { display: flex; }
.mobile-subcat-list a {
  padding: 8px 6px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: none;
  color: var(--text-muted);
  border-bottom: none;
  border-radius: 4px;
}
.mobile-subcat-list a:hover { color: var(--primary-color); background-color: rgba(18, 140, 126, 0.09); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1100;
  display: none;
}
.nav-overlay.open { display: block; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  padding: 60px 0;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-text { flex: 1 1 320px; }
.hero-text h1 { font-size: 2.2rem; margin-bottom: 14px; line-height: 1.2; }
.hero-text p { font-size: 1.05rem; margin-bottom: 24px; opacity: 0.95; }
.hero-image { flex: 1 1 300px; text-align: center; }
.hero-image img { border-radius: var(--radius); max-height: 320px; margin: 0 auto; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-outline { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }

/* ---------- Category cards ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.category-card {
  background: var(--surface-color);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.category-card:hover { transform: translateY(-4px); }
.category-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.category-card-body { padding: 16px; }
.category-card-body h3 { font-size: 1.1rem; margin-bottom: 10px; }

/* ---------- Product grid & card ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.product-card-media {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background: var(--surface-color);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-card-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.product-card-price {
  font-weight: 700;
  color: var(--accent-color);
  font-size: 1rem;
}

.product-card-body .btn-whatsapp {
  margin-top: auto;
  font-size: 0.68rem;
  padding: 5px 7px;
  gap: 4px;
}

/* ---------- Pagination (category pages) ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 30px 0 10px;
  flex-wrap: wrap;
}
.pagination button {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border-color);
  background: var(--background-color);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}
.pagination button.active,
.pagination a.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}
.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
/* Real server-rendered pager (large catalogs — no JS involved) */
.pagination a {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border-color);
  background: var(--background-color);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pagination a:hover { background-color: rgba(18, 140, 126, 0.09); }
.pagination .pg-disabled {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0.4;
}
.pagination .pg-ellipsis {
  padding: 0 4px;
  color: var(--text-muted);
}
.listing-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 16px 0;
}
.breadcrumb a { color: var(--primary-color); }
.breadcrumb span { margin: 0 6px; }

/* ---------- Product page ---------- */
/* Overall product page layout: main content + right sidebar */
.product-page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: start;
  padding: 20px 0 50px;
}

/* Gap between the featured image column and the product info
   (descriptions/price/category) reduced by 95% (40px -> 2px) */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.gallery-main {
  width: 75%;                 /* featured image reduced 25% from full width */
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  margin-bottom: 12px;
}

/* Short description shown as bullet points, placed after the long description */
.short-desc-list {
  list-style: disc;
  padding-left: 20px;
  color: var(--text-color);
  margin: 10px 0 20px;
}
.short-desc-list li { margin-bottom: 6px; }

/* Right sidebar on single product page */
.product-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: calc(var(--header-height) + 16px);
}
.sidebar-block {
  background: var(--surface-color);
  border-radius: var(--radius);
  padding: 16px;
}
.sidebar-block h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}
.related-product-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}
.related-product-item:last-child { border-bottom: none; }
.related-product-item img {
  width: 48px; height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.related-product-item .rp-info { min-width: 0; }
.related-product-item .rp-title {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.related-product-item .rp-price {
  font-size: 0.8rem;
  color: var(--accent-color);
  font-weight: 700;
}
.sidebar-contact-list { display: flex; flex-direction: column; gap: 10px; }
.sidebar-contact-list .contact-info-item i { font-size: 1rem; }
.sidebar-contact-list .contact-info-item div { font-size: 0.85rem; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }

.gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.gallery-thumbs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--border-color);
  cursor: pointer;
}
.gallery-thumbs img.active { border-color: var(--primary-color); }

.product-info h1 {
  font-size: 1.6rem;
  font-weight: 400;           /* title is not bold, per site spec */
  margin-bottom: 10px;
}

/* Descriptions sit immediately below the title */
.product-descriptions { margin-bottom: 14px; }
.product-descriptions p { color: var(--text-color); margin-bottom: 10px; }
.product-descriptions h2 {
  font-size: 1rem;
  margin: 14px 0 8px;
  font-weight: 700;
}

.product-info .price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 12px;
}

/* Category tag, availability badge and WhatsApp button sit inline */
.product-quick-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.product-info .category-tag,
a.category-tag {
  display: inline-block;
  background: var(--surface-color);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
a.category-tag:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.product-info .short-desc {
  color: var(--text-muted);
  margin-bottom: 20px;
}
.product-quick-info .btn-whatsapp {
  padding: 7px 12px;
  font-size: 0.75rem;
  margin: 0;
}

.availability-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}
.availability-available { background: #e6f7ee; color: #1a7f4e; }
.availability-24h { background: #fff4e0; color: #b5690a; }
.availability-36h { background: #fff4e0; color: #b5690a; }
.availability-48h { background: #ffe9e9; color: #c0392b; }

.product-description h2 {
  font-size: 1.15rem;
  margin: 30px 0 10px;
}
.product-description p { color: var(--text-color); margin-bottom: 10px; }

/* lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 85vh; border-radius: 6px; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none; border: none;
  color: #fff; font-size: 2rem; cursor: pointer;
}

/* ---------- Filter/sort bar ---------- */
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 14px;
  background: var(--surface-color);
  border-radius: var(--radius);
}
.filter-bar input[type="search"],
.filter-bar select {
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9rem;
}
.filter-bar input[type="search"] { flex: 1; min-width: 160px; }

/* ---------- Category page layout: left sidebar + main content ---------- */
.category-page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: start;
  padding-top: 8px;
}

.category-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: calc(var(--header-height) + 16px);
}

.sidebar-subcat-list { display: flex; flex-direction: column; gap: 2px; }
.sidebar-subcat-list li { list-style: none; }
.sidebar-subcat-list a {
  display: block;
  padding: 7px 8px;
  font-size: 0.85rem;
  color: var(--text-color);
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.sidebar-subcat-list a:hover {
  background-color: rgba(18, 140, 126, 0.09);
  color: var(--primary-color);
}
.sidebar-subcat-list a.active {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 600;
  pointer-events: none;
}

/* Category listing grid: 5 columns, 25 products/page max */
.product-grid.grid-5col { grid-template-columns: repeat(5, 1fr); }

/* ---------- About / Contact ---------- */
.page-header {
  background: var(--surface-color);
  padding: 34px 0;
  margin-bottom: 10px;
}
.page-header h1 { font-size: 1.8rem; }

.about-block { margin-bottom: 30px; }
.about-block h2 { font-size: 1.25rem; margin-bottom: 10px; color: var(--primary-color); }
.about-block p { color: var(--text-color); margin-bottom: 8px; }

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 10px;
}
.why-us-card {
  background: var(--surface-color);
  padding: 20px;
  border-radius: var(--radius);
}
.why-us-card i { color: var(--primary-color); font-size: 1.6rem; margin-bottom: 10px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info-list { display: flex; flex-direction: column; gap: 16px; }
.contact-info-item { display: flex; gap: 12px; align-items: flex-start; }
.contact-info-item i { color: var(--primary-color); font-size: 1.2rem; margin-top: 3px; }

.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form input, .contact-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--surface-color);
  padding: 10px 12px;
  border-radius: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--secondary-color);
  color: #fff;
  padding: 46px 0 20px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 2.2fr 1.3fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h4 { margin-bottom: 14px; font-size: 1rem; }
.footer-col p, .footer-col a { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }

/* Categories footer list: 3 columns so 12+ categories don't force
   the footer into an overly tall single column */
.footer-categories-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 16px;
}
.footer-categories-list li { margin-bottom: 4px; }
.footer-categories-list a { font-size: 0.85rem; }

.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; margin-bottom: 10px; }
.social-icons { display: flex; gap: 12px; margin-top: 10px; }
.social-icons a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}

/* ---------- Floating WhatsApp button ---------- */
.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--whatsapp-color);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 900;
  transition: transform 0.15s ease;
}
.floating-whatsapp:hover { transform: scale(1.08); }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid.grid-5col { grid-template-columns: repeat(4, 1fr); }
  .category-page-layout { grid-template-columns: 220px 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .header-row-1 { padding: 10px 0; gap: 10px; }
  .header-row-2 { display: none; }
  .mega-menu-panel { display: none !important; }
  .hamburger { display: block; }
  .call-to-order span { display: none; }
  .call-to-order { padding: 9px; width: 38px; height: 38px; justify-content: center; }
  .header-search-wrap { max-width: none; }
  .section { padding: 30px 0; }
  .page-header { padding: 26px 0; }
  .product-detail { grid-template-columns: 1fr; gap: 2px; }
  .product-page-layout { grid-template-columns: 1fr; }
  .product-sidebar { position: static; }
  .category-page-layout { grid-template-columns: 1fr; }
  .category-sidebar { position: static; }
  .product-grid.grid-5col { grid-template-columns: repeat(3, 1fr); }
  .gallery-main { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .why-us-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-grid.grid-5col { grid-template-columns: repeat(2, 1fr); }
  .hero-text h1 { font-size: 1.7rem; }
  .why-us-grid { grid-template-columns: 1fr; }
  .footer-categories-list { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 26px 0; }
  .hero { padding: 34px 0; }
}

/* Phone widths: tighten paddings and drop the brand text so the
   header never forces horizontal scrolling */
@media (max-width: 600px) {
  .container { padding: 0 14px; }
  .brand-name { display: none; }
  .brand { gap: 0; }
  .header-row-1 { gap: 8px; }
  .header-search-box { padding: 8px 12px; }
  .call-to-order { width: 34px; height: 34px; padding: 0; }
  .header-whatsapp-icon-btn { width: 34px; height: 34px; font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .product-card-body { padding: 10px; gap: 4px; }
  .sidebar-block { padding: 14px; }
  .filter-bar { padding: 12px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-card-title { font-size: 0.85rem; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .footer-categories-list { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 28px 0; }
  .hero-text h1 { font-size: 1.4rem; }
  .section-title { font-size: 1.25rem; }
}
