* {
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background: rgb(230, 230, 230);
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html {
  margin: 0;
  padding: 0;
}

:root {
  --accent: #ff9a00;
  --accent-2: #27ae60;
  --bg: #ffffff;
  --muted: #777;
  --radius: 12px;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* Shop layout: left filters column and centered products area */
.shop {
  display: grid;
  /* left: filters, center: products, right: spacer to keep center column centered */
  grid-template-columns: 260px 1fr 260px;
  gap: 20px;
  align-items: start;
}
#search {
  color: #111 !important;
  -webkit-text-fill-color: #111;
}


.filters {
  grid-column: 1;
  width: 260px;
  background: transparent;
  padding: 16px;
  border-radius: 12px;
  box-shadow: none;
  position: sticky;
  top: 84px;
}

/* Category accordion styles */
.category { margin-bottom: 10px; }

/* Quantity controls: aligned buttons and input */
.quantityControls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quantityControls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #ffffff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.quantityControls input {
  width: 72px;
  height: 40px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  line-height: 40px;
}

.pd-controls .quantityControls button { width: 40px; height: 40px; }
.pd-controls .quantityControls input { width: 72px; height: 40px; }

/* hide native number controls if any browser shows them */
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cat-toggle {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 6px 0;
  font-weight: 600;
  cursor: pointer;
  color: #111;
  font-size: 15px;
}
.cat-toggle:hover,
.cat-toggle:focus {
  opacity: 0.75;
  text-decoration: none;
}
.cat-children {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  padding-left: 6px;
}
.cat-children.open { max-height: 400px; }
.subcat-btn {
  background: transparent;
  border: none;
  color: #111;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
}
.subcat-btn:hover,
.subcat-btn:focus {
  opacity: 0.75;
  text-decoration: none;
}
.subcat-btn.active {
  font-weight: 700;
  text-decoration: underline;
}

/* Category arrow: start pointing right, rotate down when open */
.cat-toggle {
  position: relative;
}
.cat-toggle::after {
  content: '›';
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 180ms ease, opacity 120ms ease;
  margin-left: 8px;
  font-size: 14px;
  color: #111;
}
.cat-toggle.open::after {
  transform: rotate(90deg);
}

/* Ensure filter-area buttons never get the general yellow hover */
.filters .cat-toggle,
.filters .subcat-btn,
.filters .show-all-btn {
  background: transparent !important;
  border: none !important;
  color: #111 !important;
  padding: 6px 0 !important;
}
.filters .cat-toggle:hover,
.filters .subcat-btn:hover,
.filters .show-all-btn:hover {
  background: transparent !important;
  opacity: 0.75 !important;
  text-decoration: none !important;
}

.show-all-btn {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

/* Move search input styling when it's outside the aside */
.products .filter-label { margin-top: 6px; color: #111; }
.products #search {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e3e3e3;
  margin-bottom: 14px;
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}
.products #search::placeholder {
  color: #9a9a9a;
}
.products #search:focus {
  outline: none;
  border-color: #c7c7c7;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.filters .filter-label {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-weight: 700;
}

.filters input[type="text"],
.filters select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.06);
  background: transparent;
  color: #111;
  margin-bottom: 10px;
  font-size: 14px;
}

.filters select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1em + 2px), calc(100% - 13px) calc(1em + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.products { grid-column: 2; display:flex; flex-direction:column; align-items:center; }

.products-header {
  width: 100%;
  max-width: 720px;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
  padding: 0 10px;
}

.sort-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-container label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.sort-container select {
  padding: 8px 12px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  background: white;
  font-size: 14px;
  cursor: pointer;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
}

.sort-container select:hover {
  border-color: rgba(0,0,0,0.24);
}

.sort-container select:focus {
  border-color: var(--accent);
}

/* Center the search and product grid under the logo while keeping filters at left */
.products .filter-label { width: 100%; max-width: 720px; text-align: left; }
.products #search { max-width: 720px; margin: 0 auto; }
.products #productGrid { width: 100%; max-width: 720px; margin: 18px auto 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; justify-items: center; }

/* Product card uniformity */
.product {
  width: 100%;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  transition: transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  min-height: 100%;
}
.product > .productLink {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.product .productLink { display:block; width:100%; text-align:center; }
.product .productImage { max-width: 180px; max-height: 140px; margin: 0 auto; }

/* Product image wrapper with overlay for hover description */
.productImageWrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}
.productDescOverlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.88);
  color: #fff;
  padding: 12px;
  transform: translateY(100%);
  transition: transform 300ms ease;
  font-size: 13px;
  line-height: 1.4;
  max-height: 140px;
  overflow-y: auto;
}
.product:hover .productDescOverlay {
  transform: translateY(0);
}
.productFooter { 
  width: 100%; 
  display: flex; 
  flex-direction: column;
  align-items: stretch; 
  justify-content: flex-end; 
  gap: 8px; 
  margin-top: auto;
}
.productFooter .price { margin: 0; }
.productFooter button {
  margin-top: 4px;
}

@media (max-width: 900px) {
  .shop { grid-template-columns: 1fr; }
  .filters { position: static; width: 100%; grid-column: 1; }
  .products { grid-column: 1; }
}

@media (max-width: 900px) {
  .shop { flex-direction: column; }
  .filters { position: static; width: 100%; top: auto; }
}

/* Top navigation bar */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  height: auto;
  padding: 8px 16px;
  background: rgba(255,255,255,0.98);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
}

/* Hamburger menu button - hidden by default, shown on mobile */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10001;
  position: relative;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active {
  position: fixed;
  right: 16px;
  top: 16px;
}

.hamburger.active span {
  background: #fff;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.topbar .brand img {
  height: 48px; /* slightly larger without growing the header */
  width: auto;
  object-fit: contain;
}

.topnav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.topnav a {
  color: #000000;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.topnav a:hover { background: rgba(255,255,255,0.04); }

.cart-link {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* topbar layout groups */
.topbar-left { display:flex; align-items:center; gap:8px; flex: 1; min-width: 0; }
.topbar-right { margin-left: auto; display:flex; align-items:center; gap:12px; position: relative; flex-shrink: 0; }
.top-search { position: relative; width: 100%; max-width: 500px; }
.top-search input { width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid #ddd; font-size: 15px; background: #f8f8f8; transition: all 0.2s ease; }
.topbar-left .brand { margin-right: 4px; flex-shrink: 0; }
.top-search input:focus { outline: none; box-shadow: 0 4px 12px rgba(255,154,0,0.15); border-color: var(--accent); background: #fff; }

/* Autocomplete suggestions dropdown */
.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  max-height: 400px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.search-suggestions.visible {
  display: block;
}

.search-suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.15s ease;
}

.search-suggestion-item:last-child {
  border-bottom: none;
}

.search-suggestion-item:hover {
  background: #f8f8f8;
}

.search-suggestion-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
}

.search-suggestion-item .suggestion-info {
  flex: 1;
  cursor: pointer;
}

.search-suggestion-item .suggestion-name {
  font-weight: 600;
  color: #222;
  margin: 0 0 2px 0;
}

.search-suggestion-item .suggestion-price {
  font-size: 13px;
  color: #777;
  margin: 0;
}

.search-suggestion-item .suggestion-add-btn {
  padding: 4px;
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.search-suggestion-item .suggestion-add-btn:hover {
  background: #e88a00;
  transform: scale(1.05);
}

.search-suggestion-item mark {
  background: #fff3cd;
  padding: 1px 2px;
  border-radius: 2px;
}

.cart-count {
  background: #cc354e;
  color: #fff;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 12px;
}

/* Instant cart preview popup */
.cart-preview {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 320px;
  max-width: calc(100vw - 24px);
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  padding: 12px;
  z-index: 9998;
  display: none;
  max-height: 80vh;
  overflow-y: auto;
}
.cart-preview.open { display: block; }
.cart-preview h4 { margin: 0 0 8px 0; font-size: 14px; color: #111; }
.cart-preview .empty { text-align: center; color: #777; padding: 18px 6px; }
.cart-preview .cartItem { display:flex; gap:8px; align-items:center; padding:6px 0; border-bottom: 1px solid #f0f0f0; }
.cart-preview .cartItem:last-child { border-bottom: none; }
.cart-preview .cartItem img { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; }
.cart-preview .cartItem .meta { flex: 1; }
.cart-preview .cartItem .meta .name { font-weight:700; color:#111; font-size:13px; }
.cart-preview .cartItem .meta .qty { color:#666; font-size:12px; margin-top:3px; }
.cart-preview .cartTotal { display:flex; justify-content:space-between; align-items:center; padding-top:8px; font-weight:700; color:#111; }
.cart-preview .cart-actions { display:flex; gap:8px; margin-top:10px; }
.cart-preview .cart-actions a, .cart-preview .cart-actions button { flex:1; text-decoration:none; border:none; background:#27ae60; color:#fff; padding:8px 10px; border-radius:8px; cursor:pointer; text-align:center; }
.cart-preview .cart-actions a.secondary { background:#ffffff; color:#111; border:1px solid #e6e6e6; }
.cart-preview .remove-small { background: transparent; border: none; color: #999; font-size: 16px; padding: 6px; cursor: pointer; border-radius: 6px; }
.cart-preview .remove-small:hover { color: #cc354e; }

@media (max-width: 700px) {
  .topnav { display: none; }
}

.productName {
  text-align: start;
  font-size: 18px;
  font-weight: bold;
  color: #000000;
}
h1 {
  text-align: center;
  margin-bottom: 5px;
  color: #111;
}

h2 {
  text-align: center;
  margin-bottom: 15px;
  color: #111;
}

/* Make most headings dark by default so they're readable on light backgrounds */
h3 {
  color: #111;
}

.productImage {
  display: block;
  width: 100%;
  max-width: 365px;
  height: auto;
  margin: 0 auto 10px;
  object-fit: contain;
}
.price {
  text-align: start;
  font-size: 15px;
  font-weight: bold;
  color: #27ae60;
}

p {
  text-align: center;
  color: #ffa600;
  margin-top: 0;
}

.subtitle {
  text-align: center;
  color: #ffa600;
  font-weight: bold;
  margin-bottom: 25px;
}

/* Hero section */
.hero {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, rgba(255,154,0,0.08), rgba(39,174,96,0.04));
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.hero-content { flex: 1; }
.hero h2 { margin: 0 0 12px 0; font-size: 24px; color: #111; line-height: 1.3; font-weight: 700; }
.hero p { margin: 0 0 16px 0; color: #555; font-size: 16px; line-height: 1.5; }
.hero-visual { width: 200px; display:flex; align-items:center; justify-content:center; flex-shrink: 0; }
.hero-visual img { max-width: 100%; height: auto; object-fit: contain; }
.hero-actions { display:flex; gap:12px; align-items:center; flex-wrap: wrap; }
.btn-primary { display:inline-block; background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration:none; font-weight:700; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.12); }
.btn-ghost { display:inline-block; background: transparent; color: #111; padding: 10px 12px; border-radius: 8px; text-decoration:none; border:1px solid rgba(0,0,0,0.06); }
.btn-back { display: inline-flex; align-items: center; gap: 8px; background: #f5f5f5; color: #333; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: all 0.2s ease; border: 1px solid #e0e0e0; }
.btn-back:hover { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateX(-2px); }
.btn-back::before { content: '←'; font-size: 18px; }

/* Footer */
.site-footer {
  background: #2c2c2c;
  color: #e0e0e0;
  padding: 32px 20px;
  margin-top: 60px;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
  border-top: 3px solid var(--accent);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-copyright {
  font-size: 14px;
  color: #b0b0b0;
}

.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(255, 154, 0, 0.4);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #b0b0b0;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-social {
    order: -1;
  }
}

@media (max-width: 900px) {
  .hero { flex-direction: column; align-items: stretch; padding: 20px 16px; }
  .hero-visual { width: 100%; text-align:center; margin-top: 16px; }
  .hero h2 { font-size: 22px; text-align: center; }
  .hero p { text-align: center; font-size: 15px; }
  .hero-actions { justify-content: center; }
}

/* Hero open/closed variants */
.hero.open { box-shadow: 0 12px 28px rgba(39,174,96,0.12); border-left: 6px solid var(--accent-2); }
.hero.open .hero h2 { color: #0b5a2b; }
.hero.open .store-status { background: var(--accent-2); color: #fff; }
.hero.closed { box-shadow: 0 12px 28px rgba(204,53,78,0.12); border-left: 6px solid #cc354e; }
.hero.closed .hero h2 { color: #7a1f2b; }
.hero.closed .store-status { background: #cc354e; color: #fff; }

.store-status { display:inline-block; padding:6px 10px; border-radius:999px; font-weight:700; margin-left:8px; font-size:13px; }

.hero-time { margin: 8px 0 12px 0; color: #444; font-weight:600; }
.hero-time strong { color: #111; }
.store-hours #currentTime { font-weight:700; }

.fullLogo {
  width: 200px;
  display: block;
  margin: 0 auto;
}

.smallLogo {
  width: 80px;
  margin-left: -30px;
}

form {
  background: rgb(133, 125, 121);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

label {
  display: block;
  margin-bottom: 15px;
  font-weight: 500;
}

input, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #2ecc71;
}

button {
  width: 100%;
  padding: 12px;
  background: #ffa600;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #c47f00;
}

.info {
  margin-top: 15px;
  font-size: 12px;
  color: #c0c0c0;
  text-align: center;
}

.order {
  background: rgb(133, 121, 130);
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.order h3 {
  margin: 0 0 8px 0;
}

.order p {
  margin: 4px 0;
  font-size: 14px;
}

.status {
  margin-top: 10px;
  font-weight: bold;
}

.status.new {
  color: orange;
}

.status.confirmed {
  color: greenyellow;
}

.status.packing {
  color: purple;
}

.status.delivering {
  color: dodgerblue;
}

.status.done {
  color: rgb(0, 255, 0);
}

.status.pause {
  color: rgb(255, 0, 0);
}

.status.queue {
  color: rgb(255, 230, 0);
}

.order button {
  margin-top: 10px;
  margin-right: 5px;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: white;
  font-weight: 600;
  transition: all 0.2s ease;
}

.order button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.order button:active {
  transform: translateY(0);
}

/* Product cards styling to match admin order boxes */
.product {
  background: rgb(255, 255, 255);
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  aspect-ratio: 3 / 4; /* taller boxes: width / height = 3/4 so boxes are taller than wide */
  overflow: hidden;
}

.product h3 {
  margin: 0 0 8px 0;
  color: #000;
  font-size: 16px;
  /* allow up to three lines so longer names are readable */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2em;
  max-height: 3.6em;
}

/* Override to prevent clipping of product content (buttons) */
.product {
  overflow: visible !important;
  aspect-ratio: auto !important;
  justify-content: flex-start !important;
  min-height: 280px !important;
}

.product p {
  margin: 4px 0;
  font-size: 14px;
  color: #e1e1e1;
}

.product .price {
  font-size: 15px;
  font-weight: bold;
  color: #27ae60;
  flex-shrink: 0;
}

.product button {
  margin-top: 10px;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 6px;
  border: none;
  background: #ffa600;
  color: white;
  cursor: pointer;
  flex-shrink: 0;
}

/* Temporary visibility fix: ensure add-to-cart buttons are visible */
.product button {
  display: block !important;
  width: calc(100% - 0px) !important;
  position: relative !important;
  z-index: 30 !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18) !important;
  border: 2px solid rgba(0,0,0,0.08) !important;
}

/* Footer row: align price and button and push to bottom of card */

.productFooter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  gap: 8px;
  height: 88px; /* fixed footer height so price/button align across cards */
  padding-top: 6px;
}

.productUnit {
  font-size: 11px;
  color: #666 !important;
  margin: 0;
  font-weight: 400;
}

.stockStatus {
  font-size: 10px;
  font-weight: 600;
  margin: 2px 0 0 0;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.stockStatus.in-stock {
  color: #27ae60;
  background: rgba(39, 174, 96, 0.1);
}

.stockStatus.low-stock {
  color: #f39c12;
  background: rgba(243, 156, 18, 0.1);
}

.stockStatus.out-of-stock {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
}

.product.out-of-stock {
  opacity: 0.6;
}

.product.out-of-stock button {
  background: #999 !important;
  cursor: not-allowed !important;
}

.productFooter .price {
  margin: 0;
  color: #27ae60;
  font-weight: 700;
}

/* Ensure footer button isn't forced full-width and aligns under price */
.productFooter button {
  width: auto !important;
  display: inline-block !important;
  padding: 8px 12px !important;
  align-self: center !important;
}

.productImage {
  flex: 0 0 auto;
  width: auto;
  max-width: 80%;
  max-height: 70%; /* allow bigger image height inside taller box */
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Make product images uniform in the product grid */
.product .productImage {
  width: 100%;
  height: 160px;
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
}

/* Remove underline and default link color from product title/link */
.productLink {
  text-decoration: none;
  color: inherit;
  display: block;
}
.productLink:visited { color: inherit; }

/* Product detail page image sizing */
#productDetail .productImage, #pdImage {
  width: 100%;
  max-width: 420px;
  height: 360px;
  object-fit: contain;
  display: block;
  margin: 0 auto 16px;
}

.productDetail {
  background-color: #ffffff;
  color: #222;
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  max-width: 900px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Product detail box specific overrides */
.productDetail h1,
.productDetail h3 {
  color: #111;
  text-align: left;
}
.productDetail p {
  color: #444;
  text-align: left;
}
.productDetail .price {
  color: #27ae60;
  font-size: 18px;
  font-weight: 800;
}
.productDetail button {
  width: auto;
  max-width: 260px;
  align-self: flex-start;
  padding: 10px 16px;
}

/* Product detail page controls styling */
.pd-controls {
  margin-top: 8px;
}
.pd-controls .quantityControls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pd-controls .quantityControls button {
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  color: #111 !important;
  font-size: 18px !important;
  border-radius: 6px !important;
}
.pd-controls #pdQty {
  min-width: 28px;
  display: inline-block;
  text-align: center;
  font-weight: 700;
}
.pd-controls #pdAddBtnNew {
  background: #ffa600;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}


/* Product grid layout: 4 columns desktop, responsive down to mobile */
#productGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: start;
}

/* Make product cards the same size */
#productGrid { align-items: stretch; }
.product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  height: 360px; /* fixed card height for uniformity */
  padding: 14px;
}

/* Ensure image area keeps consistent size and centers image */
.product .productImage {
  width: 100%;
  height: 180px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
}

@media (max-width: 1000px) {
  #productGrid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  #productGrid { grid-template-columns: repeat(2, 1fr); }
  .product { height: auto; }
  .product .productImage { height: 140px; }
}

/* Order products grid on tracking page (reuse product card styles) */
.orderProductsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 10px;
}

@media (max-width: 1000px) {
  .orderProductsGrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .orderProductsGrid {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  .orderProductsGrid .product {
    min-width: 200px;
    min-height: 200px;
    flex: 0 0 auto;
  }
}

/* Box for order items on tracking page - text list inside a nice card */
.orderItemsBox {
  background: rgb(133, 121, 130);
  padding: 12px;
  border-radius: 12px;
  margin-top: 8px;
  box-shadow: 0 5px 12px rgba(0,0,0,0.04);
}
.orderItemsBox ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.orderItemsBox li {
  padding: 8px 6px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  color: #eaeaea;
  font-size: 14px;
}
.orderItemsBox li:last-child { border-bottom: none; }

/* Ingredients list on product page */
.ingredientsText {
  color: #eaeaea;
  margin: 8px 0 0 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.4;
}

.orderItemsBox .unitPrice {
  color: #d1f0d8;
  margin-left: 6px;
}
.orderItemsBox .lineTotal {
  color: #fff;
  font-weight: 700;
  margin-left: 6px;
}
.orderTotal {
  margin-top: 10px;
  text-align: right;
  font-size: 16px;
  color: #ffffff;
}

/* Map embed inside admin order card */
.orderMap {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  max-width: 420px;
}
.orderMap iframe {
  width: 100%;
  height: 200px;
  border: 0;
  display: block;
}
.orderMap a {
  display: inline-block;
  padding: 8px 12px;
  background: #ffffff;
  color: #222;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 1000px) {
  #productGrid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  #productGrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  /* Switch to horizontal scroll on small screens */
  #productGrid {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .product {
    /* keep square feel but larger on mobile swipe */
    min-width: 200px;
    min-height: 200px;
    flex: 0 0 auto;
    scroll-snap-align: center;
    padding: 10px;
  }

  .product h3 { font-size: 14px; }
  .product .price { font-size: 14px; }
  .productImage { max-width: 140px; }
}

/* Cart */

#cartItems {
  max-width: 820px;
  margin: 22px auto;
  display: grid;
  gap: 12px;
  padding: 0 8px;
}

.cartItem {
  display: grid;
  grid-template-columns: 72px 2fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}

.quantityControls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantityControls button {
  width: 30px;
  height: 30px;
  color: #ffa600;
}

/* Ensure product card quantity buttons are small, visible and not overridden by .product button rules */
.product .quantityControls button {
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  color: #111 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

.product .quantityControls .quantityBadge {
  min-width: 28px;
  display: inline-block;
  text-align: center;
  font-weight: 700;
}

.removeBtn {
  width: 36px;
  height: 36px;
  color: #111;
  border: 1px solid rgba(0,0,0,0.06);
  background: #f8f8f8;
  cursor: pointer;
  transition: all 200ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.removeBtn:hover {
  background: #cc354e;
  color: #fff;
  border-color: #cc354e;
}

.cartItemImage {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
}

/* Cart summary box and actions */
#cartSummary {
  max-width: 820px;
  margin: 16px auto;
  padding: 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  text-align: right;
}

.cart-actions-inline { display:flex; gap:10px; align-items:center; justify-content:flex-end; margin-top: 12px; }

.checkoutBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--accent-2);
  color: white;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(39,174,96,0.14);
  border-radius: 10px;
  transition: transform 200ms ease, box-shadow 200ms ease, opacity 160ms ease;
  height: 44px;
  box-sizing: border-box;
}
.checkoutBtn:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(39,174,96,0.18); opacity: 0.98; }

.btn-ghost { display:inline-flex; align-items: center; justify-content: center; background: transparent; color: #111; padding: 10px 12px; border-radius: 8px; text-decoration:none; border:1px solid rgba(0,0,0,0.06); height: 44px; box-sizing: border-box; }
.btn-ghost:hover { background: rgba(0,0,0,0.02); transform: translateY(-1px); }

.goBack { padding: 10px 12px; border-radius: 8px; font-weight:600; }

#totalPrice {
  color: #111;
  font-weight: 700;
}

.productName2 {
  color: #111;
  font-weight: 700;
}

.quantity2 {
  color: #111;
  font-weight: 700;
}

.goBack {
  color: #111;
  text-decoration: none;
  font-size: 16px;
  display: inline-block;
  margin-top: 20px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}

/* Responsive polish: better stacking and mobile-friendly controls */
@media (max-width: 700px) {
  .topbar .brand img { height: 40px; }

  .shop { grid-template-columns: 1fr; gap: 16px; }
  .filters { 
    position: static; 
    width: 100%; 
    order: 1; 
    top: auto; 
    padding: 16px; 
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 16px;
  }
  .products { grid-column: 1; order: 2; width: 100%; }
  .products #productGrid { max-width: 100%; grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Cart preview better positioning on mobile */
  .cart-preview {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    top: 70px !important;
    width: calc(100vw - 24px) !important;
    max-width: 360px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    z-index: 9998;
  }

  /* Hamburger button z-index */
  .hamburger {
    z-index: 10000;
  }

  /* Cart link higher z-index to be clickable */
  .cart-link {
    z-index: 10000;
    position: relative;
  }
}

@media (max-width: 420px) {
  .topbar .brand img { height: 36px; }
  .product { padding: 8px; }
  .product .productImage { max-width: 120px; }
  .product .productName { font-size: 14px; }
  
  .cart-preview { 
    top: 60px !important;
    width: calc(100vw - 16px) !important;
    padding: 10px;
  }
}

/* Order Tracking Animations */
.statusAnimation {
  display: inline-block;
  margin-left: 12px;
  font-size: 2em;
  vertical-align: middle;
}

/* Packing animation - box lid opening and closing */
@keyframes packingBox {
  0%, 100% { transform: rotateX(0deg); }
  50% { transform: rotateX(-20deg); }
}

.status-packing .statusAnimation {
  animation: packingBox 1.5s ease-in-out infinite;
  transform-origin: bottom;
}

/* Delivering animation - bike/vehicle moving */
@keyframes cycling {
  0%, 100% { transform: translateX(0) scale(1); }
  25% { transform: translateX(8px) scale(1.05); }
  50% { transform: translateX(0) scale(1); }
  75% { transform: translateX(-8px) scale(1.05); }
}

.status-delivering .statusAnimation {
  animation: cycling 2s ease-in-out infinite;
}

/* Done animation - checkmark scale in */
@keyframes checkmarkAppear {
  0% { transform: scale(0) rotate(-45deg); opacity: 0; }
  50% { transform: scale(1.2) rotate(0deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.status-done .statusAnimation {
  animation: checkmarkAppear 0.6s ease-out;
  color: #4CAF50;
}

/* Pause animation - gentle pulse */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

.status-pause .statusAnimation {
  animation: pulse 2s ease-in-out infinite;
  color: #FF9800;
}

/* Queue animation - waiting dots */
@keyframes queueBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
}

.status-queue .statusAnimation {
  animation: queueBounce 1.5s ease-in-out infinite;
  color: #2196F3;
}

/* New order - gentle glow */
@keyframes newGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.status-new .statusAnimation {
  animation: newGlow 2s ease-in-out infinite;
  color: #9C27B0;
}

/* ========================================
   MOBILE RESPONSIVENESS - HAMBURGER MENU
======================================== */

/* Mobile: Show hamburger, hide normal nav, make search full width */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .topbar {
    height: auto;
    min-height: 60px;
    flex-wrap: wrap;
    padding: 10px 12px;
  }

  .topbar-left {
    flex: 1;
    min-width: 0;
    gap: 6px;
  }

  .topbar-right {
    order: 2;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .top-search {
    order: 3;
    width: 100%;
    margin-top: 10px;
    max-width: 100%;
  }

  .top-search input {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 12px;
  }

  /* Navigation menu - mobile overlay */
  .topnav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #ff9a00 0%, #e88a00 100%);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 24px;
    gap: 4px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    transition: right 0.3s ease, visibility 0s 0.3s;
    z-index: 10000;
    overflow-y: auto;
    display: flex !important;
    visibility: hidden;
  }

  .topnav.active {
    right: 0;
    visibility: visible;
    transition: right 0.3s ease;
  }

  .topnav a {
    width: 100%;
    padding: 16px 12px;
    color: #fff !important;
    font-size: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: block !important;
  }

  .topnav a:hover {
    background: rgba(255,255,255,0.15) !important;
  }

  /* Overlay removed from CSS - now handled by JavaScript */
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* Prevent scrolling when menu is open */
  body.menu-open {
    overflow: hidden;
  }

  /* Brand logo smaller on mobile */
  .topbar .brand img {
    height: 36px;
  }

  /* Cart link stays visible */
  .cart-link {
    font-size: 18px;
    z-index: 56;
  }
}

/* Tablet cart adjustments */
@media (max-width: 768px) {
  #cartItems {
    padding: 0 12px;
    gap: 10px;
  }

  .cartItem {
    grid-template-columns: 60px 1fr auto !important;
    grid-template-rows: auto auto;
    gap: 10px !important;
    padding: 12px !important;
  }

  /* Image takes 2 rows on left */
  .cartItem > img {
    grid-row: 1 / 3;
    width: 60px !important;
    height: 60px !important;
  }

  /* Product name and price on row 1, column 2 */
  .cartItem > div:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  /* Quantity controls on row 2, column 2 */
  .cartItem > div:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  /* Total price on row 1, column 3 */
  .cartItem > div:nth-child(4) {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: start;
  }

  /* Remove button on row 2, column 3 */
  .cartItem > button {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    align-self: end;
  }

  .quantityControls {
    gap: 6px !important;
  }

  .quantityControls button {
    width: 28px !important;
    height: 28px !important;
    font-size: 15px !important;
  }

  .removeBtn {
    width: 32px !important;
    height: 32px !important;
  }

  .productName2 {
    font-size: 14px;
  }

  .price {
    font-size: 14px;
  }

  #cartSummary {
    padding: 14px 12px !important;
    margin: 12px;
  }

  #totalPrice {
    font-size: 20px;
  }

  .cart-actions-inline {
    flex-direction: column;
    gap: 10px;
  }

  .cart-actions-inline a {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile cart adjustments (600-768px) */
@media (max-width: 600px) {
  .cartItem > img {
    width: 56px !important;
    height: 56px !important;
  }

  .quantityControls button {
    width: 26px !important;
    height: 26px !important;
    font-size: 14px !important;
  }

  .removeBtn {
    width: 30px !important;
    height: 30px !important;
  }

  .productName2 {
    font-size: 13px;
  }

  .price {
    font-size: 13px;
  }
}

/* Extra small mobile adjustments */
@media (max-width: 480px) {
  .topbar {
    padding: 8px 10px;
  }
  
  .topbar .brand img {
    height: 36px;
  }

  .topnav {
    width: 260px;
  }

  .hero {
    padding: 16px 12px;
    border-radius: 12px;
  }
  
  .hero-content h2 {
    font-size: 20px;
  }

  .hero-content p {
    font-size: 14px;
  }
  
  .hero-time {
    font-size: 14px;
  }
  
  .store-status {
    font-size: 11px;
    padding: 4px 8px;
  }

  .container {
    padding: 12px 8px;
  }
  
  .subtitle {
    font-size: 16px;
    margin-bottom: 16px;
  }

  /* Product cards stack better on small screens */
  .product {
    max-width: 100%;
    padding: 10px 8px;
  }
  
  .product .productImage {
    max-height: 100px !important;
    height: 100px;
  }
  
  .productName {
    font-size: 13px !important;
  }
  
  .price {
    font-size: 14px !important;
  }

  /* Make buttons touch-friendly */
  button, .btn-primary, .btn-ghost {
    min-height: 48px;
    padding: 12px 16px;
    font-size: 15px;
  }
  
  .hero-actions a {
    padding: 12px 20px;
    font-size: 15px;
    width: 100%;
    text-align: center;
  }

  /* Cart items more compact */
  .cartItem {
    grid-template-columns: 52px 1fr auto !important;
    gap: 8px !important;
    padding: 10px !important;
  }

  .cartItem > img {
    width: 52px !important;
    height: 52px !important;
  }

  .quantityControls {
    gap: 5px !important;
  }

  .quantityControls button {
    width: 24px !important;
    height: 24px !important;
    font-size: 13px !important;
  }

  .quantityControls .quantity2 {
    font-size: 13px;
    min-width: 20px;
  }

  .removeBtn {
    width: 28px !important;
    height: 28px !important;
    font-size: 14px !important;
  }

  .productName2 {
    font-size: 12px;
  }

  .price {
    font-size: 12px;
  }

  #cartSummary {
    padding: 12px 10px !important;
    margin: 10px;
  }

  #totalPrice {
    font-size: 18px;
  }

  /* Form inputs larger for mobile */
  input, select, textarea {
    font-size: 16px; /* Prevents iOS zoom */
    min-height: 44px;
  }
}

/* Tablet - slightly reduce hamburger breakpoint */
@media (max-width: 900px) and (min-width: 769px) {
  .top-search input {
    max-width: 400px;
  }
}

/* Improve product grid on tablets */
@media (max-width: 900px) and (min-width: 600px) {
  #productGrid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  }
}

/* Mobile product grid */
@media (max-width: 599px) {
  #productGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 4px;
  }

  .product {
    padding: 12px 10px;
    max-width: 100%;
    border-radius: 10px;
  }

  .product .productImage {
    max-width: 100% !important;
    max-height: 120px !important;
    height: 120px;
    object-fit: contain;
  }

  .productName {
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 6px;
  }

  .price {
    font-size: 15px;
    font-weight: 700;
  }
  
  .product button {
    font-size: 13px;
    padding: 10px 12px;
    width: 100%;
  }
}

/* Hero section mobile improvements */
@media (max-width: 768px) {
  .hero {
    padding: 18px 14px;
    gap: 16px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .hero-actions a {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 12px 16px;
  }

  .hero-visual {
    max-width: 180px;
    margin: 0 auto;
  }
  
  .hero-visual img {
    max-width: 100%;
  }
}

/* Footer mobile improvements */
@media (max-width: 600px) {
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

  .footer-social {
    gap: 16px;
  }
}

/* ===================================
   PRICE ANCHORING STYLES
   =================================== */
   
/* Price container for anchoring effect */
.priceContainer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  width: 100%;
}

/* Original (strikethrough) price */
.originalPrice {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
  font-weight: 400;
  line-height: 1;
}

/* Discounted price - make it stand out */
.price.discounted {
  color: #e74c3c !important;
  font-weight: 700 !important;
  font-size: 15px;
  line-height: 1;
}

/* Savings badge */
.savingsBadge {
  background: #e74c3c;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1;
  white-space: nowrap;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .originalPrice {
    font-size: 12px;
  }
  
  .price.discounted {
    font-size: 15px;
  }
  
  .savingsBadge {
    font-size: 10px;
    padding: 2px 6px;
  }
}
