/* home1 — mobile home (maroon & gold theme) */

.page-home1 {
  --home1-primary: #7b1a30;
  --home1-primary-dark: #5c1020;
  --home1-primary-mid: #8f2240;
  --home1-gold: #d4af37;
  --home1-gold-light: #e6cc85;
  --home1-text: #2a1218;
  --home1-muted: #6b5a5f;
  --home1-surface: #ffffff;
  --home1-border: #ddc9a8;
  background: #f0e4cc;
}

.page-home1 .topbar {
  background: var(--home1-surface);
  border-bottom: 1px solid var(--home1-border);
  border-top: 0;
  box-shadow: none;
}
.page-home1 .topbar-lang-switch,
.page-home1 .nav-desktop {
  display: none;
}

.page-home1 .topbar-inner {
  min-height: 3.25rem;
}

.page-home1 .topbar-quickmenu__toggle {
  color: var(--home1-text);
  border-color: var(--home1-border);
  background: #fff;
}

.page-home1 .site-brand--header .site-brand__name {
  font-size: 1.15rem;
  color: var(--home1-primary);
}

.page-home1 .main--home1 {
  width: min(100%, 32rem);
  max-width: 32rem;
  margin-inline: auto;
  padding: 0 0.85rem 1.5rem;
  box-sizing: border-box;
}

.page-home1 .site-footer {
  margin-top: 0;
}

.home1 {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding-top: 0.35rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.home1-section-title {
  margin: 0 0 0.75rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--home1-text);
  letter-spacing: -0.01em;
}

/* Search bar */
.home1-search {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.home1-search__field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 2.85rem;
  padding: 0 0.95rem;
  border: 1px solid var(--home1-border);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(42, 18, 24, 0.05);
  box-sizing: border-box;
}

.home1-search__icon {
  display: inline-flex;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--home1-muted);
  flex-shrink: 0;
}

.home1-search__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.home1-search__input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 2.4rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--home1-text);
  font: inherit;
  font-size: 0.95rem;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.home1-search__input::placeholder {
  color: #9a8a8f;
}

.home1-search__input:focus-visible {
  outline: none;
}

.home1-search__field:focus-within {
  border-color: var(--home1-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
}

@media (max-width: 768px) {
  .page-home1 main.container.main--home1 {
    width: 100%;
    max-width: 100%;
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
    padding-bottom: 1.25rem;
    box-sizing: border-box;
  }

  .home1-search__field {
    min-height: 2.65rem;
    padding: 0 0.8rem;
  }

  .home1-search__input {
    font-size: max(16px, 0.95rem);
  }
}

/* Category carousel */
.home1-cats {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.home1-cats__viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.home1-cats__track {
  display: flex;
  transition: transform 0.28s ease;
  will-change: transform;
}

.home1-cats__page {
  flex: 0 0 100%;
  min-width: 100%;
}

.home1-cats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem 0.45rem;
}

.home1-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--home1-text);
  text-align: center;
}

.home1-cat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.15s ease;
}

.home1-cat__icon img,
.home1-cat__icon svg {
  width: 1.55rem;
  height: 1.55rem;
  object-fit: contain;
  display: block;
}

.home1-cat--primary .home1-cat__icon {
  background: linear-gradient(180deg, #8f2240 0%, var(--home1-primary) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(123, 26, 48, 0.28);
}

.home1-cat--primary .home1-cat__icon img {
  filter: brightness(0) invert(1);
}

.home1-cat__icon--cover {
  padding: 0;
  background: linear-gradient(180deg, #8f2240 0%, var(--home1-primary) 100%);
  box-sizing: border-box;
}

.home1-cat__icon--cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: none !important;
  border-radius: 0;
  transform: none;
}

.home1-cat--primary .home1-cat__icon--cover,
.home1-cat--secondary .home1-cat__icon--cover {
  background: linear-gradient(180deg, #8f2240 0%, var(--home1-primary) 100%);
  border: 0;
  box-shadow: none;
}

.home1-cat:active .home1-cat__icon {
  transform: scale(0.96);
}

.home1-cat--no-icon {
  justify-content: center;
  min-height: 3.35rem;
}

.home1-cat--no-icon .home1-cat__label {
  font-weight: 600;
}

.home1-cat__label {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 4.6rem;
  font-size: 0.68rem;
  line-height: 1.25;
  font-weight: 600;
  color: #4a3038;
}

.home1-cats__dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.home1-cats__dot {
  width: 0.42rem;
  height: 0.42rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d4c4b8;
  cursor: pointer;
}

.home1-cats__dot.is-active {
  width: 0.95rem;
  background: var(--home1-primary);
}

/* Deals banner */
.home1-deals__banner {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 7.5rem;
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(120deg, #8f2240 0%, var(--home1-primary) 58%, var(--home1-primary-dark) 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(92, 16, 32, 0.28);
}

.home1-deals__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  padding: 1rem 0.95rem;
  max-width: 58%;
}

.home1-deals__badge {
  align-self: flex-start;
  padding: 0.18rem 0.45rem;
  border-radius: 0.35rem;
  background: var(--home1-gold);
  color: #3a0a14;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.home1-deals__headline {
  font-size: 1.2rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.home1-deals__sub {
  font-size: 0.78rem;
  opacity: 0.92;
}

.home1-deals__image {
  position: absolute;
  right: 0;
  top: 0;
  width: 46%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}

.home1-deals__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.home1-deals__perk {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #5c4a50;
}

.home1-deals__perk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
}

.home1-deals__perk-icon--support {
  background: #f5e6c0;
  color: var(--home1-primary);
}

.home1-deals__perk-icon--rewards {
  background: #e6cc85;
  color: #8b6914;
}

/* Inspired cards */
.home1-inspired__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.home1-inspired__card {
  position: relative;
  display: block;
  min-height: 11.5rem;
  overflow: hidden;
  border-radius: 0.95rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(42, 18, 24, 0.1);
}

.home1-inspired__image {
  width: 100%;
  height: 100%;
  min-height: 11.5rem;
  object-fit: cover;
  display: block;
}

.home1-inspired__label {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.35rem 0.45rem;
  border-radius: 0.45rem;
  background: rgba(58, 10, 20, 0.72);
  color: #fdf6e8;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  backdrop-filter: blur(4px);
}

@media (min-width: 769px) {
  .page-home1 .topbar-lang-switch {
    display: flex;
  }

  .page-home1 .nav-desktop {
    display: flex;
  }

  .page-home1 .main--home1 {
    width: min(100%, 40rem);
    max-width: 40rem;
    padding-inline: 1rem;
  }

  .home1-cat__icon {
    width: 3.75rem;
    height: 3.75rem;
  }

  .home1-cat__label {
    max-width: 5.5rem;
    font-size: 0.74rem;
  }

  .home1-inspired__card {
    min-height: 13rem;
  }

  .home1-inspired__image {
    min-height: 13rem;
  }
}
