/* SanSel Shop – additions on top of site.css (which is the seljenes.no design, copied as-is). */

.section-tight { padding: clamp(36px, 5vw, 56px) 0 clamp(56px, 7vw, 88px); }
.center-link { margin-top: 36px; text-align: center; }
.muted-note { margin-top: 28px; color: var(--muted); font-size: 0.95rem; }

/* Hero: four item photos as a collage */
.hero-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-collage img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg); filter: none; }
.hero-collage img:nth-child(2) { transform: translateY(22px); }
.hero-collage img:nth-child(3) { transform: translateY(-8px); }
.hero-collage img:nth-child(4) { transform: translateY(14px); }
@media (max-width: 900px) { .hero-collage { max-width: 420px; } }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-card { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.cat-card h3 { color: var(--ink); }
.cat-card p { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }
.cat-count { margin-top: auto; padding-top: 14px; font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--blue-2); }

/* Category chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chips a { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-family: var(--font-head); font-weight: 600; font-size: 0.93rem; color: var(--muted); text-decoration: none; }
.chips a:hover { border-color: var(--blue-2); color: var(--blue-2); }
.chips a[aria-current="page"] { background: var(--blue-2); border-color: var(--blue-2); color: #fff; }

/* Item cards */
.item-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1080px) { .item-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .item-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .item-grid { gap: 12px; } .item-card-body { padding: 12px 12px 14px; } .item-card h3, .item-card h2 { font-size: 0.92rem; } .item-card-price { font-size: 0.85rem; } }
@media (max-width: 330px) { .item-grid { grid-template-columns: 1fr; } }
.item-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.item-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.item-card-img { display: block; aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--line); }
.item-card-img img { width: 100%; height: 100%; object-fit: contain; }
.item-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.item-card-cat { font-family: var(--font-head); font-size: 0.75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-2); }
.item-card h3, .item-card h2 { font-size: 1.02rem; margin: 6px 0 10px; line-height: 1.3; }
.item-card h3 a, .item-card h2 a { color: var(--ink); text-decoration: none; }
/* the whole card is clickable; the title link stays the only link for screen readers */
.item-card h3 a::after, .item-card h2 a::after { content: ''; position: absolute; inset: 0; }
.item-card:hover h3 a, .item-card:hover h2 a { color: var(--blue-2); }
.item-card-price { margin-top: auto; color: var(--muted); font-size: 0.93rem; }
.item-card-price strong { color: var(--ink); font-family: var(--font-head); font-size: 1.05rem; }
.no-photo { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); font-family: var(--font-head); font-weight: 600; background: repeating-linear-gradient(135deg, var(--surface-2) 0 14px, #fff 14px 28px); }
.no-photo-lg { aspect-ratio: 1; border-radius: var(--radius-lg); }

/* Item page */
.item { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(56px, 8vw, 96px); }
.item-grid-top { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .item-grid-top { grid-template-columns: 1fr; } }
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.gallery-thumb { width: 76px; height: 76px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); background: #fff; cursor: pointer; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb[aria-current="true"] { border-color: var(--blue-2); }
.item-info h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 8px 0 14px; }
.price-from { font-size: 1.1rem; color: var(--muted); }
.price-from strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--blue-2); }
.price-table { width: 100%; max-width: 420px; margin-top: 18px; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 1rem; }
.price-table th, .price-table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.price-table th { font-weight: 600; color: var(--ink); }
.price-table td { text-align: right; font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.item-notes { margin-top: 16px; padding: 12px 16px 12px 34px; border-radius: var(--radius-sm); background: #FFF8DF; color: #5C4600; font-size: 0.95rem; }
.item-pickup { margin-top: 16px; color: var(--muted); font-size: 0.97rem; }
.item-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.item-manual { margin-top: 18px; font-weight: 600; }
.item-manual a::before { content: '📄 '; }
.item-hygglo { margin-top: 12px; color: var(--muted); font-size: 0.93rem; }
.item-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); margin-top: clamp(40px, 6vw, 72px); align-items: start; }
@media (max-width: 900px) { .item-body { grid-template-columns: 1fr; } }
.item-body .prose h2:first-child { margin-top: 0; }
.item-request { position: sticky; top: calc(var(--header-h) + 20px); scroll-margin-top: calc(var(--header-h) + 20px); }
@media (max-width: 900px) { .item-request { position: static; } }
.item-request > h2 { font-size: 1.5rem; }
.item-request > p { color: var(--muted); margin: 8px 0 18px; }
.item-request .form { box-shadow: var(--shadow); }
.related { margin-top: clamp(56px, 8vw, 96px); }
.related > h2 { margin-bottom: 24px; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }

/* YouTube: thumbnail first, the video loads on click (youtube-nocookie) */
.yt { margin: 1.2em 0 1.6em; }
.yt-play, .yt iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; padding: 0; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; box-shadow: none; opacity: .9; }
.yt-icon { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); border-radius: 14px; background: #FF0033; }
.yt-icon::after { content: ''; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.yt-play:hover .yt-icon, .yt-play:focus-visible .yt-icon { background: #CC0029; }
.yt-title { margin-top: 8px !important; font-size: 0.92rem; color: var(--muted); }

/* Manuals */
.manual-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.manual-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.manual-name { font-family: var(--font-head); font-weight: 650; color: var(--ink); }
.manual-name a { color: inherit; text-decoration: none; }
.manual-name a:hover { color: var(--blue-2); text-decoration: underline; }
.manual-size { font-weight: 500; opacity: .8; }

/* Contact page */
.contact-section .crumbs, .contact-section .crumbs a { color: var(--on-dark-muted); }
.contact-section h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 14px; }
.contact-list li > span:last-child { color: #fff; }

/* Blog cards: the card is clickable like the item cards */
.post-card { position: relative; }
.post-card h3 a::after { content: ''; position: absolute; inset: 0; }
