/* MaxTopKicks custom styles: shop filters, kick cards, product page, order dialog, live search */

[hidden] { display: none !important; }

:root {
  --lime: #00ff00;
  --lime-ink: #000000;
  --sale: #d30005;
  --card-bg: #f3f3f3;
}

/* ---------- Brand: header logo, marquee, accents ---------- */
.logo-header img.logo { width: auto; height: 64px; max-width: none; }
@media (min-width: 768px) { .logo-header img.logo { height: 76px; } }
@media (min-width: 1150px) { .logo-header img.logo { height: 90px; } }
#header .wrapper-header { min-height: 76px; padding-top: 6px; padding-bottom: 6px; }
.footer .footer-logo img { width: 60px; height: auto; }

.mtk-marquee { background-color: var(--lime); color: var(--lime-ink); }
.mtk-marquee .text { color: var(--lime-ink) !important; }
.mtk-marquee .marquee-item .icon { color: var(--lime-ink); }
.mtk-marquee .icon svg path { fill: currentColor; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container-wide { width: 100%; max-width: 1640px; margin: 0 auto; padding: 0 15px; }
@media (min-width: 1150px) { .container-wide { padding: 0 40px; } }
.shop-page-title { padding: 36px 0 28px; }
.shop-section.flat-spacing-6 { padding-top: 24px; }

/* ---------- Shop layout ---------- */
.shop-layout { display: block; }
@media (min-width: 1150px) {
  .shop-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; }
}
.shop-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.shop-count { font-size: 15px; font-weight: 600; margin-right: auto; }
.shop-filter-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border: 1px solid #000;
  border-radius: 999px; background: #fff; color: #000; font-weight: 600; font-size: 14px; cursor: pointer;
}
.shop-filter-btn .icon { font-size: 16px; }
.shop-filter-num { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #111; color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
@media (min-width: 1150px) { .shop-filter-btn { display: none; } }
.shop-sort { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.shop-sort select {
  min-height: 42px; padding: 6px 36px 6px 14px; border: 1px solid var(--line); border-radius: 999px; background-color: #fff; font-size: 14px; font-weight: 500;
  -webkit-appearance: none; appearance: none; width: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
@media (max-width: 575px) {
  .shop-toolbar { gap: 10px; }
  .shop-count { order: 3; width: 100%; font-size: 14px; color: var(--text); font-weight: 500; }
  .shop-sort > span { display: none; }
}

.shop-results { transition: opacity .2s; min-height: 240px; }
.shop-results.is-loading { opacity: .45; pointer-events: none; }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -4px 0 18px; }
.active-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 12px; border: 1px solid #000; border-radius: 999px;
  background: #fff; color: #000; font-size: 13px; font-weight: 500; cursor: pointer;
}
.active-chip:hover { background: #000; color: #fff; }
.active-clear { font-size: 13px; text-decoration: underline; margin-left: 4px; }

/* ---------- Filter panel (clean white, like big sneaker stores) ---------- */
.filter-panel { background: #fff; color: #111; }
.filter-panel-head { display: none; }
.filter-panel-foot { display: none; }
@media (min-width: 1150px) { .filter-scrim { display: none; } }
@media (min-width: 1150px) {
  .filter-panel { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #ccc transparent; border-top: 1px solid #e5e5e5; }
}
.fgroup { border-bottom: 1px solid #e5e5e5; }
.fgroup-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 0 4px 0 2px;
  list-style: none; cursor: pointer; font-size: 16px; font-weight: 600; color: #111;
  -webkit-user-select: none; user-select: none;
}
.fgroup-head::-webkit-details-marker { display: none; }
.fgroup-count { color: #707072; font-weight: 500; }
.fgroup-chev { flex: none; width: 18px; height: 18px; transition: transform .2s; }
.fgroup[open] .fgroup-chev { transform: rotate(180deg); }
.fgroup-body { padding: 0 2px 20px; }
.fgroup-head:focus-visible { outline: 2px solid #111; outline-offset: -2px; border-radius: 4px; }

.fcheck { display: flex; align-items: center; gap: 12px; min-height: 34px; margin: 0; cursor: pointer; font-size: 15px; color: #111; }
.fcheck input, .fsize input, .fcolor input { position: absolute; opacity: 0; pointer-events: none; }
.fbox { flex: none; width: 18px; height: 18px; border: 1.5px solid #111; border-radius: 3px; position: relative; background: #fff; transition: background-color .15s; }
.fcheck input:checked + .fbox { background: #111; }
.fcheck input:checked + .fbox::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.fcheck input:focus-visible + .fbox { outline: 2px solid #111; outline-offset: 2px; }
.fcheck:hover .flabel { color: #707072; }
.flabel { flex: 1; min-width: 0; }
.fnum { color: #9e9ea0; font-size: 13px; }
.fcheck-sale .flabel { color: var(--sale); font-weight: 600; }

.fgroup-sizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.fsize { position: relative; margin: 0; cursor: pointer; }
.fsize span {
  display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 4px; border: 1px solid #e5e5e5; border-radius: 6px;
  font-size: 13px; font-weight: 400; text-align: center; line-height: 1.2; color: #111; background: #fff; transition: border-color .15s;
}
.fsize:hover span { border-color: #111; }
.fsize input:checked + span { border-color: #111; box-shadow: inset 0 0 0 1px #111; font-weight: 600; }
.fsize input:focus-visible + span { outline: 2px solid #111; outline-offset: 2px; }

.fgroup-colors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 6px; }
.fcolor { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; cursor: pointer; }
.fcolor-dot { display: inline-block; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s; }
.fcolor-name { font-size: 12px; color: #111; text-align: center; line-height: 1.2; }
.fcolor input:checked + .fcolor-dot { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #111; }
.fcolor input:checked ~ .fcolor-name { font-weight: 600; }
.fcolor input:focus-visible + .fcolor-dot { outline: 2px solid #111; outline-offset: 4px; }

/* Mobile/tablet: the panel slides in from the left */
@media (max-width: 1149px) {
  .filter-panel {
    position: fixed; z-index: 1060; top: 0; bottom: 0; left: 0; width: min(88vw, 380px);
    display: flex; flex-direction: column; transform: translateX(-102%); transition: transform .28s ease; visibility: hidden;
    box-shadow: 8px 0 30px rgba(0, 0, 0, .12);
  }
  .filters-open .filter-panel { transform: none; visibility: visible; }
  .filter-panel-head {
    display: flex; align-items: center; justify-content: space-between; padding: calc(12px + env(safe-area-inset-top)) 8px 12px 18px;
    border-bottom: 1px solid #e5e5e5; font-size: 20px; font-weight: 600;
  }
  .filter-close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: #f5f5f5; border: 0; border-radius: 50%; color: #111; cursor: pointer; }
  .filter-panel-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 18px; }
  .filter-panel-foot {
    display: flex; gap: 10px; align-items: center; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #e5e5e5; background: #fff;
  }
  .filter-clear {
    flex: 1; min-height: 48px; display: flex; align-items: center; justify-content: center; border: 1.5px solid #cacacb; border-radius: 999px;
    color: #111; font-size: 15px; font-weight: 500; white-space: nowrap;
  }
  .filter-apply {
    flex: 1.4; min-height: 48px; border: 0; border-radius: 999px; background: #111; color: #fff; font-weight: 500; font-size: 15px; cursor: pointer;
  }
  .filter-scrim { position: fixed; inset: 0; z-index: 1055; background: rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .filters-open .filter-scrim { opacity: 1; pointer-events: auto; }
  .filters-open { overflow: hidden; }
  .fgroup-sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fgroup-colors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1149px) and (max-width: 360px) {
  .fgroup-sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Kick cards ---------- */
.kick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 10px; }
@media (min-width: 768px) { .kick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 16px; } }
@media (min-width: 1400px) { .shop-main .kick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kick-grid-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 992px) { .kick-grid-related { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 8px; } }
.js-favorites-page .kick-grid { }
@media (min-width: 1150px) { .js-favorites-page .kick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.kick-card { display: flex; flex-direction: column; min-width: 0; }
.kick-media { position: relative; }
.kick-img { display: block; position: relative; aspect-ratio: 1 / 1; background: var(--card-bg); overflow: hidden; }
.kick-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply;
  transition: opacity .35s ease, transform .5s ease;
}
.kick-img .img-hover { opacity: 0; }
@media (hover: hover) {
  .kick-card:hover .kick-img.has-hover .img-main { opacity: 0; }
  .kick-card:hover .kick-img.has-hover .img-hover { opacity: 1; }
  .kick-card:hover .kick-img:not(.has-hover) .img-main { transform: scale(1.04); }
}
.kick-card.is-sold-out .kick-img img { opacity: .5; }

.kick-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; pointer-events: none; z-index: 2; }
.kick-badge { display: inline-block; padding: 3px 8px; border-radius: 3px; font-size: 12px; font-weight: 700; line-height: 1.4; color: #fff; background: var(--sale); }
.kick-badge-out { background: #000; }
.kick-badge-drop { background: var(--lime); color: #000; }

.kick-fav {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); cursor: pointer; transition: transform .15s;
}
.kick-fav svg, .pdp-btn.js-fav svg { fill: none; stroke: #000; stroke-width: 1.6; }
.kick-fav:hover { transform: scale(1.08); }
.kick-fav.is-fav svg, .pdp-btn.js-fav.is-fav svg { fill: #000; }

.kick-info { padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.kick-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.kick-sale { color: var(--sale); }
.kick-regular { color: #000; }
.kick-was { font-size: 13px; font-weight: 400; color: var(--text); }
.kick-was del { color: var(--text); }
.kick-off { font-size: 13px; font-weight: 600; color: var(--sale); }
.kick-title {
  font-size: 15px; line-height: 1.35; color: #000; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word;
}
.kick-title:hover { text-decoration: underline; }
.kick-sub { font-size: 14px; color: var(--text-2); }
.kick-card.is-compact .kick-title { text-transform: none; }
@media (max-width: 575px) {
  .kick-title { font-size: 14px; }
  .kick-price { font-size: 14px; }
  .kick-sub { font-size: 13px; }
  .kick-fav { width: 34px; height: 34px; top: 6px; right: 6px; }
}

/* ---------- Product page ---------- */
.pdp { padding: 16px 0 40px; }
.pdp-container { max-width: 1240px; }
.pdp-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--text-2); margin-bottom: 18px; }
.pdp-crumbs a:hover { color: #000; text-decoration: underline; }
.pdp-crumbs [aria-current] { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.pdp-wrap { display: grid; gap: 24px; }
@media (min-width: 992px) { .pdp-wrap { grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: 48px; align-items: start; } }

.pdp-gallery { display: flex; flex-direction: column-reverse; gap: 10px; min-width: 0; }
@media (min-width: 768px) { .pdp-gallery { flex-direction: row; gap: 16px; } }
@media (min-width: 992px) { .pdp-gallery { position: sticky; top: 16px; } }
.pdp-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.pdp-thumbs::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .pdp-thumbs { flex-direction: column; width: 64px; flex: none; max-height: 560px; overflow-y: auto; overflow-x: hidden; } }
.pdp-thumb {
  flex: none; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--card-bg); cursor: pointer; position: relative;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pdp-thumb::after { content: ""; position: absolute; inset: 0; border-radius: 6px; transition: background-color .15s; }
.pdp-thumb:hover::after, .pdp-thumb.is-active::after { background: rgba(0, 0, 0, .12); }
.pdp-thumb.is-active { box-shadow: inset 0 0 0 2px #000; }
@media (max-width: 767px) { .pdp-thumbs { display: none; } }

.pdp-stage { position: relative; flex: 1; min-width: 0; border-radius: 8px; overflow: hidden; background: var(--card-bg); }
.pdp-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; aspect-ratio: 1 / 1; }
.pdp-track::-webkit-scrollbar { display: none; }
.pdp-track:focus-visible { outline: 2px solid #000; outline-offset: -2px; }
.pdp-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; }
.pdp-slide img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pdp-stage .kick-badges { top: 14px; left: 14px; }
.pdp-arrows { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 10px; }
.pdp-arrow {
  width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; color: #000; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12); cursor: pointer;
}
.pdp-arrow:hover { background: #e5e5e5; }
.pdp-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.pdp-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(0, 0, 0, .25); transition: all .2s; }
.pdp-dots span.is-active { background: #000; width: 18px; border-radius: 3px; }
@media (min-width: 768px) { .pdp-dots { display: none; } }
@media (max-width: 767px) { .pdp-arrows { display: none; } .pdp-container { padding-left: 0; padding-right: 0; } .pdp-stage { border-radius: 0; } .pdp-crumbs, .pdp-info { padding: 0 15px; } }

.pdp-title { font-size: 26px; line-height: 1.2; font-weight: 600; margin: 0 0 4px; letter-spacing: -.01em; }
.pdp-sub { font-size: 16px; color: var(--text); margin-bottom: 14px; }
.pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; font-size: 18px; font-weight: 600; }
.pdp-sale { color: var(--sale); font-size: 20px; }
.pdp-regular { color: #000; font-size: 20px; }
.pdp-was { color: var(--text); font-weight: 400; font-size: 16px; }
.pdp-off { color: var(--sale); font-size: 15px; font-weight: 600; }
.pdp-colorway { color: var(--text); margin: 0 0 6px; font-size: 14px; }
.pdp-alert { margin: 16px 0 0; padding: 12px 14px; border-radius: 8px; background: #eaffea; border: 1px solid #7ddc7d; color: #0b5a0b; font-weight: 500; }

.pdp-sizes { border: 0; padding: 0; margin: 28px 0 0; min-width: 0; }
.pdp-sizes-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pdp-sizes legend { float: left; width: auto; margin: 0; padding: 0; font-size: 16px; font-weight: 600; }
.pdp-guide-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 6px 0; font-size: 14px; font-weight: 600; color: #000; cursor: pointer; }
.pdp-guide-btn:hover { text-decoration: underline; }
.pdp-size-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; clear: both; }
.pdp-size-grid.is-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 576px) and (max-width: 991px) { .pdp-size-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pdp-size-grid.is-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pdp-size { position: relative; margin: 0; cursor: pointer; }
.pdp-size input { position: absolute; opacity: 0; pointer-events: none; }
.pdp-size span {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 4px 6px; border: 1px solid #e5e5e5; border-radius: 6px;
  font-size: 15px; font-weight: 400; text-align: center; background: #fff; transition: border-color .15s;
}
.pdp-size:hover span { border-color: #000; }
.pdp-size input:checked + span { border-color: #000; box-shadow: inset 0 0 0 1px #000; font-weight: 600; }
.pdp-size input:focus-visible + span { outline: 2px solid #000; outline-offset: 2px; }
.pdp-size.is-out { cursor: not-allowed; }
.pdp-size.is-out span { background: #f5f5f5; color: #b3b3b3; text-decoration: line-through; border-color: #ededed; }
.pdp-sizes.has-error .pdp-size-grid { outline: 1px solid var(--sale); outline-offset: 4px; border-radius: 6px; }
.pdp-size-error { color: var(--sale); font-size: 14px; margin: 10px 0 0; }

.pdp-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.pdp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; padding: 12px 24px; border-radius: 999px;
  font-size: 16px; font-weight: 600; cursor: pointer; border: 1.5px solid transparent; transition: background-color .15s, color .15s, border-color .15s; text-decoration: none;
}
.pdp-btn-dark { background: #111; color: #fff; }
.pdp-btn-dark:hover:not(:disabled) { background: var(--lime); color: #000; }
.pdp-btn-dark:disabled { background: #d9d9d9; color: #777; cursor: not-allowed; }
.pdp-btn-light { background: #fff; color: #000; border-color: #d4d4d4; }
.pdp-btn-light:hover { border-color: #000; }
.pdp-btn-wa { background: #25d366; color: #fff; }
.pdp-btn-wa:hover { background: #1ebe5a; color: #fff; }
.pdp-btn.is-busy { opacity: .6; pointer-events: none; }
.pdp-note { margin: 14px 0 0; font-size: 13px; color: var(--text); text-align: center; }
.pdp-desc { margin-top: 32px; font-size: 16px; line-height: 1.65; color: #111; }
.pdp-specs { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.pdp-specs dt { font-weight: 600; color: #000; }
.pdp-specs dd { margin: 0; color: var(--text); }
.pdp-specs a { text-decoration: underline; text-underline-offset: 2px; }
.pdp-colors { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.pdp-colors a { display: inline-flex; align-items: center; gap: 6px; }
.pdp-colors .fcolor-dot { width: 16px; height: 16px; border: 1px solid #ccc; }

.pdp-related { padding: 40px 0 60px; border-top: 1px solid var(--line); }
.related-title { font-size: 34px; line-height: 1.1; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 24px; }
@media (max-width: 767px) { .pdp-related .pdp-container { padding: 0 15px; } .related-title { font-size: 26px; } }

/* ---------- Dialogs (order form, size guide) ---------- */
.mtk-dialog {
  width: min(520px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: 16px; background: #fff; color: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25); overflow: auto; overscroll-behavior: contain;
}
.mtk-dialog-wide { width: min(720px, calc(100% - 24px)); }
.mtk-dialog::backdrop { background: rgba(0, 0, 0, .55); }
@media (max-width: 575px) {
  .mtk-dialog { width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
}
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 12px 12px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 20px; margin: 0; font-weight: 700; }
.dialog-close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: #f2f2f2; cursor: pointer; }
.dialog-close:hover { background: #e4e4e4; }
.order-form { margin: 0; }
.js-order-body, .order-done { padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); }
.order-summary { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 10px; background: #f6f6f6; margin-bottom: 16px; }
.order-summary img { width: 72px; height: 72px; object-fit: contain; mix-blend-mode: multiply; flex: none; }
.order-summary div { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; }
.order-summary strong { line-height: 1.3; }
.order-summary-size { color: var(--text); }
.order-summary-size.is-set { color: #000; font-weight: 600; }
.order-summary-price { font-weight: 600; }
.order-summary-price del { color: var(--text-2); font-weight: 400; }
.order-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; font-size: 14px; font-weight: 600; flex: 1; min-width: 0; }
.order-field input, .order-field select, .order-field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #cfcfcf; border-radius: 10px; font-size: 16px; font-weight: 400; background: #fff; color: #000;
}
.order-field textarea { min-height: 70px; resize: vertical; }
.order-field input:focus, .order-field select:focus, .order-field textarea:focus { outline: 2px solid #000; outline-offset: 0; border-color: transparent; }
.order-row { display: flex; gap: 12px; }
.order-qty { flex: 0 0 110px; }
@media (max-width: 480px) { .order-row { flex-direction: column; gap: 0; } .order-qty { flex: 1; } }
.order-hint { font-size: 13px; color: var(--text); margin: 2px 0 16px; }
.order-errors { background: #fff1f0; border: 1px solid #ffc9c4; color: #a3140a; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.order-errors p { margin: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.order-done { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.order-done-icon { width: 64px; height: 64px; margin: 8px auto 0; border-radius: 50%; background: var(--lime); color: #000; font-size: 32px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.order-done h3 { font-size: 22px; margin: 0; }
.order-done p { margin: 0 0 6px; color: var(--text); }

.size-guide { padding: 16px 20px 24px; }
.size-guide > p { color: var(--text); font-size: 14px; }
.size-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: center; }
.size-table th { background: #111; color: #fff; padding: 10px 8px; font-weight: 600; white-space: nowrap; }
.size-table td { padding: 8px; border-top: 1px solid var(--line); }
.size-table tbody tr:nth-child(even) td { background: #fafafa; }
.size-guide-tip { margin-top: 14px; }

/* Search suggestions: sold-out tag */
.suggest-out { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 3px; background: #000; color: #fff; font-size: 11px; }
.suggest-sub { font-size: 12px; color: var(--text-2); }
.suggest-price .is-sale { color: var(--sale); }

/* ---------- Search ---------- */
.canvas-search .tf-search-head { padding-top: env(safe-area-inset-top); }
@media (max-width: 767px) {
  .canvas-search { padding-top: 24px; }
  .canvas-search .tf-search-head .title { font-size: 22px; margin-bottom: 14px; }
}
.search-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 8px; }
.search-chips a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  background: #fff;
}
.search-chips a:hover, .search-chips a.is-active { border-color: var(--main); }
.search-chips-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }

.search-suggestions { padding-bottom: 16px; }
.search-suggestions.is-loading { opacity: .6; }
.suggest-group-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin: 4px 0 10px; }
.suggest-list { list-style: none; padding: 0; margin: 0 0 12px; }
.suggest-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px;
  margin: 0 -8px;
  border-radius: 6px;
  color: var(--main);
}
.suggest-item:hover, .suggest-item.is-active { background: var(--bg-11); }
.suggest-img { flex: 0 0 56px; width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 4px; background: #fff; overflow: hidden; }
.suggest-img img { width: 100%; height: 100%; object-fit: contain; }
.suggest-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.suggest-title { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.suggest-title mark, .search-chips mark, .suggest-code mark { background: #fff3a3; padding: 0; color: inherit; }
.suggest-price { font-size: 13px; }
.suggest-price del { color: var(--text-2); }
.suggest-code { display: inline-block; margin-left: 4px; padding: 0 6px; border: 1px dashed var(--text-2); border-radius: 3px; font-size: 12px; }
.suggest-all { display: block; padding: 10px 0; font-weight: 600; text-decoration: underline; }
.suggest-all.is-active { background: var(--bg-11); }
.suggest-option.is-active { outline: none; }
.suggest-empty { color: var(--text); padding: 8px 0; }

.deal-search-page { max-width: 640px; margin: 0 auto; position: relative; }
.deal-search-page input { height: 50px; border-radius: 4px; }
.search-suggestions-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
  padding: 12px 16px;
}
.mb-search { margin: 0 0 16px; }

/* Keep content clear of the mobile bottom toolbar */
@media (max-width: 1149px) {
  #footer { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}


.deal-empty { text-align: center; padding: 48px 16px; color: var(--text); }
.deal-empty p { margin-bottom: 20px; }
.deal-result-count { color: var(--text); margin: 20px 0; }

.deal-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.deal-pagination a {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 4px;
}
.deal-pagination a.active { background: var(--main); color: #fff; border-color: var(--main); }

.flat-title h1.title { margin: 0; font-weight: inherit; color: inherit; letter-spacing: inherit; }
.tf-page-title h1.heading { margin: 0; }

.legal-content h6 { margin: 18px 0 8px; }
.legal-content ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.legal-content p { margin-bottom: 10px; }

.price-disclaimer { font-size: 12px; opacity: .75; max-width: 640px; }


/* Heart visit counter: let the badge grow with bigger numbers */
.tf-toolbar-bottom .toolbar-item a .toolbar-icon .toolbar-count {
  width: auto; min-width: 18px; padding: 0 5px; border-radius: 999px; right: auto; left: 60%; white-space: nowrap;
}
#header .nav-icon .count-box { overflow: visible; }

/* Scrolling strip links */
.tf-marquee .marquee-link { display: block; color: inherit; text-decoration: none; }
.tf-marquee .marquee-link:hover .text { text-decoration: underline; text-underline-offset: 3px; }
/* Scroll the full list: the strip is as wide as all texts (repeated twice), and moves exactly one copy. */
.mtk-marquee .wrap-marquee {
  width: max-content;
  -webkit-animation: mtk-marquee var(--marquee-duration, 40s) linear infinite;
  animation: mtk-marquee var(--marquee-duration, 40s) linear infinite;
}
.mtk-marquee .wrap-marquee:hover,
.mtk-marquee .wrap-marquee:active { animation-play-state: paused; }
@keyframes mtk-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .mtk-marquee .wrap-marquee { animation-duration: calc(var(--marquee-duration, 40s) * 2); }
}

/* Mobile bottom bar: equal columns, icons on one line, labels on one line */
.tf-toolbar-bottom { padding: 0 4px env(safe-area-inset-bottom); overflow-x: hidden; }
.tf-toolbar-bottom .toolbar-item { flex: 1 1 0; min-width: 0; }
.tf-toolbar-bottom .toolbar-item a {
  height: 64px; padding: 12px 2px 0; gap: 8px; justify-content: flex-start;
}
.tf-toolbar-bottom .toolbar-item a .toolbar-icon {
  height: 22px; width: 22px; display: flex; align-items: center; justify-content: center; flex: none;
}
.tf-toolbar-bottom .toolbar-item a .toolbar-icon i { font-size: 20px; line-height: 1; }
.tf-toolbar-bottom .toolbar-item a .toolbar-label {
  display: block; max-width: 100%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 11px; line-height: 14px;
}
@media (max-width: 359px) {
  .tf-toolbar-bottom .toolbar-item a .toolbar-label { font-size: 10px; }
}

.tf-top-bar .top-bar-text a.tf-btn { color: var(--lime); }
.tf-top-bar .top-bar-text a.tf-btn::after { background-color: var(--lime); }

/* ---------- Cookie notice ---------- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050; display: flex; align-items: center; gap: 20px 40px;
  padding: 18px 32px calc(18px + env(safe-area-inset-bottom)); background: #222; color: #fff; box-shadow: 0 -4px 20px rgba(0, 0, 0, .2);
}
.cookie-text { flex: 1; margin: 0; font-size: 13px; line-height: 1.55; color: #fff; max-width: 820px; }
.cookie-text strong { font-weight: 600; }
.cookie-text a { color: #fff; font-weight: 700; }
.cookie-text a:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex: none; }
.cookie-btn { min-height: 44px; padding: 10px 22px; border-radius: 3px; font-size: 14px; font-weight: 700; cursor: pointer; border: 1.5px solid transparent; white-space: nowrap; }
.cookie-btn-light { background: #fff; color: #000; border-color: #fff; }
.cookie-btn-light:hover { background: #e9e9e9; }
.cookie-btn-dark { background: #000; color: #fff; border-color: #000; min-width: 124px; }
.cookie-btn-dark:hover { background: var(--lime); color: #000; border-color: var(--lime); }
@media (max-width: 1149px) {
  /* sits above the mobile bottom bar */
  .cookie-bar { bottom: calc(64px + env(safe-area-inset-bottom)); padding: 14px 16px; flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie-text { font-size: 12px; max-height: 30vh; overflow-y: auto; }
  .cookie-actions .cookie-btn { flex: 1; }
}
body.has-cookie-bar #footer { padding-bottom: 150px; }
@media (max-width: 1149px) { body.has-cookie-bar #footer { padding-bottom: calc(64px + 230px + env(safe-area-inset-bottom)); } }
#cookieDialog .dialog-head .dialog-close { flex: none; }
.cookie-prefs { padding: 8px 20px calc(20px + env(safe-area-inset-bottom)); }
.cookie-pref { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; cursor: default; }
label.cookie-pref { cursor: pointer; }
.cookie-pref strong { font-size: 15px; }
.cookie-pref p { margin: 4px 0 0; font-size: 13px; color: var(--text); line-height: 1.45; }
.cookie-always { flex: none; font-size: 12px; font-weight: 600; color: #1a7f37; padding-top: 2px; }
.cookie-switch {
  flex: none; -webkit-appearance: none; appearance: none; width: 46px; height: 26px; border-radius: 999px; background: #cfcfcf; position: relative; cursor: pointer; transition: background-color .2s; margin-top: 2px;
}
.cookie-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.cookie-switch:checked { background: #111; }
.cookie-switch:checked::after { transform: translateX(20px); }
.cookie-switch:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.cookie-dialog-actions { display: flex; gap: 10px; margin-top: 18px; }
.cookie-dialog-actions .cookie-btn { flex: 1; border-radius: 999px; }
.cookie-dialog-actions .cookie-btn-light { border-color: #cacacb; }
.fcheck, .fcheck .flabel, .fcolor-name, .fsize span { font-weight: 400; }
.fcolor input:checked ~ .fcolor-name, .fsize input:checked + span { font-weight: 600; }
.cookie-pref p { font-weight: 400; }
