/* Produktdetaljer */
.pd { padding: 64px 10%; }
.pd-tillbaka, .pd-knapp { display: inline-block; background: #000; color: #fff; border: 1px solid #000; padding: 8px 24px; margin: 12px; transition: background 0.3s, color 0.3s; }
.pd-tillbaka:hover, .pd-knapp:hover { background: #fff; color: #000; }
.pd-tillbaka { text-transform: uppercase; letter-spacing: 0.06em; }
.pd-knapp { margin: 16px 0 0; text-transform: uppercase; letter-spacing: 0.06em; }

.pd-topp { display: flex; gap: 0; align-items: flex-start; background: #fff; }
.pd-galleri { width: 50%; display: flex; flex-direction: column; align-items: center; }
.pd-huvudbild { position: relative; width: 100%; height: 500px; display: flex; align-items: center; justify-content: center; }
.pd-huvudbild img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.pd-ingen { font-size: 96px; color: #d1d5db; }
.pd-pil { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: none; background: #fff;
          box-shadow: 0 1px 3px rgba(0,0,0,0.2); cursor: pointer; font-size: 18px; }
.pd-pil:hover { background: #e5e7eb; }
.pd-pil.vanster { left: 40px; } .pd-pil.hoger { right: 40px; }
.pd-zoom { position: absolute; top: 8px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: none; background: #fff; color: #374151;
           box-shadow: 0 1px 3px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pd-zoom:hover { background: #f3f4f6; }
.pd-tummar { display: flex; gap: 8px; margin-top: 8px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.pd-tumme { flex-shrink: 0; width: 48px; height: 48px; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; }
.pd-tumme.vald { border-color: #000; }
.pd-tumme img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pd-info { width: 50%; padding: 16px; }
.pd-info h1 { font-size: 24px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #1f2937; margin: 0 0 8px; line-height: 1.3; }
.pd-artnr { margin: 0 0 16px; color: #111; }
.pd-besk { color: #6b7280; text-align: justify; margin-bottom: 16px; line-height: 1.6; }
.pd-besk p { margin: 0 0 10px; }
.pd-material { color: #111; margin: 0 0 16px; }
.pd-matt { border: 1px solid #e5e7eb; background: #fff; margin-bottom: 16px; font-size: 14px; }
.pd-matt summary { cursor: pointer; padding: 8px 16px; display: flex; justify-content: space-between; align-items: center; font-weight: 500; list-style: none; }
.pd-matt summary::-webkit-details-marker { display: none; }
.pd-matt summary span { font-size: 11px; color: #4b5563; transition: transform 0.2s; }
.pd-matt[open] summary span { transform: rotate(180deg); }
.pd-matt div { padding: 4px 32px 16px; color: #1f2937; }
.pd-matt p { margin: 0 0 8px; }
.pd-matt strong { color: #4b5563; }
.pd-priser p { margin: 0 0 8px; }
.pd-priser s { color: #9ca3af; margin-left: 6px; }

.pd-bestall { padding: 16px; margin-top: 16px; }
.pd-bestall > h2 { text-align: center; font-size: 24px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin: 16px 0; }
.pd-bestall-rad { display: grid; grid-template-columns: 1fr 30rem; gap: 32px; align-items: start; }
.pd-varianter { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.pd-variant { width: 208px; background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); padding: 16px; text-align: center; transition: box-shadow 0.2s; }
.pd-variant:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.pd-variant.markerad { box-shadow: 0 0 0 2px #000; }
.pd-variant img { height: 160px; width: auto; max-width: 100%; object-fit: cover; margin: 0 auto 8px; }
.pd-variant h3 { font-size: 18px; font-weight: 600; color: #1f2937; margin: 0; line-height: 1.35; }
.pd-lager { font-size: 14px; color: #6b7280; margin: 8px 0 4px; }
.pd-slut { font-size: 14px; color: #ef4444; font-weight: 500; margin: 8px 0 4px; }
.pd-variant input { width: 80px; font-size: 14px; text-align: center; border: 1px solid #d1d5db; border-radius: 4px; padding: 4px; }
.pd-variant input:disabled { background: #f3f4f6; color: #9ca3af; }
.pd-variant input:focus { outline: none; border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96,165,250,0.35); }
.pd-anpassa { display: block; width: 100%; margin-top: 24px; background: #000; color: #fff; border: 1px solid #000; padding: 12px; font-size: 16px;
              text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; transition: background 0.3s, color 0.3s; }
.pd-anpassa:hover, .pd-anpassa[aria-expanded="true"] { background: #fff; color: #000; }
.pd-anpassning { margin-top: 12px; }
.pd-anpassning label { display: block; font-size: 14px; color: #4b5563; margin-bottom: 6px; }
.pd-anpassning label a { color: #000; text-decoration: underline; }
.pd-anpassning textarea { width: 100%; border: 1px solid #d1d5db; border-radius: 6px; padding: 10px; font: inherit; resize: vertical; }

.pd-summa { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); padding: 24px; position: sticky; top: 16px; }
.pd-summa h2 { font-size: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 16px; }
.pd-summa table { width: 100%; border-collapse: collapse; font-size: 14px; color: #1f2937; margin-bottom: 16px; }
.pd-summa thead th { background: #f3f4f6; font-weight: 500; padding: 12px 16px; text-align: right; }
.pd-summa thead th:first-child { text-align: left; }
.pd-summa td { padding: 10px 16px; text-align: right; white-space: nowrap; }
.pd-summa td:first-child { text-align: left; white-space: normal; }
.pd-summa .delsumma td { font-weight: 600; border-top: 1px solid #e5e7eb; }
.pd-summa .delsumma2 td { font-weight: 700; border-top: 1px solid #000; color: #000; }
.pd-summa .delsumma2 td:last-child, .pd-summa .total td { font-size: 18px; }
.pd-summa .moms td { color: #4b5563; }
.pd-summa .total td { font-weight: 700; border-top: 1px solid #d1d5db; color: #000; font-size: 18px; }
.pd-kontakt { display: grid; gap: 8px; margin-bottom: 12px; }
.pd-kontakt input, .pd-kontakt textarea { width: 100%; border: 1px solid #d1d5db; border-radius: 6px; padding: 10px 12px; font: inherit; font-size: 15px; }
.pd-kontakt input:focus, .pd-kontakt textarea:focus { outline: none; border-color: #000; box-shadow: 0 0 0 1px #000; }
.pd-kontakt [aria-invalid="true"] { border-color: #b91c1c; }
.pd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pd-skicka { width: 100%; background: #000; color: #fff; border: 1px solid #000; padding: 14px; font-size: 16px; text-transform: uppercase; letter-spacing: 0.08em;
             cursor: pointer; transition: background 0.3s, color 0.3s; }
.pd-skicka:hover:not(:disabled) { background: #fff; color: #000; }
.pd-skicka:disabled { background: #9ca3af; border-color: #9ca3af; cursor: default; }
.pd-not { font-size: 13px; color: #6b7280; margin: 10px 0 0; text-align: center; }
.pd-fel { color: #b91c1c; font-size: 14px; margin: 0 0 12px; }
.pd-fel.liten { margin: -4px 0 0; font-size: 13px; }
.pd-fel a { color: inherit; text-decoration: underline; }
.pd-ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; }
.pd-ok p { margin: 4px 0 0; }

.pd-rel { margin-top: 32px; }
.pd-rel h2 { font-size: 24px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; color: #1f2937; margin: 0 0 16px; }
.pd-rel-wrap { position: relative; }
.pd-rel-spar { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 4px 16px; }
.pd-rel-spar::-webkit-scrollbar { display: none; }
.pd-rel-kort { flex: 0 0 calc(100% / 3.2); scroll-snap-align: start; background: #fff; border-radius: 8px; padding: 16px; text-align: center;
               box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); transition: box-shadow 0.3s; color: inherit; }
.pd-rel-kort:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.12); }
.pd-rel-kort img, .pd-rel-kort .ph { display: block; width: 100%; height: 224px; object-fit: contain; border-radius: 6px; margin-bottom: 16px; background: #fff; }
.pd-rel-kort .ph { background: #f3f4f6; }
.pd-rel-kort h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.pd-rel-kort p { font-size: 14px; color: #4b5563; text-align: justify; margin: 0; }
.pd-rel-pil { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: none;
              background: #fff; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.15); cursor: pointer; font-size: 20px; }
.pd-rel-pil:hover { background: #000; color: #fff; }

dialog.ap-ljus { padding: 0; border: none; background: #fff; max-width: min(900px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
dialog.ap-ljus::backdrop { background: rgba(0,0,0,0.7); }
dialog.ap-ljus img { display: block; max-width: 100%; max-height: calc(100dvh - 24px); object-fit: contain; }
dialog.ap-ljus .stang { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: none; background: #fff;
                        box-shadow: 0 1px 6px rgba(0,0,0,0.25); font-size: 18px; cursor: pointer; }

@media (max-width: 1279px) { .pd { padding: 64px 8%; } }
@media (max-width: 1023px) {
  .pd-topp { flex-direction: column; }
  .pd-galleri, .pd-info { width: 100%; }
  .pd-huvudbild { height: 400px; }
  .pd-bestall-rad { grid-template-columns: 1fr; }
  .pd-summa { position: static; }
  .pd-rel-kort { flex-basis: calc(100% / 2.2); }
}
@media (max-width: 639px) {
  .pd { padding: 32px 16px; }
  .pd-tillbaka { margin: 0 0 12px; }
  .pd-huvudbild { height: 300px; }
  .pd-pil.vanster { left: 8px; } .pd-pil.hoger { right: 8px; }
  .pd-zoom { right: 4px; width: 40px; height: 40px; }
  .pd-bestall { padding: 0; }
  .pd-variant { width: calc(50% - 12px); padding: 12px; }
  .pd-variant h3 { font-size: 15px; }
  .pd-summa { padding: 16px; }
  .pd-summa thead th, .pd-summa td { padding: 8px; }
  .pd-rel-kort { flex-basis: calc(100% / 1.5); }
}
