﻿/* =========================================================
   HOS Category Page
   Category intro + subcategory cards
========================================================= */


/* =========================
   Category Intro
========================= */

.html-category-page .hos-category-page .hos-category-intro {
  margin: 0 0 28px;
}

.html-category-page .hos-category-page .hos-category-intro__inner {
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 58%, #eff6ff 100%);
  border: 1px solid #dbeafe;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.html-category-page .hos-category-page .hos-category-intro__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px;
  padding: 6px 12px;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.html-category-page .hos-category-page .hos-category-intro__description {
  color: #374151;
  font-size: 15px;
  line-height: 1.65;
}

  .html-category-page .hos-category-page .hos-category-intro__description p {
    margin: 0 0 10px;
  }

    .html-category-page .hos-category-page .hos-category-intro__description p:last-child {
      margin-bottom: 0;
    }

  .html-category-page .hos-category-page .hos-category-intro__description a {
    color: #1f7a4d;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .html-category-page .hos-category-page .hos-category-intro__description ul,
  .html-category-page .hos-category-page .hos-category-intro__description ol {
    margin: 10px 0 0 20px;
    padding: 0;
  }

  .html-category-page .hos-category-page .hos-category-intro__description li {
    margin: 0 0 6px;
  }


/* =========================
   Section Head
========================= */

.html-category-page .hos-category-page .hos-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
}

.html-category-page .hos-category-page .hos-section-head__content h2 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
}

.html-category-page .hos-category-page .hos-section-head__content p {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.45;
}


/* =========================
   Subcategory Section
========================= */

.html-category-page .hos-category-page .hos-category-subcategories {
  margin: 0 0 28px;
}

.html-category-page .hos-category-page .hos-subcategory-grid {
  width: 100%;
}

  .html-category-page .hos-category-page .hos-subcategory-grid .item-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
  }

  .html-category-page .hos-category-page .hos-subcategory-grid .item-box {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }


/* =========================
   Subcategory Card
========================= */

.html-category-page .hos-category-page .hos-subcategory-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

  .html-category-page .hos-category-page .hos-subcategory-card:hover {
    transform: translateY(-2px);
    border-color: #bbf7d0;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  }

.html-category-page .hos-category-page .hos-subcategory-card__image {
  display: block;
  overflow: hidden;
  background: #f8fafc;
  aspect-ratio: 4 / 3;
  text-decoration: none;
}

  .html-category-page .hos-category-page .hos-subcategory-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

.html-category-page .hos-category-page .hos-subcategory-card__body {
  display: block;
  padding: 12px 12px 14px;
  background: #fff;
  text-align: center;
}


/* =========================
   Category Name Under Image
========================= */

.html-category-page .hos-category-page .hos-subcategory-card__title {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  color: #111827;
  font-size: 15px !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;
  text-align: center;
  text-transform: none !important;
}

  .html-category-page .hos-category-page .hos-subcategory-card__title a {
    display: block;
    color: #111827;
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    text-transform: none !important;
  }

    .html-category-page .hos-category-page .hos-subcategory-card__title a:hover {
      color: #1f7a4d;
      text-decoration: none !important;
    }


/* =========================
   Remove Shop Category Link
========================= */

.html-category-page .hos-category-page .hos-subcategory-card__link {
  display: none !important;
}


/* =========================
   Remove Theme Arrow/Icon
========================= */

.html-category-page .hos-category-page .hos-subcategory-card__title::before,
.html-category-page .hos-category-page .hos-subcategory-card__title::after,
.html-category-page .hos-category-page .hos-subcategory-card__title a::before,
.html-category-page .hos-category-page .hos-subcategory-card__title a::after,
.html-category-page .hos-category-page .sub-category-item .title::before,
.html-category-page .hos-category-page .sub-category-item .title::after,
.html-category-page .hos-category-page .sub-category-item .title a::before,
.html-category-page .hos-category-page .sub-category-item .title a::after,
.html-category-page .hos-category-page .sub-category-item::before,
.html-category-page .hos-category-page .sub-category-item::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.html-category-page .hos-category-page .hos-subcategory-card__title,
.html-category-page .hos-category-page .hos-subcategory-card__title a {
  background: none !important;
  background-image: none !important;
}


/* =========================
   Tablet
========================= */

@media (max-width: 1024px) {
  .html-category-page .hos-category-page .hos-subcategory-grid .item-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}


/* =========================
   Mobile
========================= */

@media (max-width: 767px) {
  .html-category-page .hos-category-page .hos-category-intro {
    margin: 0 0 22px;
  }

  .html-category-page .hos-category-page .hos-category-intro__inner {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .html-category-page .hos-category-page .hos-category-intro__eyebrow {
    margin-bottom: 9px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .html-category-page .hos-category-page .hos-category-intro__description {
    font-size: 14px;
    line-height: 1.55;
  }

  .html-category-page .hos-category-page .hos-section-head {
    display: block;
    margin: 0 0 14px;
    text-align: center;
  }

  .html-category-page .hos-category-page .hos-section-head__content h2 {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.15;
  }

  .html-category-page .hos-category-page .hos-section-head__content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
  }

  .html-category-page .hos-category-page .hos-category-subcategories {
    margin: 0 0 24px;
  }

  .html-category-page .hos-category-page .hos-subcategory-grid .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .html-category-page .hos-category-page .hos-subcategory-card {
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
  }

    .html-category-page .hos-category-page .hos-subcategory-card:hover {
      transform: none;
    }

  .html-category-page .hos-category-page .hos-subcategory-card__body {
    padding: 10px 8px 12px;
  }

  .html-category-page .hos-category-page .hos-subcategory-card__title {
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 400 !important;
  }

    .html-category-page .hos-category-page .hos-subcategory-card__title a {
      font-weight: 400 !important;
    }
}


/* =========================
   Small Mobile
========================= */

@media (max-width: 374px) {
  .html-category-page .hos-category-page .hos-subcategory-grid .item-grid {
    gap: 10px;
  }

  .html-category-page .hos-category-page .hos-subcategory-card__body {
    padding: 9px 6px 11px;
  }

  .html-category-page .hos-category-page .hos-subcategory-card__title {
    font-size: 12.5px !important;
  }
}
