/* Single product heroes: physical, e-book, free guide and modular course. */
.product-detail-page {
  background: #f5efe3;
  color: #14110d;
}

.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(500px, .56fr) minmax(0, .44fr);
  gap: clamp(55px, 8vw, 135px);
  align-items: center;
  min-height: clamp(760px, 86svh, 980px);
  padding: clamp(32px, 4vw, 64px) clamp(20px, 5vw, 72px) clamp(80px, 9vw, 140px);
  background: #f0eadc;
}

.product-detail-visual {
  min-width: 0;
}

.product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  color: #6b6353;
  font: 700 14px/1.3 'Space Grotesk', sans-serif;
}

.product-breadcrumb a {
  color: #4e3a8a;
}

.product-detail-visual figure {
  position: relative;
  height: clamp(570px, 60vw, 800px);
  margin: 0;
  overflow: hidden;
  background: #14110d;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

.product-detail-visual figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-detail-visual figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  background: rgba(20, 17, 13, .9);
  color: #f0eadc;
  font: 700 14px/1.25 'Space Grotesk', sans-serif;
}

.product-detail-copy {
  position: relative;
  min-width: 0;
}

.product-detail-copy>.product-ribbon {
  position: relative;
  top: auto;
  left: auto;
  display: inline-block;
  min-width: 106px;
  margin-bottom: 25px;
  padding: 11px 14px;
  color: #fff;
  background: #14110d;
  font: 800 14px/1 'IBM Plex Mono', monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

.product-detail-copy>.ribbon-ebook {
  background: #4e3a8a;
}

.product-detail-copy>.ribbon-free-guide {
  background: #4e3a8a;
  color: #fff;
}

.product-detail-copy>.ribbon-course {
  background: #323a36;
}

.product-detail-copy>.ribbon-physical {
  background: #4e3a8a;
}

.product-detail-copy h1 {
  margin: 0;
  font: 400 clamp(76px, 8.2vw, 136px)/1 'Bebas Neue', 'Arial Narrow', Impact, system-ui, sans-serif;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.product-detail-copy h1 em {
  display: block;
  color: #4e3a8a;
  font-family: 'Rajdhani', 'Arial Narrow', sans-serif;
  font-size: .5em;
  font-style: normal;
  font-weight: 700;
  line-height: .95;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.product-detail-lead {
  max-width: 660px;
  margin-top: 31px;
  color: #332c24;
  font: italic clamp(20px, 1.8vw, 28px)/1.5 Georgia, serif;
}

.product-detail-lead p {
  margin: 0;
}

.product-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 34px 0 0;
  border-block: 1px solid rgba(20, 17, 13, .22);
}

.product-facts>div {
  display: grid;
  gap: 8px;
  padding: 18px 12px;
  border-right: 1px solid rgba(20, 17, 13, .2);
}

.product-facts>div:first-child {
  padding-left: 0;
}

.product-facts>div:last-child {
  border-right: 0;
}

.product-facts dt {
  color: #6b6353;
  font: 700 14px/1.2 'Space Grotesk', sans-serif;
}

.product-facts dd {
  margin: 0;
  color: #14110d;
  font: 700 15px/1.3 'Space Grotesk', sans-serif;
}

.product-detail-price {
  display: flex;
  align-items: baseline;
  gap: 17px;
  margin: 31px 0 23px;
}

.product-detail-price>span {
  color: #6b6353;
  font: 700 14px/1.2 'Space Grotesk', sans-serif;
}

.product-detail-price>strong,
.product-detail-price .amount {
  color: #14110d;
  font: 400 clamp(42px, 4.5vw, 66px)/1 'Bebas Neue', 'Arial Narrow', Impact, system-ui, sans-serif;
  text-transform: uppercase;
}

.product-detail-price del {
  opacity: .5;
}

.product-detail-price ins {
  text-decoration: none;
}

.product-primary-action {
  min-width: 250px;
  border: 0;
  cursor: pointer;
}

.product-add-to-cart-wrapper form.cart {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
}

.product-add-to-cart-wrapper.is-single-access form.cart>.quantity {
  display: none;
}

.product-add-to-cart-wrapper .single_add_to_cart_button {
  min-width: 250px;
  border: 0;
  cursor: pointer;
}

.product-add-to-cart-wrapper form.cart .quantity {
  display: flex;
  align-items: stretch;
}

.product-add-to-cart-wrapper form.cart .qty-btn {
  width: 42px;
  height: 52px;
  border: 1px solid rgba(20, 17, 13, .22);
  background: transparent;
  color: #14110d;
  cursor: pointer;
}

.product-add-to-cart-wrapper form.cart .qty-minus {
  border-right: 0;
}

.product-add-to-cart-wrapper form.cart .qty-plus {
  border-left: 0;
}

.product-add-to-cart-wrapper form.cart input.qty {
  width: 64px;
  height: 52px;
  border: 1px solid rgba(20, 17, 13, .22);
  background: transparent;
  color: #14110d;
  text-align: center;
  font: 600 16px/1 'Space Grotesk', sans-serif;
}

.product-elementor-content {
  background: #f0eadc;
}

/* Digital covers stay readable; physical products retain photographic cropping. */
.product-ebook .product-detail-visual figure img,
.product-free-guide .product-detail-visual figure img {
  object-fit: cover;
  background: #14110d;
}

.product-ebook .product-detail-hero {
	background: #f0eadc;
}

.product-free-guide .product-detail-hero {
	background: #f0eadc;
}

.product-course .product-detail-hero {
	grid-template-columns: minmax(520px, .58fr) minmax(0, .42fr);
	padding-block: clamp(72px, 8vw, 130px);
	background: #f0eadc;
}

.product-course .product-detail-visual figure {
  height: clamp(580px, 60vw, 820px);
}

.product-course .product-detail-copy h1 {
  font-size: clamp(82px, 8.7vw, 148px);
}

.product-course .product-detail-price>strong,
.product-course .product-detail-price .amount {
  color: #4e3a8a;
}

/* HubSpot lead form dialog for free guides. */
body.has-free-guide-dialog {
  overflow: hidden;
}

.free-guide-dialog[hidden] {
  display: none;
}

.free-guide-dialog {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.free-guide-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 13, .72);
}

.free-guide-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: clamp(30px, 5vw, 60px);
  background: #f0eadc;
  color: #14110d;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.free-guide-dialog__panel>span {
  color: #4e3a8a;
  font: 800 12px/1.3 'IBM Plex Mono', monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.free-guide-dialog__panel h2 {
  margin: 15px 45px 18px 0;
  font: 400 clamp(48px, 7vw, 78px)/.86 'Bebas Neue', 'Arial Narrow', Impact, system-ui, sans-serif;
  text-transform: uppercase;
}

.free-guide-dialog__panel>p {
  color: #332c24;
  font: italic 19px/1.5 Georgia, serif;
}

.free-guide-dialog__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(20, 17, 13, .25);
  background: transparent;
  color: #14110d;
  font-size: 28px;
  cursor: pointer;
}

.free-guide-dialog__embed {
  margin-top: 28px;
}

/* WooCommerce targets every image below body.woocommerce, including the footer. */
body.single-product-page footer.site-footer img.tart-footer__logo {
  width: auto;
  max-width: 224px;
  height: 160px;
}

body.single-product-page footer.site-footer img.lang-flag {
  width: 24px;
  max-width: 24px;
  height: 16px;
}

@media(max-width:1060px) {
  .product-detail-hero,
  .product-course .product-detail-hero {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .product-detail-visual figure {
    height: min(110vw, 760px);
  }

  .product-detail-copy {
    max-width: 850px;
  }
}

@media(max-width:720px) {
  .product-detail-hero {
    min-height: auto;
    padding: 28px 14px 80px;
  }

  .product-detail-visual figure,
  .product-course .product-detail-visual figure {
    height: 120vw;
  }

  .product-detail-copy h1,
  .product-course .product-detail-copy h1 {
    font-size: clamp(67px, 20vw, 96px);
  }

  .product-facts {
    grid-template-columns: 1fr;
  }

  .product-facts>div,
  .product-facts>div:first-child {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(20, 17, 13, .18);
  }

  .product-facts>div:last-child {
    border-bottom: 0;
  }

  .product-primary-action,
  .product-add-to-cart-wrapper .single_add_to_cart_button {
    width: 100%;
  }

  .product-ebook .product-detail-hero,
  .product-free-guide .product-detail-hero {
    background: #f0eadc;
  }

  body.single-product-page footer.site-footer img.tart-footer__logo {
    height: 120px;
  }
}

/* WooCommerce Notices */
.woocommerce-notices-wrapper {
  width: min(1480px, calc(100% - 2 * var(--rail, 24px)));
  margin: 40px auto -20px;
  position: relative;
  z-index: 10;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  background: var(--ink, #14110d) !important;
  color: var(--paper, #f0eadc) !important;
  border-top: 0 !important;
  border-left: 4px solid var(--mark, #8b8072) !important;
  padding: 16px 24px !important;
  font: 600 15px/1.4 var(--sans, 'Space Grotesk', sans-serif) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.woocommerce-error {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px;
  list-style: none !important;
}

.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-info::before {
  display: none !important;
}

.woocommerce-message a.button,
.woocommerce-error a.button,
.woocommerce-info a.button {
  background: var(--paper, #f0eadc) !important;
  color: var(--ink, #14110d) !important;
  border: 0 !important;
  padding: 8px 16px !important;
  font: 700 13px/1 var(--sans, 'Space Grotesk', sans-serif) !important;
  text-transform: uppercase !important;
}

.woocommerce-message a.button:hover,
.woocommerce-error a.button:hover,
.woocommerce-info a.button:hover {
  background: var(--mark, #8b8072) !important;
  color: var(--paper, #f0eadc) !important;
}

/* Hide native number input spinners */
input[type=number].qty::-webkit-inner-spin-button, 
input[type=number].qty::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
input[type=number].qty {
  -moz-appearance: textfield;
}

/* Variable products (e.g. T-shirt colour + size): two styled dropdowns above the cart button. */
.product-add-to-cart-wrapper form.variations_form {
  display: block;
}

.product-add-to-cart-wrapper table.variations {
  width: 100%;
  max-width: 520px;
  margin: 0 0 20px;
  border: 0;
  border-collapse: collapse;
}

.product-add-to-cart-wrapper table.variations tr {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.product-add-to-cart-wrapper table.variations th,
.product-add-to-cart-wrapper table.variations td {
  display: block;
  padding: 0;
  border: 0;
  text-align: left;
}

.product-add-to-cart-wrapper table.variations label {
  color: #6b6353;
  font: 700 14px/1.2 'Space Grotesk', sans-serif;
}

/* Custom dropdowns (js/variation-select.js) — same look as the Tatar Forms selects.
   The native select stays hidden underneath as WooCommerce's value holder. */
.tart-select {
  position: relative;
  min-width: 0;
}

.tart-select__native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.tart-select__trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #c4bca8;
  background: rgba(255, 255, 255, .32);
  color: var(--mute);
  font: 600 15px/1.4 var(--sans);
  text-align: left;
  cursor: pointer;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.tart-select.has-value .tart-select__trigger {
  color: var(--ink);
}

.tart-select__trigger:hover {
  border-color: #8e8574;
  background: rgba(255, 255, 255, .5);
}

.tart-select__trigger:focus-visible,
.tart-select.is-open .tart-select__trigger {
  border-color: var(--mark);
  background: #fffaf1;
  box-shadow: 0 0 0 3px rgba(78, 58, 138, .1);
}

.tart-select__trigger.is-disabled {
  opacity: .55;
  cursor: not-allowed;
}

.tart-select__value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tart-select__arrow {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin: -4px 2px 0 0;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform .18s ease, margin .18s ease, border-color .16s ease;
}

.tart-select.is-open .tart-select__arrow {
  margin-top: 4px;
  transform: rotate(-135deg);
  border-color: var(--mark);
}

.tart-select__panel {
  position: fixed;
  z-index: 99990;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: #fffaf1;
  box-shadow: 0 18px 38px -16px rgba(20, 17, 13, .45);
  transform-origin: top center;
  animation: tart-select-in .14s ease-out;
}

.tart-select__panel.is-up {
  transform-origin: bottom center;
  box-shadow: 0 -18px 38px -16px rgba(20, 17, 13, .45);
}

.tart-select__panel[hidden] {
  display: none;
}

.tart-select__list {
  box-sizing: border-box;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c4bca8 transparent;
}

.tart-select__option {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 10px 40px 10px 16px;
  color: var(--ink-2);
  font: 600 15px/1.35 var(--sans);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tart-select__option + .tart-select__option {
  border-top: 1px solid rgba(20, 17, 13, .08);
}

.tart-select__option.is-active {
  background: rgba(78, 58, 138, .09);
  color: var(--ink);
}

.tart-select__option[aria-selected="true"] {
  color: var(--mark);
}

.tart-select__option[aria-selected="true"]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 5px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--mark);
  border-bottom: 2px solid var(--mark);
  transform: rotate(45deg);
}

.tart-select__option[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
}

@keyframes tart-select-in {
  from { opacity: 0; transform: scaleY(.96); }
  to { opacity: 1; transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .tart-select__panel { animation: none; }
  .tart-select__arrow { transition: none; }
}

.product-add-to-cart-wrapper .reset_variations {
  display: inline-block;
  margin-top: 4px;
  color: #6b6353;
  font: 600 13px/1.2 'Space Grotesk', sans-serif;
  text-decoration: underline;
}

.product-add-to-cart-wrapper .single_variation_wrap .woocommerce-variation {
  margin-bottom: 16px;
  font: 600 14px/1.4 'Space Grotesk', sans-serif;
  color: #332c24;
}

.product-add-to-cart-wrapper .woocommerce-variation-add-to-cart {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 16px;
}

.product-add-to-cart-wrapper .single_add_to_cart_button.disabled {
  opacity: .5;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  .product-add-to-cart-wrapper table.variations {
    max-width: none;
  }
}

/* Sold individually (one-of-one paintings): the hidden quantity field takes no space. */
.product-add-to-cart-wrapper form.cart .quantity:has(> input[type="hidden"]) {
  display: none;
}
