/**
 * iHeal Theme - Support & Legal Pages
 *
 * This stylesheet styles the page templates:
 * - page-support.php, page-contact-us.php, page-faq.php
 * - page-shipping.php, page-returns.php
 * - page-privacy-policy.php, page-terms-of-service.php, page-cookie-policy.php
 */

.page-hero {
  padding: var(--space-20) 0 var(--space-12);
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
  color: var(--text-white);
}

.page-hero--accent {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
}

.page-hero--neutral {
  background: var(--color-gray);
  color: var(--text-primary);
}

.page-hero__container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.page-hero__tag {
  display: inline-block;
  font-size: var(--font-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
}

.page-hero__title {
  margin-top: var(--space-4);
  font-size: var(--font-6xl);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero--neutral .page-hero__tag {
  opacity: 0.6;
}

.page-hero__subtitle {
  margin-top: var(--space-4);
  max-width: 46rem;
  font-size: var(--font-lg);
  line-height: 1.6;
  opacity: 0.9;
}

.page-hero--neutral .page-hero__subtitle {
  opacity: 1;
  color: var(--text-secondary);
}

.page-hero__actions {
  margin-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.btn--outline {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--text-primary);
}

.btn--outline:hover {
  border-color: rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.5);
}

.page-hero .btn--outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--text-white);
}

.page-hero .btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.12);
}

.page-wrap {
  padding: var(--space-12) 0;
  background-color: var(--color-light);
}

.page-wrap__container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.panel {
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-3xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.panel--soft {
  background: var(--color-gray);
}

.panel__title {
  font-size: var(--font-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.muted {
  color: var(--text-secondary);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media screen and (min-width: 768px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid--sidebar {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
  }

  .grid--wide-sidebar {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: var(--space-8);
  }
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card {
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--color-white);
  padding: var(--space-6);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 0, 0, 0.12);
}

.card__icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: var(--text-white);
  margin-bottom: var(--space-4);
}

.card__title {
  font-size: var(--font-xl);
  font-weight: 800;
  margin-bottom: var(--space-2);
}

.card__desc {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  line-height: 1.6;
}

.card__cta {
  margin-top: var(--space-4);
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--color-primary-dark);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-xs);
  font-weight: 700;
  color: var(--text-primary);
}

.form {
  margin-top: var(--space-6);
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media screen and (min-width: 768px) {
  .form__grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field label,
.field__label {
  display: block;
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.input,
.select,
.textarea {
  width: 100%;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--color-white);
  padding: var(--space-4);
  font-size: var(--font-sm);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.textarea {
  resize: vertical;
  min-height: 10rem;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--color-primary-dark);
  box-shadow: 0 0 0 3px rgba(155, 200, 100, 0.25);
}

.form__footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

@media screen and (min-width: 768px) {
  .form__footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.small {
  font-size: var(--font-xs);
  color: var(--text-muted);
}

.small a {
  color: inherit;
  text-decoration: underline;
}

.faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.faq-item {
  border-radius: var(--radius-2xl);
  border: 2px solid rgba(155, 200, 100, 0.35);
  background: var(--color-white);
  padding: var(--space-5);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item__q {
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-4);
}

.faq-item__toggle {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  background: rgba(155, 200, 100, 0.2);
  display: grid;
  place-items: center;
  color: var(--color-primary-dark);
  flex-shrink: 0;
}

.faq-item[open] {
  border-color: rgba(155, 200, 100, 0.7);
}

.faq-item[open] .faq-item__toggle {
  background: var(--color-primary);
  color: var(--text-white);
}

.faq-item__a {
  margin-top: var(--space-4);
  color: var(--text-secondary);
  font-size: var(--font-sm);
  line-height: 1.8;
}

.kv {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media screen and (min-width: 768px) {
  .kv--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.kv__item {
  text-align: center;
}

.kv__icon {
  font-size: 2rem;
  margin-bottom: var(--space-2);
}

.kv__label {
  font-weight: 800;
  margin-bottom: var(--space-1);
}

.kv__value {
  font-size: var(--font-sm);
  color: var(--text-secondary);
}

.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.timeline__step {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.timeline__bubble {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
  color: var(--text-white);
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.timeline__label {
  font-weight: 800;
}

.timeline__time {
  font-size: var(--font-sm);
  color: var(--text-secondary);
}

.note {
  border-radius: var(--radius-2xl);
  background: var(--color-gray);
  padding: var(--space-5);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.note__tag {
  font-size: var(--font-xs);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.note__body {
  margin-top: var(--space-3);
  color: var(--text-secondary);
  font-size: var(--font-sm);
  line-height: 1.8;
}

/* ========================================================================== */
/* Products page (ported from TS /product) */
/* ========================================================================== */

.pp-hero {
  position: relative;
  height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.pp-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.pp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(45, 80, 22, 0.9), rgba(155, 200, 100, 0.45));
}

.pp-hero__content {
  position: relative;
  z-index: 1;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 var(--space-8);
  text-align: center;
  color: var(--text-white);
}

.pp-hero__title {
  font-size: var(--font-6xl);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.pp-hero__subtitle {
  margin-top: var(--space-4);
  font-size: var(--font-xl);
  opacity: 0.9;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.pp-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.pp-desktop-filters {
  display: none;
}

@media screen and (min-width: 1024px) {
  .pp-layout {
    grid-template-columns: 18rem 1fr;
    align-items: start;
  }

  .pp-desktop-filters {
    display: block;
  }
}

.pp-filters {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  position: sticky;
  top: 6.5rem;
}

.pp-filters__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1.5px solid rgba(49,94,38,0.10);
}

.pp-filters__title {
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1a1a1a;
}

.pp-link-clear {
  font-size: 0.75rem;
  font-weight: 700;
  color: #315E26;
  text-decoration: none;
  background: rgba(49,94,38,0.08);
  border: 0;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.2s;
}
.pp-link-clear:hover {
  background: rgba(49,94,38,0.16);
}

.pp-filter-group {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.pp-filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.pp-filter-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: #999;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.pp-category-list {
  display: grid;
  gap: 0.25rem;
}

.pp-category-btn {
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.875rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pp-category-btn::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.pp-category-btn:hover {
  background: rgba(49,94,38,0.05);
  color: #315E26;
}
.pp-category-btn:hover::before {
  opacity: 0.6;
}

.pp-category-btn.is-active {
  background: rgba(49,94,38,0.1);
  color: #315E26;
  font-weight: 700;
  border-color: rgba(49,94,38,0.15);
}
.pp-category-btn.is-active::before {
  opacity: 1;
  transform: scale(1.4);
}

.pp-range-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.875rem;
}

.pp-range-value {
  font-size: 0.8rem;
  font-weight: 800;
  color: #315E26;
  background: rgba(49,94,38,0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
}

.pp-range {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(to right, #315E26 var(--progress, 100%), #e5e7eb var(--progress, 100%));
  outline: none;
  cursor: pointer;
}
.pp-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #315E26;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(49,94,38,0.3);
  cursor: pointer;
  transition: transform 0.15s;
}
.pp-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.pp-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #315E26;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(49,94,38,0.3);
  cursor: pointer;
}

.pp-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pp-chip {
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 99px;
  padding: 0.35rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: #fafafa;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.pp-chip:hover {
  border-color: #315E26;
  color: #315E26;
  background: rgba(49,94,38,0.05);
}

.pp-chip.is-active {
  border-color: #315E26;
  background: #315E26;
  color: #fff;
  box-shadow: 0 2px 8px rgba(49,94,38,0.2);
}

.pp-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.pp-products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 4rem;
}

@media screen and (min-width: 640px) {
  .pp-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (min-width: 1280px) {
  .pp-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pp-product {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: var(--color-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pp-product:hover {
  box-shadow: 0 12px 40px rgba(49, 94, 38, 0.12);
  transform: translateY(-8px);
  border-color: rgba(49, 94, 38, 0.1);
}

.pp-product__media {
  position: relative;
  height: 16rem;
  background: rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.pp-product__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  transition: transform 0.8s cubic-bezier(0.2, 0, 0, 1);
}

.pp-product:hover .pp-product__img {
  transform: scale(1.1) translateY(-5px);
}

.pp-product__badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: rgba(255, 255, 255, 0.95);
  border-left: 4px solid var(--color-primary-dark);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-lg);
  font-size: var(--font-xs);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.pp-product__quick {
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  transform: translateY(5rem);
  transition: transform 500ms ease;
}

.pp-product:hover .pp-product__quick {
  transform: translateY(0);
}

.pp-quick-btn {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 0.875rem;
  background: #315E26;
  color: var(--text-white);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(49, 94, 38, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.pp-quick-btn:hover {
  background: #25461c;
  transform: scale(1.02);
}

.pp-product__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pp-product__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--font-xs);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-2);
}

.pp-product__rating {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: #b45309;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.pp-product__name {
  font-size: var(--font-lg);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.pp-product__desc {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8rem;
  flex: 1;
}

.pp-product__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.pp-product__price {
  font-size: var(--font-2xl);
  font-weight: 900;
  color: var(--text-primary);
}

.pp-product__details {
  font-size: var(--font-xs);
  font-weight: 900;
  color: var(--color-accent-dark);
}

.pp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-14);
}

.pp-page-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--color-white);
  color: #333;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pp-page-btn:hover:not(:disabled) {
  background: #315E26;
  border-color: #315E26;
  color: #fff;
  transform: translateY(-2px);
}

.pp-page-btn.is-active {
  background: #315E26;
  border-color: #315E26;
  color: #fff;
  box-shadow: 0 4px 12px rgba(49, 94, 38, 0.2);
}

.pp-page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pp-mobile-bar {
  position: sticky;
  top: 5rem;
  z-index: 50;
  background: var(--color-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: var(--space-3) var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

@media screen and (min-width: 1024px) {
  .pp-mobile-bar {
    display: none;
  }
}

.pp-mobile-filter-btn {
  border: 0;
  border-radius: var(--radius-full);
  background: var(--color-accent-dark);
  color: var(--text-white);
  padding: var(--space-3) var(--space-6);
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.pp-mobile-count {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-accent-dark);
  display: grid;
  place-items: center;
  font-size: var(--font-xs);
  font-weight: 900;
}

.pp-drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
}

.pp-drawer.is-open {
  display: block;
}

.pp-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.pp-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 20rem;
  background: var(--color-white);
  padding: var(--space-6);
  overflow-y: auto;
}

.pp-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.pp-toast {
  position: fixed;
  top: 6rem;
  right: var(--space-6);
  background: rgba(0, 0, 0, 0.9);
  color: var(--text-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-4) var(--space-6);
  box-shadow: var(--shadow-xl);
  display: none;
  z-index: 1000;
  align-items: center;
  gap: var(--space-3);
}

.pp-toast.is-visible {
  display: inline-flex;
}

.pp-toast__dot {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  background: var(--color-primary-dark);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.pp-toast__title {
  font-size: var(--font-sm);
  font-weight: 900;
}

.pp-toast__sub {
  font-size: var(--font-xs);
  color: rgba(255, 255, 255, 0.7);
}

/* ========================================================================== */
/* Mix & Save Page (page-mix-and-save.php) */
/* ========================================================================== */

.mas-hero {
  position: relative;
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #315E26 0%, #78A346 100%);
  color: white;
  overflow: hidden;
}

.mas-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
}

.mas-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  filter: blur(30px);
  z-index: 0;
}

.mas-hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
}

.mas-hero__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 12px;
}

.mas-hero__title {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  line-height: 1.1;
}

.mas-hero__subtitle {
  font-size: 18px;
  opacity: 0.95;
  line-height: 1.5;
}

.mas-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  min-height: 600px;
}

/* Sidebar Filters */
.mas-sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.mas-filter-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #E5E7EB;
}

.mas-filter-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.mas-filter__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #1F2937;
  margin-bottom: 16px;
}

.mas-filter__btn {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mas-filter__btn button {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E5E7EB;
  background: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #4B5563;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.mas-filter__btn button:hover {
  background: #F3F4F6;
  border-color: #D1D5DB;
}

.mas-filter__btn button.active {
  background: #78A346;
  color: white;
  border-color: #315E26;
}

/* Price Range Slider */
.mas-filter__price {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mas-filter__price input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #E5E7EB;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.mas-filter__price input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #78A346;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.mas-filter__price input[type="range"]::-webkit-slider-thumb:hover {
  background: #315E26;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
}

.mas-filter__price input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #78A346;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.mas-filter__price input[type="range"]::-moz-range-thumb:hover {
  background: #315E26;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
}

.mas-filter__price span {
  font-size: 14px;
  font-weight: 700;
  color: #1F2937;
}

/* Tag Filters */
.mas-filter__tags {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mas-filter__tags button {
  padding: 10px 16px;
  border: 2px solid #E5E7EB;
  background: white;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #4B5563;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.mas-filter__tags button:hover {
  border-color: #78A346;
  color: #315E26;
}

.mas-filter__tags button.active {
  background: #78A346;
  color: white;
  border-color: #78A346;
}

/* Bundles Grid */
.mas-content {
  display: flex;
  flex-direction: column;
}

.mas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.mas-bundle-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.mas-bundle-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  border-color: #D1D5DB;
}

.mas-bundle-card__image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
  display: grid;
  place-items: center;
  font-size: 48px;
  overflow: hidden;
}

.mas-bundle-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mas-bundle-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #FE6B35;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  z-index: 10;
}

.mas-bundle-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mas-bundle-card__name {
  font-size: 16px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 12px;
  line-height: 1.3;
}

.mas-bundle-card__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #6B7280;
}

.mas-bundle-card__stars {
  display: flex;
  gap: 2px;
  color: #FEC84B;
}

.mas-bundle-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 700;
}

.mas-bundle-card__price__current {
  font-size: 18px;
  color: #315E26;
}

.mas-bundle-card__price__original {
  font-size: 14px;
  color: #9CA3AF;
  text-decoration: line-through;
}

.mas-bundle-card__btn {
  width: 100%;
  padding: 12px 16px;
  background: #78A346;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
}

.mas-bundle-card__btn:hover {
  background: #315E26;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mas-bundle-card__btn:active {
  transform: translateY(0);
}

/* Footer CTA */
.mas-footer-cta {
  text-align: center;
  padding: 40px 0;
}

.mas-footer-cta__link {
  display: inline-block;
  padding: 16px 32px;
  background: #78A346;
  color: white;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mas-footer-cta__link:hover {
  background: #315E26;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 1024px) {
  .mas-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mas-sidebar {
    position: relative;
    top: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0;
    margin-bottom: 32px;
  }

  .mas-filter-section {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    border-right: 1px solid #E5E7EB;
  }

  .mas-filter-section:last-child {
    border-right: none;
  }

  .mas-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  .mas-hero {
    padding: 60px 0 40px;
  }

  .mas-hero__title {
    font-size: 36px;
  }

  .mas-hero__subtitle {
    font-size: 16px;
  }

  .mas-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .mas-filter-section {
    border-right: none;
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .mas-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }

  .mas-container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .mas-hero__title {
    font-size: 28px;
  }

  .mas-grid {
    grid-template-columns: 1fr;
  }

  .mas-bundle-card__image {
    height: 160px;
  }

  .mas-bundle-card__body {
    padding: 16px;
  }
}
