/* DFS Catalog — Single Product Runtime Preview v0.4.2 */

.dfs-single-product-page {
  padding-block: clamp(1.8rem, 4vw, 4.25rem);
}

.dfs-single-product {
  min-width: 0;
}

.dfs-single-product__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(2rem, 5vw, 5.25rem);
  align-items: start;
}

.dfs-product-gallery {
  min-width: 0;
}

.dfs-product-gallery__stage {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  place-items: center;
  border: 1px solid #e7ebf1;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 25%, rgb(255 255 255 / 96%), transparent 48%),
    linear-gradient(180deg, #f8faff 0%, #f1f5fb 100%);
}

.dfs-product-gallery__main-image {
  display: block;
  width: 100%;
  height: 100%;
  padding: clamp(1.5rem, 5vw, 4.25rem);
  object-fit: contain;
  transition: opacity 160ms ease, transform 260ms ease;
}

.dfs-product-gallery__stage:hover .dfs-product-gallery__main-image {
  transform: scale(1.015);
}

.dfs-product-gallery__badges {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.dfs-product-gallery__thumbs {
  display: grid;
  grid-auto-columns: 82px;
  grid-auto-flow: column;
  gap: 0.75rem;
  overflow-x: auto;
  margin-top: 0.9rem;
  padding: 0.15rem 0 0.4rem;
  scrollbar-width: thin;
}

.dfs-product-gallery__thumb {
  display: grid;
  width: 82px;
  height: 82px;
  padding: 0.45rem;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--dfs-color-border);
  border-radius: 13px;
  background: #f7f9fc;
  cursor: pointer;
  transition: border-color var(--dfs-transition-fast), box-shadow var(--dfs-transition-fast), background-color var(--dfs-transition-fast);
}

.dfs-product-gallery__thumb:hover,
.dfs-product-gallery__thumb:focus-visible,
.dfs-product-gallery__thumb.is-active {
  border-color: var(--dfs-color-brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgb(6 77 227 / 9%);
}

.dfs-product-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dfs-single-product__summary {
  position: sticky;
  top: 118px;
  min-width: 0;
  padding-top: 0.25rem;
}

.admin-bar .dfs-single-product__summary {
  top: 150px;
}

.dfs-single-product__category,
.dfs-single-product__category:visited {
  display: inline-flex;
  color: var(--dfs-color-brand-active);
  font-size: 0.82rem;
  font-weight: var(--dfs-weight-bold);
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.dfs-single-product__title {
  max-width: 800px;
  margin: 0.75rem 0 0;
  color: var(--dfs-color-ink);
  font-size: clamp(2rem, 3.1vw, 3rem);
  font-weight: var(--dfs-weight-extrabold);
  letter-spacing: -0.045em;
  line-height: 0.99;
}

.dfs-single-product__price {
  margin-top: 1.25rem;
  color: var(--dfs-color-ink);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: var(--dfs-weight-extrabold);
  line-height: 1.2;
}

.dfs-single-product__price del,
.dfs-product-mobile-bar__price del {
  margin-right: 0.45rem;
  color: var(--dfs-color-subtle);
  font-size: 0.75em;
  font-weight: var(--dfs-weight-medium);
}

.dfs-single-product__price ins,
.dfs-product-mobile-bar__price ins {
  background: transparent;
  color: inherit;
  text-decoration: none;
}

.dfs-single-product__short-description {
  margin-top: 1.35rem;
  color: #4b5565;
  font-size: clamp(1rem, 0.35vw + 0.95rem, 1.08rem);
  line-height: 1.7;
}

.dfs-single-product__short-description > :first-child {
  margin-top: 0;
}

.dfs-single-product__short-description > :last-child {
  margin-bottom: 0;
}

.dfs-single-product__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
  color: #4b5565;
  font-size: 0.9rem;
  font-weight: var(--dfs-weight-semibold);
}

.dfs-single-product__status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #98a2b3;
}

.dfs-single-product__status-dot.is-in-stock {
  background: #14965f;
  box-shadow: 0 0 0 4px rgb(20 150 95 / 12%);
}

.dfs-single-product__status-dot.is-out-of-stock {
  background: var(--dfs-color-danger);
  box-shadow: 0 0 0 4px rgb(201 42 42 / 10%);
}

.dfs-single-product__status-dot.is-by-whatsapp {
  background: var(--dfs-color-brand);
  box-shadow: 0 0 0 4px rgb(6 77 227 / 10%);
}

.dfs-single-product__highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 1.55rem;
  border: 1px solid var(--dfs-color-border);
  border-radius: 16px;
  background: #fff;
}

.dfs-single-product__highlight {
  min-width: 0;
  padding: 0.9rem 1rem;
}

.dfs-single-product__highlight:nth-child(odd) {
  border-right: 1px solid var(--dfs-color-border);
}

.dfs-single-product__highlight:nth-child(n + 3) {
  border-top: 1px solid var(--dfs-color-border);
}

.dfs-single-product__highlight-label,
.dfs-single-product__highlight-value {
  display: block;
}

.dfs-single-product__highlight-label {
  color: var(--dfs-color-muted);
  font-size: 0.72rem;
  font-weight: var(--dfs-weight-bold);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.dfs-single-product__highlight-value {
  overflow: hidden;
  margin-top: 0.25rem;
  color: var(--dfs-color-text);
  font-size: 0.9rem;
  font-weight: var(--dfs-weight-semibold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dfs-single-product__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.dfs-single-product__whatsapp,
.dfs-single-product__whatsapp:visited {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #1765ff 0%, #064de3 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 28px rgb(6 77 227 / 22%);
  transition: transform var(--dfs-transition-fast), box-shadow var(--dfs-transition-fast);
}

.dfs-single-product__whatsapp:hover,
.dfs-single-product__whatsapp:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgb(6 77 227 / 29%);
}

.dfs-single-product__whatsapp strong,
.dfs-single-product__whatsapp small {
  display: block;
}

.dfs-single-product__whatsapp strong {
  font-size: 1rem;
  line-height: 1.2;
}

.dfs-single-product__whatsapp small {
  margin-top: 0.16rem;
  color: rgb(255 255 255 / 86%);
  font-size: 0.79rem;
  line-height: 1.3;
}

.dfs-single-product__action-icon,
.dfs-single-product__action-icon svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.dfs-single-product__wishlist,
.dfs-single-product__wishlist:visited {
  display: inline-flex;
  min-width: 64px;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--dfs-color-border-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--dfs-color-ink);
  font-size: 0;
  text-decoration: none;
}

.dfs-single-product__wishlist:hover,
.dfs-single-product__wishlist:focus-visible {
  border-color: var(--dfs-color-brand);
  color: var(--dfs-color-brand-active);
}

.dfs-single-product__meta {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--dfs-color-border);
  color: var(--dfs-color-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.dfs-single-product__meta strong {
  color: #4b5565;
}

.dfs-single-product__meta a,
.dfs-single-product__meta a:visited {
  color: var(--dfs-color-muted);
  text-decoration: none;
}

.dfs-single-product__meta a:hover,
.dfs-single-product__meta a:focus-visible {
  color: var(--dfs-color-brand-active);
}

.dfs-single-product__wholesale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid #cfdcf0;
  border-radius: 14px;
  background: #f7faff;
}

.dfs-single-product__wholesale strong,
.dfs-single-product__wholesale span {
  display: block;
}

.dfs-single-product__wholesale strong {
  color: var(--dfs-color-ink);
  font-size: .9rem;
  line-height: 1.35;
}

.dfs-single-product__wholesale span {
  margin-top: .2rem;
  color: var(--dfs-color-muted);
  font-size: .8rem;
  line-height: 1.45;
}

.dfs-site .dfs-single-product__wholesale a,
.dfs-site .dfs-single-product__wholesale a:visited {
  flex: 0 0 auto;
  color: var(--dfs-color-brand-active);
  font-size: .82rem;
  font-weight: var(--dfs-weight-bold);
  text-decoration: none;
}

.dfs-site .dfs-single-product__wholesale a:hover,
.dfs-site .dfs-single-product__wholesale a:focus-visible {
  color: #023a9c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dfs-single-product__desktop-description {
  display: block;
  margin-top: 1.65rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dfs-color-border);
}

.dfs-single-product__desktop-description h2 {
  margin: 0.35rem 0 0;
  color: var(--dfs-color-ink);
  font-size: clamp(1.55rem, 2.1vw, 2rem);
  font-weight: var(--dfs-weight-extrabold);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.dfs-single-product__desktop-description-prose {
  max-width: 760px;
  margin-top: 0.95rem;
  color: #465061;
  font-size: 0.98rem;
  line-height: 1.75;
}

.dfs-single-product__desktop-description-prose > :first-child {
  margin-top: 0;
}

.dfs-single-product__desktop-description-prose > :last-child {
  margin-bottom: 0;
}

.dfs-single-product__desktop-description-prose img {
  max-width: 100%;
  height: auto;
}

.dfs-single-product__content {
  display: grid;
  gap: clamp(3.25rem, 7vw, 6.5rem);
  margin-top: clamp(4rem, 8vw, 7rem);
}

.dfs-product-section {
  min-width: 0;
}

.dfs-product-section--details {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.55fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  padding-top: 2rem;
  border-top: 1px solid var(--dfs-color-border);
}

.dfs-product-section__heading h2 {
  margin: 0;
  color: var(--dfs-color-ink);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: var(--dfs-weight-extrabold);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.dfs-product-section__heading--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.dfs-product-section__prose {
  max-width: 850px;
  color: #465061;
  font-size: 1rem;
  line-height: 1.75;
}

.dfs-product-section__prose > :first-child {
  margin-top: 0;
}

.dfs-product-section__prose > :last-child {
  margin-bottom: 0;
}

.dfs-product-section__prose img {
  max-width: 100%;
  height: auto;
}

.dfs-product-details-grid {
  overflow: hidden;
  border: 1px solid var(--dfs-color-border);
  border-radius: 16px;
  background: #fff;
}

.dfs-product-details-grid__row {
  display: grid;
  grid-template-columns: minmax(150px, 0.6fr) minmax(0, 1.4fr);
  margin: 0;
}

.dfs-product-details-grid__row + .dfs-product-details-grid__row {
  border-top: 1px solid var(--dfs-color-border);
}

.dfs-product-details-grid dt,
.dfs-product-details-grid dd {
  margin: 0;
  padding: 0.95rem 1rem;
  line-height: 1.5;
}

.dfs-product-details-grid dt {
  background: #f8fafc;
  color: #4b5565;
  font-size: 0.84rem;
  font-weight: var(--dfs-weight-bold);
}

.dfs-product-details-grid dd {
  color: var(--dfs-color-text);
  font-size: 0.92rem;
}

.dfs-product-section__all-link,
.dfs-product-section__all-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--dfs-color-brand-active);
  font-size: 0.9rem;
  font-weight: var(--dfs-weight-bold);
  text-decoration: none;
}

.dfs-product-section__all-link span,
.dfs-product-section__all-link svg {
  width: 17px;
  height: 17px;
}

.dfs-product-mobile-bar {
  display: none;
}

@media (max-width: 960px) {
  .dfs-single-product__hero {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .dfs-single-product__summary {
    position: static;
  }

  .dfs-single-product__title {
    font-size: clamp(1.85rem, 4vw, 2.5rem);
  }

  .dfs-single-product__actions {
    grid-template-columns: 1fr;
  }

  .dfs-single-product__wishlist,
  .dfs-single-product__wishlist:visited {
    min-height: 48px;
    justify-content: flex-start;
    padding-inline: 1rem;
    font-size: 0.88rem;
    font-weight: var(--dfs-weight-semibold);
  }
}

@media (max-width: 700px) {
  body.single-product {
    padding-bottom: 84px;
  }

  .dfs-single-product-page {
    padding-block: 1.25rem 2.5rem;
  }

  .dfs-single-product-page .woocommerce-breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.75rem;
  }

  .dfs-single-product__hero {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .dfs-product-gallery__stage {
    border-radius: 18px;
  }

  .dfs-product-gallery__main-image {
    padding: clamp(1rem, 8vw, 2.35rem);
  }

  .dfs-product-gallery__thumbs {
    grid-auto-columns: 68px;
  }

  .dfs-product-gallery__thumb {
    width: 68px;
    height: 68px;
    border-radius: 11px;
  }

  .dfs-single-product__title {
    margin-top: 0.6rem;
    font-size: clamp(1.8rem, 7.6vw, 2.3rem);
  }

  .dfs-single-product__price {
    margin-top: 1rem;
  }

  .dfs-single-product__short-description {
    margin-top: 1rem;
  }

  .dfs-single-product__highlights {
    margin-top: 1.25rem;
  }

  .dfs-single-product__actions {
    margin-top: 1.25rem;
  }


  .dfs-single-product__whatsapp {
    min-height: 58px;
  }

  .dfs-single-product__wholesale {
    align-items: flex-start;
    flex-direction: column;
    gap: .75rem;
  }

  .dfs-single-product__content {
    gap: 3rem;
    margin-top: 3.5rem;
  }

  .dfs-product-section--details {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-top: 1.5rem;
  }

  .dfs-product-section__heading--row {
    align-items: flex-start;
  }

  .dfs-product-details-grid__row {
    grid-template-columns: 1fr;
  }

  .dfs-product-details-grid dt {
    padding-bottom: 0.35rem;
    background: #fff;
  }

  .dfs-product-details-grid dd {
    padding-top: 0;
  }

  .dfs-product-mobile-bar {
    position: fixed;
    z-index: calc(var(--dfs-z-sticky) + 5);
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem max(1rem, env(safe-area-inset-right)) calc(0.75rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    border-top: 1px solid rgb(16 24 40 / 10%);
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 -12px 30px rgb(16 24 40 / 10%);
    backdrop-filter: blur(18px);
  }


  .dfs-product-mobile-bar__cta,
  .dfs-product-mobile-bar__cta:visited {
    display: inline-flex;
    width: min(100%, 320px);
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    background: var(--dfs-color-brand);
    color: #fff;
    font-size: 0.86rem;
    font-weight: var(--dfs-weight-bold);
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
  }

  .dfs-product-mobile-bar__cta span,
  .dfs-product-mobile-bar__cta svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 390px) {
  .dfs-single-product__highlights {
    grid-template-columns: 1fr;
  }

  .dfs-single-product__highlight:nth-child(odd) {
    border-right: 0;
  }

  .dfs-single-product__highlight + .dfs-single-product__highlight {
    border-top: 1px solid var(--dfs-color-border);
  }

}

/* v0.4.2 — CTA contrast hardening against global anchor styles. */
.dfs-site a.dfs-single-product__whatsapp,
.dfs-site a.dfs-single-product__whatsapp:visited,
.dfs-site a.dfs-single-product__whatsapp:hover,
.dfs-site a.dfs-single-product__whatsapp:focus-visible {
  color: #fff;
}

.dfs-site a.dfs-single-product__whatsapp .dfs-single-product__action-icon,
.dfs-site a.dfs-single-product__whatsapp .dfs-single-product__action-icon svg,
.dfs-site a.dfs-single-product__whatsapp strong,
.dfs-site a.dfs-single-product__whatsapp small {
  color: #fff;
}

.dfs-site a.dfs-product-mobile-bar__cta,
.dfs-site a.dfs-product-mobile-bar__cta:visited,
.dfs-site a.dfs-product-mobile-bar__cta:hover,
.dfs-site a.dfs-product-mobile-bar__cta:focus-visible,
.dfs-site a.dfs-product-mobile-bar__cta span,
.dfs-site a.dfs-product-mobile-bar__cta svg {
  color: #fff;
}

@media (max-width: 700px) {
  .dfs-product-section__all-link {
    display: none;
  }
}
