/* Ny produktside – [afu_product_page] (inc/product-page.php) */

.afu-pp {
  --afu-ink: #2A2A2A;
  --afu-ink-2: #474747;
  --afu-ink-3: #545454;
  --afu-muted: #666666;
  --afu-line: #E5E5E5;
  --afu-stage: #F4F4F4;
  --afu-soft: #F9F9F9;
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 32px 96px;
  box-sizing: border-box;
  font-family: "Manrope", sans-serif;
  color: var(--afu-ink);
}
.afu-pp *,
.afu-pp *::before,
.afu-pp *::after {
  box-sizing: border-box;
}
.afu-pp a {
  color: var(--afu-ink);
}
.afu-pp a:hover {
  color: #000000;
}

.afu-pp-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--afu-ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.afu-pp-icon--heart {
  stroke-width: 2.2;
}

/* Brødkrumme */
.afu-pp-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--afu-muted);
}
.afu-pp-crumbs a {
  color: var(--afu-muted);
  text-decoration: none;
}
.afu-pp-crumbs a:hover {
  text-decoration: underline;
}
.afu-pp-crumbs [aria-current] {
  color: var(--afu-ink);
  font-weight: 600;
}

/* Billeder + info */
.afu-pp-main {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
}

.afu-pp-gallery {
  flex: 999 1 640px;
  min-width: 0;
  display: flex;
  gap: 16px;
}
.afu-pp-thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 76px;
  flex-shrink: 0;
}
.afu-pp .afu-pp-thumb {
  width: 76px;
  height: 96px;
  padding: 6px;
  margin: 0;
  border: 1px solid var(--afu-line);
  border-radius: 0;
  background: var(--afu-stage);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.afu-pp .afu-pp-thumb:hover,
.afu-pp .afu-pp-thumb:focus {
  background: var(--afu-stage);
}
.afu-pp .afu-pp-thumb[aria-current="true"] {
  border: 2px solid var(--afu-ink);
}
.afu-pp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.afu-pp-stage {
  flex: 1 1 auto;
  min-width: 0;
  height: 780px;
  max-height: 85vh;
  background: var(--afu-stage);
  border-radius: 3px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.afu-pp-stage__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}
.afu-pp .afu-pp-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.afu-pp-info {
  flex: 1 1 400px;
  max-width: 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.afu-pp-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.afu-pp .afu-pp-artist {
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  color: var(--afu-ink);
}
.afu-pp .afu-pp-title {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 400;
  color: var(--afu-ink-2);
}
.afu-pp-title em {
  font-style: italic;
}
.afu-pp-facts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--afu-ink-3);
}

.afu-pp .afu-pp-usp {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}
.afu-pp-usp li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.afu-pp-usp a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Pris + "Add to basket" + "Save" */
.afu-pp-buy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.afu-pp .afu-pp-buy p.afu-pp-price.price {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: var(--afu-ink);
}
.afu-pp .afu-pp-price del {
  font-size: 20px;
  font-weight: 400;
  color: var(--afu-muted);
}
.afu-pp .afu-pp-price ins {
  text-decoration: none;
}
.afu-pp form.cart {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
/* Originaler: der findes kun ét eksemplar, så antal-feltet skjules */
.afu-pp form.cart .quantity {
  display: none !important;
}
.afu-pp form.cart .single_add_to_cart_button {
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 0 20px;
  border: none;
  border-radius: 0;
  background: var(--afu-ink);
  color: #FFFFFF;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
}
.afu-pp form.cart .single_add_to_cart_button:hover,
.afu-pp form.cart .single_add_to_cart_button:focus {
  background: #000000;
  color: #FFFFFF;
}
.afu-pp .afu-fav-single {
  width: 100%;
  min-height: 52px;
  margin: 0 !important;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 500;
}
.afu-pp .afu-fav-single svg {
  width: 22px;
  height: 22px;
}
.afu-pp .painting-sold-message {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

/* "Buy with confidence" */
.afu-pp-trust {
  background: var(--afu-soft);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.afu-pp .afu-pp-trust__h {
  margin: 0;
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--afu-ink);
}
.afu-pp-trust__row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.afu-pp-trust__row .afu-pp-icon {
  margin-top: 2px;
}
.afu-pp-trust__row div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.afu-pp-trust__row strong {
  font-size: 15px;
  font-weight: 600;
}
.afu-pp-trust__row span {
  font-size: 14px;
  color: var(--afu-ink-3);
}

/* Fold-ud */
.afu-pp-accs {
  border-top: 1px solid var(--afu-line);
}
.afu-pp .afu-pp-acc__h {
  margin: 0;
  font-size: inherit;
}
.afu-pp .afu-pp-acc__btn {
  width: 100%;
  min-height: 60px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  border-bottom: 1px solid var(--afu-line);
  border-radius: 0;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--afu-ink);
  text-align: left;
  cursor: pointer;
}
.afu-pp .afu-pp-acc__btn:hover,
.afu-pp .afu-pp-acc__btn:focus {
  background: none;
  color: var(--afu-ink);
}
.afu-pp-acc__btn .afu-pp-icon {
  stroke-width: 1.8;
  transition: transform 0.2s ease;
}
.afu-pp-acc__btn[aria-expanded="true"] .afu-pp-icon {
  transform: rotate(180deg);
}
.afu-pp-acc__panel {
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--afu-line);
  font-size: 15px;
  line-height: 1.6;
  color: var(--afu-ink-3);
}
.afu-pp-acc__panel[hidden] {
  display: none;
}
.afu-pp-acc__panel p {
  margin: 0;
}
.afu-pp-dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 10px;
  color: var(--afu-ink);
}
.afu-pp-dl dt {
  color: var(--afu-muted);
  font-weight: 400;
}
.afu-pp-dl dd {
  margin: 0;
}

/* Om værket + kunstneren */
.afu-pp .afu-pp-h2 {
  margin: 0;
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--afu-ink);
}
.afu-pp-about {
  margin-top: 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
}
.afu-pp-about__text {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.afu-pp-desc {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--afu-ink-2);
}
.afu-pp-desc p {
  margin: 0 0 18px;
}
.afu-pp-desc p:last-child {
  margin-bottom: 0;
}
.afu-pp-artistbox {
  flex: 1 1 400px;
  max-width: 460px;
  min-width: 0;
  margin-left: auto;
  background: var(--afu-stage);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.afu-pp .afu-pp-artistbox__head {
  display: flex;
  gap: 16px;
  align-items: center;
  text-decoration: none;
}
.afu-pp-artistbox__head > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.afu-pp .afu-pp-artistbox__img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.afu-pp-artistbox__kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--afu-muted);
}
.afu-pp-artistbox__name {
  font-size: 22px;
  font-weight: 600;
}
.afu-pp-artistbox__bio {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--afu-ink-2);
}
.afu-pp .afu-pp-artistbox__cta {
  align-self: flex-start;
  min-height: 48px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  border: 1px solid var(--afu-ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}
.afu-pp .afu-pp-artistbox__cta:hover {
  background: #FFFFFF;
}

/* Andre værker af kunstneren (kortene er ms_render_product_grid – samme som "Saved artworks") */
.afu-pp-related {
  margin-top: 96px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.afu-pp-related__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}
.afu-pp-related__top a {
  font-size: 16px;
  font-weight: 600;
  text-underline-offset: 3px;
}
.afu-pp-related ul.products {
  margin: 0;
}

/* Tablet og mobil */
@media (max-width: 1024px) {
  .afu-pp-info,
  .afu-pp-artistbox {
    max-width: none;
  }
  .afu-pp-artistbox {
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .afu-pp {
    padding: 16px 16px 64px;
  }
  .afu-pp-crumbs {
    margin-bottom: 16px;
  }
  .afu-pp-main {
    gap: 24px;
  }
  .afu-pp-gallery {
    flex-direction: column-reverse;
    gap: 12px;
  }
  .afu-pp-thumbs {
    flex-direction: row;
    width: auto;
    overflow-x: auto;
  }
  .afu-pp .afu-pp-thumb {
    width: 64px;
    height: 80px;
    flex-shrink: 0;
  }
  .afu-pp-stage {
    height: 380px;
    max-height: none;
    padding: 24px;
  }
  .afu-pp .afu-pp-artist {
    font-size: 17px;
  }
  .afu-pp .afu-pp-title {
    font-size: 26px;
  }
  .afu-pp .afu-pp-buy p.afu-pp-price.price {
    font-size: 26px;
  }
  .afu-pp .afu-pp-h2 {
    font-size: 26px;
  }
  .afu-pp-about,
  .afu-pp-related {
    margin-top: 56px;
    gap: 32px;
  }
}

/* WooCommerce' "1 in stock" – unødvendigt for originaler */
.afu-pp-buy .stock.in-stock {
  display: none;
}

/* Temaets prisstil (gul, 20px) må ikke slå igennem på produktsidens hovedpris */
.afu-pp .afu-pp-price .woocommerce-Price-amount {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  transform: none;
}

/* WooCommerce' clearfix (::before/::after på ul.products) optager en plads i kort-grid'et */
.afu-pp-related ul.products::before,
.afu-pp-related ul.products::after {
  content: none;
  display: none;
}

/* "Add to basket" og "Save" på samme linje */
.afu-pp form.cart {
  flex-direction: row;
  align-items: stretch;
}
.afu-pp form.cart .single_add_to_cart_button {
  flex: 1 1 auto;
  width: auto;
}
.afu-pp form.cart .afu-fav-single {
  flex: 0 0 auto;
  width: auto;
  min-height: 56px;
  padding: 0 22px !important;
}
/* WooCommerce' egne form.cart-regler er mere specifikke – knappen skal fylde resten af linjen */
.afu-pp .afu-pp-buy form.cart {
  justify-content: flex-start !important;
  margin: 0 !important;
}
.afu-pp .afu-pp-buy form.cart .single_add_to_cart_button {
  flex: 1 1 auto !important;
  float: none !important;
}
.afu-pp .afu-pp-buy form.cart::before,
.afu-pp .afu-pp-buy form.cart::after {
  content: none !important;
  display: none !important;
}

/* Farveprikker i "Artwork details" (inc/colors.php) */
.afu-pp-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.afu-pp-color {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2);
  transition: transform .15s;
}
.afu-pp-color:hover,
.afu-pp-color:focus-visible {
  transform: scale(1.15);
}
