/* Techhike homepage sections */

.a31-hero { padding: 0; background: #fff; }
.a31-hero-grid {
  display: grid; grid-template-columns: 1fr minmax(260px, 320px); gap: 0;
  max-width: 1240px; margin: 0 auto;
}
.a31-hero-slider {
  background: #EEEEEE; min-height: 380px; position: relative;
}
.a31-hero-slide {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1rem;
  height: 100%; padding: 2rem 2.5rem; min-height: 380px;
}
.a31-hero-copy h1 {
  font-family: var(--font-body); font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  font-weight: 700; line-height: 1.25; margin: 0 0 0.75rem; color: #000;
}
.a31-hero-copy p { color: var(--a31-muted); margin: 0 0 1.25rem; font-size: 0.88rem; line-height: 1.55; }

.a31-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 0.5rem 0;
}
.a31-hero-visual-glow {
  position: absolute;
  bottom: 6%;
  left: 50%;
  width: min(70%, 260px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 234, 0, 0.55) 0%, rgba(255, 234, 0, 0.2) 55%, transparent 72%);
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.a31-hero-visual-frame {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: #fff;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}
.a31-hero-visual-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.06) 100%);
  pointer-events: none;
}
.a31-hero-visual-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.a31-hero-side {
  background: linear-gradient(165deg, #7B1FA2 0%, #4A148C 100%);
  color: #fff; padding: 1.75rem 1.5rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: 380px;
}
.a31-hero-side-kicker { margin: 0; font-size: 0.85rem; opacity: 0.95; }
.a31-hero-side h2 { margin: 0; font-size: 1.2rem; font-weight: 700; line-height: 1.35; }
.a31-hero-side-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0.35rem 0 0.15rem;
}
.a31-hero-side-frame {
  width: min(100%, 200px);
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}
.a31-hero-side-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.a31-hero-side .btn-light { margin-top: 0.5rem; font-size: 0.85rem; padding: 0.55rem 1.25rem; }

.a31-perks { background: #fff; border-bottom: 1px solid var(--a31-border); }
.a31-perks-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  padding: 1.25rem 0; border-top: 1px solid var(--a31-border);
}
.a31-perk {
  display: flex; align-items: flex-start; gap: 0.65rem; padding: 0 1rem;
  border-right: 1px solid var(--a31-border); font-size: 0.8rem;
}
.a31-perk:last-child { border-right: 0; }
.a31-perk span { font-size: 1.5rem; flex-shrink: 0; }
.a31-perk strong { display: block; font-size: 0.82rem; margin-bottom: 0.15rem; }
.a31-perk div span { color: var(--a31-muted); font-size: 0.72rem; display: block; }

.a31-deals-grid {
  display: grid; grid-template-columns: minmax(220px, 260px) 1fr; gap: 1.5rem;
}
.a31-weekly-deal {
  border: 2px solid var(--a31-yellow); border-radius: 4px;
  padding: 1rem; text-align: center; background: #fff;
}
.a31-weekly-deal h2 { margin: 0 0 0.75rem; font-size: 1rem; font-weight: 700; }
.a31-weekly-img img { max-height: 130px; margin: 0 auto 0.65rem; object-fit: contain; }
.a31-weekly-deal h3 { margin: 0 0 0.2rem; font-size: 0.9rem; font-weight: 500; }
.a31-weekly-deal h3 a { color: var(--a31-link); text-decoration: none; }
.a31-weekly-note { color: var(--a31-muted); font-size: 0.78rem; margin: 0.25rem 0 0.75rem; }
.a31-countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem; }
.a31-countdown div { background: #f0f0f0; border-radius: 4px; padding: 0.35rem 0.25rem; }
.a31-countdown strong { display: block; font-size: 1rem; color: #000; }
.a31-countdown span { font-size: 0.62rem; color: var(--a31-muted); text-transform: uppercase; }

.a31-slider-arrows { display: flex; gap: 0.25rem; }
.a31-slider-arrows span {
  width: 28px; height: 28px; border: 1px solid var(--a31-border); border-radius: 4px;
  display: grid; place-items: center; font-size: 1rem; color: var(--a31-muted); cursor: pointer;
}

.a31-sale-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--a31-border); border-radius: 4px; overflow: hidden;
  margin-bottom: 1rem; background: #fff;
}
.a31-sale-card {
  position: relative; border-right: 1px solid var(--a31-border); padding: 1rem 0.75rem;
  text-align: center;
}
.a31-sale-card:last-child { border-right: 0; }
.a31-sale-card img { height: 110px; object-fit: contain; margin: 0 auto 0.5rem; }
.a31-sale-card h3 { margin: 0 0 0.3rem; font-size: 0.82rem; font-weight: 500; }
.a31-sale-card a { text-decoration: none; color: inherit; }
.a31-sale-card h3, .a31-sale-card a h3 { color: var(--a31-link); }
.a31-sale-card .price { font-size: 0.85rem; margin: 0; }

.a31-duo-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.a31-duo-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: #EEEEEE; border-radius: 4px; padding: 1rem 1.25rem;
  text-decoration: none !important; color: inherit; min-height: 100px;
}
.a31-duo-banner small { display: block; color: var(--a31-muted); font-size: 0.75rem; margin-bottom: 0.2rem; }
.a31-duo-banner strong { font-size: 0.95rem; font-weight: 700; color: #000; }
.a31-duo-banner img { max-height: 85px; object-fit: contain; flex-shrink: 0; }

.a31-featured-row {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 0;
  border: 1px solid var(--a31-border); border-radius: 4px; overflow: hidden; background: #fff;
}
.a31-featured-card {
  position: relative; text-align: center; padding: 1rem 0.5rem;
  border-right: 1px solid var(--a31-border);
}
.a31-featured-card:last-child { border-right: 0; }
.a31-featured-card img {
  height: 120px; object-fit: contain; margin: 0 auto 0.5rem; width: 100%; padding: 0 0.5rem;
}
.a31-featured-card h3 { margin: 0 0 0.3rem; font-size: 0.8rem; font-weight: 500; }
.a31-featured-card a { text-decoration: none; }
.a31-featured-card h3, .a31-featured-card a { color: var(--a31-link); }
.a31-featured-card .price { font-size: 0.85rem; margin: 0; }

.a31-category-layout {
  display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: 0;
  border: 1px solid var(--a31-border); border-radius: 4px; overflow: hidden;
}
.a31-category-promo {
  background: var(--a31-yellow); color: #000; padding: 1.5rem;
  text-decoration: none !important; display: flex; flex-direction: column; gap: 0.35rem;
}
.a31-category-promo small { font-size: 0.78rem; }
.a31-category-promo strong { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.a31-category-promo img { margin-top: auto; max-height: 150px; object-fit: contain; align-self: center; }

.a31-category-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); background: #fff;
}
.a31-category-box {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
  padding: 1rem; border-right: 1px solid var(--a31-border); border-bottom: 1px solid var(--a31-border);
  text-decoration: none !important; color: inherit; min-height: 120px;
}
.a31-category-box:nth-child(3n) { border-right: 0; }
.a31-category-box:nth-last-child(-n+3) { border-bottom: 0; }
.a31-category-box h3 { margin: 0 0 0.35rem; font-size: 0.9rem; font-weight: 700; color: var(--a31-link); }
.a31-category-box ul { margin: 0; padding: 0; list-style: none; }
.a31-category-box li { font-size: 0.75rem; color: var(--a31-muted); line-height: 1.6; }
.a31-category-box img { width: 70px; height: 70px; object-fit: contain; flex-shrink: 0; }

.a31-triple-banners {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.a31-triple-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  background: #EEEEEE; border-radius: 4px; padding: 1rem 1.25rem;
  text-decoration: none !important; color: inherit; min-height: 110px;
}
.a31-flat-tag {
  display: inline-block; background: var(--a31-yellow); color: #000; font-size: 0.65rem;
  font-weight: 700; padding: 0.15rem 0.45rem; border-radius: 2px; margin-bottom: 0.35rem;
}
.a31-triple-banner strong { display: block; font-size: 0.92rem; font-weight: 700; line-height: 1.25; color: #000; }
.a31-triple-banner em { display: block; font-style: normal; font-size: 0.75rem; color: var(--a31-muted); margin-top: 0.15rem; }
.a31-triple-banner img { max-height: 90px; object-fit: contain; flex-shrink: 0; }

@media (max-width: 768px) {
  .a31-hero-slider { min-height: auto; }
  .a31-hero-slide { grid-template-columns: 1fr; padding: 1.25rem 1rem 1rem; min-height: auto; }
  .a31-hero-visual { order: -1; min-height: auto; padding-bottom: 0.5rem; }
  .a31-hero-visual-frame { width: min(100%, 260px); margin-inline: auto; }
  .a31-hero-copy { text-align: center; }
  .a31-hero-copy .btn { width: 100%; max-width: 280px; }
  .a31-category-layout { grid-template-columns: 1fr; }
  .a31-category-promo { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .a31-category-promo img { max-height: 100px; margin-top: 0; }
  .a31-category-grid { grid-template-columns: 1fr; }
  .a31-category-box { border-right: 0 !important; min-height: auto; }
  .a31-triple-banners { grid-template-columns: 1fr; }
  .a31-triple-banner { min-height: auto; }
}

@media (max-width: 480px) {
  .a31-duo-banners { grid-template-columns: 1fr; }
  .a31-duo-banner { min-height: auto; padding: 1rem; }
}
