/* Description images: admin editor cards and the storefront "In detail" grid.
   Both use the same idea: every image sits in an identical frame, like the
   cells of a table, and is fitted inside it whole (never cropped). */

/* ---------- Admin editor ---------- */
.wr-presentation-editor {
    --wr-presentation-ink: #1c304e;
    --wr-presentation-muted: #536176;
    --wr-presentation-line: #d5dbe3;
    margin-top: 24px; padding: 22px;
    border: 1px solid var(--wr-presentation-line); border-radius: 8px;
    background: #fff; color: var(--wr-presentation-ink);
}
.wr-presentation-editor *, .wr-presentation-editor *::before,
.wr-presentation-editor *::after { box-sizing: border-box; }
.wr-presentation-editor .wr-presentation-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.wr-presentation-editor .wr-presentation-head h3 { margin: 0; color: var(--wr-presentation-ink); font-size: 18px; line-height: 1.35; }
.wr-presentation-editor .wr-presentation-head p { margin: 3px 0 0; color: var(--wr-presentation-muted); font-size: 13px; line-height: 1.5; }
.wr-presentation-editor .wr-presentation-add { min-height: 44px; padding: 10px 15px; border: 1px solid #c4a159; border-radius: 6px; background: #c4a159; color: #102b46; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.3; cursor: pointer; white-space: nowrap; }
.wr-presentation-editor .wr-presentation-add:hover { background: #d3b271; }
.wr-presentation-editor label { display: grid; gap: 4px; min-width: 0; color: var(--wr-presentation-muted); font-size: 12px; font-weight: 600; line-height: 1.45; }
.wr-presentation-editor input[type="text"] { width: 100%; min-width: 0; min-height: 40px; margin: 0; padding: 8px 10px; border: 1px solid #bbc5d2; border-radius: 6px; background: #fff; color: #1c304e; font: inherit; font-size: 14px; font-weight: 400; line-height: 1.35; }
.wr-presentation-editor input[type="text"]:focus { border-color: #84682e; }
.wr-presentation-editor input[type="file"] { width: 100%; min-height: 44px; font-size: 14px; }
.wr-presentation-editor[data-presentation-initialized] .wr-presentation-upload > label,
.wr-presentation-editor[data-presentation-initialized] input[type="file"] {
    position: absolute; width: 1px; height: 1px; min-height: 0; overflow: hidden;
    clip-path: inset(50%); padding: 0; margin: -1px; white-space: nowrap;
}
.wr-presentation-editor[data-presentation-initialized] .wr-presentation-remove { display: none; }
.wr-presentation-editor .wr-presentation-upload p { margin: 8px 0 16px; font-size: 12px; line-height: 1.5; color: var(--wr-presentation-muted); }

/* The cards mirror the storefront grid, so what staff arrange is what shoppers see. */
.wr-presentation-editor .wr-presentation-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.wr-presentation-editor .wr-presentation-item { position: relative; display: grid; grid-template-rows: auto auto auto; gap: 10px; min-width: 0; padding: 10px; border: 1px solid var(--wr-presentation-line); border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s, opacity .15s; }
.wr-presentation-editor .wr-presentation-item:hover { border-color: #b8c2cf; box-shadow: 0 4px 14px rgba(16, 43, 70, .07); }
.wr-presentation-editor .wr-presentation-item:focus-within { border-color: #84682e; }
.wr-presentation-editor .wr-presentation-thumb { position: relative; width: 100%; aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 8px; background: #f7f5f1; border: 1px solid #eee8dd; border-radius: 7px; overflow: hidden; }
.wr-presentation-editor .wr-presentation-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.wr-presentation-editor .wr-presentation-badge { flex: 0 0 auto; min-width: 28px; height: 28px; padding: 0 8px; display: grid; place-items: center; border-radius: 14px; background: #102b46; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.wr-presentation-editor .wr-presentation-new-tag { position: absolute; top: 8px; right: 8px; z-index: 1; padding: 3px 8px; border-radius: 10px; background: #c4a159; color: #102b46; font-size: 11px; font-weight: 700; }
.wr-presentation-editor .wr-presentation-fields { min-width: 0; }
.wr-presentation-editor .wr-presentation-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.wr-presentation-editor .wr-presentation-move,
.wr-presentation-editor .wr-presentation-remove-button { display: grid; place-items: center; min-width: 40px; height: 36px; padding: 0 10px; border: 1px solid var(--wr-presentation-line); border-radius: 6px; background: #fff; color: #1c304e; font: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.wr-presentation-editor .wr-presentation-move:hover,
.wr-presentation-editor .wr-presentation-remove-button:hover { background: #f2f4f7; }
.wr-presentation-editor .wr-presentation-move[aria-disabled="true"] { opacity: .35; cursor: default; background: #fff; }
.wr-presentation-editor .wr-presentation-remove-button { margin-left: auto; color: #a32323; font-size: 13px; font-weight: 600; }
.wr-presentation-editor .wr-presentation-remove-button:hover { background: #fdf1f1; border-color: #efc4c4; }
.wr-presentation-editor .wr-presentation-remove { display: flex; align-items: center; gap: 6px; min-height: 36px; font-weight: 500; }
.wr-presentation-editor .wr-presentation-remove input { width: 18px; height: 18px; min-height: 18px; }
.wr-presentation-editor .is-removed { border-style: dashed; background: #fbfbfc; }
.wr-presentation-editor .is-removed .wr-presentation-thumb,
.wr-presentation-editor .is-removed .wr-presentation-fields { opacity: .4; }
.wr-presentation-editor .is-removed .wr-presentation-badge { background: #8a94a3; }
.wr-presentation-editor .is-removed .wr-presentation-remove-button { color: #1c304e; }
.wr-presentation-editor [data-presentation-status] { margin: 12px 0 0; color: var(--wr-presentation-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.wr-presentation-editor [data-presentation-status]:empty { display: none; }
.wr-presentation-editor [data-presentation-status].is-error { color: #a32323; }
.wr-presentation-editor [data-presentation-empty] { margin: 0; padding: 26px 16px; border: 1px dashed #c9d1dc; border-radius: 10px; background: #fafbfc; font-size: 13px; color: var(--wr-presentation-muted); text-align: center; }
.wr-presentation-editor :focus-visible { outline: 2px solid #84682e; outline-offset: 2px; }
.wr-presentation-editor [hidden] { display: none !important; }
@media (max-width: 520px) {
    .wr-presentation-editor { padding: 14px; }
    .wr-presentation-editor .wr-presentation-head { flex-wrap: wrap; }
    .wr-presentation-editor .wr-presentation-head h3 { font-size: 16px; }
    .wr-presentation-editor .wr-presentation-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .wr-presentation-editor .wr-presentation-item { padding: 8px; }
    .wr-presentation-editor .wr-presentation-move { min-width: 34px; padding: 0 6px; }
    .wr-presentation-editor .wr-presentation-remove-button { flex-basis: 100%; margin-left: 0; }
}

/* ---------- Storefront: "In detail" ---------- */
.wr-pp { margin: 30px 0 0; padding-top: 24px; border-top: 1px solid var(--line, rgba(22, 32, 44, .14)); }
.wr-pp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.wr-pp-head h3 { margin: 0; color: var(--ink, #0a1626); font-family: var(--serif, Georgia, serif); font-size: 26px; font-weight: 400; line-height: 1.2; letter-spacing: 0; }
.wr-pp-head span { color: var(--muted, #5f6b7a); font-family: var(--sans, Inter, Arial, sans-serif); font-size: 12px; letter-spacing: .02em; }

.wr-product-presentation { --pp-cols: 3; display: grid; grid-template-columns: repeat(var(--pp-cols), minmax(0, 1fr)); gap: 18px; width: 100%; min-width: 0; margin: 0; padding: 0; list-style: none; }
.wr-product-presentation[data-cols="2"] { --pp-cols: 2; }
.wr-product-presentation[data-cols="1"] { --pp-cols: 1; max-width: 420px; }
.wr-product-presentation .wr-product-presentation-item { display: flex; align-items: flex-start; min-width: 0; margin: 0; padding: 0; }
.wr-product-presentation figure { display: flex; flex-direction: column; width: 100%; min-width: 0; margin: 0; padding: 0; }
/* No frame and no background: the image itself is the tile. */
.wr-product-presentation .wr-pp-frame {
    position: relative; display: block; width: 100%;
    padding: 0; border: 0; border-radius: 8px; background: none;
    overflow: hidden; cursor: zoom-in; text-decoration: none;
    transition: opacity .2s;
}
.wr-product-presentation .wr-pp-frame:hover { opacity: .92; }
.wr-product-presentation .wr-pp-frame:focus-visible { outline: 2px solid var(--brass, #c4a159); outline-offset: 3px; }
.wr-product-presentation .wr-product-presentation-image { display: block; width: 100%; height: auto; max-width: 100%; margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; }
.wr-product-presentation .wr-pp-zoom { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(10, 22, 38, .18); opacity: 0; transform: scale(.9); transition: opacity .2s, transform .2s; }
.wr-product-presentation .wr-pp-zoom svg { width: 17px; height: 17px; fill: none; stroke: var(--ink, #0a1626); stroke-width: 1.8; stroke-linecap: round; }
.wr-product-presentation .wr-pp-frame:hover .wr-pp-zoom,
.wr-product-presentation .wr-pp-frame:focus-visible .wr-pp-zoom { opacity: 1; transform: none; }
.wr-product-presentation figcaption { flex: 1; padding: 10px 4px 0; color: var(--ink, #0a1626); font-family: var(--sans, Inter, Arial, sans-serif); font-size: 13px; font-weight: 500; line-height: 1.45; text-align: center; overflow-wrap: anywhere; }
.wr-product-presentation figcaption.is-empty { min-height: 1.45em; }
@media (hover: none) {
    .wr-product-presentation .wr-pp-zoom { opacity: 1; transform: none; width: 30px; height: 30px; }
    .wr-product-presentation .wr-pp-frame:hover { opacity: 1; }
}
@media (max-width: 820px) {
    .wr-product-presentation, .wr-product-presentation[data-cols="3"] { --pp-cols: 2; gap: 14px; }
    .wr-product-presentation[data-cols="1"] { --pp-cols: 1; }
    .wr-pp-head h3 { font-size: 22px; }
}
@media (max-width: 520px) {
    .wr-pp { margin-top: 24px; padding-top: 20px; }
    /* Phones: one full-width image per row, so the words on each poster
       can be read while scrolling, without tapping. */
    .wr-product-presentation, .wr-product-presentation[data-cols] { --pp-cols: 1; gap: 16px; max-width: none; }
    .wr-product-presentation .wr-pp-frame, .wr-product-presentation .wr-product-presentation-image { border-radius: 8px; }
    .wr-product-presentation figcaption { padding-top: 8px; font-size: 13px; }
    .wr-product-presentation figcaption.is-empty { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .wr-product-presentation .wr-pp-frame, .wr-product-presentation .wr-pp-zoom { transition: none; }
}

/* ---------- Enlarge viewer ---------- */
.wr-pp-viewer { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(6, 15, 27, .94); color: #fff; overflow: hidden; }
.wr-pp-viewer::backdrop { background: rgba(6, 15, 27, .94); }
.wr-pp-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.wr-pp-viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 0 18px; font-family: var(--sans, Inter, Arial, sans-serif); font-size: 13px; color: rgba(255, 255, 255, .75); }
.wr-pp-viewer-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 12px 64px; touch-action: pan-y; }
/* Whole image always visible: % heights don't resolve in this grid, so cap by the screen. */
.wr-pp-viewer-stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 130px); object-fit: contain; border-radius: 6px; user-select: none; }
.wr-pp-viewer-caption { min-height: 24px; margin: 0; padding: 4px 18px 20px; font-family: var(--sans, Inter, Arial, sans-serif); font-size: 14px; line-height: 1.5; text-align: center; color: #fff; }
.wr-pp-viewer button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font: inherit; cursor: pointer; }
.wr-pp-viewer button:hover { background: rgba(255, 255, 255, .18); }
.wr-pp-viewer button:focus-visible { outline: 2px solid var(--brass, #c4a159); outline-offset: 2px; }
.wr-pp-viewer button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wr-pp-viewer .wr-pp-prev, .wr-pp-viewer .wr-pp-next { position: absolute; top: 50%; transform: translateY(-50%); }
.wr-pp-viewer .wr-pp-prev { left: 12px; }
.wr-pp-viewer .wr-pp-next { right: 12px; }
.wr-pp-viewer [hidden] { display: none !important; }
@media (max-width: 520px) {
    .wr-pp-viewer-stage { padding: 8px 8px 60px; }
    .wr-pp-viewer-stage img { max-height: calc(100dvh - 170px); }
    .wr-pp-viewer .wr-pp-prev, .wr-pp-viewer .wr-pp-next { top: auto; bottom: 8px; transform: none; width: 40px; height: 40px; }
}
