/* =========================================
   Kitchen2MyTable Desktop Header
   Restores normal one-row desktop layout
   while allowing mobile CSS to keep the
   two-row Samsung Fold layout.
========================================= */

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.k2t-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 15px 30px;
  background: #fff;
  border-bottom: 1px solid #eee;
  font-family: 'Poppins', sans-serif;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Desktop uses the header children as one continuous row. */
.k2t-header-row {
  display: contents;
}

.k2t-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.k2t-logo a,
.k2t-logo picture,
.k2t-logo img {
  display: block;
}

.k2t-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.custom-login-btn,
.k2t-login-btn {
  background-color: #80336b;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  margin: 0 !important;
  flex: 0 0 auto;
}

.custom-login-btn:hover,
.k2t-login-btn:hover {
  background-color: #5d244d;
}

.k2t-login-text-desktop {
  display: inline;
}

.k2t-login-text-mobile {
  display: none !important;
}

.k2t-login-light {
  flex: 0 0 12px;
  width: 12px !important;
  height: 12px !important;
  min-width: 12px;
  margin: 0 !important;
  border-radius: 50%;
}

.k2t-search-form {
  display: inline-flex;
  align-items: center;
  margin-left: auto !important;
  flex: 0 1 520px;
  max-width: 520px;
  min-width: 300px;
}

.k2t-search-form input {
  height: 36px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  width: 280px;
  max-width: 100%;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

.k2t-voice-btn,
#voiceSearchBtn {
  height: 36px;
  width: 38px;
  min-width: 38px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.k2t-voice-btn img,
#voiceSearchBtn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.k2t-search-submit-btn,
.k2t-search-form button[type="submit"] {
  height: 36px;
  width: 88px;
  min-width: 88px;
  padding: 0;
  margin: 0;
  background: #80336b;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.k2t-search-submit-btn img,
.k2t-search-form button[type="submit"] img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.k2t-nav-container {
  display: flex;
  align-items: center;
  position: relative;
  flex: 0 0 auto;
}

#k2t-nav-toggle {
  display: none;
}

.k2t-menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: #80336b;
  margin-left: 0;
  width: 36px;
  height: 36px;
}

/* Sliding drawer menu */
.k2t-nav-links {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 3000;
  overflow: hidden;
  display: block;
  box-shadow: -6px 0 16px rgba(0, 0, 0, 0.15);
}

#k2t-nav-toggle:checked ~ .k2t-nav-links {
  transform: translateX(0);
}

.k2t-menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 22px 20px;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.k2t-menu-panel.active {
  transform: translateX(0);
}

.k2t-panel-btn,
.k2t-panel-back {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  padding: 10px 0;
  cursor: pointer;
  color: #80336b;
  font-family: 'Poppins', sans-serif;
}

.k2t-panel-back {
  font-size: 16px;
  margin-bottom: 10px;
}

.k2t-menu-panel h3 {
  margin: 10px 0 15px;
  font-size: 20px;
  color: #80336b;
}

.k2t-menu-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.k2t-menu-panel ul li {
  list-style: none;
}

.k2t-menu-panel ul li a {
  display: block;
  padding: 10px 0;
  color: #80336b;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.k2t-menu-panel ul li a:hover,
.k2t-panel-btn:hover,
.k2t-panel-back:hover {
  color: #f7b948;
}

/* Login/register modal support */
.k2t-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 4000;
  justify-content: center;
  align-items: center;
}

.k2t-modal-box {
  background: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
  font-family: 'Poppins', sans-serif !important;
  position: relative;
}

.k2t-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.k2t-hidden {
  display: none;
}

.k2t-disabled {
  background-color: gray !important;
  cursor: not-allowed !important;
}

.k2t-enabled {
  background-color: #80336b !important;
  cursor: pointer !important;
}

.k2t-search-pill { margin-left:auto; min-height:44px; padding:0 24px; border:0; border-radius:999px; background:#80336b; color:#fff; display:inline-flex; align-items:center; justify-content:center; gap:10px; font:700 15px/1 'Poppins',sans-serif; cursor:pointer; box-shadow:0 6px 16px rgba(128,51,107,.2); transition:transform .15s ease,background .15s ease; }
.k2t-search-pill:hover { background:#692657; transform:translateY(-1px); }
.k2t-search-pill:focus-visible { outline:3px solid rgba(128,51,107,.3); outline-offset:3px; }
.k2t-search-pill svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
