@import url('variables.css');
@import url('components.css');

.page-home {
  background: #f4f4f5;
  color: var(--fd-text);
}

.page-home .container {
  max-width: 1500px;
  padding: 0 40px;
}

.page-home .site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(17, 17, 20, 0.06);
}

.page-home .header-inner {
  height: 96px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 26px;
}

.page-home .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--fd-text);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-home .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--fd-green), #00d8a8);
  box-shadow: 0 10px 24px rgba(32, 216, 88, 0.24);
}

.page-home .brand-word {
  display: flex;
  gap: 0.18em;
  align-items: baseline;
}

.page-home .brand-line {
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.2em;
}

.page-home .brand-accent {
  color: var(--fd-green-dark);
}

.page-home .main-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 0 auto;
}

.page-home .main-nav a {
  color: #33333a;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.page-home .main-nav a:hover {
  color: var(--fd-green-dark);
}

.page-home .header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.page-home .icon-btn {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(17, 17, 20, 0.08);
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(17, 17, 20, 0.04);
}

.page-home .hero {
  min-height: 0;
  padding: 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}
.page-home .hero-raw-img {
  width: 100%;
  height: auto;
  display: block;
}
.page-home .hero.hero--raw .hero-inner {
  display: block;
  width: 100%;
  max-width: var(--fd-max);
  margin: 0 auto;
  padding: 48px 32px 48px 64px;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}
.page-home .hero.hero--raw .hero-inner > * {
  pointer-events: auto;
}
.page-home .hero-copy {
  text-align: left;
  max-width: 600px;
  position: relative;
}
.page-home .hero::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 35%, rgba(255,255,255,0) 60%);
  z-index: 1;
  pointer-events: none;
}

/* Category page hero (background image) */
.hero.hero--image {
  position: relative;
  min-height: 360px;
  max-height: 540px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero.hero--image .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.35) 100%);
}
.hero.hero--image .hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero.hero--image .hero-stack {
  color: #ffffff;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.hero.hero--image .hero-stack span {
  display: block;
  line-height: 1;
}
.hero.hero--image .hero-desc--light {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
  max-width: 600px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* Homepage hero text: black on light bg */
.page-home .hero-stack,
.page-home .hero-title--light {
  color: #111114 !important;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-shadow: none !important;
}
.page-home .hero-stack span {
  display: block;
  line-height: 1;
}
.page-home .hero-desc--light {
  color: #111114 !important;
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
  max-width: 600px;
  text-shadow: none !important;
}
.page-home .hero-copy,
.page-home .hero-copy * {
  color: #111114 !important;
  text-shadow: none !important;
}
.page-home .hero-copy a.btn {
  color: #ffffff !important;
}

/* Spacing between category hero and section heading */
.featured-section {
  padding: 64px 0;
}
.featured-section .section-title {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.product-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0 0 28px;
}
.product-toolbar .product-filter {
  display: flex;
  flex: 1;
  min-width: 220px;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fd-muted);
}

.page-home .hero-inner {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 72px;
  align-items: center;
  min-height: 0;
}

.page-home .eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fd-green-dark);
}

.page-home .hero-copy h1 {
  font-size: clamp(54px, 6vw, 84px);
  line-height: 0.94;
  letter-spacing: -0.05em;
  margin: 0 0 20px;
}

.page-home .hero-copy p {
  max-width: 590px;
  margin: 0 0 32px;
  font-size: 20px;
  line-height: 1.75;
  color: #4d4d54;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .btn {
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.24s ease, background 0.24s ease;
}

.page-home .btn:hover {
  transform: translateY(-3px);
}

.page-home .btn-dark {
  background: var(--fd-black);
  color: #fff;
  box-shadow: 0 12px 28px rgba(17, 17, 20, 0.12);
}

.page-home .btn-light {
  background: #fff;
  color: var(--fd-text);
  border: 1px solid rgba(17, 17, 20, 0.08);
  box-shadow: 0 8px 18px rgba(17, 17, 20, 0.03);
}

.page-home .hero-visual {
  display: flex;
  justify-content: flex-end;
}

.page-home .hero-visual-card {
  width: min(100%, 720px);
  aspect-ratio: 4.8 / 6;
  padding: 24px;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(17, 17, 20, 0.08);
  border: 1px solid rgba(17, 17, 20, 0.06);
  overflow: hidden;
}

.page-home .hero-visual-card svg {
  width: 100%;
  height: 100%;
  display: block;
}

.page-home .featured-categories,
.page-home .featured-products {
  padding: 32px 0 0;
}

.page-home .section-intro {
  max-width: 700px;
  margin-bottom: 48px;
}

.page-home .section-intro h2 {
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.page-home .section-intro p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--fd-muted);
}

.page-home .category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.page-home .category-card,
.page-home .product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(17, 17, 20, 0.05);
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(17, 17, 20, 0.04);
  overflow: hidden;
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.24s ease;
}

/* Make product images uniform on category pages */
.product-card,
.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(17, 17, 20, 0.05);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(17, 17, 20, 0.04);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.product-card:hover,
.product-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(17, 17, 20, 0.08);
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
  padding: 0;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 20, 0.1);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--fd-text);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.tag-chip:hover {
  border-color: var(--fd-green);
  transform: translateY(-1px);
}
.tag-chip.is-active {
  background: var(--fd-black);
  color: #ffffff;
  border-color: var(--fd-black);
}
.tag-chip-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(17, 17, 20, 0.08);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  padding: 0 6px;
}
.tag-chip.is-active .tag-chip-count {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.product-media {
  width: 100%;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.product-media img {
  width: auto !important;
  height: auto !important;
  max-width: 60% !important;
  max-height: 80% !important;
  object-fit: contain !important;
  object-position: center !important;
}

.product-info {
  padding: 12px 16px 16px;
}
.product-info h3 {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 6px;
}
.product-info p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--fd-muted);
}

.page-home .category-card:hover,
.page-home .product-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 38px rgba(17, 17, 20, 0.08);
}

.page-home .category-media {
  height: 144px;
  position: relative;
}

.page-home .category-media::before,
.page-home .category-media::after { display: none; }

.page-home .category-card-body {
  padding: 16px 16px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.page-home 

.page-home .category-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.page-home .category-card p {
  margin: 0;
  color: var(--fd-muted);
  line-height: 1.4;
  font-size: 12px;
}

.page-home .product-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}




.page-home .product-info {
  padding: 24px 24px 28px;
}

.page-home .product-meta {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fd-green-dark);
}

.page-home .product-info h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.page-home .product-info p {
  margin: 0 0 18px;
  color: var(--fd-muted);
  line-height: 1.7;
  font-size: 15px;
}

.page-home .product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.page-home .rating {
  font-size: 14px;
  font-weight: 700;
  color: var(--fd-text);
}

.page-home .text-link {
  color: var(--fd-text);
  font-weight: 700;
  text-decoration: none;
}

.page-home .text-link:hover {
  color: var(--fd-green-dark);
}

.page-home .footer {
  margin-top: 96px;
  padding: 36px 0 48px;
  border-top: 1px solid rgba(17, 17, 20, 0.08);
  background: #fff;
}

.page-home .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--fd-muted);
  font-size: 15px;
}

.page-home .footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.page-home .footer-links a {
  color: var(--fd-text);
  text-decoration: none;
}

@media (max-width: 1180px) {
  .page-home .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .page-home .hero-visual {
    justify-content: center;
  }

  .page-home .product-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .page-home .container {
    padding: 0 24px;
  }

  .page-home .header-inner {
    grid-template-columns: 1fr auto;
    height: 84px;
  }

  .page-home .main-nav {
    display: none;
  }

  .page-home .brand-word {
    display: none;
  }

  .page-home .hero {
    min-height: auto;
    padding: 64px 0 78px;
  }

  .page-home .hero-inner {
    gap: 40px;
  }

  .page-home .product-track {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  /* Desktop hero pieces: hide only on mobile */
  .page-home .hero.hero--image .hero-copy,
  .page-home .hero.hero--image .hero-overlay,
  .page-home .hero.hero--raw .hero-copy,
  .page-home .hero.hero--raw .hero-raw-img,
  .page-home .hero.hero--raw .hero-actions,
  .page-home .hero.hero--raw .hero-text-left,
  .page-home .hero.hero--raw .hero-raw-inner {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .page-home .hero.hero--image {
    background-image: url('../assets/images/headers/home-mobile-v3.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 24px 20px 32px !important;
    background-color: #ffffff !important;
  }
  .page-home .hero.hero--raw {
    background-color: #ffffff !important;
    padding: 24px 20px 32px !important;
    min-height: 0 !important;
  }
  .mobile-hero-block {
    display: block !important;
    width: 100%;
  }
  .mobile-hero-heading {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #141417;
    margin: 0 0 16px;
    text-align: left;
  }
  .mobile-hero-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-image: url('../assets/images/headers/home-mobile-v3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(20, 20, 23, 0.10);
  }
  .page-home .mobile-hero-block,
  .page-home .mobile-hero-image,
  .page-home .mobile-hero-heading {
    display: block !important;
  }
}

@media (max-width: 560px) {
  .page-home .container {
    padding: 0 20px;
  }

  .page-home .hero-copy {
    text-align: left;
  }

  .page-home .hero-copy h1 {
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
  }

  .page-home .hero-copy p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 18px;
    max-width: 100%;
  }

  .page-home .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-home .hero-actions .btn {
    width: 100%;
  }

  .page-home .category-grid {
    grid-template-columns: 1fr;
  }

  .page-home .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

