
*{ box-sizing:border-box; }

/* Notices */
.bbx-breed-notice{
  padding:12px 14px;
  border-radius:14px;
  margin:12px 0;
  border:1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.03);
}
.bbx-breed-notice--success{ background: rgba(0, 128, 0, .08); }
.bbx-breed-notice--warn{ background: rgba(255, 165, 0, .10); }

/* Cards grid */
.bbx-breeds-grid{
  display:grid;
  gap:24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-items:center;
}
@media (max-width: 1200px){ .bbx-breeds-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px){ .bbx-breeds-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .bbx-breeds-grid{ grid-template-columns: 1fr; } }

/* Clickable wrapper rounded + clipped */
.bbx-breed-card{
  text-decoration:none !important;
  width:100%;
  max-width:460px;
  display:block;
  border-radius:35px;
  overflow:hidden;
  background:transparent;
  transition: transform .3s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}
.bbx-breed-card__inner{
  aspect-ratio: 2 / 3;
  border-radius:35px;
  overflow:hidden;
  border:1px solid #000;
  background:#fff;
  display:flex;
  flex-direction:column;
  transition: box-shadow .3s ease;
}
.bbx-breed-card__media{ flex:0 0 65%; overflow:hidden; }
.bbx-breed-card__image{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position: top center;
  transition: transform .4s ease;
  display:block;
}
.bbx-breed-card__footer{
  flex:0 0 35%;
  background:#F0B74C;
  color:#000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  text-align:center;
}
.bbx-breed-card__title{
  font-family:'Open Sans', Arial, sans-serif;
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight:400;
  letter-spacing:2px;
  line-height: 1.2;
}
.bbx-breed-card:hover{ transform: translateY(-8px); }
.bbx-breed-card:hover .bbx-breed-card__inner{ box-shadow: 0 20px 40px rgba(0,0,0,.15); }
.bbx-breed-card:hover .bbx-breed-card__image{ transform: scale(1.08); }

/* Generic buttons */
.bbx-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.18);
  background:#fff;
  cursor:pointer;
  text-decoration:none;
}
.bbx-btn--secondary{ background: rgba(0,0,0,.04); }
.bbx-btn--danger{ background: rgba(180,0,0,.08); border-color: rgba(180,0,0,.25); }
.bbx-btn--small{ padding:8px 10px; border-radius:10px; font-size: 13px; }

/* Forms */
.bbx-breed-form-wrap{ max-width: 640px; }
.bbx-breed-form{
  border:1px solid rgba(0,0,0,.12);
  border-radius:18px;
  padding:16px;
  background:#fff;
}
.bbx-breed-form--manager{ margin: 0; }
.bbx-field{ margin: 0 0 14px 0; }
.bbx-field label{ display:block; font-weight:600; margin:0 0 6px 0; }
.bbx-field input[type="text"], .bbx-field input[type="file"]{ width:100%; max-width:100%; }
.bbx-field--row{ display:flex; gap:12px; flex-wrap:wrap; }
.bbx-current-image{ margin-top:10px; }
.bbx-current-image img{ max-width:240px; height:auto; border-radius:12px; display:block; border:1px solid rgba(0,0,0,.12); }
.bbx-current-image__label{ font-size:13px; opacity:.8; margin:0 0 6px 0; }

/* Manager layout */
.bbx-breeds-manager{ width:100%; }
.bbx-breeds-manager__columns{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
}
@media (max-width: 980px){
  .bbx-breeds-manager__columns{ grid-template-columns: 1fr; }
}

.bbx-breeds-manager__left,
.bbx-breeds-manager__right{
  border:1px solid rgba(0,0,0,.12);
  border-radius:18px;
  padding:16px;
  background:#fff;
}

.bbx-breeds-manager__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.bbx-breeds-manager__title{ font-size:18px; font-weight:800; }
.bbx-breeds-manager__panel-title{ font-size:18px; font-weight:800; margin-bottom:10px; }
.bbx-breeds-manager__help{ font-size:13px; opacity:.85; margin: 6px 0 12px 0; }

/* Sortable list */
.bbx-breeds-sortable{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.bbx-breed-row{
  border:1px solid rgba(0,0,0,.12);
  border-radius:14px;
  padding:10px;
  display:grid;
  grid-template-columns: 24px 52px 1fr auto;
  gap:10px;
  align-items:center;
  background:#fff;
}
.bbx-breed-row[draggable="true"]{ cursor:grab; }
.bbx-breed-row.dragging{ opacity:.55; }
.bbx-breed-row__drag{ font-size:18px; line-height:1; opacity:.6; user-select:none; }
.bbx-breed-row__thumb img{
  width:52px; height:52px; border-radius:12px; object-fit:cover; object-position: top center;
  border:1px solid rgba(0,0,0,.12);
  display:block;
}
.bbx-breed-row__name{ font-weight:700; }
.bbx-breed-row__actions{ display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.bbx-breeds-manager__status{ margin-top:10px; font-size:13px; opacity:.9; }
