/* ==========================================================================
   Lively Design — Single Product (PDP) styles
   DS2 summer palette only · square corners · hairline borders · no shadow.
   Fonts are served by the theme (theme.json); no @import here.
   Tokens reused: --ld-* from style.css and --wp--preset--* from theme.json.
   ========================================================================== */

:root {
  /* PDP-local fallbacks layered on the theme's DS2 tokens */
  --ld-stock-in:    #5E7E62; /* mint */
  --ld-stock-order: #C08A2D; /* amber */
  --ld-stock-out:   #8A867C; /* muted */
}

/* ---- Layout: top (gallery / buy panel) -------------------------------- */
.ld-pdp-top { align-items: flex-start; }

.ld-gallery .wc-block-components-product-image-gallery,
.ld-gallery img { border-radius: 0 !important; }

/* ---- Buy panel -------------------------------------------------------- */
.ld-buybar { position: sticky; top: 96px; }

.ld-buybar__cat.ld-eyebrow {
  display: block;
  margin: 0 0 14px;
  color: var(--ld-accent);
}
.ld-buybar__cat.ld-eyebrow a {
  color: inherit;
  text-decoration: none;
}

.ld-buybar__title,
h1.ld-buybar__title {
  font-family: var(--font-serif, "Cormorant Garamond", Georgia, serif);
  font-weight: 500;
  font-size: 42px;
  line-height: 1.05;
  color: var(--text-strong, #232521);
  margin: 0 0 10px;
}

/* WooCommerce rating */
.ld-buybar .wc-block-components-product-rating,
.ld-buybar .star-rating {
  margin: 10px 0 0;
  color: var(--ld-accent);
  font-size: 13px;
}

/* ---- Price row -------------------------------------------------------- */
.ld-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin: 22px 0 14px;
}
.ld-price-row .price,
.ld-price-row .wc-block-components-product-price {
  font-family: var(--font-shop, "Inter", sans-serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--text-strong, #232521);
  margin: 0;
  white-space: nowrap;
}
.ld-price-row del,
.ld-price-row .price del { color: var(--ld-strike, #B5563A); font-size: 18px; }
.ld-price-exvat {
  font-family: var(--font-shop, "Inter", sans-serif);
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted, #8A867C);
  white-space: nowrap;
}

/* ---- Stock status dot ------------------------------------------------- */
.ld-stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-family: var(--font-shop, "Inter", sans-serif);
  font-size: 13px;
  font-weight: 300;
  color: var(--text-body, #565049);
}
.ld-stock__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ld-stock-out);
  flex: none;
}
.ld-stock[data-status="in"]    .ld-stock__dot { background: var(--ld-stock-in); }
.ld-stock[data-status="order"] .ld-stock__dot { background: var(--ld-stock-order); }
.ld-stock[data-status="out"]   .ld-stock__dot { background: var(--ld-stock-out); }

/* ---- Add-to-cart form ------------------------------------------------- */
.ld-buybar form.cart { margin: 28px 0 0; border-top: 1px solid var(--border-divider, #E8E6DF); padding-top: 28px; }
.ld-buybar .quantity input,
.ld-buybar select { border-radius: 0 !important; }
.ld-buybar form.cart .button,
.ld-buybar .single_add_to_cart_button {
  border-radius: 0 !important;
  background: var(--ld-ink, #232521);
  color: var(--ld-paper, #FBFBF9);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 500;
  padding: 16px 28px;
}
.ld-buybar form.cart .button:hover,
.ld-buybar .single_add_to_cart_button:hover { background: #000; }

/* ---- Secondary actions ------------------------------------------------ */
.ld-buybar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 24px;
}
.ld-buybar__actions .wp-block-buttons { margin: 0; }
.ld-buybar__actions .wp-block-button__link {
  background: transparent;
  color: var(--text-strong, #232521);
  border: 1px solid var(--ld-line, #E9E7E0);
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
}
.ld-buybar__actions .ld-action-sample .wp-block-button__link:hover {
  border-color: var(--text-strong, #232521);
}
/* compare + wishlist active states handled by compare.css / wishlist.css */
.ld-buybar__actions .ld-action-compare .wp-block-button__link:hover,
.ld-buybar__actions .ld-action-wishlist .wp-block-button__link:hover {
  border-color: var(--text-strong, #232521);
}

/* ---- Trust list ------------------------------------------------------- */
.ld-trust {
  list-style: none;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--ld-line, #E9E7E0);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ld-trust__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-shop, "Inter", sans-serif);
  font-size: 13px;
  font-weight: 300;
  color: var(--text-body, #565049);
}
.ld-trust__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ld-accent, #5E7E62);
  flex: none;
}

/* ---- Info section (Popis / Parametry) --------------------------------- */
.ld-info { align-items: flex-start; }
.ld-info__heading,
.ld-specs__heading,
.ld-faq__heading,
.ld-section-heading {
  font-family: var(--font-serif, "Cormorant Garamond", Georgia, serif);
  font-weight: 500;
  font-size: 28px;
  color: var(--text-strong, #232521);
  margin: 0 0 18px;
  line-height: 1.1;
}
.ld-section-heading { font-size: 32px; margin-bottom: 32px; }

.ld-info__desc,
.ld-info__desc p {
  font-family: var(--font-shop, "Inter", sans-serif);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-body, #565049);
  max-width: 560px;
}

/* ---- Specs table ------------------------------------------------------ */
.ld-specs__list {
  margin: 0;
  border-top: 1px solid var(--ld-line, #E9E7E0);
}
.ld-specs__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--ld-line, #E9E7E0);
  font-family: var(--font-shop, "Inter", sans-serif);
  font-size: 14px;
}
.ld-specs__key { margin: 0; color: var(--text-muted, #8A867C); }
.ld-specs__val { margin: 0; color: var(--text-strong, #232521); }

/* ---- FAQ -------------------------------------------------------------- */
.ld-faq { margin-top: var(--wp--preset--spacing--80, 64px); max-width: 760px; }
.ld-faq__list { border-top: 1px solid var(--ld-line, #E9E7E0); }
.ld-faq__item {
  border-bottom: 1px solid var(--ld-line, #E9E7E0);
  padding: 16px 0;
}
.ld-faq__q {
  font-family: var(--font-shop, "Inter", sans-serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-strong, #232521);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.ld-faq__q::-webkit-details-marker { display: none; }
.ld-faq__mark {
  position: relative;
  width: 16px; height: 16px;
  flex: none;
}
.ld-faq__mark::before,
.ld-faq__mark::after {
  content: "";
  position: absolute;
  background: var(--ld-accent, #5E7E62);
  transition: opacity .22s cubic-bezier(.4,0,.2,1);
}
.ld-faq__mark::before { top: 7px; left: 0; width: 16px; height: 2px; }      /* horizontal */
.ld-faq__mark::after  { top: 0; left: 7px; width: 2px; height: 16px; }      /* vertical   */
.ld-faq__item[open] .ld-faq__mark::after { opacity: 0; }                    /* + becomes − */
.ld-faq__a,
.ld-faq__a p {
  font-family: var(--font-shop, "Inter", sans-serif);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-body, #565049);
  margin-top: 12px;
  max-width: 620px;
}

/* ---- Series & related card grids -------------------------------------- */
.ld-pgrid,
.ld-series,
.ld-related-section .wc-block-grid__products,
.ld-related-section ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-card, 24px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.ld-card {
  border: 1px solid var(--ld-line, #E9E7E0);
  background: #fff;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: box-shadow .22s cubic-bezier(.4,0,.2,1);
}
.ld-card:hover { box-shadow: 0 8px 28px rgba(40,32,24,.08); }
.ld-card__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ld-photo, #E7E7E1);
}
.ld-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.ld-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.ld-card-cat {
  font-family: var(--font-shop, "Inter", sans-serif);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted, #8A867C);
  margin: 0;
}
.ld-card-name {
  font-family: var(--font-serif, "Cormorant Garamond", Georgia, serif);
  font-size: 18px;
  color: var(--text-strong, #232521);
  margin: 0;
  line-height: 1.3;
}
.ld-card-price {
  font-family: var(--font-shop, "Inter", sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-strong, #232521);
  margin: 4px 0 0;
}
.ld-card-stock { margin-top: 4px; }

/* ---- Mobile ----------------------------------------------------------- */
@media (max-width: 782px) {
  .ld-pdp-top,
  .ld-info { display: block; }
  .ld-pdp-top .wp-block-column,
  .ld-info .wp-block-column { width: 100% !important; flex-basis: 100% !important; }
  .ld-info .wp-block-column + .wp-block-column { margin-top: 44px; }
  .ld-buybar { position: static; margin-top: 32px; }
  .ld-buybar__title, h1.ld-buybar__title { font-size: 32px; }
  .ld-specs__row { grid-template-columns: 130px 1fr; }
  .ld-pgrid,
  .ld-series,
  .ld-related-section .wc-block-grid__products,
  .ld-related-section ul.products { grid-template-columns: repeat(2, 1fr); }
}
