/* Özef Gıda — müşteri yüzü ortak üst/alt şerit (anasayfa ile uyumlu) */
:root {
  --color-primary: #3f5239;
  --color-secondary: #a8b59b;
  --color-dark: #1a1f18;
  --color-light: #ffffff;
  --color-price: #b83228;
  --muted: #5c6560;
  --surface: #f1f3ee;
  --shadow: 0 8px 30px rgba(26, 31, 24, 0.08);
  --top-bar-link-hover: #d4ddd0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--surface);
  color: var(--color-dark);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

main.container {
  max-width: 1200px;
}

header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: var(--color-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.top-info-bar {
  background: linear-gradient(90deg, #2a3328 0%, #343c33 50%, #2a3328 100%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-info-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}

.top-info-contacts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
}

.top-info-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  transition: color 0.2s;
  white-space: nowrap;
}

.top-info-contacts a:hover {
  color: var(--top-bar-link-hover);
}

.top-info-contacts i {
  font-size: 14px;
  opacity: 0.95;
  flex-shrink: 0;
}

.top-info-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-info-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 16px;
  transition: background 0.2s, transform 0.2s;
}

.top-info-social a:hover {
  transform: scale(1.07);
}

.top-info-social a.wa:hover {
  background: #25d366;
}

.top-info-social a.ig:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  padding: 12px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.search-bar {
  flex: 1;
  max-width: 560px;
  position: relative;
  margin: 0 18px;
}

.search-bar input {
  width: 100%;
  padding: 10px 18px;
  border-radius: 26px;
  border: 1px solid #e6e6e6;
  font-size: 15px;
  outline: none;
  background: #fff;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.search-bar input:focus {
  box-shadow: 0 6px 20px rgba(63, 82, 57, 0.1);
  border-color: var(--color-primary);
}

.search-bar button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.8;
}

.header-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  transition: color 0.2s;
  cursor: pointer;
}

.action-item:hover {
  color: var(--color-primary);
}

.action-item span {
  font-size: 20px;
  margin-bottom: 3px;
  display: block;
}

.account-menu {
  position: relative;
}

.dropdown-content {
  position: absolute;
  right: 0;
  top: 100%;
  background-color: var(--color-light);
  min-width: 140px;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.1);
  z-index: 1300;
  border-radius: 8px;
  padding: 8px 0;
  margin-top: 10px;
  border: 1px solid #f0f0f0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-content.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  color: var(--color-dark);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.dropdown-content a:hover {
  background-color: var(--surface);
  color: var(--color-primary);
}

.sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100%;
  background-color: white;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}

.sidebar.open {
  right: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.sidebar-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.close-sidebar-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s;
}

.close-sidebar-btn:hover {
  color: var(--color-dark);
}

.sidebar-content {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.sidebar-empty-message {
  text-align: center;
  color: var(--muted);
  margin-top: 50px;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0s 0.4s;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s, visibility 0s 0s;
}

.category-nav {
  background: var(--color-light);
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.category-nav .container {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 10px 16px;
  align-items: center;
  justify-content: flex-start;
  max-width: 1200px;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}

.category-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--color-dark);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.category-nav a:hover {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  color: var(--color-dark);
}

.category-nav .container::-webkit-scrollbar {
  height: 6px;
}

.category-nav .container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.category-nav .container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.category-nav .container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.sidebarbutton {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  color: var(--color-dark);
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(63, 82, 57, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2001;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
}

.sidebarbutton:hover {
  transform: translateX(-50%) scale(1.02);
  box-shadow: 0 15px 35px rgba(63, 82, 57, 0.28);
}

.sidebar.open .sidebarbutton {
  opacity: 1;
  visibility: visible;
}

footer.site-footer {
  background-color: #222;
  padding: 44px 0 12px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  /* Geniş ekranda 5 sütun: marka + 4 kategori (Kurumsal dahil) aynı satırda */
  grid-template-columns: minmax(0, 1.2fr) repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-box h4 {
  font-size: 15px;
  margin-bottom: 12px;
  color: white;
  border-left: 3px solid var(--color-primary);
  padding-left: 10px;
}

.footer-box p,
.footer-box a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer-box ul {
  list-style: none;
}

.footer-box ul li {
  margin-bottom: 8px;
}

.footer-box ul li a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.social-icon:hover {
  background: var(--color-primary);
  color: var(--color-dark);
}

.footer-bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #9999994b;
  text-align: center;
  color: #999;
  font-size: 13px;
}

body.legal-page-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.legal-page-body #musteri-footer-slot {
  margin-top: auto;
}

@media (max-width: 640px) {
  .top-info-bar-inner {
    justify-content: center;
    flex-direction: column;
    padding: 10px 14px;
    text-align: center;
  }

  .top-info-contacts {
    justify-content: center;
  }

  .top-info-social {
    justify-content: center;
  }

  .header-bar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .search-bar {
    order: 3;
    width: 100%;
    margin: 10px 0;
  }

  .logo {
    order: 1;
  }

  .header-actions {
    order: 2;
    gap: 10px;
    min-width: unset;
  }

  .action-item {
    font-size: 10px;
  }

  .action-item span {
    font-size: 16px;
  }
}

@media (max-width: 992px) {
  .sidebarbutton {
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    height: 50px;
  }
}
