@import url("../assets/iconfont/iconfont.css");

.page-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--h5-bg);
  padding-bottom: calc(var(--h5-dock-h) + env(safe-area-inset-bottom));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--h5-header-h);
  padding: 0 2rem;
  background: var(--h5-white);
  border-bottom: 0.1rem solid var(--h5-line);
}

.site-logo {
  display: block;
  width: 11.7rem;
  height: 2rem;
}

.site-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: auto;
  margin-right: 1.2rem;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--h5-primary);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 2rem;
}

.header-phone img {
  width: 1.6rem;
  height: 1.6rem;
}

.header-hours {
  color: #000;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4rem;
}

.header-menu {
  width: 2rem;
  height: 2rem;
  padding: 0;
}

.header-menu img {
  display: block;
  width: 100%;
  height: 100%;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(30, 21, 15, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.site-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: 32rem;
  max-width: calc(100vw - 5.6rem);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: calc(env(safe-area-inset-top) + 2.8rem) 1.4rem calc(env(safe-area-inset-bottom) + 1.8rem);
  background: #f8f7f4;
  transform: translateX(100%);
  transition: transform 0.24s ease;
  overflow-y: auto;
}

.site-drawer.is-open {
  transform: translateX(0);
}

body.drawer-open {
  overflow: hidden;
}

body.drawer-open .site-header {
  z-index: 80;
}

.drawer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.drawer-avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2c2c2c 0%, #5d5d5d 100%);
}

.drawer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-avatar-fallback {
  color: #fff;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
}

.drawer-close {
  width: 1.7rem;
  height: 1.7rem;
  margin-top: 0.4rem;
  padding: 0;
  flex-shrink: 0;
}

.drawer-close img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.drawer-user {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer-user strong {
  font-size: 1.7rem;
  font-weight: 700;
  color: #1c1c1c;
  line-height: 1.3;
}

.drawer-user span {
  font-size: 1.1rem;
  color: #989898;
  line-height: 1.4;
}

.drawer-vehicle,
.drawer-quick-item,
.drawer-lang-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border-radius: 1.1rem;
  background: #fff;
}

.drawer-vehicle-thumb {
  width: 5.6rem;
  height: 3.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-vehicle-thumb img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
}

.drawer-vehicle-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.drawer-vehicle-copy b {
  font-size: 1.4rem;
  font-weight: 700;
  color: #242424;
  line-height: 1.3;
}

.drawer-vehicle-copy small {
  font-size: 0.9rem;
  color: #8c8c8c;
  line-height: 1.4;
}

.drawer-vehicle-arrow {
  font-size: 1rem;
  color: #2c2c2c;
  font-style: normal;
}

.drawer-promo {
  display: none !important;
}

.drawer-quick,
.drawer-promo,
.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.drawer-quick-icon {
  width: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-quick-icon img {
  width: 1.7rem;
  height: 1.7rem;
  object-fit: contain;
}

.drawer-quick-title {
  flex: 1;
  font-size: 1.2rem;
  font-weight: 500;
  color: #222;
}

.drawer-quick-count {
  font-size: 1.1rem;
  color: #3b3b3b;
}

.drawer-promo-card {
  display: flex;
  align-items: stretch;
  height: 6rem;
  border-radius: 1.2rem;
  background: #111;
  overflow: hidden;
}

.drawer-promo-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 0 0 1.4rem;
}

.drawer-promo-copy b {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.drawer-promo-copy small {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.drawer-promo-image {
  width: 10rem;
  align-self: stretch;
  flex-shrink: 0;
  overflow: hidden;
}

.drawer-promo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-lang-icon {
  width: 2rem;
  flex-shrink: 0;
  text-align: center;
  font-size: 1.4rem;
}

.drawer-lang-label {
  flex: 1;
  font-size: 1.2rem;
  font-weight: 500;
  color: #222;
  text-align: left;
}

.drawer-lang-value {
  font-size: 1.1rem;
  color: #3b3b3b;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  padding: 1.2rem 1.4rem;
  border-radius: 1.1rem;
  background: #fff;
  font-size: 1.2rem;
  font-weight: 500;
  color: #222;
}

.drawer-nav a.is-active {
  color: var(--h5-primary);
  font-weight: 700;
}

.drawer-sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.drawer-sheet[hidden] {
  display: none;
}

.drawer-sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(30, 21, 15, 0.4);
}

.drawer-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 0 calc(env(safe-area-inset-bottom) + 0.8rem);
  border-radius: 1.4rem 1.4rem 0 0;
  background: #f2f2f2;
  overflow: hidden;
}

.drawer-sheet-list button,
.drawer-sheet-cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 5rem;
  padding: 0 1.6rem;
  background: #fff;
  font-size: 1.5rem;
  color: #222;
}

.drawer-sheet-list button+button {
  border-top: 0.05rem solid #ececec;
}

.drawer-sheet-list button:first-child {
  border-radius: 1.4rem 1.4rem 0 0;
}

.drawer-sheet-list button.is-active {
  color: #c45c26;
  font-weight: 600;
}

.drawer-sheet-gap {
  height: 0.8rem;
  background: #f2f2f2;
}

.drawer-sheet-cancel {
  font-weight: 500;
}

.site-footer {
  padding: 3rem 2rem 2.4rem;
  background: var(--h5-bg);
}

.footer-logo {
  display: block;
  width: 14.7rem;
  height: 2.5rem;
  margin-bottom: 1.2rem;
}

.footer-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-desc {
  margin-bottom: 1.6rem;
  color: var(--h5-muted);
  font-size: 1.2rem;
  line-height: 2.2rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 1.6rem 0 2.4rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--h5-text-2);
}

.footer-social .iconfont {
  font-size: 2rem;
  line-height: 1;
}

.footer-stores {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.store-badge {
  flex: 1;
  min-width: 0;
  height: 4.8rem;
  padding: 0.6rem 1rem 0.6rem 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #111;
  color: #fff;
  border-radius: 0.8rem;
  text-decoration: none;
}

.store-badge-img {
  width: 2.8rem;
  height: 2.8rem;
  object-fit: contain;
  flex-shrink: 0;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  line-height: 1.1;
  min-width: 0;
}

.store-badge-text small {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.store-badge-text b {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1.15;
}

.footer-copy {
  padding-top: 0.8rem;
  border-top: 0.1rem solid var(--h5-line);
  color: var(--h5-muted);
  font-size: 1rem;
  line-height: 2rem;
  text-align: center;
}

.footer-copy a {
  text-decoration: underline;
}

.site-dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 45;
  width: 100%;
  max-width: 480px;
  transform: translateX(-50%);
  background: var(--h5-white);
  border-top: 0.1rem solid var(--h5-line);
  padding: 1.2rem 0.9rem calc(1.2rem + env(safe-area-inset-bottom));
}

.dock-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
  height: 3rem;
  padding: 0 0.6rem;
  border: 0.1rem solid #fff;
  border-radius: 0.6rem;
  box-shadow: 0 0.2rem 0 rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 2rem;
  white-space: nowrap;
}

.dock-btn img {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 1.2rem;
}

.dock-btn.is-line {
  flex: 1.05;
  background: linear-gradient(102deg, var(--h5-line-1) 0%, var(--h5-line-2) 100%);
}

.dock-btn.is-phone {
  flex: 1;
  background: linear-gradient(179deg, var(--h5-blue-1) 20%, var(--h5-blue-2) 97%);
}

.dock-btn.is-form {
  flex: 1.15;
  background: linear-gradient(174deg, var(--h5-orange-1) 0%, var(--h5-orange-2) 86%);
}