/* Global header/navbar theme for all pages */
.theme-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.35s ease;
  background: rgba(255, 255, 255, 0);
}

.theme-navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(34, 27, 22, 0.08);
}

.theme-navbar-row {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 82px;
}

.theme-navbar-brand #logo {
  margin: 0;
}

.theme-navbar-brand #logo img {
  max-height: 46px;
  width: auto;
  max-width: 100%;
}

.theme-navbar-menu #menu {
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  min-height: auto !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
}

.theme-navbar-menu #menu.navbar {
  background: transparent !important;
  border: 0 !important;
}

.theme-navbar-menu #menu .navbar-nav {
  justify-content: flex-start;
  width: 100%;
}

.theme-navbar-menu #menu .navbar-nav > li > a {
  color: #ffffff !important;
  font-size: 13px;
  letter-spacing: 0.005em;
  text-transform: none;
  font-weight: 600;
  text-shadow: none;
  padding: 10px 16px;
  border-radius: 999px;
}

.theme-navbar.is-scrolled .theme-navbar-menu #menu .navbar-nav > li > a {
  color: #2d2620 !important;
}

.theme-navbar-menu #menu .navbar-nav > li > a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
}

.theme-navbar.is-scrolled .theme-navbar-menu #menu .navbar-nav > li > a:hover {
  background: #f4ede4;
  color: #201a16 !important;
}

.theme-navbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: visible;
}

.theme-header-language {
  flex-shrink: 0;
  position: relative;
  z-index: 1055;
  overflow: visible;
}

.theme-lang-dropdown {
  overflow: visible;
}

/* Dil: kompakt dropdown (bayrak + kod + ok) */
.theme-lang-dropdown .dropdown-menu.theme-lang-menu {
  z-index: 1060;
  min-width: 11.5rem;
  padding: 0.35rem 0;
  margin-top: 0.35rem !important;
  border-radius: 12px;
  border: 1px solid rgba(49, 41, 34, 0.1);
  box-shadow: 0 12px 36px rgba(34, 27, 22, 0.14);
}

.theme-lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  box-shadow: none !important;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.theme-lang-toggle:hover,
.theme-lang-toggle:focus,
.theme-lang-toggle.show {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff !important;
}

.theme-navbar.is-scrolled .theme-lang-toggle {
  background: rgba(49, 41, 34, 0.08);
  color: #312922 !important;
}

.theme-navbar.is-scrolled .theme-lang-toggle:hover,
.theme-navbar.is-scrolled .theme-lang-toggle:focus,
.theme-navbar.is-scrolled .theme-lang-toggle.show {
  background: #f4ede4;
  color: #201a16 !important;
}

.theme-lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.theme-lang-code {
  font-size: 11px;
  font-weight: 700;
}

.theme-lang-caret {
  font-size: 9px;
  opacity: 0.85;
  margin-left: 1px;
}

.theme-language-flag {
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.theme-lang-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 0.45rem 1rem !important;
  font-size: 13px;
  color: #2d2620 !important;
}

.theme-lang-item:hover,
.theme-lang-item:focus {
  background: #f4ede4 !important;
}

.theme-lang-item.active {
  background: rgba(15, 108, 91, 0.1) !important;
  color: #0f5c4e !important;
  font-weight: 600;
}

.theme-lang-name {
  flex: 1;
  min-width: 0;
}

/* Mobil çekmece: tam genişlik tetikleyici */
.drawer-language .theme-lang-dropdown {
  width: 100%;
}

.drawer-language .theme-lang-toggle {
  width: 100%;
  justify-content: space-between;
  padding: 10px 14px;
  min-height: 44px;
  background: #f4ede4;
  color: #2d2620 !important;
  border-radius: 12px !important;
}

.drawer-language .theme-lang-toggle:hover,
.drawer-language .theme-lang-toggle:focus,
.drawer-language .theme-lang-toggle.show {
  background: #eadfce;
  color: #2d2620 !important;
}

.drawer-language .dropdown-menu.theme-lang-menu {
  width: 100%;
}

.theme-nav-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
}

#wishlist-total.theme-nav-link {
  width: auto;
  padding: 0 10px;
  gap: 4px;
}

#wishlist-total .wishlist-count {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

#header-cart-total.theme-nav-link {
  width: auto;
  padding: 0 10px;
  gap: 4px;
}

#header-cart-total .cart-count {
  display: inline-block;
  min-width: 18px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  margin-left: 2px;
}

.theme-navbar.is-scrolled .theme-nav-link {
  color: #312922;
}

.theme-nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.theme-navbar.is-scrolled .theme-nav-link:hover {
  background: #f4ede4;
  color: #201a16;
}

#alert .alert {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(30, 24, 20, 0.12);
}

#alert .alert-success {
  background: linear-gradient(135deg, #f6fbf8 0%, #edf7f2 100%);
  border-left: 4px solid #0f6c5b;
  color: #21453e;
}

#alert .alert-success .fa-circle-check {
  color: #0f6c5b;
}

#alert .alert-success a {
  color: #0f6c5b;
  font-weight: 600;
  text-decoration: underline;
}

#alert .theme-cart-feedback {
  padding: 12px 46px 12px 12px;
}

#alert .theme-feedback-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

#alert .theme-feedback-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 108, 91, 0.14);
  color: #0f6c5b;
  flex: 0 0 auto;
}

#alert .theme-feedback-copy {
  display: grid;
  gap: 2px;
}

#alert .theme-feedback-copy strong {
  font-size: 13px;
  line-height: 1.2;
}

#alert .theme-feedback-copy span {
  font-size: 12px;
  opacity: 0.9;
  line-height: 1.25;
}

#alert.toast-container {
  top: 86px !important;
  z-index: 1045;
  pointer-events: none;
}

#alert .site-toast {
  width: min(360px, calc(100vw - 24px));
  pointer-events: auto;
}

#alert .site-toast-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

#alert .site-toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 108, 91, 0.14);
  color: #0f6c5b;
  flex: 0 0 auto;
}

#alert .site-toast-copy {
  display: grid;
  gap: 2px;
}

#alert .site-toast-copy strong {
  font-size: 13px;
  line-height: 1.2;
}

#alert .site-toast-copy span {
  font-size: 12px;
  line-height: 1.25;
}

.wishlist-toggle-btn {
  border: 1px solid #e6ddd1;
  background: rgba(255, 255, 255, 0.95);
  color: #5f554b;
}

.wishlist-toggle-btn:hover {
  color: #b44355;
  border-color: rgba(180, 67, 85, 0.35);
  background: #fff;
}

.wishlist-toggle-btn.is-active {
  color: #d8243f;
  border-color: #d8243f;
  background: transparent;
}

.account-wishlist-page {
  padding-top: 20px;
  padding-bottom: 36px;
}

.account-wishlist-title {
  margin-bottom: 18px;
}

.wishlist-table-wrap {
  border: 1px solid #ece5dc;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.wishlist-table {
  margin-bottom: 0;
}

.wishlist-table thead th,
.wishlist-table thead td {
  background: #f7f3ed;
}

.wishlist-thumb {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
}

.wishlist-name-cell a {
  color: #201a16;
  text-decoration: none;
  font-weight: 600;
}

.wishlist-name-cell a:hover {
  color: #0f3633;
}

.wishlist-action-form {
  display: inline-flex;
  gap: 8px;
}

.wishlist-action-btn {
  min-height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 0 12px;
}

.wishlist-cart-btn {
  border: 1px solid #231c17;
  background: #201914;
  color: #ffffff;
}

.wishlist-cart-btn:hover {
  background: #17110d;
  border-color: #17110d;
  color: #ffffff;
}

.wishlist-remove-btn {
  border: 1px solid #dfd3c4;
  background: #ffffff;
  color: #3a3027;
}

.wishlist-remove-btn:hover {
  background: #f5efe7;
  border-color: #d4c4b2;
  color: #2c241d;
}

.wishlist-empty {
  color: #7f7369;
}

.account-wishlist-continue-btn {
  border-radius: 999px;
  min-width: 140px;
}

@media (max-width: 991px) {
  .wishlist-table thead {
    display: none;
  }

  .wishlist-table,
  .wishlist-table tbody,
  .wishlist-table tr,
  .wishlist-table td {
    display: block;
    width: 100%;
  }

  .wishlist-row {
    border-bottom: 1px solid #eee5da;
    padding: 12px 12px 8px;
  }

  .wishlist-row:last-child {
    border-bottom: 0;
  }

  .wishlist-table td {
    border: 0;
    padding: 6px 0;
    text-align: left !important;
  }

  .wishlist-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9a8f84;
    margin-bottom: 3px;
  }

  .wishlist-image-cell {
    text-align: left !important;
  }

  .wishlist-image-cell::before {
    margin-bottom: 8px;
  }

  .wishlist-action-form {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .wishlist-action-btn {
    width: 100%;
  }
}

.theme-mini-cart {
  width: 0;
  height: 0;
  overflow: hidden;
}

.theme-navbar #header-cart .btn-lg {
  display: none;
}

.theme-navbar-menu #menu .dropdown-menu,
.theme-navbar-menu #menu .dropdown:hover .dropdown-menu,
.theme-navbar-menu #menu .dropdown.show .dropdown-menu {
  display: none !important;
}

.theme-navbar-menu #menu .dropdown-toggle::after,
.theme-navbar-menu #menu .fa-caret-down,
.theme-navbar-menu #menu .fa-angle-down {
  display: none !important;
}

/* Sticky footer: içerik kısa olsa bile footer viewport altında, içerik uzayınca doğal olarak aşağıda */
html {
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  padding-top: 82px;
}

.theme-footer {
  flex-shrink: 0;
}

@media (max-width: 1399px) {
  .theme-navbar-menu #menu .navbar-nav > li > a {
    font-size: 13px;
    padding: 10px 9px;
  }
}

@media (max-width: 1199px) {
  .theme-navbar-row {
    grid-template-columns: minmax(140px, 1fr) auto;
    min-height: 74px;
  }

  .theme-navbar-menu {
    grid-column: 1 / -1;
    order: 3;
    padding-bottom: 8px;
  }

  main {
    padding-top: 112px;
  }
}

@media (max-width: 991px) {
  .theme-navbar-actions .theme-nav-link {
    width: 44px;
    height: 44px;
  }

  .theme-navbar-actions .theme-nav-link i {
    font-size: 17px;
  }

  .theme-navbar-actions #wishlist-total.theme-nav-link,
  .theme-navbar-actions #header-cart-total.theme-nav-link {
    min-width: 44px;
    padding: 0 11px;
  }

  .theme-navbar-menu #menu {
    background: transparent !important;
    border: 0 !important;
    position: static;
  }

  .theme-navbar-menu #menu #category.navbar-toggler,
  .theme-navbar-menu #menu #category.navbar-toggler:focus,
  .theme-navbar-menu #menu #category.navbar-toggler:active {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    position: fixed;
    left: 0;
    top: 50dvh;
    transform: translateY(-50%);
    width: 34px;
    height: 58px;
    border-radius: 0 12px 12px 0;
    z-index: 1041;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
    border-left: 0 !important;
    background: rgba(34, 27, 22, 0.78) !important;
    box-shadow: none !important;
    animation: menuHandlePulse 3.4s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
    transition: left 0.26s ease, top 0.26s ease, transform 0.26s ease, border-radius 0.26s ease, background-color 0.2s ease;
  }

  .theme-navbar-menu #menu #category.navbar-toggler i {
    line-height: 1;
    font-size: 16px;
  }

  .theme-navbar-menu #menu.menu-drawer-open #category.navbar-toggler,
  .theme-navbar-menu #menu.menu-drawer-open #category.navbar-toggler:focus,
  .theme-navbar-menu #menu.menu-drawer-open #category.navbar-toggler:active {
    left: calc(min(82vw, 320px) - 42px);
    top: 12px;
    transform: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border-left: 1px solid #ffffff !important;
    background: rgba(34, 27, 22, 0.92) !important;
    animation: none;
  }

  .theme-navbar-menu #menu #narbar-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(82vw, 320px);
    display: block !important;
    padding: 76px 12px 16px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98) !important;
    border-right: 1px solid #eadfd0 !important;
    border-radius: 0 14px 14px 0;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.2s ease;
    z-index: 1040;
  }

  .theme-navbar-menu #menu #narbar-menu.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .theme-navbar-menu #menu #narbar-menu .navbar-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .theme-navbar-menu #menu #narbar-menu .navbar-nav > li {
    width: 100%;
  }

  .theme-navbar-menu #menu #narbar-menu .drawer-user-menu {
    display: block;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eadfd0;
  }

  .theme-navbar-menu #menu #narbar-menu .drawer-user-link {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #2d2620;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
  }

  .theme-navbar-menu #menu #narbar-menu .drawer-user-link:hover {
    background: #f4ede4;
    color: #201a16;
  }

  .theme-navbar-menu #menu .navbar-nav > li > a,
  .theme-navbar.is-scrolled .theme-navbar-menu #menu .navbar-nav > li > a {
    color: #2d2620 !important;
    text-transform: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
  }

  .theme-navbar-menu #menu .navbar-toggler,
  .theme-navbar-menu #menu .navbar-toggler:focus,
  .theme-navbar-menu #menu .navbar-toggler:active {
    background: transparent !important;
    border: 1px solid #d8ccbd !important;
    box-shadow: none !important;
  }

  .theme-navbar-menu #menu .navbar-toggler i {
    color: #ffffff !important;
  }
}

@media (min-width: 992px) {
  .theme-navbar-menu #menu #narbar-menu .drawer-user-menu {
    display: none;
  }
}

@keyframes menuHandlePulse {
  0%,
  58%,
  100% {
    transform: translateY(-50%);
    box-shadow: 0 0 0 rgba(34, 27, 22, 0);
  }
  72% {
    transform: translateY(-50%) translateX(7px);
    box-shadow: 0 0 0 6px rgba(34, 27, 22, 0.2);
  }
  80% {
    transform: translateY(-50%) translateX(-2px);
    box-shadow: 0 0 0 0 rgba(34, 27, 22, 0);
  }
  86% {
    transform: translateY(-50%) translateX(1px);
  }
  91% {
    transform: translateY(-50%) translateX(-1px);
  }
  95% {
    transform: translateY(-50%) translateX(0.5px);
  }
}

@media (max-width: 767px) {
  .theme-navbar-row {
    min-height: 66px;
    gap: 10px;
  }

  main {
    padding-top: 96px;
  }
}

/* Global footer theme (same as homepage) */
.theme-footer {
  background: #17120f;
  color: #b8ada1;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 42px 0 18px;
}

.theme-footer p,
.theme-footer li,
.theme-footer a,
.theme-footer span {
  color: #a79b8f;
}

.theme-footer a:hover {
  color: #fff;
}

.theme-footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1.15fr 0.9fr;
  gap: 44px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.theme-footer-mid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 40px;
  align-items: flex-start;
}

.theme-footer-mid .theme-footer-links {
  flex: 1 1 140px;
  min-width: 0;
}

.theme-footer-about-text {
  white-space: pre-line;
}

.theme-footer-address {
  white-space: pre-line;
}

.theme-footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 16px;
  text-decoration: none;
  line-height: 0;
}

.theme-footer-logo--icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  color: #1a1512 !important;
  font-size: 10px;
  justify-content: center;
}

.theme-footer-logo-img {
  max-height: 48px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.theme-footer-about p {
  margin: 0;
  max-width: 350px;
  line-height: 1.8;
  font-size: 13px;
}

.theme-footer-social {
  margin-top: 18px;
  display: flex;
  gap: 8px;
}

.theme-footer-social a {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.theme-footer-links h5,
.theme-footer-contact h5 {
  color: #f0e7dc;
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.theme-footer-links ul,
.theme-footer-contact ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.theme-footer-links li,
.theme-footer-contact li {
  margin-bottom: 8px;
  font-size: 13px;
}

.theme-footer-contact li i {
  width: 14px;
  margin-right: 7px;
  color: #c6ad8b;
}

.theme-footer-bottom {
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  text-align: center;
}

.theme-footer-powered {
  display: block;
  width: 100%;
}

.theme-footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* Hide breadcrumb tree globally */
.breadcrumb {
  display: none !important;
}

@media (max-width: 1199px) {
  .theme-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .theme-footer-mid {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .theme-footer {
    padding-top: 30px;
  }

  .theme-footer-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .theme-footer-bottom-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* 404 — tema ile uyumlu bilgi sayfası */
.error-not-found-page {
  padding: 48px 0 72px;
  background: linear-gradient(180deg, #fbf9f5 0%, #f5f1ea 45%, #fff 100%);
}

.error-not-found-inner {
  display: flex;
  justify-content: center;
  padding: 12px 0 24px;
}

.error-not-found-card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 40px 36px 44px;
  text-align: center;
  background: #fff;
  border: 1px solid #ece5dc;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(36, 28, 20, 0.08);
}

.error-not-found-code {
  margin: 0 0 8px;
  font-size: clamp(52px, 12vw, 76px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0.06em;
  color: rgba(182, 131, 46, 0.45);
  user-select: none;
}

.error-not-found-title {
  margin: 0 0 16px;
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 600;
  color: #1f1a16;
  letter-spacing: -0.02em;
}

.error-not-found-lead {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.75;
  color: #6b6158;
}

.error-not-found-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 575px) {
  .error-not-found-page {
    padding: 32px 0 56px;
  }

  .error-not-found-card {
    padding: 32px 22px 36px;
  }

  .error-not-found-lead {
    font-size: 14px;
  }
}
