/* Produktsidan (produkter.html). Samma varma, mörka stil som startsidan: espresso, champagne och guldkant. */

.shop-hero { padding: clamp(48px, 9vw, 120px) 0 clamp(24px, 4vw, 44px); background: linear-gradient(var(--black), var(--espresso)); }
.shop-kicker { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #f0dcae; margin-bottom: 18px; }
.shop-hero .lead { margin-top: 20px; }

.shop-list { padding-bottom: clamp(48px, 8vw, 100px); }
.shop-filter {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1) clamp(22px, 3vw, 34px); padding: 4px var(--gutter);
}
.shop-filter::-webkit-scrollbar { display: none; }
.shop-filter button {
  flex: none; font-size: 15px; color: #cbbfa9; background: none;
  border: 1px solid #3b342c; border-radius: 999px; padding: 9px 18px; transition: background .25s, color .25s, border-color .25s;
}
.shop-filter button[aria-pressed="true"] { background: linear-gradient(180deg, #fbefd2, #e9d19c); color: var(--ink); border-color: transparent; font-weight: 600; }

.prod-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .prod-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

/* Kortet: samma guldkant som tjänstekorten på startsidan */
.prod {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 20px;
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, #2a231c 0%, #18130f 100%) padding-box,
    linear-gradient(135deg, rgba(248, 232, 194, .7), rgba(184, 149, 90, .2) 35%, rgba(240, 220, 174, .5) 62%, rgba(140, 106, 55, .18) 85%, rgba(233, 209, 156, .55)) border-box;
  box-shadow: 0 18px 36px -24px rgba(0, 0, 0, .95);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
/* Alla produktbilder har samma ljusa ton (#ece6dd) inbakad, så korten ser likadana ut. */
.prod-img { aspect-ratio: 1; overflow: hidden; background: #ece6dd; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) { .prod:hover .prod-img img { transform: scale(1.04); } }
.prod-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 14px 14px 14px; }
.prod-brand { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #b9ab95; }
.prod h3 { font-weight: 500; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.2; letter-spacing: -.02em; color: var(--cream); overflow-wrap: break-word; hyphens: auto; }
.prod-fx { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0 0; padding: 0; list-style: none; }
.prod-fx li { font-size: 11.5px; color: #f0dcae; border: 1px solid #5a4d3c; border-radius: 999px; padding: 2px 8px; }
.prod-text { font-size: 14px; line-height: 1.45; color: #b9ab95; }
.prod-text strong { color: var(--cream); font-weight: 600; }
.prod-foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.prod-price b { display: block; font-size: 18px; font-weight: 600; color: #f0dcae; letter-spacing: -.02em; }
.prod-price b.prod-ask { font-size: 14px; font-weight: 500; }
.prod-price small { font-size: 12px; color: #a89a85; }
.prod .btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* I mobilen: mindre text och knappen över hela bredden, så korten blir lugna */
@media (max-width: 519px) {
  .prod-body { padding: 12px; gap: 6px; }
  .prod-text { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .prod-foot { flex-direction: column; align-items: stretch; }
  .prod .btn-small { width: 100%; }
}

.prod.out { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .prod.in { animation: prod-in .45s var(--ease) both; }
}
@keyframes prod-in { from { opacity: 0; translate: 0 10px; } }

.shop-how { padding: clamp(56px, 9vw, 110px) 0; border-top: 1px solid #2d2822; background: linear-gradient(var(--espresso), #15110e); }
.how-grid { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 760px) { .how-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.how-grid div { padding: 20px; border-radius: 18px; background: #262019; border: 1px solid #3b342c; }
.how-grid h3 { font-weight: 500; font-size: 19px; color: #f0dcae; margin-bottom: 6px; }
.how-grid p { color: #b9ab95; font-size: 15px; }
.shop-ask { margin-top: 28px; }
.shop-how .price-cta { margin-top: 22px; }

/* Korten är klickbara: bild, namn och "Storlek och mer info" öppnar produktvyn */
.prod { cursor: pointer; }
.prod-img { display: block; }
.prod h3 a { color: inherit; text-decoration: none; }
.prod-more { align-self: flex-start; font-size: 13px; color: #f0dcae; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(240, 220, 174, .4); }

/* Produktvyn: ett ark som glider upp i mobilen, en ruta i mitten på stor skärm */
html.pd-open { overflow: hidden; }
.pd {
  width: 100%; max-width: 100%; max-height: 100%; margin: auto 0 0; padding: 0; border: 0;
  background: transparent; color: var(--cream); overflow: visible;
}
.pd::backdrop { background: rgba(8, 6, 5, .72); backdrop-filter: blur(4px); }
.pd-in {
  position: relative; max-height: 92svh; overflow-y: auto; overscroll-behavior: contain;
  border-radius: 24px 24px 0 0; border: 1px solid transparent; border-bottom: 0;
  background:
    linear-gradient(170deg, #2a231c, #16120e) padding-box,
    linear-gradient(135deg, rgba(248, 232, 194, .7), rgba(184, 149, 90, .2) 40%, rgba(233, 209, 156, .55)) border-box;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-reduced-motion: no-preference) {
  .pd[open] .pd-in { animation: pd-up .45s var(--ease) both; }
  .pd[open]::backdrop { animation: pd-fade .3s ease both; }
}
@keyframes pd-up { from { translate: 0 40px; opacity: 0; } }
@keyframes pd-fade { from { opacity: 0; } }
.pd-x {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  min-height: 38px; padding: 0 14px; border-radius: 999px; font-size: 14px;
  background: rgba(23, 19, 15, .78); color: var(--cream); border: 1px solid #4a4138; backdrop-filter: blur(6px);
}
.pd-img { aspect-ratio: 1; max-height: 46svh; width: 100%; background: #ece6dd; display: grid; place-items: center; overflow: hidden; }
.pd-img img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.pd-body { display: grid; gap: 12px; padding: 20px var(--gutter) 26px; }
.pd h2 { font-weight: 500; font-size: clamp(24px, 4vw, 32px); line-height: 1.1; letter-spacing: -.03em; }
.pd-price { display: flex; align-items: baseline; gap: 12px; }
.pd-price b { font-size: 24px; font-weight: 600; color: #f0dcae; letter-spacing: -.02em; }
.pd-price span { font-size: 14px; color: #b9ab95; padding-left: 12px; border-left: 1px solid #4a4138; }
.pd-text { color: #cbbfa9; font-size: 16px; line-height: 1.55; }
.pd-text strong { color: var(--cream); }
.pd-pick p { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #b9ab95; margin-bottom: 8px; }
.pd-pick p span { letter-spacing: 0; text-transform: none; color: #f0dcae; }
.pd-pick div { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-pick button { min-width: 52px; min-height: 42px; padding: 0 16px; border-radius: 999px; font-size: 15px; color: #e9e0d2; background: none; border: 1px solid #4a4138; transition: background .2s, color .2s, border-color .2s; }
.pd-pick button[aria-pressed="true"] { background: linear-gradient(180deg, #fbefd2, #e9d19c); color: var(--ink); border-color: transparent; font-weight: 600; }
.pd-facts { margin: 4px 0 0; display: grid; border-top: 1px solid #3b342c; }
.pd-facts div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid #3b342c; }
.pd-facts dt { font-size: 13px; color: #b9ab95; }
.pd-facts dd { margin: 0; font-size: 15px; line-height: 1.5; color: #e9e0d2; }
.pd-cta { width: 100%; margin-top: 6px; }
.pd-note { text-align: center; font-size: 13px; color: #a89a85; }

@media (min-width: 760px) {
  .pd { width: min(940px, 92vw); margin: auto; }
  .pd-in { display: grid; grid-template-columns: 1fr 1fr; border-radius: 24px; border-bottom: 1px solid transparent; max-height: 88vh; }
  .pd-img { aspect-ratio: auto; max-height: none; height: 100%; min-height: 100%; position: sticky; top: 0; }
  .pd-img img { width: 100%; height: auto; }
  .pd-body { padding: 34px 32px 30px; align-content: start; }
}

/* Påminnelse om poängen: en liten guldkantad rad under ingressen och i produktvyn */
.shop-points {
  display: inline-block; margin-top: 22px; padding: 10px 18px; line-height: 1.45;
  border-radius: 18px; border: 1px solid rgba(240, 220, 174, .45); background: rgba(240, 220, 174, .06);
  font-size: 15px; color: #d9cdb9; text-decoration: none; transition: background .25s, border-color .25s;
}
.shop-points span { color: #f0dcae; margin-right: 4px; }
.shop-points strong { color: #f0dcae; font-weight: 600; }
.shop-points:hover { background: rgba(240, 220, 174, .12); border-color: #f0dcae; }
.pd-points { justify-self: center; font-size: 14px; color: #f0dcae; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(240, 220, 174, .4); }

/* T-shirten: växla mellan baksida (motivet) och framsida */
.pd-img { position: relative; }
.pd-side { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(23, 19, 15, .72); backdrop-filter: blur(6px); }
.pd-side button { min-height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: none; color: #e9e0d2; font-size: 13px; }
.pd-side button[aria-pressed="true"] { background: linear-gradient(180deg, #fbefd2, #e9d19c); color: var(--ink); font-weight: 600; }

/* Poängpriset under priset ("eller 3 poäng") och knappen "Byt mot poäng" i produktvyn */
.prod-pts { display: block; font-style: normal; font-size: 12.5px; color: #f0dcae; opacity: .85; margin-top: 1px; }
.prod-pts::before { content: "✦ "; font-size: .85em; }
.pd-swap { width: 100%; border-color: rgba(240, 220, 174, .55); color: #f0dcae; }
.pd-swap:hover { background: rgba(240, 220, 174, .1); color: #f0dcae; border-color: #f0dcae; }
.pd-note { line-height: 1.45; }
