.brand-logo {
  display: block;
  width: 120px;
  height: auto;
  max-width: 100%;
}
.ui-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  vertical-align: middle;
}
.site-header {
  display: grid;
  grid-template-columns: 44px 120px minmax(120px, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 4%;
  max-width: 1800px;
  margin: auto;
}
.site-header .header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: transparent;
  color: #424744;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-header .header-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f4f4f4;
  padding: 0 14px;
  border: 1px solid transparent;
  min-width: 0;
  margin: 0;
}
.site-header .header-search .search-symbol {
  background: none;
  border: 0;
  padding: 0;
  width: 36px;
  min-height: 48px;
  display: flex;
  align-items: center;
  color: #565e58;
}
.site-header .header-search input {
  background: transparent;
  border: 0;
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  min-height: 48px;
  font:
    16px Arial,
    sans-serif;
  color: #1b201e;
}
.site-header .header-search input::placeholder {
  color: #626a64;
}
.site-header .header-search input:focus {
  outline: none;
  box-shadow: none;
}
.site-header .bag,
.editor-header .bag {
  position: relative;
}
.site-header #count,
.editor-header #count {
  position: absolute;
  top: 0;
  right: -3px;
  background: #183fe5;
  color: white;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  margin: 0;
}
.site-footer {
  border-top: 1px solid #dcded8;
  background: #f7f7f4;
  padding: 48px 4% 24px;
}
.site-footer .footer-grid {
  max-width: 1680px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
}
.site-footer .footer-brand a {
  overflow-wrap: anywhere;
}
.site-footer .footer-brand p {
  font-size: 14px;
  margin: 24px 0 12px;
}
.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.site-footer h2 {
  font:
    600 14px Arial,
    sans-serif;
  margin: 0 0 12px;
}
.site-footer a {
  font-size: 13px;
  text-decoration: none;
  line-height: 1.5;
  display: inline-block;
  padding: 7px 0;
  color: #353e37;
}
.site-footer a:hover {
  text-decoration: underline;
}
.site-footer .footer-bottom {
  max-width: 1680px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid #dcded8;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}
@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 44px 110px 1fr;
    gap: 14px;
    padding: 16px 24px;
  }
  .site-header .header-actions {
    justify-self: end;
    gap: 8px;
  }
  .site-header .header-search {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer .footer-brand {
    grid-column: 1/-1;
  }
}
@media (max-width: 480px) {
  .site-header {
    padding: 14px 16px;
    gap: 8px;
    grid-template-columns: 44px 96px 1fr;
  }
  .site-header .header-icon {
    min-width: 44px;
    width: 44px;
    height: 44px;
    padding: 6px;
  }
  .site-header .header-actions {
    gap: 2px;
  }
  .site-header .brand-logo {
    width: 96px;
  }
  .site-footer {
    padding: 32px 24px 24px;
  }
  .site-footer .footer-grid {
    gap: 28px 20px;
  }
  .site-footer .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 360px) {
  .site-header {
    grid-template-columns: 44px 80px 1fr;
  }
  .site-header .brand-logo {
    width: 80px;
  }
}

.site-header {
  max-width: none;
  grid-template-columns: 120px minmax(120px, 1fr) auto;
  padding-inline: max(4%, calc((100% - 1680px) / 2));
}
.site-header .menu-toggle {
  display: none;
}
.site-footer {
  max-width: none;
  background: white;
}
.site-footer h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.site-header #count[hidden],
.editor-header #count[hidden] {
  display: none;
}
@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 44px 110px 1fr;
    padding-inline: 24px;
  }
  .site-header .menu-toggle {
    display: inline-flex;
  }
  #shop-nav {
    display: none;
  }
}
@media (max-width: 480px) {
  .site-header {
    padding-inline: 16px;
    grid-template-columns: 44px 96px 1fr;
  }
}
@media (max-width: 360px) {
  .site-header {
    grid-template-columns: 44px 80px 1fr;
  }
}
.product-card,
.main-photo {
  position: relative;
  min-width: 0;
}
.favorite-control {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}
.favorite-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: white;
  border: 0;
  border-radius: 50%;
  color: #555;
  cursor: pointer;
}
.favorite-button svg {
  width: 24px;
  height: 24px;
}
.favorite-button[aria-pressed="true"] {
  color: #183fe5;
}
.favorite-button[aria-pressed="true"] svg {
  fill: currentColor;
}
.favorite-error {
  background: white;
  padding: 12px;
  max-width: 200px;
  font-size: 14px;
}
.saved-page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 4% 64px;
  min-height: 55vh;
}
.saved-page h1 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.025em;
}
.saved-notice {
  padding: 20px;
  background: #f6f6f6;
  border: 1px solid #ddd;
  margin: 24px 0;
}
.saved-empty,
.saved-page #cart-content:not(:has(.cart-row)) {
  padding: 64px 24px;
  text-align: center;
}
.saved-page #cart-content {
  border: 0;
  padding: 32px;
}
.saved-page .cart-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid #ddd;
}
.saved-page .cart-row img {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
}
.saved-page .cart-row h3 {
  letter-spacing: normal;
}
.saved-page .remove {
  min-height: 44px;
  padding: 8px 16px;
  background: white;
  border: 1px solid #aaa;
  cursor: pointer;
}
.saved-page .checkout-note {
  line-height: 1.6;
  margin: 24px 0;
}
@media (max-width: 600px) {
  .saved-page #cart-content {
    padding: 16px;
  }
  .saved-page .cart-row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
  }
}

.menu-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  margin: 0;
  box-sizing: border-box;
  width: min(340px, 88vw);
  height: 100dvh;
  max-height: 100dvh;
  max-width: none;
  border: 0;
  border-right: 1px solid #dcded8;
  border-radius: 0;
  padding: 24px;
  background: white;
  color: #1c221f;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu-drawer[open] {
  animation: drawer-enter 220ms ease-out;
}
.menu-drawer::backdrop {
  background: #0006;
}
body:has(.menu-drawer[open]) {
  overflow: hidden;
}
.drawer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.drawer-brand .brand-logo {
  width: 120px;
  height: auto;
  display: block;
}
.drawer-close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: white;
  color: inherit;
  cursor: pointer;
}
.drawer-close svg {
  width: 24px;
  height: 24px;
}
.menu-drawer .site-menu {
  display: flex;
  flex-direction: column;
}
.menu-drawer .site-menu a {
  display: block;
  box-sizing: border-box;
  min-height: 48px;
  padding: 14px 0;
  border-bottom: 1px solid #eceeed;
}
@keyframes drawer-enter {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}
.menu-drawer[open].is-closing {
  animation: drawer-exit 220ms ease-in forwards;
}
@keyframes drawer-exit {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .menu-drawer[open] {
    animation: none;
  }
}

.site-header .header-search {
  position: relative;
  margin: 0;
}
.site-header .header-search .search-submit {
  border: 0;
  cursor: pointer;
  background: transparent;
  padding: 10px;
  min-width: 44px;
  height: 44px;
  color: inherit;
  display: grid;
  place-items: center;
}
.site-header .header-search input {
  cursor: text;
}
.search-results {
  position: absolute;
  z-index: 40;
  inset: calc(100% + 4px) 0 auto;
  background: white;
  color: #1b201e;
  border: 1px solid #dcded8;
  box-shadow: 0 8px 20px #0001;
  padding: 12px;
  max-height: min(440px, 60dvh);
  overflow-y: auto;
  text-align: left;
}
.search-results p {
  font-size: 13px;
  margin: 4px 8px 12px;
  line-height: 1.5;
}
.search-results ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.search-results a {
  display: block;
  min-height: 44px;
  padding: 12px 8px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.search-results a:hover,
.search-results a:focus-visible {
  background: #f4f6ff;
}
.search-results strong,
.search-results span {
  display: block;
  font-size: 14px;
  line-height: 1.5;
}
.search-results span {
  font-size: 12px;
  color: #59615b;
}
.search-results .search-all {
  color: #183fe5;
  border-top: 1px solid #dcded8;
  font-size: 14px;
}
.search-results .search-product {
  display: flex;
  align-items: center;
  gap: 16px;
}
.search-product > div {
  min-width: 0;
}
.search-product-image {
  width: 72px;
  height: 88px;
  flex-shrink: 0;
  object-fit: contain;
}
