/* Menú a la izquierda, logo centrado y buscador junto a cuenta y carrito. */
.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px minmax(0, 1fr);
  grid-template-rows: 88px;
  grid-template-areas: none;
  align-items: center;
  height: auto;
  min-height: 0;
  gap: 0 24px;
  padding: 0 clamp(20px, 5vw, 76px);
}
.site-header .logo {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  position: static;
  transform: none;
}
.site-header .logo img {
  width: 220px;
  max-width: 100%;
  height: auto;
  margin: 0;
}
.site-header .menu-toggle {
  display: inline-flex;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-items: center;
  justify-content: center;
}
.site-header .header-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
}
.site-header [data-action="toggle-search"] {
  display: none;
}
.site-header .header-search {
  position: static;
  width: clamp(150px, 17vw, 250px);
  max-width: none;
  height: 40px;
  padding: 0 2px 0 8px;
  margin: 0 8px 0 0;
  display: flex;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #bfc3be;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.site-header .header-search input {
  width: 0;
  min-width: 0;
  height: 40px;
  flex: 1;
  padding: 8px 0;
  font-size: 12px;
  background: transparent;
}
.site-header .header-search .icon-btn {
  width: 32px;
  height: 40px;
  padding: 7px;
  flex: 0 0 32px;
}
.site-header .header-search:focus-within {
  border-color: #111;
}
.site-header #main-nav {
  display: none;
  grid-column: auto;
  grid-row: auto;
  position: absolute;
  top: 100%;
  left: clamp(20px, 5vw, 76px);
  right: auto;
  width: 248px;
  max-width: calc(100vw - 32px);
  height: auto;
  max-height: calc(100dvh - 145px);
  overflow-y: auto;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 2px;
  padding: 10px;
  margin: 0;
  border: 1px solid #eceee8;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 14px 28px #12201512;
  background: #fff;
}
.site-header.menu-open #main-nav {
  display: flex;
}
.site-header #main-nav a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  padding: 12px 14px;
  border: 0;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
}
.site-header #main-nav a:hover,
.site-header #main-nav a:focus-visible,
.site-header #main-nav a.active {
  background: #f4f5f2;
}
.site-header .header-actions .account-link {
  display: inline-flex;
}
.site-header #main-nav .nav-account {
  display: flex;
}

.checkout-form {
  min-width: 0;
}
.checkout-form h3 {
  margin: 20px 0 4px;
  font-size: 17px;
}
.checkout-form > label span {
  color: #666e68;
  font-weight: 400;
}
.checkout-form .check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
  line-height: 1.65;
  font-size: 12px;
}
.checkout-form .check-label input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: #202923;
}
.checkout-form .check-label span {
  color: #343b36;
}
.checkout-form .field {
  width: 100%;
  min-width: 0;
}
.checkout-form .whatsapp-ready {
  margin-top: 12px;
}
.form-feedback {
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.form-feedback:empty {
  display: none;
}
.form-feedback.error {
  color: #a43a34;
}
.delete-button {
  color: #964239;
}
.admin-pack-info > div {
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) 190px minmax(0, 1fr);
    grid-template-rows: 78px;
    padding-inline: 24px;
    gap: 0 16px;
  }
  .site-header .logo img {
    width: 184px;
  }
  .site-header [data-action="toggle-search"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .site-header .header-search {
    display: none;
    position: absolute;
    top: 100%;
    left: auto;
    right: 24px;
    width: min(340px, calc(100vw - 48px));
    height: 56px;
    margin: 0;
    padding: 7px 12px;
    background: #fff;
    border: 1px solid #e6e8e1;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 24px #12201514;
  }
  .site-header.search-open .header-search {
    display: flex;
  }
  .site-header .header-search input {
    font-size: 16px;
  }
  .site-header #main-nav {
    left: 24px;
  }
}
@media (max-width: 600px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
    grid-template-rows: 70px;
    padding: 0 16px;
    gap: 0 12px;
  }
  .site-header .logo img {
    width: 150px;
  }
  .site-header .header-actions {
    gap: 0;
  }
  .site-header .header-actions > .icon-btn {
    width: 36px;
    height: 44px;
    padding: 7px;
  }
  .site-header .header-actions > .icon-btn svg {
    width: 21px;
    height: 21px;
  }
  .site-header #main-nav {
    left: 16px;
  }
  .site-header .header-search {
    right: 16px;
    width: min(340px, calc(100vw - 32px));
  }
}
@media (max-width: 420px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
    padding-inline: 12px;
    gap: 0 6px;
  }
  .site-header .logo img {
    width: 120px;
  }
  .site-header .header-actions > .icon-btn {
    width: 34px;
    padding-inline: 6px;
  }
  .site-header .menu-toggle {
    width: 40px;
    padding: 8px;
  }
}
@media (max-width: 350px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
  }
  .site-header .logo img {
    width: 100px;
  }
  .site-header .header-actions > .icon-btn {
    width: 32px;
    padding-inline: 5px;
  }
}
