/* Category page styles */
.category-page .page-title {
  padding: 1.2rem 0;
  margin-bottom: 0;
}

.category-page .page-title.light-background {
  margin-bottom: 0;
}

.category-banner.section {
  padding: 0 0 1.5rem;
  margin-top: 0;
}

.category-banner {
  position: relative;
  margin-bottom: 0;
}

.category-tabs.section {
  padding: 1.5rem 0 2rem;
  margin-top: 0;
}

@media (max-width: 992px) {
  .category-banner.section {
    padding-bottom: 1rem;
  }
  .category-tabs.section {
    padding-top: 1rem;
    padding-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  .category-banner.section {
    padding-bottom: 0.75rem;
  }
  .category-tabs.section {
    padding-top: 0.75rem;
    padding-bottom: 1rem;
  }
}

.category-banner-slider {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.category-banner-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  padding: 1.75rem 1.25rem;
  transition: opacity 0.5s ease;
  opacity: 0;
}

.category-banner-slide.active {
  position: relative;
  opacity: 1;
}

.category-banner-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}

.category-banner-slide .banner-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  text-align: center;
  color: #ffffff;
}

.category-banner-slide .banner-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #c6ff84;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.category-banner-slide h1 {
  font-size: clamp(2.25rem, 4vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 0.9rem;
  font-weight: 800;
  text-shadow: 0 8px 22px rgba(0,0,0,0.45);
}

.category-banner-slide p.lead {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 64ch;
  margin: 0 auto 1.4rem;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 5px 14px rgba(0,0,0,0.35);
}

.category-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.category-banner-actions .btn {
  min-width: 150px;
}

.banner-slide-dots {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.65rem;
  z-index: 3;
}

.banner-slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.28);
  cursor: pointer;
}

.banner-slide-dot.active {
  background: #ffffff;
}

.category-tabs .nav-tabs {
  border-bottom: 2px solid rgba(0,0,0,0.08);
  margin-bottom: 0.6rem;
}

.category-tabs .nav-link {
  color: #333;
  font-weight: 600;
  padding: 0.75rem 1rem;
}

.category-tabs .nav-link.active {
  color: #ffffff;
  background: #2fa84f;
  border-color: #2fa84f #2fa84f #ffffff;
}

.category-tab-pane {
  padding-top: 0.85rem;
}

.product-card, .service-card, .blog-card, .gallery-card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 1rem;
  overflow: hidden;
  background: #ffffff;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.product-card:hover,
.service-card:hover,
.blog-card:hover,
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0,0,0,0.08);
}

.product-card .product-image,
.service-card .gw-card-image img,
.blog-card .gw-card-image img,
.gallery-card img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.product-card .product-card-body,
.service-card .card-body,
.blog-card .card-body,
.gallery-card .card-body {
  padding: 1.25rem;
}

.product-card .product-card-actions,
.gallery-card .gallery-card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.gallery-card {
  cursor: pointer;
}

.gallery-card .gallery-card-body {
  padding: 1rem 1.25rem 1.25rem;
}

.gallery-card .gallery-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  color: #2fa84f;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.gallery-card .gallery-description {
  color: #5f6c78;
  line-height: 1.8;
}

.category-support-panel {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.category-support-panel h4 {
  margin-bottom: 1rem;
}

.category-support-panel .support-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.category-support-panel .support-item:last-child {
  margin-bottom: 0;
}

.category-support-panel .support-item i {
  font-size: 1.4rem;
  color: #2fa84f;
  margin-top: 0.15rem;
}

.category-support-panel .support-item p {
  margin: 0;
  line-height: 1.7;
}

.category-gallery-modal .modal-dialog {
  max-width: 980px;
}

.category-gallery-modal .modal-content {
  border-radius: 1rem;
}

.category-gallery-modal .gallery-modal-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  background: #111;
  border-radius: 1rem;
  overflow: hidden;
}

.category-gallery-modal .gallery-modal-frame img {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  display: block;
}

.category-gallery-modal .gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.category-gallery-modal .gallery-nav.prev {
  left: 1rem;
}

.category-gallery-modal .gallery-nav.next {
  right: 1rem;
}

.category-gallery-modal .gallery-modal-caption {
  color: #4a4a4a;
  line-height: 1.8;
}

/* Tighten card image height on category pages to match product-list appearance */
.category-page .gw-card-image {
  padding-bottom: 66%; /* ~3:2 aspect ratio for better crop */
  border-radius: 8px 8px 0 0;
}

/* Ensure collection tiles are consistent */
.category-page .collection-tile img {
  height: 200px;
  object-fit: cover;
}

.category-page .showcase-card .card-visual img,
.category-page .product-card .product-image,
.category-page .gw-card-image {
  width: 100%;
  overflow: hidden;
}

.category-page .gw-card-image {
  position: relative;
  padding-bottom: 66%;
  border-radius: 8px 8px 0 0;
  background: #f5f5f5;
}

.category-page .product-card .product-image,
.category-page .gw-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 992px) {
  .category-banner-slide { min-height: 360px; padding: 1.5rem 1.25rem; }
  .category-banner-slide h1 { font-size: 2.4rem; }
}

@media (max-width: 768px) {
  .category-page .page-title { padding: 1rem 0; }
  .category-banner-slide { min-height: 320px; padding: 1.25rem 1rem; }
  .category-banner-slide h1 { font-size: 2rem; }
  .category-banner-actions { flex-direction: column; }
  .gallery-card .gallery-card-actions { flex-direction: column; }
  .category-banner-slider { border-radius: 0; }
}
