/* ============================================
   FAUVITY — TEMA PAGE STYLES
   Requires: style.css (global)
   ============================================ */

/* ── HERO MINI ── */
.hero-mini {
  padding: 5rem 5% 3.5rem;
  text-align: center;
  background: var(--ivory);
  border-bottom: 1px solid var(--border-light);
}

.hero-mini h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--dark);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.hero-mini p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── FILTER ── */
.filter-section {
  background: var(--ivory);
  padding: 1.8rem 5%;
  border-bottom: 1px solid var(--border-light);
  position: static;
  top: auto;
  z-index: auto;
}

.filter-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-end;
}

.mobile-filter-bar,
.active-filter-info,
.mobile-filter-actions { display: none; }

.filter-group { display: flex; flex-direction: column; gap: 0.5rem; }

.filter-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Tier Toggle */
.tier-toggle {
  display: flex;
  gap: 0.25rem;
  background: var(--cream);
  padding: 0.2rem;
  border-radius: 8px;
}

.tier-btn {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 0.5rem 1.1rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.tier-btn.active {
  background: white;
  color: var(--dark);
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Style Pills */
.style-pills { display: flex; gap: 0.45rem; flex-wrap: wrap; }

.style-pill {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 0.4rem 1rem;
  border: 0.5px solid var(--border-light);
  background: white;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 40px;
  transition: all 0.2s;
  white-space: nowrap;
}

.style-pill:hover { border-color: var(--gold); color: var(--gold-dark); }

.style-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: white;
  font-weight: 500;
}

/* Sort */
.sort-group { margin-left: auto; }

.sort-select {
  font-family: var(--sans);
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
  border: 0.5px solid var(--border-light);
  background: white;
  color: var(--dark);
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.sort-select:hover { border-color: var(--gold); }

/* ── THEMES SECTION ── */
.themes-section {
  padding: 3rem 5%;
  min-height: 400px;
}

.themes-inner { max-width: 1200px; margin: 0 auto; }

.themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ── CARD ── */
.theme-card {
  background: white;
  border: 0.5px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(44,31,20,0.1);
  border-color: rgba(196,164,107,0.4);
}

.theme-image {
  position: relative;
  width: 100%;
  padding-bottom: 130%;
  overflow: hidden;
  background: var(--cream);
  cursor: pointer;
}

.theme-image img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.theme-card:hover .theme-image img { transform: scale(1.04); }

.gradient-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.eksklusif-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--gold);
  color: white;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 40px;
}

.theme-content {
  padding: 1.2rem 1.2rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.theme-category {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.3rem;
}

.theme-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.theme-price {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.theme-price-promo { line-height: 1.6; }

.promo-badge-card {
  display: inline-block;
  background: var(--gold);
  color: white;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  margin-bottom: 0.3rem;
}

.price-line { display: flex; align-items: baseline; gap: 0.45rem; flex-wrap: wrap; }

.price-original {
  position: relative;
  display: inline-block;
  font-size: 1.24rem;
  color: #A8844B;
  opacity: 0.95;
  font-weight: 600;
  line-height: 1.35;
  margin-right: 8px;
}
.price-original s {
  text-decoration: none;
}
.price-original::after {
  content: "";
  position: absolute;
  left: -4%;
  top: 50%;
  width: 112%;
  height: 2px;
  background: #D62828;
  transform: translateY(-50%) rotate(-12deg);
  transform-origin: center;
  border-radius: 2px;
  opacity: 0.9;
  box-shadow: 0 0 3px rgba(214,40,40,0.25);
  pointer-events: none;
}

.price-promo {
  font-weight: 600;
  color: var(--gold-dark);
  font-size: 1rem;
}

.theme-actions { display: flex; gap: 0.5rem; margin-top: auto; }

.theme-btn {
  flex: 1;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  padding: 0.5rem 0.6rem;
  border: 0.5px solid var(--border-light);
  background: white;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  text-align: center;
}

.theme-btn:hover { border-color: var(--gold); color: var(--gold-dark); }

.theme-btn.order-btn { border-color: var(--gold); color: var(--gold); font-weight: 500; }
.theme-btn.order-btn:hover { background: var(--gold); color: white; }

.wishlist-icon {
  width: 36px; height: 36px;
  border: 0.5px solid var(--border-light);
  background: white;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.wishlist-icon:hover { border-color: var(--gold); color: var(--gold); }
.wishlist-icon.active { background: var(--gold); border-color: var(--gold); color: white; }

/* ── PAGINATION ── */
.pagination-section { padding: 1rem 5% 3rem; }

.pagination {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.pagination-btn {
  font-family: var(--sans);
  font-size: 0.85rem;
  width: 38px; height: 38px;
  border: 0.5px solid var(--border-light);
  background: white;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}

.pagination-btn:hover { border-color: var(--gold); color: var(--gold); }
.pagination-btn.active { background: var(--gold); border-color: var(--gold); color: white; font-weight: 600; }

/* ── MODAL ── */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1000;
}

.modal.active { display: flex; align-items: center; justify-content: center; }

.modal-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(44,31,20,0.5);
  cursor: pointer;
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  border: none;
  background: var(--cream);
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  color: var(--dark);
  transition: background 0.2s;
}

.modal-close:hover { background: var(--beige); }

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 2rem;
}

.modal-image {
  position: relative;
  width: 100%;
  padding-bottom: 130%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream);
}

.modal-image img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.modal-info { display: flex; flex-direction: column; }

.modal-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--dark);
  margin: 0 0 0.3rem;
  line-height: 1.3;
}

.modal-category {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.features-label {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--dark);
  display: block;
  margin-bottom: 0.5rem;
}

.features-list { list-style: none; padding: 0; margin: 0; }

.features-list li {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.3rem 0 0.3rem 1.2rem;
  position: relative;
}

.features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
}

.modal-price {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 0.5px solid var(--border-light);
}

.price-value {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

.price-value .price-original {
  font-size: 1.26rem;
  margin-right: 8px;
}
.price-value .price-promo { font-size: 1.6rem; font-weight: 600; color: var(--gold-dark); }

.promo-badge-modal {
  display: inline-block;
  background: var(--gold);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}

.eksklusif-badge-modal {
  background: var(--gold);
  color: white;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 40px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.modal-actions { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.2rem; }

/* ── CTA SECTION ── */
.cta-closing {
  background: var(--cream);
  padding: 5rem 5%;
  text-align: center;
  border-top: 1px solid var(--border-light);
}

.cta-closing h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 1rem;
}

.cta-closing p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  margin: 0 auto 2rem;
  max-width: 480px;
}

.cta-closing a {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2.5rem;
  background: var(--gold);
  color: white;
  border-radius: 40px;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s;
}

.cta-closing a:hover { background: var(--gold-dark); transform: translateY(-1px); color: white; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .themes-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .themes-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-section { top: 60px; }
  .modal-body { grid-template-columns: 1fr; padding: 1.5rem; }
  .modal-image { padding-bottom: 70%; }
}

@media (max-width: 768px) {
  .filter-section {
    padding: 0.65rem 4%;
    box-shadow: 0 4px 14px rgba(44,31,20,0.05);
    position: sticky;
    top: 60px;
    z-index: 90;
  }

  .mobile-filter-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.4rem;
    align-items: center;
  }

  .mobile-all-btn,
  .mobile-filter-toggle,
  .mobile-sort-select {
    min-width: 0;
    height: 38px;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--dark);
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 7px;
  }

  .mobile-all-btn,
  .mobile-filter-toggle {
    padding: 0 0.75rem;
    cursor: pointer;
    white-space: nowrap;
  }

  .mobile-all-btn {
    color: var(--gold-dark);
    border-color: rgba(196,164,107,0.45);
  }

  .mobile-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .filter-chevron {
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
  }

  .mobile-filter-toggle[aria-expanded="true"] .filter-chevron {
    transform: rotate(225deg) translate(-1px, -1px);
  }

  .mobile-sort-select {
    width: 88px;
    padding: 0 1.65rem 0 0.6rem;
  }

  .active-filter-info {
    max-width: 1200px;
    margin: 0.45rem auto 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--text-muted);
    font-family: var(--sans);
    font-size: 0.7rem;
  }

  .active-filter-info.visible { display: flex; }

  .active-filter-info strong { color: var(--gold-dark); font-weight: 500; }

  .active-filter-info button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--gold-dark);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
  }

  .filter-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.25s ease, margin-top 0.25s ease, opacity 0.2s ease, visibility 0.2s;
  }

  .filter-wrapper.is-open {
    max-height: 330px;
    margin-top: 0.8rem;
    opacity: 1;
    visibility: visible;
  }

  .filter-group { gap: 0.4rem; }
  .filter-label { font-size: 0.65rem; }
  .tier-toggle { width: 100%; }
  .tier-btn { flex: 1; padding: 0.45rem 0.55rem; font-size: 0.75rem; }
  .style-pills { gap: 0.35rem; }
  .style-pill { padding: 0.4rem 0.7rem; font-size: 0.72rem; }
  .sort-group { display: none; }

  .mobile-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .mobile-filter-actions button {
    height: 36px;
    border-radius: 7px;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
  }

  .filter-reset-btn {
    border: 1px solid var(--border-light);
    background: white;
    color: var(--text-muted);
  }

  .filter-apply-btn {
    border: 1px solid var(--gold);
    background: var(--gold);
    color: white;
  }

  .themes-section { padding-top: 1.25rem; }
}

@media (max-width: 560px) {
  .hero-mini { padding: 4rem 5% 2.5rem; }
  .themes-section { padding: 2rem 5%; }
  .themes-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .theme-content { padding: 0.9rem; }
  .theme-name { font-size: 0.9rem; }
  .theme-price { font-size: 0.8rem; }
  .price-original {
    font-size: 1.1rem;
    margin-right: 6px;
  }
  .theme-btn { font-size: 0.72rem; padding: 0.45rem 0.4rem; }
  .modal-content { width: 95%; }
  .modal-body { padding: 1rem; gap: 1rem; }
  .cta-closing { padding: 3rem 5%; }
}
