/* ==========================================================================
   Tema 2 · catalogul-carte — component CSS (hand-written, loaded after styles.css).
   Header, catalogue book, sliders and quick view in the colours of
   YourPrint: raspberry #CC3366, pink #E947A5, yellow #FCD63C, cyan #47D6E8,
   indigo #271F71, violet #7169BD. No GPU filters of any kind (iOS Safari rule): shadows and gradients only.
   ========================================================================== */

:root {
  --brand: #CC3366; --brand-hover: #B22A57; --pink: #E947A5; --yellow: #FCD63C; --cyan: #47D6E8;
  --indigo: #271F71; --violet: #7169BD; --ink: #16181D; --muted: #5A6072; --line: #E3E6EC;
  --soft: #F1F3F7; --paper: #F3F5F9; --paper-edge: #DADDE3;
}

/* ---------- 1. Base ---------- */
html { scroll-padding-top: 9.25rem; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
@media (max-width: 767px) { html { scroll-padding-top: 12px; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { background: #FFFFFF url(img/linen.png); color: #1B1E26; font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
@supports (overflow: clip) { body { overflow-x: clip; } }
html.noscroll, html.noscroll body { overflow: hidden; }
h1, h2, h3, h4 { text-wrap: balance; }
.emb h1, .emb h2, .emb h3, h2.emb, h3.emb { text-shadow: 0 1px 0 rgba(255,255,255,.85), 0 -0.5px 0 rgba(22,24,29,.12); }
/* the outline follows each element's own radius (no border-radius here: it would square off round buttons) */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: var(--yellow); }
.ms { font-family: 'Material Symbols Outlined'; font-weight: 400; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; -webkit-user-select: none; user-select: none; overflow: hidden; flex-shrink: 0; }
.ms.fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.tnum { font-variant-numeric: tabular-nums; }
.sr-only-f:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }
/* iOS Safari zooms into any field under 16px on focus; on touch screens keep every field at 16px */
@media (pointer: coarse) { input, select, textarea { font-size: 16px !important; } }
input[type=number] { -moz-appearance: textfield; }
input[type=search]::-webkit-search-cancel-button, input[type=search]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
[data-search] input:focus-visible { outline: none; }
[data-search] .focus-within\:border-brand:focus-within { box-shadow: 0 0 0 3px rgba(204,51,102,.14); }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- 2. Header ---------- */
@media (min-width: 768px) { .cc-sticky { position: -webkit-sticky; position: sticky; top: 0; z-index: 50; } }
.cc-sticky { background: #FFFFFF; box-shadow: 0 1px 8px rgba(0,0,0,.04); }
.cc-cmyk { display: flex; height: 3px; }
.cc-cmyk i { flex: 1; }
.cc-cmyk i:nth-child(1) { background: var(--cyan); }
.cc-cmyk i:nth-child(2) { background: var(--pink); }
.cc-cmyk i:nth-child(3) { background: var(--yellow); }
.cc-cmyk i:nth-child(4) { background: var(--indigo); }
.cc-cmyk-mini { display: flex; height: 8px; width: 32px; border-radius: 4px; overflow: hidden; flex: none; }
.cc-cmyk-mini i { flex: 1; }
.cc-cmyk-mini i:nth-child(1) { background: var(--cyan); }
.cc-cmyk-mini i:nth-child(2) { background: var(--pink); }
.cc-cmyk-mini i:nth-child(3) { background: var(--yellow); }
.cc-cmyk-mini i:nth-child(4) { background: var(--indigo); }

#cc-nav { z-index: 40; }
.cc-mega { position: absolute; left: 0; right: 0; top: 100%; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .16s ease, transform .16s ease, visibility .16s; box-shadow: 0 24px 40px -18px rgba(39,31,113,.22); }
.cc-nav-item.is-open .cc-mega { opacity: 1; visibility: visible; transform: none; }
.cc-nav-btn { position: relative; }
.cc-nav-btn::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -8px; height: 3px; border-radius: 3px 3px 0 0; background: var(--c); transform: scaleX(0); transition: transform .2s ease; }
.cc-nav-btn:hover::after, .cc-nav-item.is-open .cc-nav-btn::after { transform: scaleX(1); }
.cc-nav-chip { width: 28px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--c); color: var(--cf, #fff); box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
@media (max-width: 1279px) { #cc-nav .cc-nav-chip { display: none; } #cc-nav .cc-nav-btn { padding-left: 10px; } }
/* price list inside the mega menu: name ........ price */
.cc-pl li { break-inside: avoid; }
.cc-pl button { display: flex; align-items: baseline; gap: 8px; width: 100%; text-align: left; padding: 5px 0; color: #1B1E26; font-size: 14px; }
.cc-pl button .lead { flex: 1; min-width: 12px; border-bottom: 1px dotted #C9CED8; transform: translateY(-4px); }
.cc-pl button .pr { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cc-pl button:hover .nm { color: var(--brand); }
.cc-pl button:hover .pr { color: var(--brand); }

/* search box + live suggestions */
.cc-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 80; background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 48px -12px rgba(39,31,113,.25); padding: 6px; max-height: min(440px, 62vh); overflow-y: auto; }
.cc-suggest[hidden] { display: none; }
.cc-sg { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border-radius: 10px; text-align: left; }
.cc-sg:hover, .cc-sg.is-active { background: var(--soft); }
.cc-sg mark { background: rgba(252,214,60,.55); color: inherit; border-radius: 3px; padding: 0 1px; }
.cc-sg-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }

/* account / favourites / cart badges */
.cc-badge { position: absolute; top: -6px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font: 700 10px/18px Inter, sans-serif; text-align: center; }

/* mobile drawer */
.cc-drawer { position: fixed; inset: 0; z-index: 1000; }
.cc-drawer[hidden] { display: none; }
.cc-backdrop { position: absolute; inset: 0; background: rgba(22,24,29,.5); }
.cc-drawer-panel { position: absolute; left: 0; top: 0; bottom: 0; width: 88%; max-width: 380px; box-shadow: 24px 0 48px -12px rgba(0,0,0,.25); animation: cc-slide-in .22s ease both; }
@keyframes cc-slide-in { from { transform: translateX(-100%); } to { transform: none; } }
.cc-drawer summary { list-style: none; }
.cc-drawer summary::-webkit-details-marker { display: none; }
.cc-drawer details[open] .cc-exp { transform: rotate(180deg); }

/* ---------- 3. Catalogue book (homepage hero) ---------- */
.cc-hero { --cc-sheet: #FFFFFF; --cc-spine: rgba(39,31,113,.07); --cc-edge: #DADDE3; }
.cc-sticker { position: absolute; z-index: 25; transition: transform .25s ease; }
.cc-sticker:hover { transform: rotate(0deg) !important; }
.cc-book-wrap { perspective: 2200px; }
.cc-book { position: relative; isolation: isolate; background: var(--cc-sheet) url(img/linen.png); border: 1px solid #D9DCE3; border-radius: 18px; box-shadow: 0 30px 60px -15px rgba(39,31,113,.24), 0 10px 20px -5px rgba(39,31,113,.08), inset 0 0 0 1px rgba(255,255,255,.7); outline: none; }
.cc-book::before, .cc-book::after { content: ''; position: absolute; left: 10px; right: 10px; height: 6px; border-radius: 0 0 14px 14px; background: #F1F2F5; border: 1px solid #D9DCE3; border-top: 0; z-index: -1; }
.cc-book::before { bottom: -6px; }
.cc-book::after { bottom: -11px; left: 18px; right: 18px; background: #E7E9EE; }
/* --cc-spread-h: the tallest spread in any widget state, measured by app.js, so the book never changes height */
.cc-spread { display: grid; grid-template-columns: 1fr 1fr; min-height: var(--cc-spread-h, 580px); position: relative; border-radius: 18px; perspective: 2600px; }
.cc-spread, .cc-page { transition: min-height .45s cubic-bezier(.2, .7, .2, 1); }
.cc-page { position: relative; padding: 2.25rem 2.5rem 1.75rem; display: flex; flex-direction: column; min-width: 0; }
.cc-page-left { background: linear-gradient(to right, rgba(255,255,255,0) 72%, var(--cc-spine) 100%), var(--cc-sheet) url(img/linen.png); border-right: 1px solid var(--cc-edge); border-radius: 18px 0 0 18px; }
.cc-page-right { background: linear-gradient(to left, rgba(255,255,255,0) 72%, var(--cc-spine) 100%), var(--cc-sheet) url(img/linen.png); border-radius: 0 18px 18px 0; }
.cc-spine { position: absolute; top: 0; bottom: 0; left: 50%; width: 28px; margin-left: -14px; pointer-events: none; z-index: 5; background: linear-gradient(to right, rgba(39,31,113,0) 0%, rgba(39,31,113,.06) 45%, rgba(39,31,113,.11) 50%, rgba(39,31,113,.06) 55%, rgba(39,31,113,0) 100%); }
.cc-page-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cc-page.cc-fade .cc-page-body { animation: cc-page-in .45s ease both; }
@keyframes cc-page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.cc-leaf { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 20; transform-style: preserve-3d; pointer-events: none; }
.cc-leaf.fwd { left: 50%; transform-origin: left center; }
.cc-leaf.back { left: 0; transform-origin: right center; }
.cc-leaf .cc-face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; overflow: hidden; }
.cc-leaf .cc-face.rear { transform: rotateY(180deg); }
.cc-leaf .cc-face::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(to right, rgba(0,0,0,.18), rgba(0,0,0,0) 60%); animation: cc-leaf-shade .9s ease-in-out both; }
.cc-leaf.fwd .cc-face.rear::after { background: linear-gradient(to left, rgba(0,0,0,.18), rgba(0,0,0,0) 60%); }
.cc-leaf.back .cc-face.front::after { background: linear-gradient(to left, rgba(0,0,0,.18), rgba(0,0,0,0) 60%); }
@keyframes cc-leaf-shade { 0% { opacity: 0 } 50% { opacity: 1 } 100% { opacity: 0 } }
.cc-leaf.fwd.turn { animation: cc-turn-fwd .9s cubic-bezier(.45,.05,.3,1) both; }
.cc-leaf.back.turn { animation: cc-turn-back .9s cubic-bezier(.45,.05,.3,1) both; }
@keyframes cc-turn-fwd { from { transform: rotateY(0deg); } to { transform: rotateY(-180deg); } }
@keyframes cc-turn-back { from { transform: rotateY(0deg); } to { transform: rotateY(180deg); } }
/* phone: one page at a time, the leaf pivots on the binding and follows the finger */
.cc-leaf.m { left: 0; width: 100%; transform-origin: left center; }
.cc-leaf.m .cc-face::after { animation: none; opacity: var(--cc-shade, 0); background: linear-gradient(to right, rgba(39,31,113,.20), rgba(39,31,113,0) 70%); }
.cc-leaf.m .cc-face.rear::after { background: linear-gradient(to left, rgba(39,31,113,.22), rgba(39,31,113,0) 70%); }
.cc-page-back { background: linear-gradient(to left, rgba(39,31,113,.10), rgba(39,31,113,0) 22px), var(--cc-sheet) url(img/linen.png); border-radius: 14px 4px 4px 14px; }

.cc-corner { position: absolute; width: 46px; height: 46px; bottom: 0; z-index: 6; cursor: pointer; border: 0; padding: 0; background: transparent; touch-action: none; }
.cc-corner span { position: absolute; inset: 0; transition: transform .25s ease; }
.cc-corner.next { right: 0; }
.cc-corner.next span { background: linear-gradient(to top left, transparent 50%, #DFE2E8 50%, #F3F4F7 80%); border-top-left-radius: 12px; box-shadow: -2px -2px 5px rgba(0,0,0,.08); transform-origin: bottom right; }
.cc-corner.prev { left: 0; }
.cc-corner.prev span { background: linear-gradient(to top right, transparent 50%, #DFE2E8 50%, #F3F4F7 80%); border-top-right-radius: 12px; box-shadow: 2px -2px 5px rgba(0,0,0,.08); transform-origin: bottom left; }
.cc-corner:hover span { transform: scale(1.35); }
.cc-corner.is-dragging span { transform: scale(1.7); }

.cc-index-tabs { position: absolute; right: -164px; top: 36px; display: flex; flex-direction: column; gap: 6px; z-index: -1; }
.cc-index-tab { width: 178px; white-space: nowrap; padding: 13px 12px 13px 22px; border-radius: 0 12px 12px 0; font: 700 13px/1 Inter, system-ui, sans-serif; letter-spacing: .02em; text-transform: uppercase; display: flex; gap: 8px; justify-content: space-between; align-items: center; cursor: pointer; border: 1px solid rgba(0,0,0,.12); border-left: 0; box-shadow: 0 2px 6px rgba(0,0,0,.08); transition: transform .2s ease; transform: translateX(-8px); }
/* inactive tabs sit further in; no opacity, so every label keeps its full AA contrast */
.cc-index-tab:hover { transform: translateX(-2px); }
.cc-index-tab[aria-selected="true"] { transform: translateX(4px); }
.cc-index-tab .cc-it-lb { flex: 1; text-align: left; }
.cc-index-tab .cc-it-sh { display: none; }

/* each dot is a 22×40 hit area; the visible dot is drawn by ::before */
.cc-dot { position: relative; width: 22px; height: 40px; border-radius: 10px; }
.cc-dot::before { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 999px; background: #CDD2DB; transform: translate(-50%, -50%); transition: all .2s ease; }
.cc-dot:hover::before { background: #AEB4C0; }
.cc-dot.is-active::before { width: 10px; height: 10px; background: var(--brand); }

/* widgets on the right-hand pages */
.cc-widget { container-type: inline-size; }
.cc-wrow { display: flex; flex-direction: column; align-items: center; gap: 14px; }
@container (min-width: 400px) { .cc-wrow { flex-direction: row; align-items: center; } }
.cc-imprint text { font-family: Inter, sans-serif; font-weight: 700; }
.cc-imprint { transform: rotate(-3deg); transform-origin: 50% 50%; }
.cc-imprint.is-pressed { animation: cc-press .35s ease; }
@keyframes cc-press { 0% { transform: scale(1.07) rotate(-3deg); opacity: .35 } 100% { transform: scale(1) rotate(-3deg); opacity: 1 } }
.cc-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 11px; font-weight: 600; line-height: 1.25; transition: background-color .15s, border-color .15s, color .15s; }
.cc-chip:hover { background: var(--soft); }
.cc-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cc-presets .cc-chip { padding: 4px 7px; }
.cc-chip:disabled { opacity: .4; cursor: not-allowed; }
.cc-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.cc-seg button { padding: 5px 10px; font-size: 11px; font-weight: 600; color: var(--ink); }
.cc-seg button + button { border-left: 1px solid var(--line); }
.cc-seg button:hover { background: var(--soft); }
.cc-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cc-swatch { position: relative; border: 1px solid rgba(0,0,0,.1); }
.cc-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand); }
.cc-step { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; overflow: hidden; }
.cc-step button { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.cc-step button:hover { background: var(--soft); }
.cc-step input { width: 52px; height: 28px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--ink); outline: none; background: #fff; font-variant-numeric: tabular-nums; }
.cc-step input:focus { background: #FFF8FB; }
/* rings inside the clipped stepper / segmented control are drawn inset so they are not cut off */
.cc-step :focus-visible, .cc-seg button:focus-visible { outline-offset: -2px; border-radius: 8px; }
.cc-price { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; border-radius: 10px; background: var(--paper); border: 1px solid var(--paper-edge); padding: 9px 12px; }
.cc-check { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--ink); cursor: pointer; }
.cc-check input { width: 15px; height: 15px; accent-color: var(--brand); }

/* phones: every control in the book widgets is at least 40px tall */
@media (max-width: 767px) {
  .cc-chip, .cc-seg button { min-height: 40px; padding: 8px 12px; font-size: 13px; }
  .cc-step button { width: 40px; height: 40px; }
  .cc-step input { width: 60px; height: 40px; }
  .cc-winp { min-height: 40px; }
  .cc-swatches { gap: 10px; }
  .cc-swatch { width: 28px !important; height: 28px !important; }
  .cc-swatch::before { content: ''; position: absolute; inset: -6px; }
  .cc-check { min-height: 40px; font-size: 13px; }
  .cc-check input { width: 18px; height: 18px; }
  .cc-wqv { min-height: 40px; }
  /* the page-footer links ("Întoarce pagina") get a 40px hit area without changing the layout */
  .cc-page-body [data-cc-step] { position: relative; }
  .cc-page-body [data-cc-step]::after { content: ''; position: absolute; left: -6px; right: -6px; top: 50%; height: 40px; transform: translateY(-50%); }
}

@media (max-width: 767px) {
  .cc-book { border-radius: 4px 14px 14px 4px; }
  .cc-spread { display: block; min-height: 0; border-radius: 4px 14px 14px 4px; perspective: 1500px; touch-action: pan-y; }
  .cc-page { padding: 1.4rem 1.05rem 1.1rem 1.55rem; min-height: var(--cc-page-h, 560px); }
  .cc-page-left { border-right: 0; border-radius: 4px 14px 14px 4px; background: linear-gradient(to right, rgba(39,31,113,.12), rgba(39,31,113,0) 26px), var(--cc-sheet) url(img/linen.png); }
  .cc-page-right { display: none; }
  .cc-spine { left: 0; width: 7px; margin-left: 0; border-radius: 4px 0 0 4px; background: linear-gradient(to right, #271F71, #4A3FA0); z-index: 22; }
  .cc-corner.prev { left: 7px; }
  .cc-book::before, .cc-book::after { left: auto; height: auto; border: 1px solid #D9DCE3; border-left: 0; border-radius: 0 12px 12px 0; z-index: -2; }
  .cc-book::before { top: 5px; bottom: 5px; right: -5px; width: 6px; }
  .cc-book::after { top: 10px; bottom: 10px; right: -9px; width: 6px; }
  .cc-index-tabs { right: -35px; top: 22px; gap: 3px; }
  .cc-index-tab { width: 37px; padding: 11px 0 11px 13px; writing-mode: vertical-rl; justify-content: center; font-size: 10px; letter-spacing: .09em; border-radius: 0 9px 9px 0; transform: translateX(-6px); white-space: nowrap; }
  .cc-index-tab:hover { transform: translateX(-6px); }
  .cc-index-tab[aria-selected="true"] { transform: translateX(0); }
  .cc-index-tab .cc-it-ic, .cc-index-tab .cc-it-lb { display: none; }
  .cc-index-tab .cc-it-sh { display: inline; }
}
/* tablets: the spread needs the room, so the chapter tabs show their icon only (the label stays for screen readers) */
@media (min-width: 768px) and (max-width: 1023px) {
  .cc-index-tabs { right: -50px; }
  .cc-index-tab { width: 64px; padding: 13px 12px 13px 24px; justify-content: flex-start; }
  .cc-index-tab .cc-it-lb { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cc-page { padding: 1.9rem 1.7rem 1.5rem; }
}

/* horizontal swipe rows on phones (packages, gifts) */
.cc-swipe { scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-padding-left: 16px; }
.cc-swipe::-webkit-scrollbar { display: none; }

/* ---------- 4. Product slider (tabs + cards) ---------- */
.cc-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-tab { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #FFFFFF; color: var(--ink); font: 600 13px/1 Inter, system-ui, sans-serif; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.cc-tab:hover { background: var(--soft); border-color: var(--ink); }
.cc-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.cc-tab .cc-tab-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--c); box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
@media (max-width: 1023px) {
  .cc-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
  .cc-tabs::-webkit-scrollbar { display: none; }
  .cc-tab { flex: none; }
}
.cc-track { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding: 4px 16px 18px; margin: 0 -16px; scroll-padding-left: 16px; }
.cc-track::-webkit-scrollbar { display: none; }
@media (min-width: 560px) { .cc-track { grid-auto-columns: calc((100% - 2 * 12px) / 2.6); } }
@media (min-width: 768px) { .cc-track { grid-auto-columns: calc((100% - 3 * 14px) / 3.4); gap: 14px; } }
@media (min-width: 1024px) { .cc-track { grid-auto-columns: calc((100% - 4 * 14px) / 5); margin: 0; padding: 4px 0 18px; scroll-padding-left: 0; } }
.cc-track > * { scroll-snap-align: start; }
.cc-pcard { display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.cc-pcard:hover { border-color: var(--brand); box-shadow: 0 16px 32px -14px rgba(39,31,113,.3); }
.cc-pcard .btn-detalii { transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.cc-pcard:hover .btn-detalii { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }
.cc-tile { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; isolation: isolate; }
.cc-tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(39,31,113,.35) 1px, transparent 1.3px); background-size: 12px 12px; opacity: .22; -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 75%); mask-image: linear-gradient(to left, #000 0%, transparent 75%); }
.cc-tile-ic { display: flex; align-items: center; justify-content: center; border-radius: 18px; background: #FFFFFF; box-shadow: 0 14px 28px -12px rgba(39,31,113,.35), inset 0 -2px 0 rgba(0,0,0,.05); transition: transform .35s ease; }
.cc-pcard:hover .cc-tile-ic { transform: rotate(-4deg) scale(1.05); }
.cc-arrow { width: 40px; height: 40px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 6px 16px -6px rgba(39,31,113,.28); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); transition: border-color .15s, opacity .15s; }
.cc-arrow:hover { border-color: var(--ink); }
.cc-arrow:disabled { opacity: .35; cursor: default; }
.cc-sdot { width: 8px; height: 8px; border-radius: 999px; background: #C9CED8; transition: width .2s ease, background-color .2s ease; }
.cc-sdot.is-on { width: 20px; background: var(--brand); }

/* ---------- 5. Quick view (product details + live price) ---------- */
.cc-qv { width: min(820px, calc(100% - 24px)); max-width: none; max-height: min(92vh, 860px); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: #FFFFFF; color: #1B1E26; box-shadow: 0 40px 80px -20px rgba(22,24,29,.45); overflow: hidden; }
.cc-qv::backdrop { background: rgba(22,24,29,.55); }
.cc-qv[open] { animation: cc-qv-in .22s ease both; }
@keyframes cc-qv-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.cc-qv-scroll { max-height: min(92vh, 860px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 639px) {
  .cc-qv { width: 100%; max-height: 94vh; margin: auto 0 0; border-radius: 20px 20px 0 0; border-bottom: 0; }
  .cc-qv-scroll { max-height: 94vh; }
  .cc-qv[open] { animation-name: cc-qv-up; }
  @keyframes cc-qv-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
}
.cc-qv .cc-chip { font-size: 12.5px; padding: 6px 11px; border-radius: 9px; }
.cc-qv .cc-step button { width: 36px; height: 36px; }
.cc-qv .cc-step input { width: 70px; height: 36px; font-size: 14px; }
@media (max-width: 767px) {
  .cc-qv .cc-chip { min-height: 40px; }
  .cc-qv .cc-step button { width: 40px; height: 40px; }
  .cc-qv .cc-step input { height: 40px; }
  .cc-qv [data-qv-close] { width: 40px; height: 40px; }
}
.cc-field { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); outline: none; font-variant-numeric: tabular-nums; }
.cc-field:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(204,51,102,.15); }

/* ---------- 6. Toast ---------- */
.cc-toast { position: fixed; left: 50%; bottom: 20px; z-index: 3000; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease; max-width: calc(100% - 32px); }
.cc-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 7. Newsletter + footer ---------- */
.cc-newsletter { background: #271F71; background-image: radial-gradient(circle at 88% 8%, rgba(233,71,165,.45), rgba(233,71,165,0) 52%), radial-gradient(circle at 8% 120%, rgba(71,214,232,.22), rgba(71,214,232,0) 45%); }
.cc-bdit-card { background: radial-gradient(120% 140% at 100% 0%, rgba(184,146,58,.24), rgba(184,146,58,0) 55%), #0E0E10; box-shadow: 0 10px 30px -14px rgba(14,14,16,.55); }
.cc-bdit-card:hover { box-shadow: 0 14px 36px -12px rgba(184,146,58,.45); }

/* ---------- 8. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (prefers-reduced-motion: reduce) { .cc-spread, .cc-page { transition: none; } }

/* ---------- YourPrint wordmark ---------- */
.yp-plane { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- end card (Biroul de IT), made for phone screen recordings ---------- */
.bdit-end { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 48px 24px; background: radial-gradient(120% 70% at 50% 38%, #1B1A16 0%, #0E0E10 62%); color: #E8E2D4; text-align: center; overflow: hidden; }
.bdit-end-in { display: flex; flex-direction: column; align-items: center; max-width: 520px; }
.bdit-logo { display: block; width: min(64vw, 300px); }
.bdit-logo img { display: block; width: 100%; height: auto; }
.bdit-kicker { margin: 28px 0 6px; font: 600 13px/1 Sora, "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: .28em; text-transform: uppercase; color: #C9A55C; }
.bdit-name { margin: 0; font: 800 clamp(38px, 11vw, 64px)/1.02 Sora, "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: -.02em; color: #F4EEDF; }
.bdit-rule { display: block; width: 64px; height: 2px; margin: 26px 0; background: linear-gradient(90deg, transparent, #C9A55C, transparent); }
.bdit-claim { margin: 0; font: 600 clamp(22px, 6.4vw, 34px)/1.25 Sora, "Plus Jakarta Sans", system-ui, sans-serif; color: #E8E2D4; }
.bdit-claim b { color: #EBC164; font-weight: 800; }
.bdit-link { margin-top: 30px; font: 600 14px/1 Inter, system-ui, sans-serif; letter-spacing: .06em; color: #C9A55C; text-decoration: none; border-bottom: 1px solid rgba(201, 165, 92, .4); padding-bottom: 4px; }
.bdit-end .bdit-logo, .bdit-end .bdit-kicker, .bdit-end .bdit-name, .bdit-end .bdit-rule, .bdit-end .bdit-claim, .bdit-end .bdit-link { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.bdit-end .bdit-logo { transform: translateY(18px) scale(.92); }
.bdit-end.is-in .bdit-logo, .bdit-end.is-in .bdit-kicker, .bdit-end.is-in .bdit-name, .bdit-end.is-in .bdit-rule, .bdit-end.is-in .bdit-claim, .bdit-end.is-in .bdit-link { opacity: 1; transform: none; }
.bdit-end.is-in .bdit-kicker { transition-delay: .25s; } .bdit-end.is-in .bdit-name { transition-delay: .4s; }
.bdit-end.is-in .bdit-rule { transition-delay: .6s; } .bdit-end.is-in .bdit-claim { transition-delay: .75s; } .bdit-end.is-in .bdit-link { transition-delay: 1s; }
@media (prefers-reduced-motion: reduce) { .bdit-end * { opacity: 1 !important; transform: none !important; transition: none !important; } }
