/* =============================================================================
   Hero Home & Category Hero Layout & Typography Overrides
   ========================================================================== */

/* ===== Hero Home Section ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.hero__img {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.hero__overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
}
.hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  text-align: center;
  padding: 0 20px 40px;
  color: #ffffff; /* White text for hero */
}

/* Hero Headings & Subtitles */
.hero__subtitle,
.hero__content p {
  font-family: var(--ff-base) !important;
  font-weight: var(--fw-light) !important;
  letter-spacing: var(--ls-wide) !important;
  line-height: var(--lh-base) !important;
  font-size: 0.875rem;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 12px;
  color: #ffffff !important;
}
.hero__title {
  font-family: var(--ff-head) !important;
  font-weight: var(--fw-thin) !important;
  letter-spacing: var(--ls-wide) !important;
  line-height: var(--lh-head) !important;
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: #ffffff !important;
}

/* Hero Button Overrides with high specificity */
.hero__content a.hero__button,
.hero .hero__button {
  display: inline-block !important;
  font-family: var(--ff-base) !important;
  font-weight: 500 !important;
  letter-spacing: var(--ls-wide) !important;
  text-transform: uppercase !important;
  font-size: 0.875rem !important;

  color: #ffffff !important;
  background: #000000 !important;
  border: 1px solid #ffffff !important;

  padding: 12px 32px !important;
  text-decoration: none !important;
  transition: background var(--transition) !important, color var(--transition) !important, border-color var(--transition) !important;
}
.hero__content a.hero__button:hover,
.hero .hero__button:hover {
  background: var(--clr-link-hover) !important; /* gold hover */
  color: #ffffff !important;
  border-color: var(--clr-link-hover) !important;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .hero__content { padding-bottom: 30px; }
  .hero__title { font-size: 2.5rem; }
}
@media (max-width: 767px) {
  .hero__content { padding-bottom: 20px; }
  .hero__title { font-size: 1.625rem; }
  .hero__subtitle,
  .hero__content p { font-size: 0.75rem; }
  .hero__content a.hero__button,
  .hero .hero__button {
    font-size: 0.75rem !important;
    padding: 10px 24px !important;
  }
}

/* ===== Category Hero Section – separated scope ===== */
.category-hero-wrapper {
  display: flex;
  flex-direction: column;
  width: 100vw;
  margin: 0 0 3rem;
  background: #fff;
  position: relative;
  left: 50%; transform: translateX(-50%);
  box-sizing: border-box;
  padding: 0;
}
.category-hero-image {
  width: 100vw; height: 40vw;
  min-height: 250px;
  background-size: cover;
  background-position: center;
  margin: 0 0 1.5rem;
}
.category-hero-content {
  padding: 20px 5%;
  text-align: center;
}

@media (min-width: 1024px) {
  .category-hero-wrapper { flex-direction: row; width: 100%; height: 60vh; max-height: 650px; margin: 0 0 5rem; left: auto; transform: none; }
  .category-hero-image { width: 50%; flex: 0 0 50%; height: 100%; margin: 0; position: static; transform: none; }
  .category-hero-content { flex: 0 0 50%; padding: 0 6%; text-align: left; display: flex; flex-direction: column; justify-content: center; }
}
@media (max-width: 1023px) {
  .category-hero-content .term-description.collapsed { max-height: 8em; overflow: hidden; }
}

/* =============================================================================
   Utility: Hide default Shopkeeper headers on category pages
   ========================================================================== */
.tax-product_cat .page-header,
.tax-product_cat .woocommerce-products-header {
  display: none !important;
}

/* You can move this hide rule to a dedicated category-hero.css if preferred */
