:root{
  --bg:#ffffff;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e5e7eb;

  /* Paleta */
  --brand:#FE7AA5;   /* rosa */
  --brand2:#78C6D0;  /* azul */
  --accent:#FCAC64;  /* laranja */
}

*{box-sizing:border-box}
html,body{max-width:100%;overflow-x:hidden}

body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:var(--text);
  background:
    radial-gradient(900px 380px at 10% 10%, rgba(254,122,165,.10), transparent 60%),
    radial-gradient(900px 380px at 90% 20%, rgba(120,198,208,.10), transparent 60%),
    linear-gradient(180deg, #fff, #fafafa);
}

a{color:var(--brand2);text-decoration:none}
a:hover{text-decoration:none}

h1,h2{margin:0;letter-spacing:.2px}
h3{letter-spacing:.2px}

.small{color:var(--muted);font-size:13px;line-height:1.35}
.muted{color:var(--muted)}

/* ==========================
   LAYOUT / HEADER
========================== */
.container,.wrap,.page,main{
  max-width:1180px;
  margin:0 auto;
  padding:22px 16px;
}

.brandbar,.topbar,header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;

  position:sticky;
  top:0;
  z-index:20;

  padding:14px 18px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brandbar .logo,.brandbar .brand,.topbar .brand{
  display:flex;align-items:center;gap:12px;
  min-width:220px;
}

.brandbar img,.topbar img,.brand-logo{
  height:46px !important;
  width:auto !important;
  max-width:180px;
  object-fit:contain;
  display:block;
}

.logo-text{line-height:1}
.logo-title{font-weight:800;letter-spacing:.2px;color:var(--text)}
.logo-sub{margin-top:4px;color:var(--muted);font-size:12px}

.brand-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

@media(max-width:720px){
  .brandbar{flex-direction:column;align-items:flex-start}
  .brand-actions{width:100%;justify-content:flex-start}
}
@media(max-width:560px){
  .logo-sub{display:none}
}

/* ==========================
   CARDS / GRID
========================== */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px;
  margin:12px 0;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}

.grid{display:grid;gap:12px}
.grid2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:980px){.grid3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.grid2,.grid3{grid-template-columns:1fr}}

/* ==========================
   FORMS
========================== */
label{display:block;margin:0 0 6px 2px;color:var(--muted);font-size:13px}

input,select,textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  outline:none;
  min-height:44px;
}

input:focus,select:focus,textarea:focus{
  border-color: rgba(254,122,165,.60);
  box-shadow: 0 0 0 4px rgba(254,122,165,.14);
}
select{min-height:46px}

/* ==========================
   BUTTONS / BADGES
========================== */
button{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:0;
  color:#fff;
  font-weight:800;
  cursor:pointer;
  min-height:44px;

  background: linear-gradient(90deg, var(--brand), var(--brand2));
  box-shadow: 0 16px 34px rgba(254,122,165,.16), 0 16px 34px rgba(120,198,208,.12);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
button:hover{ filter: saturate(1.05); transform: translateY(-1px); }
button:active{ transform: translateY(0) scale(.99); }
button[disabled]{opacity:.45;cursor:not-allowed;transform:none !important;box-shadow:none !important;filter:grayscale(.15)}

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  min-height:44px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, filter .15s ease;
}
.badge:hover{
  border-color: rgba(120,198,208,.55);
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
  transform: translateY(-1px);
}
.badge.btn-primary{
  border:none;
  color:#fff;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  box-shadow: 0 16px 34px rgba(254,122,165,.16), 0 16px 34px rgba(120,198,208,.12);
}
.badge.btn-primary:hover{ filter:saturate(1.06); }
.badge.btn-soft{
  border-color: rgba(120,198,208,.35);
  background: rgba(120,198,208,.10);
}
.badge.badge-muted{ background: rgba(255,255,255,.75); }

.btn-block{width:100%}
.btn-danger{ background: linear-gradient(90deg,#ef4444,#b91c1c); }

/* ==========================
   DIVIDERS / ALERTS
========================== */
hr{border:0;border-top:1px solid var(--border);margin:12px 0}
.divider{height:1px;background:var(--border);margin:12px 0}

.alert{
  border:1px solid rgba(254,122,165,.35);
  background: rgba(254,122,165,.08);
  color: var(--text);
  font-weight:800;
  border-radius:12px;
  padding:12px;
}
.alert.ok{
  border-color: rgba(120,198,208,.45);
  background: rgba(120,198,208,.10);
}

/* ==========================
   IMAGES
========================== */
.thumb{
  width:68px;height:68px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid var(--border);
  display:block;
}

/* ==========================
   STEPPER
========================== */
.stepper{ padding:12px 14px; }
.steps{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:6px; }
.step{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:900;
  color:var(--muted);
}
.step.active{
  border-color: rgba(254,122,165,.35);
  background: rgba(254,122,165,.10);
  color: var(--text);
}
.step.done{
  border-color: rgba(120,198,208,.35);
  background: rgba(120,198,208,.10);
  color: var(--text);
}

/* ==========================
   THEMES (CLIENTE)
========================== */
.themes-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:22px;
}
@media(max-width:980px){ .themes-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width:720px){ .themes-grid{ grid-template-columns:1fr; } }

.theme-card{ display:block; cursor:pointer; position:relative; }
.theme-card > input{ position:absolute; opacity:0; pointer-events:none; }

.theme-inner{
  position:relative;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
  padding:12px;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, filter .15s ease, opacity .15s ease;
}
.theme-card:hover .theme-inner{
  transform: translateY(-1px);
  border-color: rgba(120,198,208,.40);
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
}

.theme-cover{
  padding:10px;
  width:100%;
  height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  border:1px solid var(--border);
  background:#fff;
  overflow:hidden;
}
.theme-cover img{
  width:100%;
  height:100%;
  object-fit: contain !important;
  display:block;
}
.theme-placeholder{
  width:100%;
  height:220px;
  background: linear-gradient(90deg, rgba(254,122,165,.12), rgba(120,198,208,.12));
  border-radius:16px;
}
.theme-name{ margin-top:10px; font-weight:900; }

@keyframes themePop{
  0%{ transform: translateY(0) scale(1); }
  60%{ transform: translateY(-6px) scale(1.04); }
  100%{ transform: translateY(-4px) scale(1.02); }
}
.theme-card input:checked + .theme-inner{
  border-color: rgba(254,122,165,.95);
  box-shadow:
    0 26px 70px rgba(254,122,165,.28),
    0 20px 60px rgba(120,198,208,.20),
    0 0 0 5px rgba(254,122,165,.22);
  transform: translateY(-4px) scale(1.02);
  animation: themePop .25s ease-out;
}
.theme-card input:checked + .theme-inner::after{
  content: "Selecionado ✓";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  box-shadow: 0 12px 30px rgba(15,23,42,.18);
}

/* ==========================
   ITEMS GRID
========================== */
.items-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
@media(max-width:860px){ .items-grid{ grid-template-columns:1fr; } }

.item-card{ margin:0; padding:12px; }
.item-head{ display:flex; justify-content:space-between; gap:10px; }
.item-title{ margin-top:8px; font-weight:900; font-size:16px; }
.item-cover{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid var(--border);
  margin-top:10px;
  display:block;
}

/* ==========================
   KITS (CLIENTE)
========================== */
.kit-card{ display:block; cursor:pointer; position:relative; }
.kit-card > input[type="radio"]{ position:absolute; inset:0; opacity:0; pointer-events:none; }

.kit-inner{
  position:relative;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
  overflow:hidden;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, filter .15s ease, opacity .15s ease;

  display:flex;
  flex-direction:column;
  height:100%;
}
.kit-card:hover .kit-inner{
  transform: translateY(-1px);
  border-color: rgba(120,198,208,.45);
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
}

.kit-cover{
  width:100%;
  height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  border-bottom:1px solid rgba(229,231,235,.8);
}
.kit-cover img{
  width:100%;
  height:100%;
  object-fit:contain !important;
  display:block;
  background:#fff;
}

.kit-body{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:12px 12px 14px;
  flex:1;
}

.kit-price{ font-weight:900; color: var(--muted); font-size:14px; line-height:1.2; }
.kit-title{ font-weight:900; font-size:16px; line-height:1.25; min-height:2.5em; }
.kit-action{ margin-top:auto; padding-top:10px; font-weight:800; color: var(--muted); }

.kit-includes{
  margin-top:10px;
  padding-top:10px;
  border-top:1px dashed rgba(229,231,235,.9);
  color: var(--muted);
  font-size:13px;
}
.kit-includes-title{ font-weight:900; font-size:12px; color:var(--muted); margin-bottom:6px; }
.kit-includes ul{ margin:0; padding-left:18px; display:grid; gap:6px; }
.kit-includes li{ line-height:1.25; }
.kit-includes .qty{ font-weight:900; color:var(--muted); }

@keyframes kitPop{
  0%{ transform: translateY(0) scale(1); }
  60%{ transform: translateY(-6px) scale(1.04); }
  100%{ transform: translateY(-4px) scale(1.02); }
}
.kit-card > input[type="radio"]:checked + .kit-inner{
  border-color: rgba(254,122,165,.95);
  box-shadow:
    0 26px 70px rgba(254,122,165,.28),
    0 20px 60px rgba(120,198,208,.20),
    0 0 0 5px rgba(254,122,165,.22);
  transform: translateY(-4px) scale(1.02);
  animation: kitPop .25s ease-out;
}
.kit-card > input[type="radio"]:checked + .kit-inner::after{
  content:"Selecionado ✓";
  position:absolute;
  top:14px;
  right:14px;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  color:#fff;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  box-shadow: 0 12px 30px rgba(15,23,42,.18);
}
.kit-card > input[type="radio"]:checked + .kit-inner .kit-action{
  font-weight:900;
  color: var(--brand);
}
.kit-card:focus-within .kit-inner{
  box-shadow: 0 0 0 4px rgba(120,198,208,.18);
  border-color: rgba(120,198,208,.55);
}

/* ==========================
   CHIPS + STATUS
========================== */
.chip{
  display:inline-flex;
  align-items:center;
  border:1px solid var(--border);
  border-radius:999px;
  padding:7px 10px;
  font-weight:900;
  background:#fff;
}
.chip-ok{ border-color: rgba(120,198,208,.45); background: rgba(120,198,208,.12); }
.chip-info{ border-color: rgba(120,198,208,.35); background: rgba(120,198,208,.08); }
.chip-warn{ border-color: rgba(252,172,100,.95); background: rgba(252,172,100,.28); }
.chip-danger{ border-color: rgba(254,122,165,.90); background: rgba(254,122,165,.22); }

.order-chips{ display:flex; gap:8px; flex-wrap:wrap; }

/* chips em badge (compat) */
.badge.chip{ padding:7px 12px; font-weight:900; border-radius:999px; border:1px solid var(--border); white-space:nowrap; }

.badge.chip.chip-status{
  background: #eef2ff;
  color: #3730a3;
  border-color: #c7d2fe;
}
.badge.chip.chip-pay{
  background: #fff7ed;
  color: #9a3412;
  border-color: #fed7aa;
}

.badge.chip[data-status="Pago"]{
  background:#ecfdf5; color:#065f46; border-color:#6ee7b7;
}
.badge.chip[data-status="Aguardando pagamento"],
.badge.chip[data-status="Pendente"],
.badge.chip[data-status="Processando"],
.badge.chip[data-status="Reservado"]{
  background:#fff7ed; color:#9a3412; border-color:#fed7aa;
}
.badge.chip[data-status="Confirmado"],
.badge.chip[data-status="Aprovado"]{
  background:#eef2ff; color:#3730a3; border-color:#c7d2fe;
}
.badge.chip[data-status="Cancelado"],
.badge.chip[data-status="Recusado"],
.badge.chip[data-status="Expirado"]{
  background:#fef2f2; color:#991b1b; border-color:#fecaca;
}

/* topo do pedido */
.order-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.order-top .btn-primary{ white-space:nowrap; align-self:center; }
@media (max-width:720px){
  .order-top{ flex-direction:column; align-items:flex-start; }
  .order-top .btn-primary{ width:100%; justify-content:center; }
}

/* WhatsApp */
.btn-whatsapp{ display:inline-flex; align-items:center; gap:10px; }
.btn-whatsapp .icon-wa{ width:20px; height:20px; flex:0 0 auto; }
.btn-whatsapp:hover{ filter:saturate(1.08); }

/* Flatpickr */
.flatpickr-calendar{
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
  border: 1px solid rgba(0,0,0,.06);
  overflow: hidden;
}
.flatpickr-months .flatpickr-month{ border-radius: 18px 18px 0 0; }
.flatpickr-day{ border-radius: 12px; }
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange{ box-shadow:none; }

.hint-error{
  display:none;
  margin-top:8px;
  color:#d6336c;
  font-weight:800;
}

/* ==========================
   ADMIN / DASH (mantém classes)
========================== */
.inline-form{ display:flex; align-items:center; gap:10px; margin:0; }

.btn-mini{
  width:auto !important;
  height:44px;
  padding:10px 14px !important;
  border-radius:999px !important;
  border:1px solid var(--border) !important;
  background:#fff !important;
  color:var(--text) !important;
  font-weight:900 !important;
  cursor:pointer;
  white-space:nowrap;
  line-height:1;
}
.btn-primary-mini{
  border:none !important;
  color:#fff !important;
  background: linear-gradient(90deg, var(--brand), var(--brand2)) !important;
  box-shadow: 0 16px 34px rgba(254,122,165,.14), 0 16px 34px rgba(120,198,208,.10);
}
.btn-danger-mini{
  border-color: rgba(254,122,165,.45) !important;
  background: rgba(254,122,165,.12) !important;
}
.btn-neutral{
  border-color: rgba(120,198,208,.35) !important;
  background: rgba(120,198,208,.10) !important;
}

.file-mini{
  position:relative;
  display:inline-flex;
  align-items:center;
  height:44px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:900;
  cursor:pointer;
  white-space:nowrap;
}
.file-mini input[type="file"]{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}

.page-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.dash-actions{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }

.dash-quickcards{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:16px;
  margin-top: 18px;
}
@media (max-width:1100px){ .dash-quickcards{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width:560px){ .dash-quickcards{ grid-template-columns: 1fr; } }

.quickcard{ display:block; }
.quick-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.quick-title{ font-weight:800; letter-spacing:.2px; }

.dash-kpis{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:16px;
  margin-top: 16px;
}
@media (max-width:1100px){ .dash-kpis{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width:560px){ .dash-kpis{ grid-template-columns: 1fr; } }

.kpi{ display:flex; flex-direction:column; gap:6px; }
.kpi-value{ font-size:28px; font-weight:900; }

.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom: 10px;
}

.dash-quick{ display:flex; gap:10px; flex-wrap:wrap; }
.dash-orders{ display:flex; flex-direction:column; gap:10px; }

.dash-order-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.dash-order-main{ min-width:0; }
.dash-order-title{ margin:0 0 6px 0; }
.dash-order-meta > div{ margin:2px 0; }
.dash-divider{ height:1px; background: var(--border); opacity:.9; margin: 10px 0; }

@media (max-width:720px){
  .dash-order-row{ flex-direction:column; align-items:stretch; }
  .dash-order-side{ display:flex; justify-content:flex-end; }
}

/* thumb de tema no dashboard */
.dash-order-title--withthumb{ display:flex; align-items:center; gap:12px; }
.theme-thumb{
  width:46px;
  height:46px;
  border-radius:14px;
  object-fit:cover;
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  flex:0 0 auto;
}
.theme-thumb--placeholder{
  background: linear-gradient(135deg, rgba(255,104,168,.25), rgba(88,210,238,.22));
}
.dash-order-title-text{ min-width:0; }

.preview{margin-top:10px}

/* ==========================
   THEMES (ADMIN) - mantém compat
   OBS: este bloco NÃO usa .themes-grid
========================== */
.themes-list{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.theme-grid{
  display:grid;
  grid-template-columns: minmax(0,1fr) 240px;
  gap:18px;
  align-items:start;
}
@media (max-width:900px){ .theme-grid{ grid-template-columns: 1fr; } }

.theme-form label{ margin-top: 10px; }
.theme-form input[type="text"],
.theme-form input[type="file"],
.theme-form input:not([type]),
.theme-form select,
.theme-form textarea{ width:100%; }

.theme-rowhead{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom: 8px;
}

.drag-handle{
  border:1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.75);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: grab;
  line-height: 1;
}
.drag-handle:disabled{ opacity:.45; cursor:not-allowed; }

.theme-item[draggable="true"] .theme-grid{ user-select:none; }
.theme-item.dragging{ opacity:.8; transform: scale(.995); }

.theme-meta{
  display:flex;
  gap:12px;
  align-items:center;
  margin-top:10px;
  flex-wrap:wrap;
}

.theme-active{ margin:0; display:flex; gap:8px; align-items:center; }
.theme-delete{ margin-top:10px; }
.theme-right{ width:100%; }

.theme-noimg{
  padding:14px;
  border-radius:16px;
  border:1px dashed rgba(0,0,0,.15);
}

.theme-caption{ font-weight:800; margin-bottom:10px; }
.file-name{ margin-left:10px; }
.theme-filter-actions{ display:flex; gap:10px; justify-content:flex-end; }

/* =========================
   Admin - Kits (cards grid)
========================= */
.kit-upload-row{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}
.kit-preview-box{
  border:1px dashed rgba(0,0,0,.18);
  border-radius:16px;
  padding:12px;
  background:rgba(255,255,255,.45);
}
.kit-preview-img{
  width:100%;
  height:180px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.06);
}
.kit-preview-empty{ padding:10px 2px; }

.admin-kits-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:16px;
}
@media (max-width:980px){
  .admin-kits-grid{ grid-template-columns: 1fr; }
}

.admin-kit-card{ padding:16px; }
.kit-card-top{ display:flex; gap:14px; align-items:flex-start; }
.kit-card-thumb{
  width:170px;
  height:120px;
  border-radius:16px;
  object-fit:cover;
  border:1px solid rgba(0,0,0,.06);
  background:rgba(255,255,255,.55);
}
@media (max-width:520px){
  .kit-card-top{ flex-direction:column; }
  .kit-card-thumb{ width:100%; height:170px; }
}
.kit-card-meta{ flex:1; min-width:0; }
.kit-card-title{ font-weight:800; font-size:18px; line-height:1.15; }
.kit-card-sub{ margin-top:4px; }
.kit-card-price{ margin-top:10px; font-weight:800; font-size:16px; }
.kit-card-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(0,0,0,.06);
}
.kit-card-upload{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

/* ==============================
   GRID DE TEMAS (ADMIN) - NOVO
   (OBS: use classes do themes.php novo)
============================== */
.themes-toolbar{
  display:flex;
  gap:12px;
  margin-bottom:22px;
  flex-wrap:wrap;
}
.themes-toolbar input,
.themes-toolbar select{
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  font-size:14px;
  min-width:220px;
}

/* IMPORTANTE: o admin usa #themesList.themes-grid e os cards .theme-item */
#themesList.themes-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:22px;
}

#themesList .theme-item{
  background:#fff;
  border-radius:18px;
  padding:16px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  transition:.25s;
}

#themesList .theme-item:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 40px rgba(0,0,0,.12);
}

#themesList .theme-image{
  width:100%;
  height:160px;
  border-radius:14px;
  overflow:hidden;
  margin-bottom:12px;
}

#themesList .theme-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

#themesList .theme-title{
  font-weight:600;
  font-size:16px;
}

#themesList .theme-category{
  font-size:13px;
  color:#64748b;
  margin-bottom:12px;
}
.preview-box{
  width:100%;
  height:220px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--border);
  background:#fff;
}
.preview-box img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
