/* Gymtayt homepage quick menu.
 * Kept outside Elementor so the same markup works in the editor and frontend.
 */

.gtm-quickmenu {
  width: 100%;
  padding: 14px 0 10px;
  overflow: hidden;
  background: transparent !important;
  font-family: Arial, Helvetica, sans-serif;
  isolation: isolate;
}

.gtm-quickmenu,
.gtm-quickmenu * {
  box-sizing: border-box;
}

.gtm-quickmenu-track {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 8px 6px 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.gtm-quickmenu-track::-webkit-scrollbar {
  display: none;
}

.gtm-item,
.gtm-quickmenu a.gtm-item {
  position: relative;
  z-index: 1;
  display: block;
  flex: 0 0 91px;
  min-width: 91px;
  color: #111 !important;
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

.gtm-item:focus-visible {
  outline: 3px solid #111;
  outline-offset: 4px;
  border-radius: 8px;
}

.gtm-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 9px;
  overflow: visible;
  border: 2px solid rgba(0, 0, 0, .05);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.gtm-item:hover .gtm-thumb {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .14);
}

.gtm-thumb svg {
  display: block;
  width: 34px;
  height: 34px;
}

.gtm-label {
  display: block;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.gtm-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  z-index: 2;
  padding: 5px 7px;
  border: 2px solid #fff;
  border-radius: 20px;
  background: #111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.gtm-drop {
  border-color: #f3b300;
  background: linear-gradient(135deg, #ffb300, #ffd54f);
}

.gtm-wheel {
  border-color: #f0a500;
  background: linear-gradient(135deg, #ffcc33, #ff9800);
}

.gtm-drop svg,
.gtm-wheel svg,
.gtm-cargo svg {
  fill: none;
  stroke: #111;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.gtm-sale {
  background: linear-gradient(135deg, #ff6b6b, #ff9a76);
}

.gtm-sale-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  transform: rotate(-12deg);
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  color: #e53935;
  font-size: 20px;
  font-weight: 800;
}

.gtm-new {
  background: linear-gradient(135deg, #7457ff, #a982ff);
}

.gtm-mini-bag {
  position: relative;
  width: 40px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
}

.gtm-mini-bag::before {
  position: absolute;
  top: -8px;
  left: 10px;
  width: 18px;
  height: 12px;
  border: 2px solid #fff;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  content: "";
}

.gtm-mini-bag::after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #7457ff;
  content: "NEW";
  font-size: 9px;
  font-weight: 800;
}

.gtm-best {
  background: linear-gradient(135deg, #ff7043, #ffb300);
}

.gtm-best svg {
  fill: #fff;
  stroke: #fff;
  stroke-width: 1.3;
}

.gtm-tayt {
  background: linear-gradient(135deg, #d7b8ff, #9c6ade);
}

.gtm-short {
  background: linear-gradient(135deg, #64d8cb, #18a999);
}

.gtm-top {
  background: linear-gradient(135deg, #8bc6ff, #4d8eff);
}

.gtm-tayt svg,
.gtm-short svg,
.gtm-top svg {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.gtm-aff {
  background: linear-gradient(135deg, #4fc3f7, #26a69a);
}

.gtm-aff-dot {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
}

.gtm-aff-dot::before,
.gtm-aff-dot::after {
  position: absolute;
  background: #159a8c;
  border-radius: 50%;
  content: "";
}

.gtm-aff-dot::before {
  top: 16px;
  left: 8px;
  width: 10px;
  height: 10px;
  box-shadow: 16px -8px 0 #159a8c, 16px 8px 0 #159a8c;
}

.gtm-aff-dot::after {
  top: 20px;
  left: 11px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  box-shadow: 6px -6px 0 #159a8c, 6px 6px 0 #159a8c;
}

.gtm-dfyne {
  background: linear-gradient(135deg, #181818, #444);
}

.gtm-oner {
  background: linear-gradient(135deg, #ffb6c1, #f48fb1);
}

.gtm-oace {
  background: linear-gradient(135deg, #90caf9, #64b5f6);
}

.gtm-brand-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  font-size: 22px;
  font-weight: 800;
}

.gtm-dfyne .gtm-brand-chip {
  color: #111;
}

.gtm-oner .gtm-brand-chip {
  color: #c2185b;
}

.gtm-oace .gtm-brand-chip {
  color: #1565c0;
}

.gtm-cargo {
  background: linear-gradient(135deg, #ffd166, #f4a261);
}

.gtm-cargo svg {
  stroke: #5f3b00;
}

.gtm-map {
  background: linear-gradient(135deg, #c5e1a5, #81c784);
}

.gtm-map svg {
  fill: none;
  stroke: #1b5e20;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

@media (max-width: 767px) {
  .gtm-quickmenu {
    padding: 10px 0 6px;
  }

  .gtm-quickmenu-track {
    gap: 11px;
    padding: 7px 8px 9px;
    scroll-snap-type: x proximity;
  }

  .gtm-item,
  .gtm-quickmenu a.gtm-item {
    flex-basis: 79px;
    min-width: 79px;
    scroll-snap-align: start;
  }

  .gtm-thumb {
    width: 63px;
    height: 63px;
    margin-bottom: 7px;
  }

  .gtm-thumb svg {
    width: 28px;
    height: 28px;
  }

  .gtm-label {
    font-size: 11px;
  }

  .gtm-badge {
    padding: 4px 6px;
    font-size: 7px;
  }

  .gtm-sale-tag,
  .gtm-mini-bag,
  .gtm-aff-dot,
  .gtm-brand-chip {
    transform: scale(.88);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gtm-quickmenu-track {
    scroll-behavior: auto;
  }

  .gtm-thumb {
    transition: none;
  }
}
