
.itemshop-hero, .itemshop-panel, .itemshop-table, .itemshop-empty, .itemshop-admin-card {
    background: rgba(17,17,23,.92);
    border: 1px solid rgba(189,44,44,.24);
    box-shadow: 0 16px 42px rgba(0,0,0,.35);
    border-radius: 16px;
    color: #e9e9ef;
}
.itemshop-hero { padding: 28px; margin-bottom: 24px; position: relative; overflow: hidden; }
.itemshop-hero:before { content:""; position:absolute; inset:0; background: radial-gradient(circle at top right, rgba(189,44,44,.16), transparent 35%); pointer-events:none; }
.itemshop-pill { display:inline-block; background:#bd2c2c; color:#fff; font-size:12px; letter-spacing:.08em; text-transform:uppercase; padding:6px 10px; border-radius:999px; }
.itemshop-muted { color:#a7a8b3; }
.itemshop-panel { padding: 18px; height: 100%; }
.itemshop-card { background: rgba(17,17,23,.92); border:1px solid rgba(189,44,44,.18); border-radius:18px; overflow:hidden; box-shadow:0 15px 38px rgba(0,0,0,.28); height:100%; }
.itemshop-card .thumb { height:230px; background:linear-gradient(180deg,#1d1e27,#101016); display:flex; align-items:center; justify-content:center; color:#fff; font-size:24px; }
.itemshop-card img { width:100%; height:230px; object-fit:cover; }
.itemshop-card .body { padding:20px; }
.itemshop-card .meta { display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; color:#b9bac7; font-size:12px; text-transform:uppercase; }
.itemshop-card .title { color:#fff; font-size:22px; font-weight:700; margin:12px 0 10px; }
.itemshop-card .desc { color:#c9cad3; min-height:60px; }
.itemshop-card .footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:18px; }
.itemshop-price { color:#ffd37a; font-weight:800; font-size:24px; }
.itemshop-btn, .itemshop-btn:hover { background:#bd2c2c; border:1px solid #bd2c2c; color:#fff; border-radius:10px; }
.itemshop-btn-outline, .itemshop-btn-outline:hover { background:transparent; border:1px solid rgba(255,255,255,.22); color:#fff; border-radius:10px; }
.itemshop-select, .itemshop-input, .itemshop-textarea { background:#0f1016; color:#fff; border:1px solid rgba(255,255,255,.12); border-radius:10px; }
.itemshop-select:focus, .itemshop-input:focus, .itemshop-textarea:focus { background:#0f1016; color:#fff; border-color:#bd2c2c; box-shadow:none; }
.itemshop-table.table { color:#f2f2f7; margin-bottom:0; }
.itemshop-table table, .itemshop-table th, .itemshop-table td { color:#f2f2f7 !important; }
.itemshop-table thead th { border-color:rgba(255,255,255,.1); background:rgba(255,255,255,.03); }
.itemshop-table td, .itemshop-table th { border-color:rgba(255,255,255,.08)!important; vertical-align:middle; }
.itemshop-empty { padding:20px; }
.itemshop-kpi { padding:18px; border-radius:16px; background:linear-gradient(180deg, rgba(189,44,44,.2), rgba(17,17,23,.88)); border:1px solid rgba(189,44,44,.22); color:#fff; }
.itemshop-kpi small { color:#d6d7de; text-transform:uppercase; letter-spacing:.08em; }
.itemshop-admin-card { padding:22px; margin-bottom:24px; }
.itemshop-badge { padding:6px 10px; border-radius:999px; font-size:12px; font-weight:700; }
.itemshop-badge-ok { background:rgba(46, 204, 113, .16); color:#7ee2a8; }
.itemshop-badge-off { background:rgba(255,255,255,.08); color:#d8dae3; }

/* Heroia2 / Anarchy dark-red itemshop theme */
.itemshop-hero, .itemshop-panel, .itemshop-kpi, .card.h-100 {
  background: rgba(10,10,14,.92);
  border: 1px solid rgba(189,44,44,.35);
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  border-radius: 12px;
}
.itemshop-hero { padding: 18px; margin-bottom: 24px; }
.itemshop-panel { padding: 18px; margin-bottom: 18px; }
.itemshop-kpi { padding: 16px; }
.card.h-100 { overflow: hidden; }
.card.h-100 .card-body, .card.h-100 .card-footer { background: transparent; color: #e9e9ef; border-color: rgba(189,44,44,.18); }
.card.h-100 .card-title, .itemshop-panel h3, .itemshop-hero h2 { color: #fff; }
.card.h-100 .small, .card.h-100 p, .itemshop-panel, .itemshop-hero { color: #d1d3dc; }
.btn-danger, .btn-primary { background: linear-gradient(180deg,#c73a3a,#8f1e1e); border-color: #7d1616; }
.btn-danger:hover, .btn-primary:hover { filter: brightness(1.08); }
.table { color: #e9e9ef; }
.table thead th { border-bottom-color: rgba(189,44,44,.25); }
.table td, .table th { border-top-color: rgba(255,255,255,.08); }
.form-control, .custom-select { background: rgba(0,0,0,.38); border: 1px solid rgba(189,44,44,.3); color: #f3f3f6; }
.alert-info { background: rgba(30,35,54,.85); color: #eef2ff; border-color: rgba(116,135,255,.35); }
.alert-success { background: rgba(17,58,30,.9); color: #eaffef; border-color: rgba(78,201,120,.35); }
.alert-danger { background: rgba(73,20,20,.92); color: #ffeaea; border-color: rgba(235,87,87,.35); }


/* Compact shop layout + admin help text */
.itemshop-page-wrap .itemshop-label, .itemshop-admin-wrap .itemshop-label { color:#fff; font-weight:600; margin-bottom:6px; display:block; }
.itemshop-help { color:#aeb2c3; font-size:12px; line-height:1.45; }
.itemshop-admin-title { color:#fff; margin-bottom:8px; }
.itemshop-admin-note { color:#c8cad5; margin-bottom:18px; }
.itemshop-sidebar-panel { position:sticky; top:25px; }
.itemshop-category-link { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; padding:12px 14px; border-radius:10px; margin-bottom:10px; background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); color:#eef0f7; text-decoration:none !important; transition:all .18s ease; }
.itemshop-category-link:hover { background:rgba(189,44,44,.12); border-color:rgba(189,44,44,.34); color:#fff; }
.itemshop-category-link small { color:#aeb2c3; }
.itemshop-category-link.active { background:linear-gradient(180deg, rgba(199,58,58,.22), rgba(143,30,30,.12)); border-color:rgba(199,58,58,.45); color:#fff; }
.itemshop-products-grid .col-xl-3 { max-width:25%; }
.itemshop-card-compact .thumb, .itemshop-card-compact img { height:150px; }
.itemshop-card-compact .body { padding:16px; }
.itemshop-card-compact .title { font-size:16px; line-height:1.25; min-height:40px; margin:10px 0 8px; }
.itemshop-card-compact .desc { font-size:13px; line-height:1.45; min-height:56px; overflow:hidden; }
.itemshop-card-compact .footer { margin-top:12px; align-items:flex-end; }
.itemshop-card-compact .itemshop-price { font-size:16px; }
.itemshop-mini-meta { color:#9da3b6; font-size:12px; }
.itemshop-check-box { background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); border-radius:12px; padding:12px 14px; height:100%; }
.itemshop-check-label { color:#fff; font-weight:700; }
.itemshop-check-row { padding-left:4px; }
@media (max-width: 1399px) { .itemshop-products-grid .col-xl-3 { max-width:25%; flex:0 0 25%; } }
@media (max-width: 1199px) { .itemshop-sidebar-panel { position:relative; top:0; } .itemshop-products-grid .col-xl-3 { max-width:50%; flex:0 0 50%; } }
@media (max-width: 767px) { .itemshop-products-grid .col-xl-3 { max-width:100%; flex:0 0 100%; } .itemshop-top-actions .btn { display:block; width:100%; margin-bottom:10px; } }


/* Fixed compact item cards */
.itemshop-card.itemshop-card-compact {
  display: flex;
  flex-direction: column;
}
.itemshop-card-compact .thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  height: auto !important;
  display: flex;
  align-items: flex-start !important;
  justify-content: center;
  overflow: hidden;
  padding: 6px 10px 0;
  background: linear-gradient(180deg,#1d1e27,#101016);
}
.itemshop-card-compact .thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain !important;
  object-position: center top !important;
}
.itemshop-card-compact .thumb-fallback {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
}
.itemshop-card-compact .body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
.itemshop-card-compact .desc {
  min-height: 56px;
}
.itemshop-card-compact .footer {
  margin-top: auto;
}
