/*
 Theme Name: Astra Child
 Template: astra
*/

/* =========================================================
   TWSP - Header menu dropdown: contrast + styling fix
   (Fix voor "uitgewassen" submenu items zoals op screenshot)
   ========================================================= */

.ast-desktop .main-header-menu .sub-menu,
.ast-desktop .main-header-menu .children {
  background: #fff !important;
  opacity: 1 !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border-radius: 14px;
  padding: 10px 0;
  z-index: 9999;
}

.ast-desktop .main-header-menu .sub-menu a,
.ast-desktop .main-header-menu .children a {
  color: #111 !important;
  opacity: 1 !important;
  font-weight: 600;
  line-height: 1.2;
}

.ast-desktop .main-header-menu .sub-menu a:hover,
.ast-desktop .main-header-menu .sub-menu a:focus,
.ast-desktop .main-header-menu .children a:hover,
.ast-desktop .main-header-menu .children a:focus {
  background: rgba(0,0,0,0.06);
  color: #000 !important;
  outline: none;
}

/* =========================================================
   Basis layout
   ========================================================= */

.twsp-product,
.twsp-archive {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}

.twsp-card,
.twsp-buy-button {
  text-decoration: none;
}

.twsp-card:hover,
.twsp-buy-button:hover {
  text-decoration: none;
}

/* =========================================================
   Breadcrumbs
   ========================================================= */

.twsp-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  margin: 0 0 14px;
  opacity: 0.9;
}

.twsp-breadcrumbs a {
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.15);
}

.twsp-breadcrumbs a:hover {
  border-bottom-color: rgba(0,0,0,0.35);
}

.twsp-breadcrumbs .sep {
  opacity: 0.6;
}

/* =========================================================
   Single product
   ========================================================= */

.twsp-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}

.twsp-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

.twsp-title {
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 10px;
}

.twsp-summary {
  font-size: 16px;
  margin: 0 0 16px;
  opacity: 0.9;
}

.twsp-buy-button {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.twsp-buy-button:focus {
  outline: 2px solid rgba(0, 0, 0, 0.25);
  outline-offset: 2px;
}

.twsp-price {
  font-size: 13px;
  opacity: 0.85;
  font-weight: 700;
}

.twsp-content {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr;
  gap: 28px;
  margin-top: 10px;
}

.twsp-main {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.10);
}

.twsp-box {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  margin-bottom: 16px;
}

.twsp-box h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

/* "Ook in" chips op productpagina */
.twsp-cats-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.twsp-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: #000;
  background: #fff;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.twsp-cat-pill:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* =========================================================
   Archive (producten + categorieën)
   ========================================================= */

.twsp-archive__header {
  margin-bottom: 18px;
}

.twsp-archive__title {
  font-size: 32px;
  margin: 0 0 12px;
}

.twsp-archive__intro {
  margin: 0 0 14px;
  opacity: 0.9;
}

/* Filters (chips) */
.twsp-filters,
.twsp-catnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 20px;
  padding: 0;
}

.twsp-filter,
.twsp-catnav__item {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.twsp-filter.is-active {
  background: #000;
  color: #fff;
}

/* Grid + cards */
.twsp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.twsp-card {
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
}

.twsp-card__img img {
  width: 100%;
  height: auto;
  display: block;
}

.twsp-card__img-placeholder {
  width: 100%;
  padding-top: 62%;
  background: rgba(0, 0, 0, 0.06);
}

.twsp-card__body {
  padding: 14px;
}

.twsp-card__cat {
  font-size: 12px;
  font-weight: 800;
  opacity: 0.75;
  margin-bottom: 6px;
}

.twsp-card__title {
  font-weight: 800;
  margin-bottom: 8px;
}

.twsp-card__meta {
  opacity: 0.85;
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Pagination spacing */
.twsp-pagination {
  margin-top: 22px;
}

/* =========================================================
   Category intro & content (ACF velden)
   ========================================================= */

.twsp-catintro {
  margin-bottom: 24px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(0, 0, 0, 0.02);
}

.twsp-catintro p {
  margin: 0 0 12px;
}

.twsp-catintro p:last-child {
  margin-bottom: 0;
}

.twsp-catcontent {
  margin-top: 32px;
  opacity: 0.95;
}

.twsp-catcontent p {
  margin: 0 0 14px;
  line-height: 1.6;
}

.twsp-catcontent p:last-child {
  margin-bottom: 0;
}

.twsp-catcontent h2,
.twsp-catcontent h3 {
  margin: 24px 0 12px;
  font-size: 22px;
  line-height: 1.3;
}

.twsp-catcontent h2:first-child,
.twsp-catcontent h3:first-child {
  margin-top: 0;
}

/* =========================================================
   TWSP Categorieën Grid (Homepage / shortcode)
   Alleen image + titel
   ========================================================= */

.twsp-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 24px 0;
}

@media (max-width: 1100px) {
  .twsp-cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .twsp-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .twsp-cat-grid {
    grid-template-columns: 1fr;
  }
}

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

.twsp-cat-card:hover {
  text-decoration: none;
}

.twsp-cat-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.06);
  aspect-ratio: 4 / 3;
}

.twsp-cat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.twsp-cat-card:hover .twsp-cat-card__media img {
  transform: scale(1.04);
}

.twsp-cat-card__media-placeholder {
  width: 100%;
  height: 100%;
}

.twsp-cat-card__body {
  margin-top: 14px;
}

.twsp-cat-card__title {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.twsp-cat-card__title::after {
  content: "→";
  font-weight: 400;
  transition: transform 0.2s ease;
}

.twsp-cat-card:hover .twsp-cat-card__title::after {
  transform: translateX(3px);
}

/* =========================================================
   TWSP FAQ (Accordion)
   ========================================================= */

.twsp-faq {
  margin-top: 28px;
}

.twsp-faq__title {
  font-size: 28px;
  margin: 0 0 14px;
}

.twsp-faq__items {
  display: grid;
  gap: 12px;
}

.twsp-faq__item {
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.twsp-faq__q {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.twsp-faq__q::-webkit-details-marker {
  display: none;
}

.twsp-faq__q::after {
  content: "＋";
  font-weight: 700;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.twsp-faq__item[open] .twsp-faq__q::after {
  content: "－";
}

.twsp-faq__a {
  padding: 0 18px 18px;
  opacity: 0.95;
}

.twsp-faq__a p {
  margin: 0 0 12px;
}

.twsp-faq__a p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
  .twsp-hero,
  .twsp-content {
    grid-template-columns: 1fr;
  }

  .twsp-title {
    font-size: 28px;
  }

  .twsp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .twsp-grid {
    grid-template-columns: 1fr;
  }
}