:root {
  --blue-900: #081b4a;
  --blue: #0f4df3;
  --blue-500: #2f6dff;
  --gray-950: #121722;
  --gray-700: #5d6374;
  --gray-300: #dfe3ed;
  --gray-100: #f3f5f9;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--gray-950);
  background: #f0f1f4;
}

.container {
  width: min(980px, calc(100% - 1rem));
  margin-inline: auto;
}

.home-header {
  background: linear-gradient(140deg, var(--blue-900), var(--blue));
  padding: 0.5rem 0 0.7rem;
  position: sticky;
  top: 0;
  z-index: 25;
}

.head-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
}

.menu-btn {
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 1.45rem;
  line-height: 1;
  padding: 0;
  width: 2rem;
  height: 2rem;
}

.sidebar {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 40, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}

.sidebar.open {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-panel {
  width: min(86vw, 300px);
  height: 100%;
  background: var(--white);
  transform: translateX(-100%);
  transition: transform 0.2s ease;
  padding: 0.8rem;
}

.sidebar.open .sidebar-panel {
  transform: translateX(0);
}

.sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dbe2f0;
  padding-bottom: 0.55rem;
}

.sidebar-head .menu-btn {
  color: var(--blue-900);
}

.sidebar-links {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.35rem;
}

.sidebar-link {
  border: 1px solid #d6deed;
  background: #f6f9ff;
  min-height: 2.6rem;
  border-radius: 0.65rem;
  text-align: left;
  padding: 0.5rem 0.72rem;
  font: inherit;
  font-weight: 700;
  color: var(--gray-950);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.sidebar-link.active {
  background: #e7efff;
  border-color: #a9c0ff;
  color: var(--blue-900);
}

.sidebar-link-accent {
  margin-top: 0.3rem;
  justify-content: center;
  background: linear-gradient(120deg, var(--blue-900), var(--blue));
  border-color: transparent;
  color: var(--white);
}

.store-name {
  color: var(--white);
  text-align: center;
  letter-spacing: 0.06em;
  font-size: 1.65rem;
  font-weight: 800;
}

.store-name-link {
  text-decoration: none;
}

.head-search {
  margin-top: 0.45rem;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
}

.search input {
  width: 100%;
  min-height: 2rem;
  border-radius: 0.65rem;
  border: 1px solid #b5c2e6;
  background: #eff2f8;
  padding: 0 0.7rem;
  font-size: 0.88rem;
}

.search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  background: #fff;
  border: 1px solid #cbd5ed;
  border-radius: 0.75rem;
  box-shadow: 0 12px 24px rgba(7, 20, 54, 0.2);
  overflow: hidden;
  z-index: 30;
  max-height: 320px;
  overflow-y: auto;
}

.search-item {
  width: 100%;
  border: 0;
  background: #fff;
  padding: 0.55rem 0.6rem;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 0.55rem;
  text-align: left;
  text-decoration: none;
  color: inherit;
}

.search-item + .search-item {
  border-top: 1px solid #edf1f8;
}

.search-item img {
  width: 50px;
  height: 50px;
  border-radius: 0.45rem;
  border: 1px solid #dde5f3;
  object-fit: cover;
}

.search-item strong {
  display: block;
  font-size: 0.8rem;
  line-height: 1.25;
}

.search-mark {
  background: #e7efff;
  color: #0b2d84;
  padding: 0 0.12rem;
  border-radius: 0.18rem;
}

.search-price-row {
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.search-old {
  color: #7f8aa2;
  text-decoration: line-through;
  font-size: 0.73rem;
}

.search-new {
  color: #0f4df3;
  font-size: 0.8rem;
  font-weight: 800;
}

.search-empty {
  padding: 0.75rem;
  font-size: 0.8rem;
  color: #5a657c;
}

.cart {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--white);
  background: var(--blue-500);
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-carousel {
  margin-top: 0.65rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 94%;
  overflow-x: auto;
  gap: 0.55rem;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.2rem;
}

.slide {
  scroll-snap-align: start;
  border-radius: 0.75rem;
  padding: 1rem;
  min-height: 170px;
  position: relative;
  overflow: hidden;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(8, 18, 40, 0.05), rgba(8, 18, 40, 0.28));
}

.slide > * {
  position: relative;
  z-index: 1;
}

.slide-layout {
  display: grid;
  gap: 0.85rem;
  height: 100%;
}

.slide-has-image .slide-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(110px, 0.85fr);
  align-items: center;
}

.slide-copy {
  min-width: 0;
}

.slide-main {
  background: linear-gradient(130deg, #0c2d80, #0f4df3 52%, #2f6dff);
  color: var(--white);
}

.slide-alt {
  background: linear-gradient(130deg, #1d2433, #0b1f54);
  color: var(--white);
}

.slide-kicker {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
}

.slide h1,
.slide h2 {
  margin: 0.45rem 0 0;
  font-size: 1.35rem;
  line-height: 1.12;
}

.slide h1 span { color: #9cc0ff; }

.slide p {
  margin: 0.45rem 0 0;
  font-size: 0.84rem;
  font-weight: 600;
}

.slide-media {
  min-height: 132px;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.slide-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(5, 18, 52, 0.26));
}

.btn {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  border: 0;
  border-radius: 0.6rem;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.5rem 0.9rem;
}

.btn-light {
  background: #eef3ff;
  color: var(--blue-900);
}

.shipping-callout {
  margin-top: 0.65rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.65rem;
  background: var(--white);
  padding: 0.75rem;
}

.shipping-callout strong {
  color: #0e9853;
  font-size: 0.97rem;
}

.featured-wrap {
  margin-top: 0.95rem;
}

.icon-shortcuts {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
}

.shortcut {
  text-decoration: none;
  color: var(--gray-700);
  font-size: 0.73rem;
  font-weight: 700;
  text-align: center;
  display: grid;
  gap: 0.2rem;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: inherit;
}

.shortcut span {
  width: 2.4rem;
  height: 2.4rem;
  margin: 0 auto;
  border-radius: 999px;
  background: #eceff5;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}

.shortcut.active span {
  background: #e6f8ee;
  border: 2px solid #12a558;
}

.products {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding-bottom: 1rem;
}

.product-card {
  background: var(--white);
  border-radius: 0.55rem;
  border: 1px solid var(--gray-300);
  padding: 0.7rem;
}

.product-card-anchor {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-card.featured {
  grid-column: 1 / -1;
  margin-bottom: 0.15rem;
}

.thumb {
  width: 100%;
  height: 92px;
  border-radius: 0.5rem;
  margin-bottom: 0.55rem;
}

.product-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 0.55rem;
  border: 1px solid #d4dced;
}

.featured-image-stage {
  position: relative;
  width: 100%;
  height: 176px;
  border-radius: 0.5rem;
  margin-bottom: 0.55rem;
  overflow: hidden;
  background: linear-gradient(128deg, #0d3297 0%, #1a47bf 50%, #315fd3 100%);
}

.featured-shot {
  position: relative;
  width: 37%;
  height: 80%;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 20px rgba(8, 18, 40, 0.32);
}

.featured-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-shot.main {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 44%;
  height: 84%;
  z-index: 3;
}

.featured-shot.near-left {
  position: absolute;
  top: 11%;
  left: 9%;
  z-index: 2;
}

.featured-shot.near-right {
  position: absolute;
  top: 11%;
  right: 9%;
  z-index: 2;
}

.featured-shot.far-left {
  position: absolute;
  top: 15%;
  left: 1%;
  width: 30%;
  height: 70%;
  opacity: 0.92;
  z-index: 1;
}

.featured-shot.far-right {
  position: absolute;
  top: 15%;
  right: 1%;
  width: 30%;
  height: 70%;
  opacity: 0.92;
  z-index: 1;
}

.not-found-panel {
  background: #fff;
  border: 1px solid #dfe3ed;
  border-radius: 0.65rem;
  padding: 0.8rem;
}

.not-found-panel p {
  margin: 0;
  font-size: 0.84rem;
  color: #5a657c;
}

.not-found-panel strong {
  color: #121722;
}

.tracker-thumb { background: radial-gradient(circle at 60% 35%, #2f3643, #131925 68%); }
.earbuds-thumb { background: radial-gradient(circle at 20% 25%, #444, #151922 70%); }
.charger-thumb { background: linear-gradient(130deg, #e8edf8, #ced8f0); }
.case-thumb { background: linear-gradient(130deg, #f0f2f6, #d5dce8); }

.product-card h3 {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.25;
}

.product-card p {
  margin: 0.35rem 0 0;
  color: var(--gray-700);
  font-size: 0.77rem;
}

.home-bullets {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.home-bullets li {
  position: relative;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gray-700);
  padding-left: 0.95rem;
}

.home-bullets li::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #12a558;
  position: absolute;
  left: 0;
  top: 0.3rem;
}

.price {
  margin-top: 0.45rem;
  color: var(--gray-950) !important;
  font-size: 1.22rem !important;
  font-weight: 800;
}

.price small {
  display: block;
  color: #11a057;
  font-size: 0.72rem;
}

.price .price-old {
  color: #8a94a8;
  text-decoration: line-through;
  font-size: 0.74rem;
  margin-top: 0.15rem;
}

.product-card .btn {
  margin-top: 0.6rem;
  width: 100%;
}

.empty-note {
  color: var(--gray-700);
  font-size: 0.85rem;
}

@media (max-width: 360px) {
  .slide-has-image .slide-layout {
    grid-template-columns: 1fr;
  }

  .slide-media {
    min-height: 108px;
  }
}

@media (max-width: 380px) {
  .store-name { font-size: 1.35rem; }
}

@media (min-width: 860px) {
  .hero-carousel { grid-auto-columns: calc(50% - 0.3rem); }
  .products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-card.featured { grid-column: span 2; }
}
