/* Single product — Lodge-inspired PDP */
body.single-product {
  background: #fff;
}

.tf-pdp {
  background: #fff;
  color: #111;
  padding: 1.25rem 0 4rem;
}

.tf-pdp__inner {
  max-width: 1280px;
}

.tf-pdp-breadcrumb {
  margin: 0 0 1.5rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.tf-pdp-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tf-pdp-breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 0.35rem;
  color: #9ca3af;
}

.tf-pdp__hero {
  display: grid;
  gap: 2rem 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

@media (min-width: 900px) {
  .tf-pdp__hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  }

  .tf-pdp__gallery {
    position: sticky;
    top: 1rem;
  }
}

.tf-pdp__gallery .woocommerce-product-gallery {
  margin: 0;
}

.tf-pdp__gallery .woocommerce-product-gallery__image img {
  width: 100%;
  border-radius: 4px;
  background: #f9fafb;
}

.tf-pdp__gallery .flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.tf-pdp__gallery .flex-control-thumbs li {
  width: 4.5rem;
  margin: 0;
}

.tf-pdp__gallery .flex-control-thumbs img {
  border: 2px solid transparent;
  border-radius: 4px;
  opacity: 0.7;
  cursor: pointer;
}

.tf-pdp__gallery .flex-control-thumbs img.flex-active,
.tf-pdp__gallery .flex-control-thumbs img:hover {
  opacity: 1;
  border-color: #111;
}

.tf-pdp__gallery .onsale {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background: #111;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 2px;
  min-height: auto;
  min-width: auto;
  line-height: 1.2;
}

.tf-pdp__buybox {
  padding-top: 0.25rem;
}

.tf-pdp__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #111;
  font-family: Inter, system-ui, sans-serif;
}

.tf-pdp__price-row {
  margin-bottom: 0.5rem;
}

.tf-pdp__price-row .price {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111;
}

.tf-pdp__price-row .price del {
  color: #9ca3af;
  font-weight: 400;
  font-size: 1.1rem;
  margin-right: 0.5rem;
}

.tf-pdp__price-row .price ins {
  text-decoration: none;
  color: #111;
}

.tf-pdp__sku {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.tf-pdp__sku-label {
  font-weight: 600;
  color: #374151;
  margin-right: 0.35rem;
}

.tf-pdp__excerpt {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #374151;
}

.tf-pdp__excerpt p {
  margin: 0;
}

/* Variations — flat option tiles */
.tf-pdp .variations {
  margin-bottom: 1.5rem;
  border: none;
}

.tf-pdp .variations tr {
  display: block;
  margin-bottom: 1.25rem;
}

.tf-pdp .variations th.label {
  display: block;
  padding: 0 0 0.65rem;
  text-align: left;
}

.tf-pdp .variations th.label label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
}

.tf-pdp .variations td.value {
  display: block;
  padding: 0;
}

.tf-pdp-variations__field {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tf-pdp-variations__select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tf-pdp-variations__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tf-pdp-variation-btn {
  min-width: 3rem;
  padding: 0.55rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.tf-pdp-variation-btn:hover {
  border-color: #111;
}

.tf-pdp-variation-btn.is-selected {
  background: #111;
  border-color: #111;
  color: #fff;
}

.tf-pdp .reset_variations {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.5rem;
  display: inline-block;
}

.tf-pdp form.cart {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tf-pdp .woocommerce-variation-add-to-cart {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.tf-pdp__quantity-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tf-pdp__qty-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
}

.tf-pdp .quantity {
  margin: 0;
}

.tf-pdp .quantity input.qty {
  width: 5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  text-align: center;
  font-size: 0.95rem;
}

.tf-pdp__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.tf-pdp .single_add_to_cart_button {
  width: 100%;
  background: #111 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 1rem 1.5rem !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  cursor: pointer;
  transition: background 0.2s;
  margin: 0 !important;
}

.tf-pdp .single_add_to_cart_button:hover {
  background: #374151 !important;
}

.tf-pdp .tf-buy-now-button {
  width: 100%;
  background: #fff !important;
  color: #111 !important;
  border: 2px solid #111 !important;
  border-radius: 4px !important;
  padding: 1rem 1.5rem !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tf-pdp .tf-buy-now-button:hover {
  background: #111 !important;
  color: #fff !important;
}

.tf-pdp .woocommerce-variation-price {
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.tf-pdp__trust {
  list-style: none;
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid #e5e7eb;
}

.tf-pdp__trust li {
  font-size: 0.85rem;
  color: #4b5563;
  padding: 0.25rem 0 0.25rem 1.25rem;
  position: relative;
}

.tf-pdp__trust li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #111;
  font-weight: 700;
}

/* Accordions */
.tf-pdp__accordions {
  border-top: 1px solid #e5e7eb;
  margin-bottom: 3.5rem;
}

.tf-pdp-accordion {
  border-bottom: 1px solid #e5e7eb;
}

.tf-pdp-accordion__title {
  cursor: pointer;
  padding: 1.1rem 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tf-pdp-accordion__title::-webkit-details-marker {
  display: none;
}

.tf-pdp-accordion__title::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}

.tf-pdp-accordion[open] .tf-pdp-accordion__title::after {
  content: '−';
}

.tf-pdp-accordion__body {
  padding: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #374151;
}

.tf-pdp-accordion__body table.shop_attributes {
  width: 100%;
  border-collapse: collapse;
}

.tf-pdp-accordion__body table.shop_attributes th,
.tf-pdp-accordion__body table.shop_attributes td {
  border-bottom: 1px solid #f3f4f6;
  padding: 0.5rem 0;
  text-align: left;
  font-weight: 400;
}

.tf-pdp-accordion__body table.shop_attributes th {
  width: 40%;
  color: #6b7280;
  font-size: 0.85rem;
}

/* Related products */
.tf-pdp__related-wrap {
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.tf-pdp__related-title {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #111;
  text-align: center;
}

.tf-pdp__related-wrap .related.products {
  margin: 0;
}

.tf-pdp__related-wrap .related.products > h2 {
  display: none;
}

.tf-pdp__related-wrap ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .tf-pdp__related-wrap ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tf-pdp__related-wrap ul.products::before,
.tf-pdp__related-wrap ul.products::after {
  display: none !important;
}

.tf-pdp__related-wrap ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
}

.tf-pdp__related-wrap ul.products li.product a img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #f9fafb;
}

.tf-pdp__related-wrap .tf-shop-card__title {
  margin: 0.5rem 0 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.tf-pdp__related-wrap .tf-shop-card__title a {
  color: #111;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  line-height: 1.35;
  max-height: 2.7em;
}

.tf-pdp__related-wrap ul.products li.product .woocommerce-loop-product__title,
.tf-pdp__related-wrap ul.products li.product .woocommerce-loop-product__title a {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.5rem 0 0.25rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  line-height: 1.35;
  max-height: 2.7em;
}

.tf-pdp__related-wrap ul.products li.product .price {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111;
}

/* ── Mobile PDP ── */
@media (max-width: 767px) {
  .tf-pdp {
    padding: 0.75rem 0 3rem;
  }

  .tf-pdp-breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.72rem;
  }

  .tf-pdp__hero {
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  .tf-pdp__title {
    font-size: 1.25rem;
  }

  .tf-pdp__price-row .price {
    font-size: 1.2rem;
  }

  .tf-pdp__excerpt {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .tf-pdp-variations__swatches {
    gap: 0.45rem;
  }

  .tf-pdp-variation-btn {
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
  }

  .tf-pdp .single_add_to_cart_button,
  .tf-pdp .tf-buy-now-button {
    min-height: 3rem;
    padding: 0.95rem 1rem !important;
  }

  .tf-pdp__accordions {
    margin-bottom: 2.5rem;
  }

  .tf-pdp-accordion__title {
    padding: 0.95rem 0;
    font-size: 0.75rem;
  }

  .tf-pdp__related-wrap ul.products {
    gap: 0.75rem;
  }
}
