:root {
  --bg-cream: #e8dcbd;
  --bg-surface: #f4e9ce;
  --bg-muted: #dfd0aa;
  --primary: #111820;
  --primary-hover: #202d37;
  --primary-light: #e4f7f8;
  --accent: #f58220;
  --accent-hover: #d96d10;
  --accent-light: #fff3e5;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --text-main: #17212a;
  --text-muted: #596873;
  --border-color: #cdbb8e;
  --danger: #c93b2b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(17, 24, 32, 0.07);
  --shadow-md: 0 8px 24px rgba(17, 24, 32, 0.11);
  --shadow-lg: 0 18px 40px rgba(17, 24, 32, 0.17);
  --container-max: 1240px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top announcement bar */
.top-bar {
  background-color: var(--primary);
  color: #f4f1ea;
  font-size: 0.85rem;
  padding: 0.55rem 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-bar-badges {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar-link {
  color: #fde0c8;
  text-decoration: underline;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.9rem 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.brand-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.brand-text h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* Search Bar */
.search-wrapper {
  flex: 1;
  max-width: 440px;
  min-width: 220px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-surface);
  font: inherit;
  font-size: 0.92rem;
  color: var(--text-main);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 67, 49, 0.12);
}

.search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.95rem;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
  box-shadow: var(--shadow-sm);
}

.cart-trigger-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.cart-count-badge {
  background-color: var(--accent);
  color: #fff;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Hero Section */
.hero {
  padding: 2.5rem 0 2rem;
}

.hero-card {
  background: linear-gradient(130deg, #1b3b2b 0%, #2b5842 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  color: #fde4ce;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-content h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.8rem, 3.2vw, 2.65rem);
  line-height: 1.18;
  margin-bottom: 1rem;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.02rem;
  max-width: 58ch;
  margin-bottom: 1.5rem;
}

.hero-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-step {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-step strong {
  background: var(--accent);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
}

.hero-visual {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.hero-visual h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.2rem;
  color: #fde4ce;
}

.hero-visual ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-direct-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background-color: var(--whatsapp);
  color: #0d2616;
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s, transform 0.15s;
}

.hero-direct-wa:hover {
  background-color: #20bd5a;
  transform: translateY(-1px);
}

/* Filter & Toolbar Section */
.catalog-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.category-pills {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

.category-pill {
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.category-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.category-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.toolbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--bg-surface);
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.results-info {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.toolbar-filters {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.stock-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}

.stock-toggle input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.sort-select {
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-cream);
  font: inherit;
  font-size: 0.88rem;
  color: var(--text-main);
}

/* Product Grid */
.product-grid {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.product-grid::before {
  content: "Gurme Market";
  position: absolute;
  z-index: -1;
  inset: 12% 0 auto;
  color: #08a9ba;
  opacity: 0.055;
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
  transform: rotate(-18deg);
  pointer-events: none;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card.out-of-stock {
  opacity: 0.72;
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-muted);
  overflow: hidden;
  cursor: pointer;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.05);
}

.badge-region {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.badge-highlight {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.badge-soldout {
  position: absolute;
  inset: 0;
  background: rgba(30, 36, 32, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.product-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.unit-pill {
  background: var(--bg-muted);
  color: var(--primary);
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
}

.product-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
  cursor: pointer;
}

.product-title:hover {
  color: var(--primary);
}

.product-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.product-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.in-cart-pill {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 67, 49, 0.2);
}

.card-Draft-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  align-items: stretch;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-add-cart {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-add-cart:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn-add-cart:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.card-qty-control {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-cream);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-width: 96px;
}

.card-qty-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
}

.card-qty-btn:hover {
  background: rgba(31, 67, 49, 0.1);
}

.card-qty-value {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  padding: 0 0.25rem;
}

.btn-quick-wa {
  background: #e9f9ef;
  color: #136f36;
  border: 1px solid #b8ebc9;
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
  width: 100%;
  text-align: center;
}

.btn-quick-wa:hover:not(:disabled) {
  background: #d2f4df;
}

/* Confirm Dialog & Toast */
.confirm-dialog {
  max-width: 430px;
}

.confirm-product-box {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  background: var(--bg-cream);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 1.1rem;
}

.confirm-product-box img {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.confirm-qty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.1rem;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0.65rem;
}

.btn-cancel-confirm {
  background: var(--bg-muted);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-approve-confirm {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-approve-confirm:hover {
  background: var(--primary-hover);
}

.btn-approve-confirm.is-danger {
  background: var(--danger);
}

.btn-approve-confirm.is-danger:hover {
  background: #a92f21;
}

.confirm-message-text {
  color: var(--text-main);
  font-size: 0.94rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.toast-notification {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 60;
  background: var(--primary);
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
  margin-bottom: 3rem;
}

.empty-state h3 {
  font-family: 'Lora', Georgia, serif;
  margin-bottom: 0.5rem;
}

/* Dialogs (Native HTML <dialog> with closedby="any") */
dialog {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--bg-surface);
  color: var(--text-main);
  padding: 0;
  max-width: 540px;
  width: calc(100% - 2rem);
  margin: auto;
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  background-color: rgba(18, 28, 22, 0.55);
  backdrop-filter: blur(3px);
  overflow: hidden;
  overscroll-behavior: contain;
}

/* Cart Drawer Dialog */
.cart-dialog {
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  max-width: 440px;
  width: 100%;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.dialog-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: inherit;
}

.dialog-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dialog-header h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.3rem;
  color: var(--primary);
}

.dialog-close-btn {
  background: var(--bg-muted);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text-main);
}

.dialog-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}

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

.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-color);
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.cart-item-info h4 {
  font-size: 0.92rem;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.cart-item-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.cart-qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.cart-qty-box button {
  background: var(--bg-cream);
  border: none;
  padding: 0.2rem 0.55rem;
  cursor: pointer;
  font-weight: 700;
}

.cart-qty-box span {
  padding: 0.15rem 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.cart-note-box {
  margin-top: 1.25rem;
}

.cart-note-box label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.cart-note-box textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 0.86rem;
  resize: vertical;
  min-height: 62px;
}

.kvkk-notice-pill {
  margin-top: 1rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  line-height: 1.45;
}

.dialog-footer {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-cream);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
  font-size: 1.05rem;
}

.cart-summary-row strong {
  font-size: 1.35rem;
  color: var(--primary);
}

.btn-wa-checkout {
  width: 100%;
  background: var(--whatsapp);
  color: #0d2616;
  border: none;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  transition: background-color 0.2s;
}

.btn-wa-checkout:hover:not(:disabled) {
  background: #20bd5a;
}

.btn-wa-checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-clear-cart {
  width: 100%;
  margin-top: 0.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-decoration: underline;
  cursor: pointer;
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: #e4ece7;
  padding: 3rem 0 2rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-family: 'Lora', Georgia, serif;
  color: #fde4ce;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.footer-brand-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand-heading img {
  display: block;
  width: 42px;
  height: 42px;
  border: 2px solid #c86428;
  border-radius: 50%;
  object-fit: cover;
}

.footer-col p,
.footer-col li {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.footer-col a {
  color: #fff;
  text-underline-offset: 3px;
}

.footer-map {
  display: block;
  width: 100%;
  min-height: 210px;
  border: 0;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Floating Mobile Cart Bar */
.floating-cart-bar {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 35;
  background: var(--primary);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center;
  justify-content: space-between;
  border: 2px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
}

.floating-cart-bar.visible {
  display: flex;
}

@media (max-width: 820px) {
  .hero-card {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.35rem;
  }

  .search-wrapper {
    order: 3;
    max-width: 100%;
    flex-basis: 100%;
  }
}

/* Brand and page sections */
body {
  background: #faf6f0;
  background-image: radial-gradient(rgba(31, 67, 49, 0.04) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
}

.top-bar {
  background: #1f4331;
  border-bottom: 2px solid #c86428;
}

.site-header {
  background: rgba(250, 246, 240, 0.96);
  box-shadow: 0 4px 16px rgba(31, 67, 49, 0.08);
}

.brand-icon {
  border: 2px solid #c86428;
  box-shadow: 0 0 0 4px rgba(200, 100, 40, 0.1), var(--shadow-sm);
}

.hero-card {
  background: linear-gradient(130deg, #1b3b2b 0%, #2b5842 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom: 4px solid #c86428;
}

.hero-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -6px;
  background:
    linear-gradient(90deg, rgba(20,49,34,0.88), rgba(27,63,45,0.74) 58%, rgba(29,77,54,0.58)),
    url("99.png") center 48% / cover no-repeat;
  filter: blur(2px);
  opacity: 0.8;
  pointer-events: none;
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-tag {
  background: rgba(255,255,255,0.13);
  color: #fde4ce;
  border: 1px solid rgba(255,255,255,0.14);
}

.hero-step strong {
  background: #c86428;
  color: white;
}

.hero-visual {
  background: rgba(18,45,34,0.72);
  border-color: rgba(255,255,255,0.18);
}

.hero-visual h3,
.footer-col h4 {
  color: #fde4ce;
}

.cart-trigger-btn {
  border-radius: 14px;
  background: #1f4331;
}

.cart-trigger-btn:hover {
  background: #153022;
}

.category-pill.active {
  background: #1f4331;
  border-color: #1f4331;
}

.toolbar-row,
.origin-showcase {
  background: #fffdf8;
  border-color: #e4ddd0;
}

.origin-showcase {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin: 0.25rem 0 3rem;
  padding: clamp(1.4rem, 3.5vw, 2.6rem);
  border: 1px solid #e4ddd0;
  border-radius: 28px 8px 28px 8px;
  box-shadow: 0 12px 34px rgba(17,24,32,0.06);
}

.origin-kicker,
.origin-label {
  color: #547a62;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.origin-intro h2,
.catalog-heading h2 {
  margin-top: 0.45rem;
  color: #1f4331;
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.12;
}

.origin-intro p,
.catalog-heading p {
  margin-top: 0.8rem;
  max-width: 48ch;
  color: #5c6660;
  font-size: 0.94rem;
}

.origin-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.origin-note {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 118px;
  padding: 1rem;
  border-radius: 16px 6px 16px 6px;
  background: #f2ece1;
}

.origin-note-erzurum {
  background: #e8f0eb;
}

.origin-note-mark {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #1f4331;
  color: #fff;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.45rem;
}

.origin-note h3 {
  margin: 0.15rem 0;
  color: #1f4331;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.2rem;
}

.origin-note p {
  color: #5c6660;
  font-size: 0.8rem;
}

.origin-promise {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border: 1px dashed #c8b992;
  border-radius: 12px;
}

.origin-promise > span {
  color: #c86428;
  font-size: 1.3rem;
}

.origin-promise small {
  margin-left: auto;
  color: #5c6660;
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.catalog-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.catalog-heading p {
  margin: 0 0 0.25rem;
  text-align: right;
}

/* Product cards flip to reveal the product information */
.product-card {
  perspective: 1200px;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.product-card:hover {
  transform: none;
  box-shadow: none;
}

.product-card-inner {
  position: relative;
  min-height: 100%;
  border-radius: var(--radius-md);
  transform-style: preserve-3d;
  transition: transform 600ms ease;
}

.product-card.is-flipped .product-card-inner {
  transform: rotateY(180deg);
}

.product-card-front,
.product-card-back {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.product-card-front {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
}

.product-card-back {
  position: absolute;
  inset: 0;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 1.35rem;
  overflow-y: auto;
  transform: rotateY(180deg);
  background: linear-gradient(145deg, #fff 0%, #f2ece1 100%);
}

.product-card:hover .product-card-front {
  border-color: #c86428;
  box-shadow: var(--shadow-md);
}

.product-card-back h3 {
  margin: 0.55rem 0 0.65rem;
  color: #1f4331;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.2rem;
}

.product-card-back p {
  color: #5c6660;
  font-size: 0.9rem;
  line-height: 1.6;
}

.product-card-back dl {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-color);
}

.product-card-back dl div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.84rem;
}

.product-card-back dt { color: var(--text-muted); }
.product-card-back dd { color: var(--primary); font-weight: 700; text-align: right; }

.card-back-kicker {
  color: #547a62;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.card-back-close {
  margin-top: auto;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 10px;
  background: #1f4331;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.privacy-inline-note {
  margin-top: 0.7rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.privacy-inline-note button {
  padding: 0;
  border: 0;
  background: none;
  color: #1f7048;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.hero-visual .privacy-inline-note {
  margin-top: 0.65rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-visual .privacy-inline-note button {
  color: #c8e0d0;
}

.catalog-privacy-note {
  margin: -2.8rem 0 3rem;
  padding: 0.7rem 0.9rem;
  border-left: 3px solid #c86428;
  border-radius: 0 8px 8px 0;
  background: #f2ece1;
  color: #46534a;
  text-align: center;
}

#kvkkDialog .dialog-body h3 {
  margin: 1.1rem 0 0.35rem;
  color: #1f4331;
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
}

#kvkkDialog .dialog-body p {
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
  line-height: 1.65;
}

#kvkkDialog .privacy-lead {
  padding: 0.85rem 1rem;
  border-left: 3px solid #c86428;
  border-radius: 0 10px 10px 0;
  background: #f2ece1;
}

#kvkkDialog .privacy-note-foot {
  margin-top: 1rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.78rem;
}

@media (max-width: 820px) {
  .origin-showcase { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
  }

  .brand-icon { width: 44px; height: 44px; flex-basis: 44px; }
  .brand-text h1 { font-size: 1.2rem; }
  .brand-text span { font-size: 0.56rem; }
  .cart-trigger-btn { gap: 0.35rem; padding: 0.55rem 0.7rem; font-size: 0.78rem; }
  #headerCartTotal { display: none; }
  .search-wrapper { grid-column: 1 / -1; order: initial; width: 100%; min-width: 0; max-width: none; }
  .hero { padding: 1.15rem 0 1.6rem; }
  .hero-card { min-height: 0; padding: 1.5rem 1.2rem; gap: 1.1rem; }
  .hero-content h2 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero-content p { font-size: 0.94rem; }
  .hero-steps { display: grid; grid-template-columns: 1fr; }
  .hero-visual { padding: 1rem; }
  .origin-showcase { margin-bottom: 2rem; padding: 1.2rem; }
  .origin-notes { grid-template-columns: 1fr; }
  .origin-promise { flex-wrap: wrap; }
  .origin-promise small { width: 100%; margin-left: 2rem; }
  .catalog-heading { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
  .catalog-heading p { text-align: left; }
  .toolbar-row, .toolbar-filters { align-items: stretch; flex-direction: column; }
  .sort-select { width: 100%; min-height: 44px; }
  .category-pills { margin-right: -1rem; padding-right: 1rem; }
  .category-pill { min-height: 42px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .product-card-inner, .product-card-front, .product-card-back { border-radius: 14px 6px 14px 6px; }
  .product-body { padding: 0.8rem; gap: 0.5rem; }
  .product-meta { align-items: flex-start; gap: 0.25rem; font-size: 0.67rem; }
  .product-title { font-size: 0.98rem; }
  .product-desc { font-size: 0.78rem; }
  .product-price { font-size: 1.15rem; }
  .card-Draft-row { grid-template-columns: 1fr; }
  .card-qty-control, .btn-add-cart, .btn-quick-wa { min-height: 42px; }
  .btn-add-cart, .btn-quick-wa { font-size: 0.76rem; white-space: normal; }
  .badge-region, .badge-highlight { top: 0.45rem; padding: 0.2rem 0.45rem; font-size: 0.62rem; }
  .product-card-back { padding: 0.9rem; }
  .product-card-back h3 { font-size: 1rem; }
  .product-card-back p, .product-card-back dl div { font-size: 0.76rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-map { min-height: 190px; }
  .footer-bottom { flex-direction: column; }
  .floating-cart-bar { bottom: max(0.6rem, env(safe-area-inset-bottom)); left: 0.6rem; right: 0.6rem; gap: 0.6rem; padding: 0.75rem 0.9rem; font-size: 0.82rem; }
  .cart-dialog { width: 100%; max-width: none; border-radius: 18px 18px 0 0; }
  dialog:not(.cart-dialog) { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); overflow-y: auto; }
  .catalog-privacy-note { margin: -1.5rem 0 2rem; text-align: left; }
}

@media (max-width: 380px) {
  .container { padding-right: 0.75rem; padding-left: 0.75rem; }
  .product-grid { grid-template-columns: 1fr; }
  .product-body { padding: 1rem; }
  .product-title { font-size: 1.1rem; }
  .hero-content h2 { font-size: 1.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .product-card-inner { transition-duration: 0.01ms; }
}

.whatsapp-icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  vertical-align: middle;
}

.hero-direct-wa,
.btn-wa-checkout,
.btn-quick-wa,
.btn-add-cart,
.cart-trigger-btn,
.card-back-close {
  border-radius: 999px;
}

.hero-direct-wa {
  padding: 0.8rem 1.35rem;
}

.btn-wa-checkout,
.btn-quick-wa,
.btn-add-cart {
  min-height: 44px;
}

