:root {
  --color-primary: #1b5e20;
  --color-secondary: #c9a227;
  --color-button: #1b5e20;
  --color-background: #ffffff;
  --color-menu: #0d3b14;
  --color-text: #1a1a1a;
  --logo-width: 220px;
  --radius: 1rem;
  --shadow: 0 10px 28px rgba(13, 59, 20, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body.site-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #fff;
  overflow-x: hidden;
}

.site-main {
  flex: 1;
  min-width: 0;
  width: 100%;
  overflow-x: clip;
}

.site-main > .container {
  width: 100%;
  max-width: 1140px;
}

.site-top {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-ticker {
  background: var(--color-primary, #1b5e20);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}
.site-ticker__track {
  display: inline-flex;
  width: max-content;
  animation: tickerScroll var(--ticker-duration, 28s) linear infinite;
}
.site-ticker__item {
  display: inline-block;
  padding: 0.55rem 2.5rem;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .site-ticker__track { animation: none; }
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(13, 59, 20, 0.08);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-menu);
  font-weight: 700;
}

.brand-logo {
  width: var(--logo-width);
  max-width: min(240px, 55vw);
  height: auto;
  display: block;
}

.main-nav a {
  color: var(--color-menu);
  text-decoration: none;
  font-weight: 600;
}

.main-nav a:hover { color: var(--color-primary); }

.btn-cart {
  border: 1px solid rgba(13, 59, 20, 0.15);
  background: #fff;
  color: var(--color-menu);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--color-secondary);
  color: #111;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.simple-hero {
  text-align: center;
  padding: 1.25rem 0.5rem 0.5rem;
}

.hero-logo {
  width: min(320px, 70vw);
  height: auto;
  margin: 0 auto 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  color: var(--color-menu);
  margin-bottom: 0.35rem;
}

.section-sub {
  color: rgba(26, 26, 26, 0.65);
  margin-bottom: 1.25rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.product-card {
  background: #fff;
  border: 1px solid rgba(13, 59, 20, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-card .thumb {
  aspect-ratio: 1 / 1;
  background: #f3f6f3;
  overflow: hidden;
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card .body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

.product-card h3 {
  font-size: 1rem;
  margin: 0;
  font-weight: 600;
  word-break: break-word;
}

.product-card h3 a {
  color: inherit;
  text-decoration: none;
}

.product-card__cart {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.35rem;
}

.product-card__cart .qty-control {
  width: 100%;
  justify-content: space-between;
}

.product-card__cart .qty-control input {
  flex: 1;
  min-width: 0;
  width: auto;
}

.product-card__add {
  width: 100%;
}

.price {
  font-weight: 700;
  color: var(--color-primary);
}

.price .old {
  text-decoration: line-through;
  color: #999;
  font-weight: 500;
  font-size: 0.9rem;
  margin-right: 0.35rem;
}

.btn-brand {
  background: var(--color-button);
  border-color: var(--color-button);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
}

.btn-brand:hover {
  filter: brightness(1.06);
  color: #fff;
  background: var(--color-button);
}

.btn-whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.75rem 1.2rem;
}

.btn-whatsapp:hover {
  background: #1ebe57;
  border-color: #1ebe57;
  color: #fff;
}

.panel-box {
  background: #fff;
  border: 1px solid rgba(13, 59, 20, 0.08);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.site-footer {
  background: var(--color-menu);
  color: #f4f1ea;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
  z-index: 1040;
  text-decoration: none;
}

.wa-float:hover { color: #fff; }

.cart-table img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.qty-control button {
  border: 0;
  background: transparent;
  width: 36px;
  height: 36px;
}

.qty-control input {
  width: 48px;
  border: 0;
  text-align: center;
  background: transparent;
}

.product-gallery img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  max-height: 480px;
}

.cat-chip {
  display: block;
  padding: 1rem;
  border-radius: var(--radius);
  background: #f7faf7;
  border: 1px solid rgba(13, 59, 20, 0.08);
  text-decoration: none;
  color: var(--color-menu);
  font-weight: 600;
}

.cat-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.sticky-summary { position: sticky; top: 90px; }

img { max-width: 100%; height: auto; }
.breadcrumb { font-size: 0.85rem; flex-wrap: wrap; }
.min-w-0 { min-width: 0; }

.cart-mobile-list { display: flex; flex-direction: column; gap: 0.65rem; }
.cart-mobile-item {
  background: #fff;
  border: 1px solid rgba(13, 59, 20, 0.1);
  border-radius: 0.85rem;
  padding: 0.75rem;
}
.cart-mobile-item__top {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.cart-mobile-item__top img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 0.55rem;
  flex-shrink: 0;
}
.cart-mobile-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px dashed rgba(0,0,0,.08);
}
.cart-mobile-qty { margin: 0; }
.cart-summary .btn-whatsapp { font-size: 0.95rem; }

@media (max-width: 767px) {
  :root { --logo-width: 120px; }

  .site-header .container,
  .site-main > .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .site-header .py-2 { padding-top: 0.4rem !important; padding-bottom: 0.4rem !important; }

  .brand-logo {
    max-width: 112px;
    width: 112px;
  }

  .btn-cart {
    width: 38px;
    height: 38px;
  }

  .simple-hero {
    padding: 0.5rem 0 0.25rem;
  }

  .hero-logo {
    width: min(148px, 42vw);
    margin-bottom: 0.35rem;
  }

  .simple-hero p {
    font-size: 0.9rem;
  }

  .simple-hero .small {
    font-size: 0.75rem !important;
  }

  .section-title.h4,
  .section-title {
    font-size: 1.15rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .product-card {
    border-radius: 0.75rem;
  }

  .product-card .body {
    padding: 0.5rem 0.55rem 0.65rem;
    gap: 0.2rem;
  }

  .product-card h3 {
    font-size: 0.78rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .price {
    font-size: 0.8rem;
  }

  .price .old { font-size: 0.7rem; }
  .price small { display: block; font-size: 0.68rem; margin-top: 0.1rem; }

  .product-card__cart {
    gap: 0.35rem;
  }

  .product-card__cart .qty-control button {
    width: 30px;
    height: 30px;
  }

  .product-card__cart .qty-control input {
    font-size: 16px;
    height: 30px;
  }

  .btn-brand.btn-sm,
  .product-card__add {
    font-size: 0.75rem;
    padding: 0.4rem 0.45rem;
    white-space: nowrap;
  }

  .cat-chip {
    padding: 0.4rem 0.7rem !important;
    font-size: 0.8rem;
  }

  .wa-float {
    width: 48px;
    height: 48px;
    right: 0.75rem;
    bottom: 0.75rem;
    font-size: 1.4rem;
  }

  .site-footer .container { padding-top: 1rem !important; padding-bottom: 1rem !important; }
  .footer-brand { font-size: 1rem; }

  .panel-box {
    padding: 0.85rem;
    border-radius: 0.85rem;
  }

  .sticky-summary {
    position: static;
  }

  .form-control,
  .form-select {
    font-size: 16px;
  }

  .btn-whatsapp {
    width: 100%;
    padding: 0.85rem 1rem;
  }

  .site-ticker {
    font-size: 0.75rem;
  }
  .site-ticker__item {
    padding: 0.45rem 1.5rem;
  }

  .product-gallery img {
    max-height: 280px;
  }

  .cart-mobile-item__bottom .qty-control button {
    width: 34px;
    height: 34px;
  }
  .cart-mobile-item__bottom .qty-control input {
    width: 42px;
    font-size: 16px;
  }

  .site-main {
    padding-bottom: 1rem;
  }
}

.order-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.order-mobile-item {
  border: 1px solid rgba(13, 59, 20, 0.1);
  border-radius: 0.85rem;
  padding: 0.75rem;
  background: #fff;
}
.order-mobile-item.is-active {
  border-color: rgba(45, 106, 79, 0.35);
  background: #f7fbf8;
}
.order-mobile-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 0.55rem;
  flex-shrink: 0;
}
.order-mobile-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.order-mobile-qty .form-control {
  max-width: 110px;
  font-size: 16px;
  text-align: center;
}

body.brochure-open { overflow: hidden; }

/* Karşılama broşür pop-up */
.brochure-popup {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.brochure-popup[hidden] { display: none !important; }
.brochure-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 24, 0.72);
  backdrop-filter: blur(3px);
}
.brochure-popup__dialog {
  position: relative;
  z-index: 1;
  max-width: min(420px, 92vw);
  max-height: min(88vh, 900px);
  animation: brochureIn 0.35s ease;
}
.brochure-popup__close {
  position: absolute;
  top: -0.55rem;
  right: -0.55rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1b4332;
  font-size: 1.5rem;
  line-height: 1;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  cursor: pointer;
}
.brochure-popup__link {
  display: block;
  line-height: 0;
}
.brochure-popup__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(88vh, 900px);
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  background: #fff;
}
.brochure-popup__img--mob { display: none; }
.brochure-popup__img--desk { display: block; }

@media (max-width: 767.98px) {
  .brochure-popup {
    padding: 0.75rem;
    align-items: flex-end;
    padding-bottom: 1.25rem;
  }
  .brochure-popup__dialog {
    max-width: min(360px, 94vw);
    max-height: 85vh;
  }
  .brochure-popup__img {
    max-height: 85vh;
    border-radius: 1rem;
  }
  .brochure-popup__img--desk { display: none; }
  .brochure-popup__img--mob { display: block; }
  .brochure-popup__close {
    top: 0.4rem;
    right: 0.4rem;
  }
}

@keyframes brochureIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* PWA yükleme bandı */
.pwa-install {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1060;
  padding: 0.75rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.pwa-install[hidden] { display: none !important; }
.pwa-install__card {
  pointer-events: auto;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #0d3b14;
  color: #fff;
  border-radius: 1rem;
  padding: 0.85rem 0.95rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
.pwa-install__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.82rem;
  line-height: 1.3;
}
.pwa-install__text strong {
  font-size: 0.92rem;
}
.pwa-install__text span {
  opacity: 0.85;
}
.pwa-install__actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}
.pwa-install__actions .btn-light {
  color: #0d3b14;
  font-weight: 600;
}
@media (min-width: 768px) {
  .pwa-install { display: none !important; }
}
body.pwa-banner-on .wa-float {
  bottom: 5.5rem;
}
