/* Lazy image loading: fade in when ready, shimmer skeleton while loading.
   Applied globally by the loader in base.html (adds .lz to not-yet-loaded imgs). */
img.lz { opacity: 0; transition: opacity .35s ease; }
img.lz.lz-done { opacity: 1; }
img.lz:not(.lz-done) {
  background-image: linear-gradient(100deg, rgba(0,0,0,.04) 30%, rgba(0,0,0,.08) 50%, rgba(0,0,0,.04) 70%);
  background-size: 200% 100%;
  background-repeat: no-repeat;
  animation: lz-shimmer 1.25s ease-in-out infinite;
}
@keyframes lz-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { img.lz { transition: none; } img.lz:not(.lz-done) { animation: none; } }

:root {
  --brand: #ff7745;
  --brand-dark: #e86432;
  --ink: #1f1a24;
  --paper: #fffdf9;
  --mist: #eef6f4;
  --teal: #0f766e;
  --steel: #425466;
  --sand: #fff4e4;
  --ice: #e4f5ff;
  --rose: #ffe4f1;
  --blush: #ffe4e4;
  --lav: #e6e4ff;
}

body {
  background: #fffdfb;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;   /* guard against any element wider than the mobile viewport */
}

/* Public navbar: logo centered in the bar, bigger; menus flank it */
.navbar-brand-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  z-index: 1;
}
.brand-logo-lg {
  height: 42px;
  width: auto;
  display: block;
}
@media (min-width: 992px) {
  .brand-logo-lg { height: 58px; }
  .navbar .container-fluid.position-relative { min-height: 74px; }
}

.btn-brand {
  background: var(--brand);
  border: none;
  color: #fff;
}
.btn-brand:hover { background: var(--brand-dark); }

.hero {
  background: linear-gradient(135deg, var(--sand) 0%, var(--rose) 60%, #fff 100%);
  border-radius: 20px;
  padding: 32px;
}

.card-collection { border: none; border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,0.08); }

.section-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.toolbar .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.form-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 12px;
}
.form-two-col .form-control,
.form-two-col select,
.form-two-col textarea {
  width: 100%;
}
.form-compact textarea {
  min-height: 40px;
  resize: vertical;
}

.eyebrow {
  color: var(--teal);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-hero,
.collection-detail-hero {
  background: linear-gradient(135deg, #ffffff 0%, var(--mist) 48%, #fff7ef 100%);
  border: 1px solid rgba(31,26,36,.08);
  border-radius: 8px;
  padding: clamp(1.5rem, 4vw, 3rem);
}

/* Homepage hero (top section) */
.hero-title {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08;
}
.hero-lead {
  font-size: 1.08rem;
  line-height: 1.6;
  max-width: 46ch;
}

/* Right box: big background image with asymmetric overlaid thumbnails */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
}
.hero-visual-bg {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background-color: var(--mist);
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 70px rgba(15,23,42,.18);
}
.hero-visual-bg--empty {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--sand) 0%, var(--rose) 55%, var(--ice) 100%);
  color: rgba(31,26,36,.32);
  font-size: 3.4rem;
}
.hero-thumb {
  position: absolute;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  border: 4px solid #fff;
  box-shadow: 0 16px 38px rgba(15,23,42,.24);
}
.hero-thumb-1 { width: 40%; left: -4%; bottom: 9%; }
.hero-thumb-2 { width: 30%; right: 5%; top: 7%; }
.hero-thumb-3 { width: 24%; right: 14%; bottom: -5%; }

@media (max-width: 575.98px) {
  /* Keep thumbnails inside the box on small screens (no horizontal overflow). */
  .hero-thumb-1 { left: 3%; bottom: 6%; }
  .hero-thumb-3 { right: 8%; bottom: 4%; }
}

/* Mobile/tablet: show the image collage as a full-width banner at the TOP,
   above the hero copy. */
@media (max-width: 991.98px) {
  .home-hero { padding: 0; overflow: hidden; }
  .home-hero .row { --bs-gutter-x: 0; --bs-gutter-y: 0; }
  .hero-visual-col { order: -1; padding: 0; }
  .hero-visual { aspect-ratio: 16 / 10; margin: 0; }
  .hero-visual-bg { border-radius: 0; box-shadow: none; }
  .hero-copy { padding: 1.25rem clamp(1rem, 5vw, 1.5rem) 1.5rem; }
}

.hero-panel,
.collection-sidebox,
.contact-panel {
  background: #fff;
  border: 1px solid rgba(31,26,36,.1);
  border-radius: 8px;
  box-shadow: 0 16px 45px rgba(15, 23, 42, .08);
  padding: 1.25rem;
}

.hero-bag-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.catalog-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

.catalog-steps div,
.feature-tile {
  background: #f8fafc;
  border: 1px solid rgba(31,26,36,.08);
  border-radius: 8px;
  min-height: 86px;
  padding: .85rem;
}

.catalog-steps strong,
.feature-tile strong {
  display: block;
  color: var(--ink);
}

.catalog-steps span,
.feature-tile span {
  color: var(--steel);
  display: block;
  font-size: .85rem;
  line-height: 1.25;
}

.collection-card,
.vp-card,
.product-card {
  background: #fff;
  border: 1px solid rgba(31,26,36,.1);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15,23,42,.07);
  overflow: hidden;
  position: relative;
}

.collection-media,
.vp-media,
.product-media,
.vp-hero-image {
  aspect-ratio: 4 / 3;
  align-items: center;
  background: #f4faf8;
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.collection-media,
.vp-media {
  height: clamp(150px, 16vw, 210px);
}

.product-media {
  height: clamp(140px, 14vw, 190px);
}

.vp-hero-image {
  /* Width-driven (never exceeds the column) with a height cap; aspect-ratio 4/3
     from the rule above. Fixed height was forcing width > viewport on mobile. */
  width: 100%;
  max-width: 100%;
  max-height: min(52vh, 440px);
}

.collection-media img,
.vp-media img,
.product-media img,
.vp-hero-image img {
  display: block;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

/* Transparent website mockups: cream ground behind the PNG */
.vp-hero-image--transparent { background: #f5f2ec; }
.vp-hero-image--transparent img { padding: 6%; }
.thumb-strip--transparent img { background: #f5f2ec; }

.collection-placeholder {
  width: 100%;
  height: 100%;
  min-height: 140px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef6f4, #fff7ef);
  color: var(--teal);
  font-size: 3rem;
}

.collection-code {
  position: absolute;
  left: .75rem;
  bottom: .75rem;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(31,26,36,.12);
  border-radius: 999px;
  color: var(--ink);
  font-size: .75rem;
  font-weight: 700;
  padding: .35rem .7rem;
}

.collection-body,
.vp-body,
.product-body {
  padding: 1rem;
}

.collection-meta,
.detail-meta,
.product-tags,
.color-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.collection-meta span,
.detail-meta span {
  align-items: center;
  background: #f8fafc;
  border: 1px solid rgba(31,26,36,.08);
  border-radius: 999px;
  color: var(--steel);
  display: inline-flex;
  font-size: .85rem;
  gap: .35rem;
  padding: .35rem .65rem;
}

.color-list span,
.product-tags span {
  background: #eef6f4;
  border: 1px solid rgba(15,118,110,.16);
  border-radius: 999px;
  color: var(--teal);
  font-size: .82rem;
  font-weight: 700;
  padding: .3rem .65rem;
}

.catalog-search {
  display: flex;
  gap: .5rem;
  min-width: min(100%, 440px);
}

.catalog-search .form-control {
  min-width: 0;
}

.empty-state {
  background: #fff;
  border: 1px dashed rgba(31,26,36,.2);
  border-radius: 8px;
  color: var(--steel);
  padding: 2rem;
  text-align: center;
}

.contact-panel {
  display: grid;
  gap: .75rem;
}

.contact-panel div {
  align-items: center;
  display: flex;
  gap: .65rem;
}

.thumb-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: .5rem;
}

.thumb-strip img {
  aspect-ratio: 1;
  background: #f8fafc;
  border: 1px solid rgba(31,26,36,.12);
  border-radius: 8px;
  height: 78px;
  object-fit: contain;
  width: 100%;
}

/* VP detail: responsive image gallery (per size variant) */
.vp-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: .55rem;
}
.vp-gallery-thumb {
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(31,26,36,.12);
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.vp-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.vp-gallery--transparent .vp-gallery-thumb { background: #f5f2ec; }
.vp-gallery-thumb:hover { transform: translateY(-2px); }
.vp-gallery-thumb.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand);
}

/* VP detail: size variant selector */
.vp-size-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.vp-size-btn {
  padding: .45rem .9rem;
  border: 1px solid rgba(31,26,36,.2);
  border-radius: 999px;
  background: #fff;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.vp-size-btn:hover { border-color: var(--brand); }
.vp-size-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.detail-list li + li {
  margin-top: .5rem;
}

@media (max-width: 575.98px) {
  .catalog-steps { grid-template-columns: 1fr; }
  .catalog-search { width: 100%; }
}

/* ---- Collections as artistic, alternating full-width sections ---- */
.collections-intro {
  max-width: 720px;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.collection-feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-top: 1px solid rgba(31,26,36,.06);
}
.collection-feature:first-of-type { border-top: none; }

/* Alternate the image to the right on every other section. */
.collection-feature.feature-right .collection-feature-media { order: 2; }
.collection-feature.feature-right .collection-feature-body { order: 1; }

.collection-feature-media {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  min-width: 0;
}

/* Hero frame: fixed 5:4 so the normalized 5:4 upload fills it exactly, no
   distortion, centered, on every screen size. */
.collection-hero-frame {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: #f4faf8;
  box-shadow: 0 24px 60px rgba(15,23,42,.12);
}
.collection-hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.collection-hero-frame .collection-feature-placeholder { position: absolute; inset: 0; }

/* Collage of the remaining images beneath the hero */
.collection-collage {
  display: grid;
  grid-auto-flow: column;   /* keep all sub-images on a single row, no wrapping */
  grid-auto-columns: 1fr;   /* equal widths that adapt to the count (max 4) */
  gap: .5rem;
}
.collection-collage .collage-cell {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #f4faf8;
}
.collection-collage .collage-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .35s ease;
}
.collection-collage .collage-cell:hover img { transform: scale(1.06); }

/* Wider variants for the collection detail page gallery */
.collection-hero-frame--wide { aspect-ratio: 3 / 2; border-radius: 20px; }
.collection-collage--wide { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 575.98px) {
  .collection-collage--wide { grid-template-columns: repeat(3, 1fr); }
}

/* Long (HTML) collection description on the detail page */
.collection-longdesc {
  max-width: 780px;
  color: var(--steel);
  line-height: 1.75;
  font-size: 1.02rem;
}
.collection-longdesc p { margin-bottom: 1rem; }
.collection-longdesc h2,
.collection-longdesc h3 { color: var(--ink); margin: 1.4rem 0 .6rem; }
.collection-longdesc img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: .5rem 0 1rem;
}
/* Operators can add float-start / float-end to embed images beside the text */
.collection-longdesc img.float-start { max-width: 46%; margin: .3rem 1.4rem .8rem 0; }
.collection-longdesc img.float-end { max-width: 46%; margin: .3rem 0 .8rem 1.4rem; }
@media (max-width: 575.98px) {
  .collection-longdesc img.float-start,
  .collection-longdesc img.float-end { max-width: 100%; float: none !important; margin: .5rem 0 1rem; }
}

/* ---- Collection page: centered header ---- */
.collection-head { max-width: 760px; margin: 1.5rem auto 1.75rem; }
.collection-head-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; letter-spacing: -.02em; margin-bottom: .6rem; text-wrap: balance;
}
.collection-head-lead { color: var(--steel); font-size: 1.08rem; line-height: 1.6; margin: 0 auto; max-width: 60ch; }

/* Narrow hero + horizontal thumbnail dock */
.showcase-hero {
  display: block;
  aspect-ratio: 16 / 5;
  border-radius: 18px; overflow: hidden;
  background: var(--mist);
  box-shadow: 0 22px 55px rgba(15,23,42,.14);
  cursor: zoom-in;
}
.showcase-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.showcase-dock {
  display: flex; gap: .6rem; margin-top: .7rem;
  overflow-x: auto; padding-bottom: .4rem;
  scroll-snap-type: x proximity; scrollbar-width: thin;
}
.showcase-dock::-webkit-scrollbar { height: 8px; }
.showcase-dock::-webkit-scrollbar-thumb { background: rgba(31,26,36,.18); border-radius: 999px; }
.dock-thumb {
  flex: 0 0 auto; width: clamp(90px, 12vw, 130px); aspect-ratio: 1 / 1;
  border-radius: 12px; overflow: hidden; scroll-snap-align: start;
  border: 1px solid rgba(31,26,36,.1);
  transition: transform .25s ease, box-shadow .25s ease;
}
.dock-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dock-thumb:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 14px 30px rgba(15,23,42,.2); }
@media (max-width: 575.98px) { .showcase-hero { aspect-ratio: 16 / 9; } }

/* ---- Products as a list (thumbnail left, details in the row) ---- */
.product-list { display: flex; flex-direction: column; gap: .75rem; }
.product-row {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid rgba(31,26,36,.1); border-radius: 12px;
  padding: .7rem .9rem; text-decoration: none; color: inherit;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.product-row:hover {
  box-shadow: 0 12px 30px rgba(15,23,42,.1);
  border-color: rgba(255,119,69,.45); transform: translateY(-1px);
}
.product-row-thumb {
  flex: 0 0 auto; width: 84px; height: 84px; border-radius: 10px;
  overflow: hidden; background: #f4faf8;
}
.product-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-row-thumb--transparent { background: #f5f2ec; }
.product-row-thumb--transparent img { object-fit: contain; padding: 8%; }
.product-row-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--teal); font-size: 1.4rem; }
.product-row-main { flex: 1 1 auto; min-width: 0; }
.product-row-head { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.product-row-title { font-size: 1rem; font-weight: 700; margin: 0; }
.product-row-code { font-size: .75rem; color: var(--steel); }
.product-row-desc {
  font-size: .85rem; color: var(--steel); margin: .2rem 0 .4rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-row-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.product-row-tags span {
  background: #eef6f4; border: 1px solid rgba(15,118,110,.16); color: var(--teal);
  border-radius: 999px; font-size: .72rem; font-weight: 600; padding: .15rem .5rem;
}
.product-row-side {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end;
  gap: .4rem; text-align: right;
}
.product-row-price { font-weight: 700; }
.product-row-cta { font-size: .82rem; font-weight: 700; color: var(--brand); white-space: nowrap; }
@media (max-width: 575.98px) {
  .product-row { gap: .7rem; padding: .6rem; }
  .product-row-thumb { width: 64px; height: 64px; }
  .product-row-desc { display: none; }
  .product-row-cta span { display: none; }
}

/* ---- Print designs section ---- */
.print-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 1rem; margin-bottom: 1.5rem;
}
.print-stats { display: flex; gap: 1.2rem; margin-top: .4rem; color: var(--steel); font-size: .9rem; }
.print-stats strong { color: var(--ink); font-size: 1.05rem; }
.print-filter {
  display: flex; gap: .5rem; flex-wrap: wrap; align-items: center;
  background: #fff; border: 1px solid rgba(31,26,36,.12); border-radius: 12px;
  padding: .4rem .5rem; box-shadow: 0 6px 18px rgba(15,23,42,.06);
}
.print-filter .pf-group { display: flex; align-items: center; gap: .45rem; padding: .1rem .5rem; }
.print-filter .pf-group i { color: var(--steel); }
.print-filter input[type="search"] { border: none; outline: none; background: transparent; min-width: 150px; font-size: .9rem; color: var(--ink); }
.print-filter .pf-select { border: none; background: var(--mist); border-radius: 8px; padding: .35rem .6rem; font-size: .85rem; color: var(--ink); }
.print-filter .btn { border-radius: 8px; }
@media (max-width: 575.98px) {
  .print-filter { width: 100%; }
  .print-filter .pf-group { flex: 1; }
  .print-filter input[type="search"] { min-width: 0; width: 100%; }
}

.print-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
@media (max-width: 575.98px) { .print-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; } }

/* Image-first, elite card: details on hover, ambient image zoom */
.print-card {
  position: relative; display: block; aspect-ratio: 1 / 1;
  border-radius: 16px; overflow: hidden;
  background: var(--mist); color: inherit; text-decoration: none;
  box-shadow: 0 10px 26px rgba(15,23,42,.08);
  border: 1px solid rgba(31,26,36,.08);
}
.print-card-media { position: absolute; inset: 0; }
.print-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.print-card:hover .print-card-media img,
.print-card:focus-visible .print-card-media img { transform: scale(1.16); }
.print-card-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--steel); font-size: 2.2rem; }
/* Transparent website mockups: cream ground behind the PNG, whole bag visible */
.print-card--transparent { background: #f5f2ec; }
.print-card--transparent .print-card-media img { object-fit: contain; padding: 8%; }
.print-card-price {
  position: absolute; left: 8px; bottom: 8px; z-index: 2; pointer-events: none;
  background: rgba(31,26,36,.82); color: #fff; font-weight: 700; font-size: 12.5px;
  padding: 3px 9px; border-radius: 999px; letter-spacing: .2px;
}
#vp-hover-preview {
  position: fixed; z-index: 6000; pointer-events: none; display: none; padding: 4px;
  background: #fff; border: 1px solid #d7d9e0; border-radius: 12px;
  box-shadow: 0 12px 34px rgba(10,14,24,.35);
}
#vp-hover-preview img { display: block; width: 360px; height: 360px; object-fit: contain; background: #f5f2ec; border-radius: 8px; }
@media (max-width: 768px) { #vp-hover-preview { display: none !important; } }

/* Card wrapper + hover action buttons (favorite, expand) */
.print-card-wrap { position: relative; }
.print-card-actions {
  position: absolute; top: .5rem; right: .5rem; z-index: 3;
  display: flex; gap: .35rem; opacity: 0; transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease;
}
.print-card-wrap:hover .print-card-actions,
.print-card-wrap:focus-within .print-card-actions { opacity: 1; transform: none; }
.print-act {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--ink);
  display: grid; place-items: center; font-size: .95rem;
  box-shadow: 0 4px 12px rgba(15,23,42,.2); transition: background .15s, color .15s, transform .15s;
}
.print-act:hover { transform: scale(1.08); }
.print-act.js-vp-fav .bi { color: rgba(31,26,36,.32); transition: color .15s; }
.print-act.js-vp-fav.is-fav { background: #fff; }
.print-act.js-vp-fav.is-fav .bi { color: var(--brand); }
@media (max-width: 575.98px) { .print-card-actions { opacity: 1; transform: none; } }

/* Product page: price + rich text + gallery thumbs */
.product-price { display: flex; align-items: baseline; gap: .6rem; }
.product-price .price-now { font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.product-price .price-was { font-size: 1rem; color: var(--steel); text-decoration: line-through; }
.rich-text p { color: var(--steel); line-height: 1.7; margin-bottom: 1rem; max-width: 66ch; }
.rich-text.tag-intro p { max-width: none!important; }
.about-short { font-size: 1.15rem; }

/* Rich HTML description (AI-authored) with corner product photos + callouts */
.rich-html, .rich-text { overflow: hidden; }  /* contain floated corner images */
.rich-html { color: var(--steel); line-height: 1.75; }
.rich-html p { margin-bottom: 1rem; }
.rich-html h2, .rich-html h3, .rich-html h4 { color: var(--ink); font-weight: 700; margin: 1.4rem 0 .6rem; }
.rich-html ul, .rich-html ol { padding-left: 1.2rem; margin-bottom: 1rem; }
.rich-html li { margin-bottom: .35rem; }
.rich-html a { color: var(--brand); }
.rich-html img { max-width: 100%; height: auto; border-radius: 12px; margin: .4rem 0; }
/* Callouts: blockquotes / .callout become tinted accent boxes */
.rich-html blockquote, .rich-html .callout {
  margin: 1.2rem 0; padding: .9rem 1.1rem; border-left: 4px solid var(--brand);
  background: #fff6f1; border-radius: 0 12px 12px 0; color: var(--ink); font-style: normal;
}
/* Product photos floated into the corners of the description block */
.rich-corner {
  width: 190px; max-width: 42%; border-radius: 14px; object-fit: cover;
  box-shadow: 0 10px 26px rgba(15,23,42,.12); background: #f5f2ec;
}
.rich-corner-1 { float: right; margin: 0 0 1rem 1.4rem; }
.rich-corner-2 { float: left; margin: 1rem 1.4rem 1rem 0; }
@media (max-width: 575.98px) {
  .rich-corner { width: 130px; }
  .rich-corner-1, .rich-corner-2 { margin-left: .8rem; margin-right: .8rem; }
}

/* Sales table: keep the action buttons (Düzenle/İptal/Sil) pinned to the right
   edge so they're reachable on mobile without horizontal-scrolling the table. */
.col-actions {
  position: sticky;
  right: 0;
  background: #fff;
  box-shadow: -8px 0 8px -8px rgba(15,23,42,.2);
  z-index: 2;
}
thead .col-actions { z-index: 3; }
@media (max-width: 575.98px) {
  .col-actions .btn { padding: .1rem .4rem; font-size: .78rem; }
}

/* Wholesale price breakdown */
.wholesale-box { border: 1px solid rgba(31,26,36,.12); border-radius: 16px; padding: 1.1rem 1.25rem; background: #fff; }
.wholesale-head { margin-bottom: .9rem; }
.wholesale-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; }
.wholesale-tier {
  border: 1px solid rgba(31,26,36,.1); border-radius: 12px; padding: .7rem .8rem; text-align: center;
  background: #f9fdfc;
}
.wholesale-tier .wt-qty { font-size: .82rem; color: var(--steel); font-weight: 600; }
.wholesale-tier .wt-price { font-size: 1.15rem; font-weight: 800; color: var(--teal); margin-top: .2rem; }
.wholesale-tier .wt-price span { font-size: .72rem; font-weight: 600; color: var(--steel); }
.wholesale-foot { margin-top: .9rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }

/* Add-to-cart control (product page + wholesale cards) */
.wholesale-add { display: inline-flex; align-items: center; gap: .5rem; }
.wholesale-add .wa-qty { width: 90px; }
.qty-add { display: inline-flex; align-items: center; gap: .5rem; }
.qty-add .wa-qty { width: 80px; text-align: center; }

/* Product favorite heart on the gallery box */
.pd-fav { position: absolute; top: .6rem; right: .6rem; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.92); color: var(--steel); box-shadow: 0 2px 8px rgba(0,0,0,.12);
  display: grid; place-items: center; font-size: 1.05rem; cursor: pointer; transition: color .12s, transform .12s; }
.pd-fav:hover { transform: scale(1.08); }
.pd-fav.is-fav { color: var(--brand); }
.pd-fav .bi { pointer-events: none; }
.pd-fav--sm { width: 32px; height: 32px; top: .4rem; right: .4rem; font-size: .9rem; }
.prod-card-media { position: relative; }

/* Product-page design (VP) selection: hero overlay, warning, chip */
.vp-hero-image { position: relative; }
.pd-design-overlay { position: absolute; object-fit: contain; pointer-events: none; z-index: 2; }
.pd-design-warn { display: flex; align-items: center; gap: .4rem; background: #eef6f4; border: 1px solid rgba(15,118,110,.2);
  color: var(--teal); border-radius: 10px; padding: .5rem .75rem; margin-bottom: .6rem; font-size: .88rem; }
.pd-design-chip { display: inline-flex; align-items: center; gap: .6rem; border: 1px dashed rgba(31,26,36,.2);
  border-radius: 12px; padding: .35rem .5rem; }
.pd-design-chip img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; background: var(--mist); }

/* Cart quantity stepper */
.cart-stepper { display: inline-flex; align-items: center; border: 1px solid rgba(31,26,36,.18); border-radius: 8px; overflow: hidden; }
.cart-stepper .cq-btn { border: none; background: #f4f4f7; width: 30px; height: 32px; font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--ink); }
.cart-stepper .cq-btn:hover { background: #e9e9ef; }
.cart-stepper .cq-input { width: 46px; height: 32px; border: none; border-left: 1px solid rgba(31,26,36,.12); border-right: 1px solid rgba(31,26,36,.12); text-align: center; -moz-appearance: textfield; appearance: textfield; }
.cart-stepper .cq-input::-webkit-outer-spin-button, .cart-stepper .cq-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Wholesale catalog grid */
.wholesale-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.wholesale-card { border: 1px solid rgba(31,26,36,.1); border-radius: 16px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.wholesale-card:hover { box-shadow: 0 10px 28px rgba(31,26,36,.12); transform: translateY(-2px); }
.wholesale-card-media { display: block; aspect-ratio: 1/1; background: var(--mist); overflow: hidden; }
.wholesale-card-media img { width: 100%; height: 100%; object-fit: cover; }
.wholesale-card-body { padding: .8rem .9rem 1rem; display: flex; flex-direction: column; gap: .15rem; }
.wholesale-mini { width: 100%; border-collapse: collapse; margin: .5rem 0 .7rem; font-size: .84rem; }
.wholesale-mini td { padding: .22rem .1rem; border-bottom: 1px dashed rgba(31,26,36,.1); color: var(--steel); }
.wholesale-mini td.fw-bold { color: var(--teal); }
.wholesale-mini tr:last-child td { border-bottom: none; }

/* Cart */
.cart-line { display: grid; grid-template-columns: 56px 1fr auto auto auto; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid rgba(31,26,36,.08); }
.cart-line:last-of-type { border-bottom: none; }
.cart-line-thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--mist); display: grid; place-items: center; color: var(--steel); }
.cart-line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-total { font-weight: 800; color: var(--ink); white-space: nowrap; }
.cart-line-onprod { display: flex; align-items: center; gap: .4rem; margin-top: .2rem; }
.cart-line-onprod img { width: 28px; height: 28px; object-fit: cover; border-radius: 6px; background: var(--mist); }
.cart-summary { display: flex; align-items: baseline; justify-content: space-between; margin-top: .9rem; padding-top: .8rem; border-top: 2px solid rgba(31,26,36,.12); }
.cart-summary-total { font-size: 1.35rem; font-weight: 800; color: var(--teal); }
@media (max-width: 560px) {
  .cart-line { grid-template-columns: 48px 1fr auto; grid-auto-rows: min-content; }
  .cart-line-qty, .cart-line-total { grid-column: 2 / 4; }
  .cart-line-thumb { width: 48px; height: 48px; }
}

/* Cart nav badge */
.cart-badge {
  position: absolute; top: 2px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--brand); color: #fff; font-size: .68rem; font-weight: 800;
  line-height: 17px; text-align: center;
}

/* Order confirmation */
.order-done-icon { font-size: 3rem; color: var(--teal); display: block; margin-bottom: .4rem; }

/* Checkout (mobile-first) */
.checkout-wrap { max-width: 980px; margin: 0 auto; }
.checkout-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.co-line { display: grid; grid-template-columns: 44px 1fr auto; gap: .6rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid rgba(31,26,36,.06); }
.co-thumb { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--mist); display: grid; place-items: center; color: var(--steel); }
.co-thumb img { width: 100%; height: 100%; object-fit: cover; }
.co-row { display: flex; justify-content: space-between; padding: .35rem 0; }
.co-total { border-top: 2px solid rgba(31,26,36,.12); margin-top: .3rem; padding-top: .6rem; font-size: 1.15rem; }
.co-total span:last-child { font-weight: 800; color: var(--teal); }
@media (min-width: 768px) {
  .checkout-grid { grid-template-columns: 1.4fr .9fr; align-items: start; }
  .checkout-summary { position: sticky; top: 84px; }
}

/* Navbar mini-cart dropdown */
.mini-cart { width: 340px; max-width: 92vw; border: none; box-shadow: 0 12px 34px rgba(31,26,36,.18); border-radius: 14px; overflow: hidden; }
.mini-cart-head { border-bottom: 1px solid rgba(31,26,36,.08); }
.mini-cart-body { max-height: 340px; overflow-y: auto; }
.mini-cart-line { display: grid; grid-template-columns: 44px 1fr auto; gap: .6rem; align-items: center; padding: .55rem .9rem; border-bottom: 1px solid rgba(31,26,36,.06); }
.mini-cart-thumb { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--mist); display: grid; place-items: center; color: var(--steel); }
.mini-cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-cart-title { font-size: .82rem; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-cart-lt { white-space: nowrap; color: var(--ink); }
.mini-cart-foot { border-top: 1px solid rgba(31,26,36,.08); background: #fafafa; }
.mini-cart-nav .cart-badge { position: absolute; top: -1px; right: -8px; }

/* Mobile top-right quick icons (favorites + cart) */
.nav-quick-ico { font-size: 1.35rem; color: var(--ink); text-decoration: none; line-height: 1; padding: .2rem; display: inline-flex; }
.nav-quick-ico:hover { color: var(--brand); }
.nav-quick-ico .cart-badge { top: -4px; right: -7px; }

/* Homepage wholesale / B2B section (also reused as the wholesale page intro) */
.wholesale-home { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.2rem; align-items: start; }
.wholesale-home-body { line-height: 1.7; font-size: .98rem; max-width: 66ch; }
.wholesale-home-body p { margin-bottom: .9rem; }
.wholesale-home-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.wholesale-home-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid rgba(31,26,36,.1); border-radius: 14px; overflow: hidden; background: #fff;
  transition: box-shadow .15s, transform .15s;
}
.wholesale-home-card:hover { box-shadow: 0 10px 26px rgba(31,26,36,.12); transform: translateY(-2px); }
.wholesale-home-media { aspect-ratio: 1/1; background: var(--mist); display: block; }
.wholesale-home-media img { width: 100%; height: 100%; object-fit: cover; }
.wholesale-home-title { padding: .55rem .7rem 0; font-size: .85rem; font-weight: 600; line-height: 1.25; }
.wholesale-home-price { padding: .1rem .7rem .6rem; font-size: .8rem; color: var(--teal); font-weight: 700; }
.wholesale-intro { max-width: none; width: 100%; }
.wholesale-intro .wholesale-home-body { max-width: none; }
@media (max-width: 860px) {
  .wholesale-home { grid-template-columns: 1fr; gap: 1.4rem; }
}

/* Full-width magazine long description: text wraps around inline photos */
.magazine-flow {
  overflow: hidden;                 /* contain floated images */
  background: #fff;
  border: 1px solid rgba(31,26,36,.08);
  border-radius: 16px;
  padding: 1rem 1.25rem;
}
.magazine-flow p { color: var(--steel); line-height: 1.85; margin-bottom: 1.15rem; }
.mag-inline {
  width: 270px; max-width: 38%; aspect-ratio: 4 / 3; border-radius: 14px; object-fit: cover;
  background: #f5f2ec; box-shadow: 0 10px 26px rgba(15,23,42,.12);
}
.mag-inline--right { float: right; margin: .2rem 0 1.1rem 1.6rem; }
.mag-inline--left { float: left; margin: .2rem 1.6rem 1.1rem 0; }
@media (max-width: 575.98px) {
  .mag-inline { width: 100%; max-width: 100%; float: none !important; display: block; margin: .4rem 0 1.2rem !important; }
}
/* Desktop: more padding on the white card so the text column is narrower and
   wraps more tightly around the floated images. */
@media (min-width: 992px) {
  .magazine-flow { padding: 2.75rem 3.25rem; }
  .mag-inline { width: 300px; }
  .mag-inline--right { margin: .2rem 0 1.3rem 2.2rem; }
  .mag-inline--left { margin: .2rem 2.2rem 1.3rem 0; }
}

/* Features: icon grid + material chips */
.feature-grid { display: grid; gap: .6rem; }
.feature-item {
  display: flex; align-items: center; gap: .7rem;
  background: #fff; border: 1px solid rgba(31,26,36,.1); border-radius: 12px; padding: .6rem .8rem;
}
.feature-ico {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; background: var(--mist); color: var(--teal); font-size: 1.1rem;
}
.feature-body { display: flex; flex-direction: column; min-width: 0; }
.feature-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--steel); }
.feature-value { font-weight: 600; color: var(--ink); }
.feature-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.feature-chips span {
  display: inline-flex; align-items: center; gap: .3rem;
  background: #eef6f4; border: 1px solid rgba(15,118,110,.16); color: var(--teal);
  border-radius: 999px; font-size: .8rem; font-weight: 600; padding: .25rem .7rem;
}
.feature-chips .bi { font-size: .8rem; }

/* Collection magazine: editorial alternating product features */
.collection-magazine { display: flex; flex-direction: column; gap: 2.2rem; }
.mag-item { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: center; }
.mag-item:nth-child(even) { direction: rtl; }
.mag-item:nth-child(even) > * { direction: ltr; }
.mag-media {
  display: block; border-radius: 16px; overflow: hidden; background: #f5f2ec;
  aspect-ratio: 4 / 3; box-shadow: 0 14px 34px rgba(15,23,42,.1);
}
.mag-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.mag-media:hover img { transform: scale(1.05); }
.mag-media--transparent { background: #f5f2ec; }
.mag-media--transparent img { object-fit: contain; padding: 7%; }
.mag-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--steel); font-size: 2rem; }
.mag-title { font-size: 1.5rem; font-weight: 800; margin: 0 0 .5rem; line-height: 1.2; }
.mag-title a { color: var(--ink); text-decoration: none; }
.mag-title a:hover { color: var(--brand); }
.mag-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.mag-tags span { background: var(--mist); color: var(--teal); border-radius: 999px; font-size: .74rem; font-weight: 600; padding: .18rem .6rem; }
.mag-desc { color: var(--steel); line-height: 1.7; margin-bottom: .8rem; }
.mag-link { font-weight: 700; color: var(--brand); text-decoration: none; }
.mag-link:hover { text-decoration: underline; }
@media (max-width: 767.98px) {
  .mag-item, .mag-item:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
  .mag-title { font-size: 1.25rem; }
}

/* 4-column product grid */
.product-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 991.98px) { .product-grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767.98px) { .product-grid-4 { grid-template-columns: repeat(2, 1fr); gap: .7rem; } }
.prod-card {
  display: flex; flex-direction: column; border: 1px solid rgba(31,26,36,.1);
  border-radius: 14px; overflow: hidden; background: #fff; color: inherit; text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.prod-card:hover { border-color: var(--brand); box-shadow: 0 12px 28px rgba(15,23,42,.12); transform: translateY(-3px); }
.prod-card-media { aspect-ratio: 1 / 1; background: #f5f2ec; overflow: hidden; }
.prod-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-card--transparent .prod-card-media { background: #f5f2ec; }
.prod-card--transparent .prod-card-media img { object-fit: contain; padding: 8%; }
.prod-card-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--steel); font-size: 1.6rem; }
.prod-card-body { padding: .6rem .7rem .75rem; display: flex; flex-direction: column; gap: .25rem; }
.prod-card-title {
  font-weight: 700; font-size: .9rem; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prod-card-meta { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem; }
.prod-card-code { font-size: .72rem; color: var(--steel); }
.prod-card-price { font-weight: 700; color: var(--brand); white-space: nowrap; }
.thumb-strip img { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.thumb-strip img.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }

/* Design picker modal */
.design-modal .modal-body { padding: 0; }
.design-picker { display: grid; grid-template-columns: 280px 1fr; min-height: 62vh; }
.design-left {
  display: flex; flex-direction: column; min-height: 0;
  border-right: 1px solid rgba(31,26,36,.1);
}
.design-search {
  display: flex; align-items: center; gap: .5rem; padding: .7rem .85rem;
  border-bottom: 1px solid rgba(31,26,36,.08);
}
.design-search i { color: var(--steel); }
.design-search input {
  border: none; outline: none; background: transparent; width: 100%; font-size: .9rem; color: var(--ink);
}
/* Flexbox with FIXED-size square tiles — no aspect-ratio dependency, so tiles
   can never collapse or overlap regardless of how the images load. */
.design-list {
  display: flex; flex-wrap: wrap; gap: .6rem; padding: .85rem;
  overflow-y: auto; align-content: flex-start;
  flex: 1 1 auto; min-height: 0;
}
.design-chip {
  flex: 0 0 auto; width: 80px; height: 80px; padding: 0;
  border: 1px solid rgba(31,26,36,.14); border-radius: 8px; background: #fff;
  overflow: hidden; cursor: pointer; display: block;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.design-chip img { width: 100%; height: 100%; object-fit: contain; padding: 10%; display: block; }
.design-chip-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--steel); background: #fff; }
.design-chip:hover { transform: translateY(-2px); z-index: 1; }
.design-chip.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.design-empty { flex: 0 0 100%; padding: 1rem; color: var(--steel); font-size: .9rem; }
/* Left-panel pager */
.design-pager {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .6rem .85rem; border-top: 1px solid rgba(31,26,36,.08);
}
.design-pager .design-page-label { font-size: .82rem; color: var(--steel); }
.design-sentinel { grid-column: 1 / -1; text-align: center; padding: .4rem; min-height: 8px; color: var(--steel); }
/* Spinner only shows while a page is actively being fetched */
.design-sentinel .spinner-border { display: none; }
.design-sentinel.is-loading .spinner-border { display: inline-block; }
.design-preview { display: flex; flex-direction: column; padding: 1.25rem; gap: 1rem; min-width: 0; }
/* Live composite: design artwork layered over the transparent bag base */
.compose-stage {
  position: relative; width: 100%; max-width: 460px; margin: 0 auto;
  background: #f5f2ec; border-radius: 12px; overflow: hidden;
}
.compose-base { display: block; width: 100%; height: auto; }
.compose-design { position: absolute; transform: translate(-50%, -50%); object-fit: contain; pointer-events: none; }
.design-preview-media {
  flex: 1 1 auto; display: grid; place-items: center; min-height: 340px;
  background: #f8fafc; border-radius: 14px; overflow: hidden;
}
.design-preview--transparent .design-preview-media { background: #f5f2ec; }
.design-preview-media img { max-width: 100%; max-height: 60vh; object-fit: contain; padding: 4%; }
.design-preview-info h4 { margin: 0; font-weight: 700; }
@media (max-width: 767.98px) {
  .design-picker { grid-template-columns: 1fr; }
  .design-list { grid-template-columns: repeat(4, 1fr); border-right: none; border-bottom: 1px solid rgba(31,26,36,.1); max-height: 30vh; }
  .design-preview-media { min-height: 220px; }
}

/* Full-window print-design lightbox */
.vp-lightbox {
  position: fixed; inset: 0; z-index: 1090; background: rgba(15,10,20,.94);
  display: flex; align-items: center; justify-content: center;
}
.vp-lightbox[hidden] { display: none; }
/* Fixed-size stage so the prev/next arrows never shift between images */
.vplb-stage { width: min(88vw, 560px); display: flex; flex-direction: column; gap: .75rem; }
.vplb-img {
  width: 100%; height: 72vh; object-fit: contain; border-radius: 12px;
  background: #f5f2ec; padding: 1.5%;
}
.vplb-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  color: #fff; flex-wrap: wrap;
}
.vplb-title { font-weight: 600; }
.vplb-tools { display: flex; align-items: center; gap: .6rem; }
.vplb-count { color: rgba(255,255,255,.7); font-size: .85rem; }
.vplb-fav {
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.14); color: rgba(255,255,255,.6); display: grid; place-items: center;
  font-size: 1.05rem; transition: color .15s, background .15s;
}
.vplb-fav.is-fav { background: #fff; color: var(--brand); }
.vplb-btn {
  background: rgba(255,255,255,.1); color: #fff; border: none; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1;
  margin: 0 .5rem; flex: 0 0 auto; transition: background .15s;
}
.vplb-btn:hover { background: rgba(255,255,255,.22); }
.vplb-close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; font-size: 1.6rem; }

/* Floating hover popup — small white card, appears beside the image, non-blocking */
.print-popup {
  position: fixed; z-index: 1080; width: 280px; max-width: 82vw;
  background: #fff; color: var(--ink);
  border: 1px solid rgba(31,26,36,.12); border-radius: 12px;
  box-shadow: 0 18px 50px rgba(15,23,42,.28); padding: .85rem 1rem;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease; pointer-events: none;
}
.print-popup.show { opacity: 1; visibility: visible; transform: none; }
.print-popup .pp-title { font-size: 1rem; font-weight: 700; margin: 0 0 .25rem; }
.print-popup .pp-sub { font-size: .8rem; color: var(--teal); margin: 0 0 .4rem; }
.print-popup .pp-desc { font-size: .85rem; line-height: 1.4; color: var(--steel); margin: 0 0 .4rem; }
.print-popup .pp-tags { font-size: .75rem; color: var(--steel); opacity: .8; margin: 0; }

/* Lightbox gallery */
.lightbox {
  position: fixed; inset: 0; z-index: 1090; background: rgba(15,10,20,.92);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox .lb-img { max-width: 90vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .lb-btn {
  position: absolute; background: rgba(255,255,255,.14); color: #fff; border: none;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background .2s;
}
.lightbox .lb-btn:hover { background: rgba(255,255,255,.28); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: .9rem; }
@media (max-width: 575.98px) {
  .lightbox .lb-prev { left: 8px; } .lightbox .lb-next { right: 8px; }
  .lightbox .lb-btn { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .print-card-media img, .print-card:hover .print-card-media img { transition: none; transform: none; }
}

/* Placeholder shown until you upload static/img/collections/<slug>.jpg */
.collection-feature-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--sand) 0%, var(--rose) 100%);
  color: var(--ink);
}
.collection-feature:nth-of-type(4n+2) .collection-feature-placeholder { background: linear-gradient(135deg, var(--ice) 0%, var(--lav) 100%); }
.collection-feature:nth-of-type(4n+3) .collection-feature-placeholder { background: linear-gradient(135deg, var(--mist) 0%, var(--sand) 100%); }
.collection-feature:nth-of-type(4n+4) .collection-feature-placeholder { background: linear-gradient(135deg, var(--blush) 0%, var(--ice) 100%); }

.collection-feature-placeholder .ph-mark {
  font-size: 2.6rem;
  opacity: .55;
  line-height: 1;
}
.collection-feature-placeholder .ph-name {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.01em;
}
.collection-feature-placeholder .ph-path {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
  color: var(--steel);
  background: rgba(255,255,255,.6);
  border-radius: 999px;
  padding: .2rem .6rem;
}

.collection-feature-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}
.collection-feature-lead {
  color: var(--steel);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 52ch;
}

@media (max-width: 860px) {
  .collection-feature {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  /* Always show the image first on narrow screens, regardless of side. */
  .collection-feature.feature-right .collection-feature-media,
  .collection-feature .collection-feature-media { order: 0; }
  .collection-feature.feature-right .collection-feature-body,
  .collection-feature .collection-feature-body { order: 1; }
}

/* Operator "Collection Images" page previews */
.collection-img-preview {
  aspect-ratio: 5 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: #f4faf8;
  border: 1px solid rgba(31,26,36,.1);
}
.collection-img-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.collection-img-empty {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  color: var(--steel);
  font-size: .85rem;
}
.collection-img-empty i { font-size: 1.8rem; opacity: .5; }

/* Operator page: hero preview + thumbnail grid */
.op-hero-preview {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: #f4faf8;
  border: 1px solid rgba(31,26,36,.1);
}
.op-hero-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.op-hero-preview .hero-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--brand);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 999px;
}
.op-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: .4rem;
}
.op-thumb {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(31,26,36,.12);
  cursor: pointer;
}
.op-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
}
.op-thumb-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  font-size: .62rem;
  color: var(--steel);
  background: #fff;
  padding: .15rem;
  border-top: 1px solid rgba(31,26,36,.08);
}
.card.collection-off { opacity: .62; }
.card.collection-off .op-hero-preview { filter: grayscale(.4); }
.sticky-save {
  position: sticky;
  bottom: 0;
  background: linear-gradient(0deg, #fffdfb 60%, rgba(255,253,251,0));
  padding: .75rem 0;
}
