/* ═══════════════════════════════════════════════════════════════
   FOTO STUDIO — MODUL: POLAROID
   Razredi: fs-pol-*  |  Nič skupnega s photos (fs-pho-*)
═══════════════════════════════════════════════════════════════ */

/* ── LAYOUT ─────────────────────────────────────────────────── */
.fs-pol-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.fs-pol-cards-container {
  flex: 1;
  min-width: 0;
}

/* Resetiraj konfig-grid na block ko je polaroid layout aktiven */
.fs-konfig-grid:has(.fs-pol-layout) {
  display: block;
  grid-template-columns: unset;
}

/* ── SIDEBAR (desktop) ───────────────────────────────────────── */
.fs-pol-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  z-index: 10;
}
.fs-pol-sidebar-inner {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.fs-pol-sidebar-title {
  font-weight: 800;
  font-size: 14px;
  color: #2d2d2d;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}
.fs-pol-sidebar-section {
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}
.fs-pol-sidebar-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.fs-pol-sidebar-label {
  font-size: 11px;
  font-weight: 700;
  color: #2d2d2d;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.fs-pol-sidebar-stats { padding-top: 14px; }

/* ── FORMAT GUMBI v sidebaru ─────────────────────────────────── */
.fs-pol-fmt-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 4px;
  transition: background .15s, border-color .15s;
}
.fs-pol-fmt-btn:hover { background: #f0f0f0; }
.fs-pol-fmt-btn.selected {
  background: #E8AD61 !important;
  border-color: #E8AD61 !important;
  color: #fff !important;
}
.fs-pol-fmt-btn.selected span { color: rgba(255,255,255,.8) !important; }

/* ── GRID ─────────────────────────────────────────────────────── */
.fs-pol-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 28px 20px;
  align-content: start;
  padding: 8px 4px;
}

/* ── GRID SWITCHER (desktop) ─────────────────────────────────── */
.fs-pol-grid-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  justify-content: flex-end;
}
.fs-pol-grid-icon { color: #aaa; display: flex; align-items: center; }
.fs-pol-grid-btn {
  padding: 3px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  color: #555;
}
.fs-pol-grid-btn.active {
  background: #1c1a17;
  border-color: #1c1a17;
  color: #fff;
}

/* ── KARTICA (desktop) — polaroid look ────────────────────────── */
.fs-pol-card-desktop {
  background: #fdfdfa;
  border: 1px solid #ece8de;
  border-radius: 10px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 3px 6px rgba(0,0,0,.12),
    0 14px 36px rgba(0,0,0,.2),
    0 24px 64px rgba(0,0,0,.1);
  transition: box-shadow .25s, transform .25s;
}
.fs-pol-card-desktop:hover {
  box-shadow:
    0 4px 8px rgba(0,0,0,.14),
    0 20px 48px rgba(0,0,0,.24),
    0 32px 80px rgba(0,0,0,.14);
  transform: translateY(-3px);
}

/* Thumbnail wrap — polaroid beli rob (desktop) */
.fs-pol-thumb-desktop {
  position: relative;
  overflow: hidden;
  border-radius: 9px 9px 0 0;
  background: #fdfdfa;
  cursor: pointer;
}
.fs-pol-thumb-desktop canvas {
  display: block;
  width: 100%;
}
.fs-pol-tap-hint-desktop {
  position: absolute;
  bottom: 8px;
  right: 8px;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.fs-pol-thumb-desktop:hover .fs-pol-tap-hint-desktop { opacity: 0.7; }

/* Card bar (desktop) */
.fs-pol-card-bar-desktop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  gap: 6px;
  background: #fdfdfa;
  border-radius: 0 0 9px 9px;
  min-height: 38px;
}
.fs-pol-card-info-desktop {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.fs-pol-card-fmt-desktop {
  font-size: 13px;
  font-weight: 600;
  color: #1c1a17;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fs-pol-card-price-desktop { font-size: 12px; color: #888; }
.fs-pol-card-actions-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.fs-pol-edit-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #888;
  display: flex;
  align-items: center;
  border-radius: 5px;
}
.fs-pol-edit-btn:hover { background: #f0f0f0; color: #1c1a17; }
.fs-pol-qty-btn {
  width: 26px;
  height: 26px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fafafa;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}
.fs-pol-qty-btn:hover { background: #eee; }
.fs-pol-qty-val-desktop {
  font-weight: 700;
  font-size: 14px;
  min-width: 20px;
  text-align: center;
}
.fs-pol-del-btn {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 6px;
  background: none;
  color: #ccc;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fs-pol-del-btn:hover { background: #fee; color: #e33; }

