/* Catalog/menu fixes kept separate from app.css so the patch is easy to replace. */

/* Keep the complete desktop header stack visible while scrolling. */
@media (min-width: 761px) {
  .promo-strip {
    position: sticky;
    top: 0;
    z-index: 70;
  }

  .topline {
    top: 34px;
  }

  .catbar {
    top: 98px;
  }
}

@media (min-width: 1921px) {
  .topline {
    top: clamp(34px, calc(.3125vw + 28px), 40px);
  }

  .catbar {
    top: calc(clamp(34px, calc(.3125vw + 28px), 40px) + clamp(64px, calc(.625vw + 52px), 76px));
  }
}

/* Center the legal notice and the footer navigation as one balanced block. */
.footer-grid {
  display: block;
  text-align: center;
}

.footer-legal {
  width: min(980px, 100%);
  margin: 0 auto;
  color: #d4dae3;
  line-height: 1.55;
}

.footer-legal p {
  margin: 0 0 8px;
}

.footer-sections {
  width: min(980px, 100%);
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
}

.footer-sections > div {
  min-width: 0;
  text-align: center;
}

.footer-sections h4 {
  margin: 0 0 14px;
}

.footer .footer-sections a {
  width: fit-content;
  margin: 8px auto;
}

.footer-meta {
  margin-top: 0;
  justify-items: center;
}

@media (max-width: 760px) {
  .footer {
    padding-top: 34px;
  }

  .footer-legal {
    font-size: 14px;
  }

  .footer-sections {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 26px;
  }
}


/* Category previews must never escape their cards and cover the footer. */
.category-card,
.cat-art {
  overflow: hidden;
}

.cat-art img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Nested desktop category menu. */
.catbar {
  overflow: visible;
}

.catbar-inner {
  gap: 0;
  height: auto;
  min-height: 48px;
  flex-wrap: wrap;
  overflow: visible;
}

.catbar-all,
.catbar-root {
  height: 48px;
  display: flex;
  align-items: center;
  position: relative;
  flex: 0 0 auto;
}

.catbar-all,
.catbar-root > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
}

.catbar-root:hover,
.catbar-root:focus-within {
  background: #171b21;
}

.catbar-dropdown,
.catbar-submenu {
  display: none;
  position: absolute;
  z-index: 80;
  min-width: 285px;
  margin: 0;
  padding: 7px;
  list-style: none;
  background: #1d2229;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 20px 46px rgba(0, 0, 0, .3);
}

.catbar-dropdown {
  top: 100%;
  left: 0;
}

.catbar-submenu {
  top: -7px;
  left: calc(100% + 7px);
}

.catbar-root:hover > .catbar-dropdown,
.catbar-root:focus-within > .catbar-dropdown,
.catbar-menu-item:hover > .catbar-submenu,
.catbar-menu-item:focus-within > .catbar-submenu {
  display: block;
}

.catbar-root:nth-last-child(-n+2) > .catbar-dropdown {
  right: 0;
  left: auto;
}

.catbar-root:nth-last-child(-n+2) .catbar-submenu {
  right: calc(100% + 7px);
  left: auto;
}

.catbar-menu-item {
  position: relative;
}

.catbar-menu-item > a {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 11px;
  border-radius: 9px;
  line-height: 1.25;
  white-space: normal;
}

.catbar-menu-item > a:hover,
.catbar-menu-item > a:focus {
  background: rgba(255, 255, 255, .08);
  color: #80e5de;
  outline: none;
}

.catbar-menu-arrow {
  color: #9fa8b5;
  font-size: 18px;
  line-height: 1;
}

/* Left tree is closed by default. JS opens only the selected branch. */
.filter-children.is-collapsed {
  display: none;
}

.filter-node-toggle[aria-expanded="true"] {
  color: var(--accent);
}

/* Child categories above the product grid must be separate, readable chips. */
.catalog-main {
  min-width: 0;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 18px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  transition: .18s;
}

.category-chip:hover,
.category-chip:focus {
  border-color: var(--accent);
  background: var(--soft);
  color: #008e8a;
  outline: none;
}

/* Product page uses the same contain rules as catalog cards. */
.gallery .product-placeholder-image {
  display: block;
  width: min(82%, 390px);
  height: min(350px, 50vw);
  object-fit: contain;
}

.product-image .product-placeholder-image {
  width: 82% !important;
  height: 82% !important;
  max-width: 82% !important;
  max-height: 82% !important;
  object-fit: contain !important;
  transform: none !important;
}

/* Homepage banner carousel. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.home-carousel {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #090c12;
}

.home-carousel-track {
  position: relative;
  min-height: clamp(260px, 26vw, 420px);
}

.home-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s ease, visibility .55s ease;
  background: linear-gradient(115deg, #090c12 0%, #151c27 58%, #0a837f 150%);
}

.home-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.home-slide-picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-slide:after {
  display: none;
}

.home-slide-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0 62px;
}

.home-slide-content h1,
.home-slide-content h2 {
  max-width: 660px;
  margin: 7px 0 12px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
}

.home-slide-content p {
  max-width: 600px;
  margin: 0 0 22px;
  color: #d9dfe8;
  line-height: 1.5;
}

.home-slide-eyebrow {
  color: #82eee5;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 13px;
}

.home-carousel-nav {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.home-carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  transition: .2s;
}

.home-carousel-dot.is-active {
  width: 28px;
  background: #fff;
}

.home-carousel-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(8, 12, 18, .45);
  color: #fff;
  font-size: 24px;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.home-carousel-arrow:hover {
  background: rgba(0, 170, 166, .86);
}

.home-carousel-prev { left: 18px; }
.home-carousel-next { right: 18px; }

@media (max-width: 760px) {
  .catbar-inner {
    gap: 18px;
    height: 48px;
    min-height: 48px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .catbar-all,
  .catbar-root > a {
    padding: 0;
  }

  .catbar-dropdown,
  .catbar-submenu {
    display: none !important;
  }

  .home-carousel-track {
    min-height: 230px;
  }

  .home-slide-content {
    width: min(100% - 36px, 1200px);
    padding: 52px 30px 62px;
  }

  .home-carousel-arrow {
    width: 36px;
    height: 36px;
  }

  .home-carousel-prev { left: 8px; }
  .home-carousel-next { right: 8px; }
}

/* 2026-07 homepage, catalogue access and mobile navigation refresh. */
.promo-store-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.promo-strip .promo-store-meta a {
  color: inherit;
  font-weight: inherit;
}

.promo-strip .promo-store-meta a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.promo-store-meta b,
.promo-store-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 3px 2px 18px;
}

.product-slider::-webkit-scrollbar { display: none; }
.product-slider .product-card {
  flex: 0 0 calc((100% - 56px) / 5);
  scroll-snap-align: start;
}

.product-slider-controls {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: -6px;
}

.product-slider-controls button {
  width: 44px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
}

.product-slider-controls button:hover { border-color: var(--accent); color: var(--accent); }

.store-reserve-section {
  margin-top: 34px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.store-reserve-title { margin: 0 0 24px; align-items: center; }
.store-reserve-title p { margin: 8px 0 0; color: var(--muted); }
.store-reserve-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 18px; }
.store-reserve-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 112px;
  padding: 20px;
  border-radius: 19px;
  background: color-mix(in srgb,var(--bg) 78%,var(--card));
  text-align: center;
}
.store-reserve-item > span { color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.store-reserve-item strong,
.store-reserve-item > a { margin-top: 8px; font-weight: 850; line-height: 1.4; }
.store-reserve-links a { color: var(--accent); }

.reserve-store-strip {
  display: grid;
  grid-template-columns: .8fr 1fr 1.2fr 1.4fr auto;
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
  box-shadow: var(--shadow);
}
.reserve-store-strip > div,
.reserve-store-strip > a { min-height: 86px; display: flex; flex-direction: column; justify-content: center; padding: 15px 18px; background: var(--card); }
.reserve-store-strip span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.reserve-store-strip strong { margin-top: 6px; line-height: 1.35; }
.reserve-store-strip .reserve-manager-link { align-items: center; color: var(--accent); font-weight: 900; text-align: center; }

[data-product-lock] img { transition: filter .3s ease, transform .25s; }
html:not(.catalog-products-unlocked) [data-product-lock] img { filter: blur(16px); }
html:not(.catalog-products-unlocked) [data-product-lock] .thumbs img { filter: blur(8px); }
html.catalog-products-unlocked [data-product-lock] img { filter: none; }

.product-code-button {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  min-width: 74px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 13px;
  background: rgba(8,12,18,.82);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
}
.product-code-button:hover { background: var(--accent); }
html.catalog-products-unlocked .product-code-button { display: none; }
.gallery { position: relative; }
.product-code-button-detail { top: 46%; }

.product-code-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  place-items: center;
  padding: 20px;
}
.product-code-modal.is-open { display: grid; }
.product-code-backdrop { position: absolute; inset: 0; background: rgba(5,8,13,.72); backdrop-filter: blur(7px); }
.product-code-card {
  position: relative;
  z-index: 1;
  width: min(420px,100%);
  display: grid;
  gap: 14px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 28px 90px rgba(0,0,0,.38);
  text-align: center;
}
.product-code-card h2 { margin: 0; font-size: 28px; }
.product-code-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.product-code-card input {
  width: 100%;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--bg);
  color: var(--text);
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .22em;
  outline: none;
}
.product-code-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,170,166,.1); }
.product-code-error { color: #d83d52; font-weight: 800; }
.product-code-manager { color: var(--accent); font-weight: 850; text-decoration: underline; text-underline-offset: 4px; }
.product-code-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-size: 26px;
}

.mobile-category-bar,
.mobile-category-panel { display: none; }

@media (max-width: 1080px) {
  .product-slider .product-card { flex-basis: calc((100% - 28px) / 3); }
  .store-reserve-grid { grid-template-columns: 1fr 1fr; }
  .store-reserve-links { grid-column: 1 / -1; }
  .reserve-store-strip { grid-template-columns: repeat(2,1fr); }
  .reserve-store-strip .reserve-manager-link { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .catbar { top: 118px; }
  .catbar-inner { display: none; }
  .mobile-category-bar { display: block; }
  .mobile-category-trigger {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    color: #fff;
    font-weight: 850;
  }
  .mobile-category-trigger svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .mobile-category-trigger b { margin-left: auto; }
  .mobile-category-panel { position: fixed; inset: 0; z-index: 160; }
  .mobile-category-panel.is-open { display: block; }
  .mobile-category-backdrop { position: absolute; inset: 0; background: rgba(7,10,15,.58); backdrop-filter: blur(4px); }
  .mobile-category-sheet {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    max-height: min(78vh,720px);
    overflow: auto;
    padding: max(18px,env(safe-area-inset-top)) 18px 26px;
    border-radius: 0 0 26px 26px;
    background: var(--card);
    box-shadow: 0 24px 60px rgba(0,0,0,.3);
  }
  .mobile-category-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .mobile-category-head h2 { margin: 0; }
  .mobile-category-head button { width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--bg); color: var(--text); font-size: 27px; }
  .mobile-category-list { display: grid; gap: 4px; padding-top: 10px; }
  .mobile-category-all,
  .mobile-category-root > a { display: block; padding: 13px 10px; border-radius: 12px; font-weight: 900; }
  .mobile-category-all { color: var(--accent); background: var(--soft); }
  .mobile-category-children { padding-left: 12px; }
  .mobile-category-panel .catbar-menu-item > a { min-height: 38px; padding: 8px 10px; color: var(--text); font-size: 14px; }
  .mobile-category-panel .catbar-menu-arrow { display: none; }
  .mobile-category-panel .catbar-submenu { position: static; display: block; min-width: 0; padding: 0 0 0 12px; border: 0; background: transparent; box-shadow: none; color: var(--text); }

  .home-carousel-track { min-height: 158px; }
  .home-slide-picture { object-fit: cover; }
  .home-carousel-nav { bottom: 9px; }
  .home-carousel-arrow { width: 32px; height: 32px; }

  .product-slider .product-card { flex-basis: calc((100% - 10px) / 2); }
  .product-slider { gap: 10px; }
  .product-slider-controls { display: none; }

  .store-reserve-section { width: min(100% - 24px,1200px); padding: 20px; }
  .store-reserve-title { align-items: stretch; flex-direction: column; }
  .store-reserve-title .btn { width: 100%; }
  .store-reserve-grid { grid-template-columns: 1fr; }
  .store-reserve-links { grid-column: auto; }
  .reserve-store-strip { width: min(100% - 24px,1200px); grid-template-columns: 1fr; }
  .reserve-store-strip .reserve-manager-link { grid-column: auto; }

  .mobile-bottom { height: 68px; padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bottom a,
  .mobile-bottom button { position: relative; display: flex; flex-direction: column; gap: 3px; justify-content: center; align-items: center; font-size: 10px; }
  .mobile-bottom svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-bottom a:first-child svg { fill: color-mix(in srgb,var(--accent) 18%,transparent); }
  .mobile-bottom em { position: absolute; top: 4px; left: calc(50% + 8px); min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10px; font-style: normal; }

  .product-grid,
  .catalog-products,
  .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 10px; }
  .product-card { min-height: 0; border-radius: 17px; }
  .product-image { height: 138px; }
  .product-info { padding: 11px; }
  .product-title { min-height: 42px; font-size: 12px; line-height: 1.25; }
  .sku,
  .mini-sku { font-size: 11px; margin: 5px 0 0; }
  .stock { margin: 6px 0; font-size: 11px; }
  .price-row { flex-direction: row !important; align-items: center !important; gap: 5px; margin-top: 6px; }
  .price-row strong { font-size: 15px; }
  .cart-btn { width: auto !important; min-width: 0; height: 34px; padding: 0 9px; font-size: 11px; }
  .fav-toggle { right: 8px; top: 8px; width: 32px; height: 32px; }
  .badge { left: 7px; top: 7px; padding: 4px 7px; font-size: 9px; }
  .product-code-button { min-width: 62px; height: 36px; padding: 0 13px; font-size: 12px; }
  .section-title { margin: 27px 0 14px; align-items: center; }
  .section-title h2 { font-size: 27px; }
  .section-title a { font-size: 13px; }
  .category-card { min-height: 150px; padding: 15px 9px; border-radius: 18px; }
  .cat-art { width: 78px; height: 78px; border-radius: 21px; }
  .category-card strong { font-size: 13px; line-height: 1.2; }
  .category-card em { display: none; }
}

@media (max-width: 380px) {
  .product-image { height: 122px; }
  .product-info { padding: 9px; }
  .price-row { align-items: stretch !important; flex-direction: column !important; }
  .cart-btn { width: 100% !important; }
}

/* 2026-07-22 reserve flow, grouped categories and compact mobile header. */
.mobile-city-menu,
.mobile-header-category,
.mobile-subcategory-toggle,
.mobile-store-info { display: none; }

.footer-legal { max-width: 780px; }
.footer-legal p { margin: 0 0 8px; color: #c1c7d1; line-height: 1.55; }

.home-category-groups { padding-bottom: 8px; }
.home-category-group {
  display: grid;
  grid-template-columns: 240px minmax(0,1fr);
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: color-mix(in srgb,var(--card) 82%,var(--bg));
}
.home-category-root-card { min-height: 100%; }
.home-subcategory-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.home-subcategory-card {
  min-width: 0;
  min-height: 156px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--card);
  text-align: center;
  transition: transform .2s,border-color .2s;
}
.home-subcategory-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.home-subcategory-art {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg,var(--soft),var(--card));
  color: var(--accent);
  font-size: 38px;
  font-weight: 950;
}
.home-subcategory-art img { width: 100%; height: 100%; object-fit: contain; }
.home-subcategory-card strong { font-size: 13px; line-height: 1.25; }

.reserve-checkout-head { padding: 24px 0 4px; }
.reserve-checkout-head h1 { margin: 18px 0 0; font-size: clamp(32px,4vw,48px); }
.reserve-breadcrumbs { display: flex; justify-content: flex-end; gap: 10px; color: var(--muted); font-size: 13px; text-transform: uppercase; }
.reserve-breadcrumbs a { color: var(--text); font-weight: 850; }
.reserve-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(460px,1.1fr);
  gap: clamp(34px,8vw,120px);
  align-items: start;
  padding: 18px 0 58px;
}
.reserve-instructions { padding: 22px 0; }
.reserve-instructions h2 { margin: 0 0 18px; font-size: 24px; }
.reserve-instructions p { max-width: 560px; font-size: 17px; line-height: 1.58; }
.reserve-manager-button { display: inline-flex; margin-top: 10px; color: var(--accent); font-weight: 900; text-decoration: underline; text-underline-offset: 4px; }
.reserve-store-details { display: grid; gap: 8px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); }
.reserve-store-details a { color: var(--text); font-weight: 850; }
.reserve-order-card {
  display: grid;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.reserve-order-card h2 { margin: 0; font-size: 30px; text-transform: uppercase; }
.reserve-order-columns { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; text-transform: uppercase; }
.reserve-cart-summary .cart-summary-item { grid-template-columns: 52px minmax(0,1fr) auto; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.reserve-cart-summary .cart-summary-item img { width: 52px; height: 52px; }
.reserve-cart-summary .cart-summary-total { display: flex; justify-content: flex-end; font-size: 21px; }
.reserve-direct-item { display: grid; grid-template-columns: minmax(0,1fr) 92px auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.reserve-direct-item > div span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
.reserve-direct-item label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.reserve-direct-item input { width: 100%; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); }
.reserve-store-name { margin-top: 8px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 25px; font-weight: 900; text-transform: uppercase; }
.btn.primary.reserve-confirm-button { width: 100%; border-radius: 5px; background: #17191e; box-shadow: none; text-transform: uppercase; }
.reserve-success { padding: 60px 0; }
.reserve-success-card { max-width: 680px; padding: 48px; border: 1px solid var(--line); border-radius: 28px; background: var(--card); box-shadow: var(--shadow); text-align: center; }
.reserve-success-mark { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 36px; font-weight: 950; }
.reserve-success-card h1 { margin: 0; font-size: 38px; }
.reserve-success-card p { color: var(--muted); line-height: 1.55; }
.reserve-success-number { display: block; margin: 10px 0 22px; font-size: 54px; }
.reserve-success-actions { display: grid; gap: 10px; margin-top: 24px; }
.reserve-home-button { border-color: var(--line); color: var(--text); }

@media (max-width: 1080px) {
  .home-subcategory-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .reserve-checkout-layout { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 760px) {
  .topline .topbar {
    display: grid;
    grid-template-columns: auto minmax(82px,1fr) 42px 42px;
    gap: 8px;
    min-height: 0;
    padding: 8px 0 10px;
  }
  .topbar .logo { height: 42px; padding: 4px 8px; box-shadow: 3px 3px 0 var(--text); }
  .topbar .logo { grid-column: 1; grid-row: 1; }
  .topbar .logo-main { font-size: 16px; letter-spacing: .035em; text-transform: none; }
  .topbar .search { grid-column: 1 / -1; grid-row: 2; order: initial; min-width: 0; height: 44px; }
  .topbar .search input { height: 44px; padding-top: 8px; padding-bottom: 8px; }
  .topbar .search button { width: 34px; height: 34px; }
  .topbar .city-switch,
  .topbar .phone,
  .topbar .icons { display: none; }
  .topbar .theme-toggle { grid-column: 3; grid-row: 1; width: 42px; height: 42px; }
  .mobile-city-menu { position: relative; grid-column: 2; grid-row: 1; display: block; min-width: 0; }
  .mobile-city-menu summary { height: 42px; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); font-size: 13px; font-weight: 850; list-style: none; }
  .mobile-city-menu summary::-webkit-details-marker { display: none; }
  .mobile-city-menu summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
  .mobile-city-menu > div { position: absolute; z-index: 90; top: 48px; left: 0; min-width: 150px; padding: 7px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
  .mobile-city-menu a { display: block; padding: 10px; border-radius: 10px; font-weight: 800; }
  .mobile-city-menu a.active { background: var(--soft); color: var(--accent); }
  .mobile-header-category { grid-column: 4; grid-row: 1; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: var(--card); color: var(--text); }
  .mobile-header-category svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .catbar { display: none; }

  .mobile-category-root,
  .mobile-category-panel .catbar-menu-item { position: relative; }
  .mobile-subcategory-toggle { position: absolute; z-index: 2; right: 3px; top: 5px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 11px; background: var(--bg); color: var(--text); font-size: 24px; transition: transform .2s; }
  .mobile-category-root > a,
  .mobile-category-panel .catbar-menu-item > a { padding-right: 48px; }
  .mobile-category-children,
  .mobile-category-panel .catbar-submenu { display: none !important; }
  .mobile-category-root.is-expanded > .mobile-category-children,
  .mobile-category-panel .catbar-menu-item.is-expanded > .catbar-submenu { display: block !important; }
  .is-expanded > .mobile-subcategory-toggle { transform: rotate(90deg); }

  .home-category-group { grid-template-columns: 1fr; padding: 10px; border-radius: 20px; }
  .home-category-root-card { min-height: 130px; display: grid; grid-template-columns: 82px minmax(0,1fr); grid-template-rows: auto auto; justify-items: start; text-align: left; padding: 14px; }
  .home-category-root-card .cat-art { grid-row: 1 / 3; width: 82px; height: 82px; }
  .home-category-root-card strong { align-self: end; font-size: 16px; }
  .home-category-root-card em { display: block; align-self: start; }
  .home-subcategory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .home-subcategory-card { min-height: 130px; padding: 10px 7px; }
  .home-subcategory-art { width: 72px; height: 72px; border-radius: 18px; }

  .mobile-store-info { display: block; margin-top: 24px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
  .mobile-store-info h2 { margin: 0 0 16px; font-size: 21px; }
  .mobile-store-info-grid { display: grid; gap: 12px; }
  .mobile-store-info-grid > div { display: grid; gap: 5px; padding: 13px; border-radius: 14px; background: var(--bg); }
  .mobile-store-info-grid span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
  .mobile-store-info-grid strong,
  .mobile-store-info-grid a { font-weight: 800; line-height: 1.4; }
  .mobile-store-actions a { color: var(--accent); }

  .product-grid:not(.product-slider) .product-card,
  .catalog-products .product-card,
  .product-slider .product-card { display: flex; flex-direction: column; height: auto; align-self: stretch; }
  .product-grid:not(.product-slider) .product-info,
  .catalog-products .product-info,
  .product-slider .product-info { display: flex; flex: 1; flex-direction: column; }
  .product-title { min-height: 46px; height: 46px; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
  .price-row { margin-top: auto; padding-top: 6px; }

  .reserve-checkout-head { padding: 24px 0 6px; }
  .reserve-breadcrumbs { justify-content: flex-start; }
  .reserve-checkout-head h1 { margin-top: 18px; font-size: 30px; }
  .reserve-checkout-layout { padding: 16px 0 32px; }
  .reserve-instructions { padding: 12px 0; }
  .reserve-instructions p { font-size: 15px; }
  .reserve-order-card { padding: 20px 16px; border-radius: 20px; }
  .reserve-order-card h2 { font-size: 24px; }
  .reserve-direct-item { grid-template-columns: 1fr 72px; }
  .reserve-direct-item > strong { grid-column: 1 / -1; }
  .reserve-store-name { font-size: 20px; }
  .reserve-success { padding: 30px 0; }
  .reserve-success-card { padding: 32px 20px; }
  .reserve-success-number { font-size: 46px; }
  .footer-legal p { font-size: 13px; }
}

/* 2026-07-22: the global mobile header already owns search and categories. */
@media (max-width: 760px) {
  .compact-catalog {
    padding-top: 14px;
  }

  .compact-catalog > .mobile-filter-btn {
    display: none !important;
  }

  .compact-catalog .catalog-title {
    margin-bottom: 12px;
  }

  .compact-catalog .catalog-title h1 {
    font-size: 24px;
    line-height: 1.15;
  }

  .compact-catalog .catalog-title p {
    display: none;
  }

  .compact-catalog .catalog-toolbar {
    grid-template-columns: minmax(0,1fr) auto;
    align-items: stretch;
    gap: 9px;
    margin-bottom: 14px;
  }

  .compact-catalog .catalog-toolbar input[name="q"] {
    display: none;
  }

  .compact-catalog .catalog-toolbar select {
    min-width: 0;
    height: 46px;
    padding: 0 38px 0 14px;
  }

  .compact-catalog .catalog-toolbar .btn {
    min-width: 104px;
    height: 46px;
    padding: 0 16px;
  }
}
.category-legacy-description{margin-top:8px}.category-legacy-description__body{background:var(--card);border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow);font-size:16px;line-height:1.75;padding:clamp(24px,4vw,48px);text-align:center}.category-legacy-description__body h1,.category-legacy-description__body h2,.category-legacy-description__body h3{font-size:clamp(22px,3vw,32px);line-height:1.2;margin:0 0 18px;text-transform:uppercase}.category-legacy-description__body p{margin:0 auto 16px;max-width:1120px}.category-legacy-description__body strong{font-weight:900}.category-legacy-description__body ul,.category-legacy-description__body ol{display:inline-block;margin:0 auto 18px;max-width:900px;text-align:left}.category-legacy-description__body > :last-child{margin-bottom:0}@media(max-width:760px){.category-legacy-description__body{border-radius:22px;font-size:15px;line-height:1.65;padding:22px 18px}.category-legacy-description__body h1,.category-legacy-description__body h2,.category-legacy-description__body h3{font-size:22px}}

.gallery { position: relative; }
.detail-new-badge { left: 16px; top: 16px; z-index: 5; }

/* 2026-07-23: product flavor is mandatory information.
   Never crop the tail of product names; the flavor is commonly placed there. */
.product-grid:not(.product-slider) .product-card,
.catalog-products .product-card,
.product-slider .product-card {
  display: flex;
  flex-direction: column;
  height: auto;
  align-self: stretch;
}
.product-grid:not(.product-slider) .product-info,
.catalog-products .product-info,
.product-slider .product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.product-grid .product-title,
.catalog-products .product-title,
.product-slider .product-title {
  display: block;
  height: auto;
  min-height: 46px;
  overflow: visible;
  overflow-wrap: anywhere;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
}
.product-grid .product-title--long,
.catalog-products .product-title--long,
.product-slider .product-title--long { font-size: 13px; }
.product-grid .product-title--very-long,
.catalog-products .product-title--very-long,
.product-slider .product-title--very-long { font-size: 12px; line-height: 1.22; }
.product-grid .price-row,
.catalog-products .price-row,
.product-slider .price-row {
  margin-top: auto;
}
@media (max-width: 760px) {
  .product-grid .product-title,
  .catalog-products .product-card .product-title,
  .product-slider .product-title {
    min-height: 54px;
    font-size: 14px;
    line-height: 1.28;
  }
  .product-grid .product-title--long,
  .catalog-products .product-card .product-title--long,
  .product-slider .product-title--long { font-size: 12.5px; line-height: 1.24; }
  .product-grid .product-title--very-long,
  .catalog-products .product-card .product-title--very-long,
  .product-slider .product-title--very-long { font-size: 11.5px; line-height: 1.2; }
}
