/* ============================================================
   DEKOS Furniture — produktu detalizētās lapas
   Lieto kopā ar style.css; veikals.css nav nepieciešams.
   Piemērs: latvija-t01.html
   ============================================================ */

/* Produkta lapas pamatstils */
.dk-product {
  background: #fff;
  color: #2f3b40;
  font-family: Inter, Arial, sans-serif;
}
.dk-product *,
.dk-product *::before,
.dk-product *::after { box-sizing: border-box; }
.dk-product .container {
  max-width: 1272px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Atgriešanās saite */
.dk-product-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 33px 0 24px;
  color: #657076;
  font-size: 13px;
  font-weight: 700;
}
.dk-product-back:hover { color: #a87645; }

/* Divas kolonnas: galerija pa kreisi, informācija pa labi */
.dk-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  column-gap: clamp(32px, 5vw, 64px);
  align-items: stretch;
  padding-bottom: 85px;
}
.dk-product-grid > section { min-width: 0; }

/* Galvenais kvadrātveida attēls */
.dk-product-hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  overflow: hidden;
  background: #e8e8e8;
}
.dk-product-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

/* Galerijas sīktēli */
.dk-product-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.dk-product-thumb {
  appearance: none;
  min-width: 0;
  padding: 0;
  aspect-ratio: 1 / 1;
  border: 2px solid transparent;
  background: #eeeeec;
  cursor: pointer;
  overflow: hidden;
}
.dk-product-thumb[aria-pressed="true"] { border-color: #ae7c4f; }
.dk-product-thumb:focus-visible {
  outline: 3px solid #b8895a;
  outline-offset: 2px;
}
.dk-product-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

/* Labā informācijas kolonna */
.dk-product-main {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-width: 0;
  min-height: 100%;
}
.dk-product-main .dk-eyebrow {
  display: block;
  margin: 6px 0 14px;
  color: #a87645;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
}
.dk-product-main h1 {
  margin: 0 0 10px;
  font-size: clamp(38px, 4.1vw, 64px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1.05;
}
.dk-product-main .dk-product-subtitle {
  margin: 0 0 28px;
  color: #ab7d52;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}
.dk-product-main .dk-product-description {
  margin: 0 0 28px;
  color: #657279;
  font-size: 15px;
  line-height: 1.8;
}

/* Specifikāciju rindas elastīgi aizpilda vietu līdz pogai */
.dk-product-main .dk-product-data {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  margin: 0 0 24px;
  border-top: 1px solid #e3e5e5;
}
.dk-product-main .dk-product-data div {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
  padding: 15px 0;
  border-bottom: 1px solid #e3e5e5;
  font-size: 13px;
}
.dk-product-data dt { color: #839096; }
.dk-product-data dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

/* Cenas pieprasījuma poga */
.dk-product-main .dk-product-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 49px;
  margin-top: auto;
  padding: 15px 20px;
  border: 0;
  border-radius: 4px;
  background: #2f3b40;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}
.dk-product-main .dk-product-send:hover { background: #ad7f53; }
.dk-product-main .dk-product-send:focus-visible {
  outline: 3px solid #b8895a;
  outline-offset: 3px;
}

/* Planšetēm un telefoniem — galerija virs informācijas */
@media (max-width: 960px) {
  .dk-product-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 34px;
  }
  .dk-product-grid > section {
    width: 100%;
    max-width: 600px;
  }
  .dk-product-main { min-height: 0; }
  .dk-product-main .dk-product-data { flex: 0 1 auto; }
  .dk-product-main .dk-product-data div { flex: 0 1 auto; }
  .dk-product-main .dk-product-send { margin-top: 10px; }
}
@media (max-width: 480px) {
  .dk-product .container { padding: 0 16px; }
  .dk-product-grid {
    row-gap: 28px;
    padding-bottom: 55px;
  }
  .dk-product-thumbs { gap: 5px; }
  .dk-product-main .dk-eyebrow { margin-top: 0; }
  .dk-product-main .dk-product-subtitle { margin-bottom: 20px; }
  .dk-product-main .dk-product-description { margin-bottom: 22px; }
}
