
.bbx-breeds-scope *{ box-sizing:border-box; }

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

/* Cards grid */
.bbx-breeds-scope .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-breeds-scope .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-breeds-scope .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-breeds-scope .bbx-breed-card__media{ flex:0 0 65%; overflow:hidden; }
.bbx-breeds-scope .bbx-breed-card__image{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position: top center;
  transition: transform .4s ease;
  display:block;
}
.bbx-breeds-scope .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-breeds-scope .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-breeds-scope .bbx-breed-card:hover{ transform: translateY(-8px); }
.bbx-breeds-scope .bbx-breed-card:hover .bbx-breed-card__inner{ box-shadow: 0 20px 40px rgba(0,0,0,.15); }
.bbx-breeds-scope .bbx-breed-card:hover .bbx-breed-card__image{ transform: scale(1.08); }

/* Generic buttons */
.bbx-breeds-scope .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-breeds-scope .bbx-btn--secondary{ background: rgba(0,0,0,.04); }
.bbx-breeds-scope .bbx-btn--danger{ background: rgba(180,0,0,.08); border-color: rgba(180,0,0,.25); }
.bbx-breeds-scope .bbx-btn--small{ padding:8px 10px; border-radius:10px; font-size: 13px; }

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

/* Manager layout */
.bbx-breeds-scope .bbx-breeds-manager{ width:100%; }
.bbx-breeds-scope .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-scope .bbx-breeds-manager__left,
.bbx-breeds-scope .bbx-breeds-manager__right{
  border:1px solid rgba(0,0,0,.12);
  border-radius:18px;
  padding:16px;
  background:#fff;
}

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

/* Sortable list */
.bbx-breeds-scope .bbx-breeds-sortable{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.bbx-breeds-scope .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-breeds-scope .bbx-breed-row[draggable="true"]{ cursor:grab; }
.bbx-breeds-scope .bbx-breed-row.dragging{ opacity:.55; }
.bbx-breeds-scope .bbx-breed-row__drag{ font-size:18px; line-height:1; opacity:.6; user-select:none; }
.bbx-breeds-scope .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-breeds-scope .bbx-breed-row__name{ font-weight:700; }
.bbx-breeds-scope .bbx-breed-row__actions{ display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.bbx-breeds-scope .bbx-breeds-manager__status{ margin-top:10px; font-size:13px; opacity:.9; }

:root{
  /* NOTE: Set these to exactly match your Litters plugin alternating backgrounds if different. */
  --bbx-studs-row-bg-odd: #c8e6f0;
  --bbx-studs-row-bg-even: #b7d9e6;
}

.bbx-studs-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bbx-studs-card{
  display:block;
  text-decoration:none;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  overflow:hidden;
  background:#fff;
  transition: transform .12s ease, box-shadow .12s ease;
}

.bbx-studs-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.bbx-studs-card-media{
  aspect-ratio: 4 / 3;
  overflow:hidden;
}

.bbx-studs-card-media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.bbx-studs-card-body{
  padding: 14px 14px 16px;
}

.bbx-studs-card-title{
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
}

.bbx-studs-card-subtitle{
  margin-top: 6px;
  font-size: 14px;
  opacity: .78;
  color: inherit;
}

@media (max-width: 1024px){
  .bbx-studs-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .bbx-studs-grid{ grid-template-columns: 1fr; }
}

/* Single Stud layout */
.bbx-stud-single-wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 16px;
}

.bbx-stud-single-header{
  margin-bottom: 18px;
}

.bbx-stud-single-header h1{
  margin: 0 0 8px 0;
}

.bbx-stud-dogs{
  display:flex;
  flex-direction:column;
  gap: 16px;
}

.bbx-stud-dog{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.10);
}

.bbx-stud-dog:nth-child(odd){ background: var(--bbx-studs-row-bg-odd); }
.bbx-stud-dog:nth-child(even){ background: var(--bbx-studs-row-bg-even); }

.bbx-stud-dog-media{
  position: relative;
}

.bbx-stud-dog-media img{
  width: 100%;
  height: auto;
  border-radius: 14px;
  display:block;
  object-fit: cover;
}

.bbx-proven-badge{
  position:absolute;
  top: 10px;
  right: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 12px;
  line-height: 1;
  color: #fff;
  background: rgba(0,0,0,0.72);
  text-transform: uppercase;
}

.bbx-stud-dog-details h2{
  margin: 0 0 10px 0;
  font-size: 22px;
}

.bbx-stud-meta{
  display:grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 14px;
  margin-bottom: 10px;
}

.bbx-stud-meta .k{ font-weight: 700; opacity: .85; }
.bbx-stud-meta .v{ opacity: .92; }

.bbx-stud-description{
  margin-top: 10px;
}

@media (max-width: 900px){
  .bbx-stud-dog{ grid-template-columns: 1fr; }
}


/* Manager */
.bbx-stud-manager-actions{
  display:flex;
  justify-content:flex-end;
  margin-bottom: 14px;
}
.bbx-stud-manager-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration:none;
  border: 1px solid rgba(0,0,0,0.18);
  font-weight: 700;
}
.bbx-stud-manager-card-actions{
  display:flex;
  gap: 12px;
  margin-top: 10px;
  align-items:center;
  flex-wrap: wrap;
}
.bbx-stud-manager-link{
  text-decoration:none;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(0,0,0,0.16);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.02);
}
.bbx-stud-manager-delete{ margin: 0; display:inline; }
.bbx-stud-manager-link.bbx-danger{
  border-color: rgba(179,45,46,0.35);
}


/* Frontend manager form */
.bbx-sm-notice{
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  margin-bottom: 12px;
}

.bbx-stud-manager-form{
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

.bbx-sm-section{ margin-bottom: 18px; }
.bbx-sm-section h3{ margin: 0 0 12px 0; }

.bbx-sm-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.bbx-sm-grid-2{
  grid-template-columns: 1fr 1fr;
}
.bbx-sm-field{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  padding: 12px;
  background: rgba(0,0,0,0.01);
}
.bbx-sm-full{ grid-column: 1 / -1; }

.bbx-sm-media{ display:flex; gap:10px; margin-top: 8px; }
.bbx-sm-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration:none;
  border: 1px solid rgba(0,0,0,0.18);
  font-weight: 700;
  background: rgba(0,0,0,0.02);
  cursor: pointer;
}
.bbx-sm-add{ margin-top: 10px; }
.bbx-sm-save{ margin-right: 10px; }

.bbx-sm-preview img{
  max-width: 240px;
  height:auto;
  margin-top: 10px;
  border-radius: 14px;
  display:block;
}

.bbx-sm-rows{ display:flex; flex-direction:column; gap: 14px; }
.bbx-sm-row{
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 16px;
  padding: 12px;
  background: rgba(0,0,0,0.02);
}
.bbx-sm-row-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 10px;
}

.bbx-sm-link{
  font-weight: 700;
  text-decoration:none;
  border: 1px solid rgba(0,0,0,0.16);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.02);
}

.bbx-sm-checkbox{ display:flex; align-items:center; gap:8px; }

.bbx-sm-actions{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
}

@media (max-width: 900px){
  .bbx-sm-grid-2{ grid-template-columns: 1fr; }
}


/* Manager sortable status + dragging */
.bbx-sm-status{
  min-height: 18px;
  margin-bottom: 10px;
  font-weight: 700;
}
.bbx-stud-row.dragging{
  opacity: 0.55;
}


/* Remove border around each Stud Dog section */
.bbx-stud-dog{ border:none !important; box-shadow:none !important; }



/* Full-width like Litters: outer spans edge-to-edge, inner content stays centered */
.bbx-stud-single-outer{ width:100%; }
.bbx-stud-single-wrap{ max-width:1100px; margin:0 auto; padding: 0 18px; }

/* Title styling to match Litters */
.bbx-stud-single-header{ text-align:center; padding: 34px 0 18px; }
.bbx-stud-title{
  text-align:center;
  font-family: "Amatic SC", Sans-serif;
  font-size: 60px;
  font-weight: 400;
  line-height: 60px;
  margin: 0;
}

/* Dog rows: full-width background stripes */
.bbx-stud-dog-row{ padding: 22px 0; }
.bbx-stud-single-outer .bbx-stud-dog-row:nth-child(odd){ background: var(--bbx-studs-row-bg-odd); }
.bbx-stud-single-outer .bbx-stud-dog-row:nth-child(even){ background: var(--bbx-studs-row-bg-even); }

/* Make the dog card align with wrap width */
.bbx-stud-dog-row .bbx-stud-dog{ max-width:1100px; margin:0 auto; padding: 0 18px; }

/* Remove borders around each stud dog (image + details container) */
.bbx-stud-dog{ border:none !important; box-shadow:none !important; background: transparent !important; }



/* Force full-bleed rows even inside constrained theme containers */
.bbx-stud-dog-row{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}



/* Full-bleed title header + background same as first (odd) section */
.bbx-stud-single-header{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--bbx-studs-row-bg-odd);
}

/* Double the stud name size */
.bbx-stud-dog-name{ font-size: 56px; line-height: 1; }
@media (max-width: 820px){
  .bbx-stud-dog-name{ font-size: 44px; }
}

/* Description row styling inside details */
.bbx-stud-desc-row .v{ display:block; }



/* Remove margin from header */
.bbx-stud-single-header{ margin:0 !important; }

/* Increase padding top/bottom of each stud row */
.bbx-stud-dog-row{ padding:50px 0 !important; }

/* Double stud name size again */
.bbx-stud-dog-name{ font-size: 90px !important; line-height: 1; }
@media (max-width: 820px){
  .bbx-stud-dog-name{ font-size: 64px !important; }
}

/* Larger PROVEN overlay */
.bbx-proven-badge{
  font-size: 32px !important;
  padding: 18px 28px !important;
  background: #F0B74C !important;
  color:#000 !important;
}



/* Prevent full-bleed rows from causing horizontal shift */
.bbx-stud-single-outer{ overflow-x:hidden; }

/* Ensure section padding separates rows (no flex gap interference) */
.bbx-stud-dogs{ gap:0 !important; }
.bbx-stud-dog-row{ display:block; padding:50px 0 !important; margin:0 !important; }

/* Stud name size (template uses h2) */
.bbx-stud-dog-details h2{ font-size: 110px !important; line-height: 1; margin: 0 0 12px 0; }
@media (max-width: 820px){
  .bbx-stud-dog-details h2{ font-size: 72px !important; }
}

/* PROVEN overlay at 70% opacity with required color */
.bbx-proven-badge{
  background: rgba(240,183,76,0.7) !important;
}


.bbx-stud-single-header{ margin-left:0 !important; margin-right:0 !important; }



/* --- Full-bleed backgrounds WITHOUT shifting content --- */
.bbx-stud-dog-row,
.bbx-stud-single-header{
  position: relative !important;
  width: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.bbx-stud-dog-row::before,
.bbx-stud-single-header::before{
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
}

.bbx-stud-dog-row:nth-child(odd)::before{ background: var(--bbx-studs-row-bg-odd); }
.bbx-stud-dog-row:nth-child(even)::before{ background: var(--bbx-studs-row-bg-even); }
.bbx-stud-single-header::before{ background: var(--bbx-studs-row-bg-odd); }

/* If older full-bleed rule exists, neutralize it */
.bbx-stud-dog-row{ left: auto !important; }

/* --- Sizing tweaks requested --- */
/* Reduce stud name by 50% */
.bbx-stud-dog-details h2{ font-size: 55px !important; }
@media (max-width: 820px){
  .bbx-stud-dog-details h2{ font-size: 36px !important; }
}

/* Reduce PROVEN overlay by 25% */
.bbx-proven-badge{
  font-size: 24px !important;
  padding: 14px 21px !important;
}

/* Bold Description label */
.bbx-stud-desc-row .k{ font-weight: 800 !important; }


/* ===== Puppy-profile style panel for Stud details (public page) ===== */
.bbx-stud-panel{
  border-radius:18px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  padding:18px;
}
.bbx-stud-name{
  margin:0 0 12px;
  font-size:34px;
  line-height:1.15;
}
.bbx-stud-meta-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:8px;
}
@media (max-width:520px){
  .bbx-stud-meta-grid{grid-template-columns:1fr}
  .bbx-stud-name{font-size:28px}
}
.bbx-meta-item{
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(0,0,0,.02);
}
.bbx-meta-label{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
  opacity:.7;
}
.bbx-meta-value{
  margin-top:4px;
  font-size:16px;
  font-weight:600;
  line-height:1.45;
}
.bbx-stud-description{margin-top:16px}
.bbx-stud-desc-title{
  font-size:18px;
  margin:0 0 10px;
  font-weight:800;
}
.bbx-stud-desc-content p{margin:0 0 10px}
.bbx-stud-desc-content p:last-child{margin-bottom:0}
.bbx-stud-desc-content ul,
.bbx-stud-desc-content ol{margin:8px 0 8px 18px}


/* Layout: Fee + Birthday inline; Restrictions + Description full width */
.bbx-stud-meta-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.bbx-meta-item-full{
  width: 100%;
}

.bbx-meta-desc .bbx-meta-value{
  font-weight: 400;
}

.bbx-meta-desc .bbx-stud-desc-content p{ margin: 0 0 10px; }
.bbx-meta-desc .bbx-stud-desc-content p:last-child{ margin-bottom: 0; }
.bbx-meta-desc .bbx-stud-desc-content ul,
.bbx-meta-desc .bbx-stud-desc-content ol{ margin: 8px 0 8px 18px; }

@media (max-width:520px){
  .bbx-stud-meta-row{ grid-template-columns: 1fr; }
}


/* ===== Fix layout: Fee+Birthday inline; Restrictions full-width below; Description stays inside panel ===== */
.bbx-stud-meta-grid{
  display: block !important;
  margin-top: 8px !important;
}
.bbx-meta-item-full{
  display: block !important;
  width: 100% !important;
  margin-top: 10px !important;
}


/* ===== Fixed, consistent row height (Option C) ===== */
:root{
  --bbx-stud-row-height-desktop: 520px;
  --bbx-stud-row-image-height-mobile: 320px;
}

.bbx-stud-dog{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  min-height: var(--bbx-stud-row-height-desktop);
}

.bbx-stud-dog-media,
.bbx-stud-dog-details{
  height: 100%;
}

.bbx-stud-dog-media img{
  width: 100%;
  height: 100% !important;      /* fill to match details height */
  object-fit: cover;
}

/* Ensure the details panel stretches full height */
.bbx-stud-dog-details .bbx-stud-panel{
  height: 100%;
  display: flex;
  flex-direction: column;
}
/* Let description take remaining space when present */
.bbx-stud-dog-details .bbx-meta-desc{
  margin-top: auto;
}

/* Responsive: stack on mobile, keep consistent image height */
@media (max-width: 900px){
  .bbx-stud-dog{
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 16px;
  }
  .bbx-stud-dog-media img{
    height: var(--bbx-stud-row-image-height-mobile) !important;
  }
  .bbx-stud-dog-details .bbx-stud-panel{
    height: auto;
  }
  .bbx-stud-dog-details .bbx-meta-desc{
    margin-top: 16px;
  }
}

@media (max-width: 560px){
  :root{ --bbx-stud-row-image-height-mobile: 260px; }
}


/* Right column background override */
.bbx-stud-panel{ background:#F8F3E7 !important; }


/* ===== Center Stud Breed cards when fewer than 3 ===== */
/* Default: center grid items */
.bbx-studs-grid{
  justify-content: center;
}

/* If 3+ cards, return to normal alignment (modern browsers) */
.bbx-studs-grid:has(.bbx-stud-card:nth-child(3)){
  justify-content: flex-start;
}

/* Keep cards from stretching too wide when centered */
.bbx-stud-card{
  max-width: 420px;
}


/* ===== Center Stud Breed cards when fewer than 3 (count-based, shortcode) ===== */
.bbx-studs-grid--count-1,
.bbx-studs-grid--count-2{
  justify-content: center !important;
}


/* ===== Center [bbx_studs] cards when fewer than 3 ===== */
.bbx-studs-grid--count-1{
  grid-template-columns: repeat(1, minmax(0, 420px)) !important;
  justify-content: center !important;
}
.bbx-studs-grid--count-2{
  grid-template-columns: repeat(2, minmax(0, 420px)) !important;
  justify-content: center !important;
}
@media (max-width: 900px){
  .bbx-studs-grid--count-2{
    grid-template-columns: 1fr !important;
  }
}


/* ===== [bbx_studs] Centering overrides (reliable) ===== */
.bbx-studs-grid--count-1{
  grid-template-columns: repeat(1, minmax(0, 420px)) !important;
  justify-content: center !important;
}
.bbx-studs-grid--count-2{
  grid-template-columns: repeat(2, minmax(0, 420px)) !important;
  justify-content: center !important;
}

@media (max-width: 700px){
  .bbx-studs-grid--count-2{
    grid-template-columns: repeat(1, minmax(0, 420px)) !important;
  }
}

/* ===== [bbx_studs] Robust centering: switch studs grid to flex so last row centers naturally ===== */
.bbx-breeds-grid.bbx-studs-grid{
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 24px !important;
}

.bbx-breeds-grid.bbx-studs-grid .bbx-breed-card.bbx-stud-card{
  width: 100%;
  max-width: 460px;
  flex: 0 1 calc(25% - 24px);
}

/* 3 columns */
@media (max-width: 1200px){
  .bbx-breeds-grid.bbx-studs-grid .bbx-breed-card.bbx-stud-card{
    flex-basis: calc(33.333% - 24px);
  }
}

/* 2 columns */
@media (max-width: 900px){
  .bbx-breeds-grid.bbx-studs-grid .bbx-breed-card.bbx-stud-card{
    flex-basis: calc(50% - 24px);
  }
}

/* 1 column */
@media (max-width: 560px){
  .bbx-breeds-grid.bbx-studs-grid .bbx-breed-card.bbx-stud-card{
    flex-basis: 100%;
    max-width: 520px;
  }
}


/* ===== Bigger Stud cards (Option A): 3 per row on desktop; title unchanged ===== */
.bbx-breeds-grid.bbx-studs-grid .bbx-breed-card.bbx-stud-card{
  flex: 0 1 calc(33.333% - 24px) !important;
  max-width: 600px;
}

/* Tablet: 2 per row */
@media (max-width: 900px){
  .bbx-breeds-grid.bbx-studs-grid .bbx-breed-card.bbx-stud-card{
    flex-basis: calc(50% - 24px) !important;
  }
}

/* Mobile: 1 per row */
@media (max-width: 560px){
  .bbx-breeds-grid.bbx-studs-grid .bbx-breed-card.bbx-stud-card{
    flex-basis: 100% !important;
    max-width: 680px;
  }
}

/* Stud Dog Gallery */
/* ── Gallery Carousel ─────────────────────────────────────────── */
.bbx-carousel {
  position: relative;
  width: 100%;
  margin-top: 18px;
  user-select: none;
}

/* Viewport clips the scrolling track */
.bbx-carousel-viewport {
  overflow: hidden;
  border-radius: 14px;
}

/* Track scrolls horizontally via JS transform */
.bbx-carousel-track {
  display: flex;
  gap: 10px;
  transition: transform .35s cubic-bezier(.25,.8,.25,1);
  will-change: transform;
}

/* Each slide: 1/3 of viewport width (3-up on desktop) */
.bbx-carousel-slide {
  flex: 0 0 calc((100% - 20px) / 3);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  aspect-ratio: 2 / 3;
  cursor: zoom-in;
  display: block;
  text-decoration: none;
}
.bbx-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .3s ease;
}
.bbx-carousel-slide:hover img {
  transform: scale(1.04);
}

/* Prev / Next buttons */
.bbx-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-60%); /* account for dots below */
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.14);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  color: #333;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: background .18s, box-shadow .18s, transform .18s;
  padding: 0;
}
.bbx-carousel-btn:hover {
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.bbx-carousel-prev { left: -16px; }
.bbx-carousel-next { right: -16px; }
.bbx-carousel-btn:disabled {
  opacity: 0;
  pointer-events: none;
}

/* Dot indicators */
.bbx-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.bbx-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.2);
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.bbx-carousel-dot.is-active {
  background: #81B9A8;
  transform: scale(1.4);
}

@media (max-width: 520px) {
  /* 2-up on mobile */
  .bbx-carousel-slide {
    flex: 0 0 calc((100% - 10px) / 2);
  }
  .bbx-carousel-prev { left: -12px; }
  .bbx-carousel-next { right: -12px; }
  .bbx-carousel-btn { width: 30px; height: 30px; font-size: 18px; }
}

/* Puppies gallery container (stud page wrapper) */
.bbx-stud-gallery-wrap {
  width: 100%;
  margin-top: 18px;
  padding: 22px;
  border-radius: 22px;
  background: #F8F3E7;
}
.bbx-stud-gallery-label {
  font-size: 22px;
  font-weight: 700;
  text-align: left;
  margin: 0 0 14px 0;
}
@media (max-width: 520px) {
  .bbx-stud-gallery-wrap { padding: 16px; border-radius: 18px; }
  .bbx-stud-gallery-label { font-size: 20px; }
}

/* ===== Puppy Gallery Lightbox ===== */

/* ── Backdrop ───────────────────────────────────────────────────── */
.bbx-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Soft warm blur — not harsh black */
  background: rgba(30, 28, 26, 0.55);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .38s ease;
}
.bbx-lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* ── Stage ──────────────────────────────────────────────────────── */
.bbx-lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* ── Image card ─────────────────────────────────────────────────── */
.bbx-lightbox-img-wrap {
  position: relative;
  /* Portrait-optimised: tall images like puppy photos */
  max-width: min(720px, 90vw);
  max-height: 92vh;
  border-radius: 28px;
  overflow: hidden;
  /* Warm card shadow — layered for depth */
  box-shadow:
    0 2px 6px rgba(0,0,0,.08),
    0 12px 32px rgba(0,0,0,.18),
    0 40px 80px rgba(0,0,0,.28),
    0 0 0 1px rgba(255,255,255,.12);
  /* Entry animation */
  transform: scale(.9) translateY(24px);
  opacity: 0;
  transition:
    transform .42s cubic-bezier(.16,.84,.44,1),
    opacity .36s ease;
}
.bbx-lightbox-overlay.is-open .bbx-lightbox-img-wrap {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.bbx-lightbox-img-wrap img {
  display: block;
  max-width: min(720px, 90vw);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 28px;
}

/* ── Close button ───────────────────────────────────────────────── */
.bbx-lightbox-close {
  position: fixed;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Warm frosted glass pill */
  background: rgba(255, 252, 248, 0.18);
  border: 1.5px solid rgba(255, 252, 248, 0.32);
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .2s, transform .2s, border-color .2s;
  z-index: 3;
}
.bbx-lightbox-close:hover {
  background: rgba(255, 252, 248, 0.30);
  border-color: rgba(255,252,248,.55);
  transform: scale(1.1) rotate(90deg);
}

/* ── Prev / Next arrows ─────────────────────────────────────────── */
.bbx-lightbox-prev,
.bbx-lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 252, 248, 0.16);
  border: 1.5px solid rgba(255, 252, 248, 0.28);
  border-radius: 50%;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .2s, border-color .2s, transform .2s;
  z-index: 3;
  user-select: none;
}
.bbx-lightbox-prev { left: 22px; }
.bbx-lightbox-next { right: 22px; }

.bbx-lightbox-prev:hover {
  background: rgba(255,252,248,.28);
  border-color: rgba(255,252,248,.5);
  transform: translateY(-50%) scale(1.08);
}
.bbx-lightbox-next:hover {
  background: rgba(255,252,248,.28);
  border-color: rgba(255,252,248,.5);
  transform: translateY(-50%) scale(1.08);
}
.bbx-lightbox-prev.is-hidden,
.bbx-lightbox-next.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

/* ── Counter + dots ─────────────────────────────────────────────── */
.bbx-lightbox-counter {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

.bbx-lightbox-counter-text {
  color: rgba(255, 252, 248, 0.85);
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  background: rgba(30, 28, 26, 0.35);
  border: 1px solid rgba(255,252,248,.18);
  border-radius: 999px;
  padding: 5px 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Dot indicators — sage green accent */
.bbx-lightbox-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bbx-lightbox-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 252, 248, 0.30);
  cursor: pointer;
  transition: background .22s, transform .22s;
}
.bbx-lightbox-dot.is-active {
  background: #81B9A8;
  transform: scale(1.4);
}
.bbx-lightbox-dot:hover:not(.is-active) {
  background: rgba(255,252,248,.55);
}

/* ── Slide transition keyframes ─────────────────────────────────── */
.bbx-lightbox-img-wrap.slide-out-left {
  animation: lbSlideOutLeft .2s ease forwards;
}
.bbx-lightbox-img-wrap.slide-in-right {
  animation: lbSlideInRight .28s cubic-bezier(.16,.84,.44,1) forwards;
}
.bbx-lightbox-img-wrap.slide-out-right {
  animation: lbSlideOutRight .2s ease forwards;
}
.bbx-lightbox-img-wrap.slide-in-left {
  animation: lbSlideInLeft .28s cubic-bezier(.16,.84,.44,1) forwards;
}

@keyframes lbSlideOutLeft {
  to { opacity: 0; transform: scale(.94) translateX(-36px); }
}
@keyframes lbSlideInRight {
  from { opacity: 0; transform: scale(.94) translateX(36px); }
  to   { opacity: 1; transform: scale(1)   translateX(0); }
}
@keyframes lbSlideOutRight {
  to { opacity: 0; transform: scale(.94) translateX(36px); }
}
@keyframes lbSlideInLeft {
  from { opacity: 0; transform: scale(.94) translateX(-36px); }
  to   { opacity: 1; transform: scale(1)   translateX(0); }
}

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .bbx-lightbox-img-wrap {
    max-width: 96vw;
    border-radius: 20px;
  }
  .bbx-lightbox-img-wrap img {
    max-width: 96vw;
    border-radius: 20px;
  }
  .bbx-lightbox-prev  { left: 10px;  width: 42px; height: 42px; font-size: 20px; }
  .bbx-lightbox-next  { right: 10px; width: 42px; height: 42px; font-size: 20px; }
  .bbx-lightbox-close { top: 14px; right: 14px; width: 40px; height: 40px; }
  .bbx-lightbox-counter { bottom: 18px; }
}


*{ 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; }

*{ 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; }
/* ── Puppy Manager front.css ── */

/* Simple "profile" layout for single Puppy pages */
.bbx-puppy-profile{max-width:1100px;margin:0 auto;padding:24px 16px}
.bbx-puppy-card{display:grid;grid-template-columns:1.1fr 0.9fr;gap:18px;align-items:stretch}
@media (max-width:900px){.bbx-puppy-card{grid-template-columns:1fr}}
.bbx-puppy-hero{border-radius:18px;overflow:hidden;border:1px solid rgba(0,0,0,.08);background:#fff;position:relative;line-height:0;height:100%}
.bbx-puppy-hero img{
  width:100%;
  height:100%;
  min-height:480px;
  object-fit:cover;
  object-position: top center;
  display:block;
  vertical-align: top;
position:relative;z-index:1}
@media (max-width:900px){
  .bbx-puppy-hero img{
  width:100%;
  height:100%;
  min-height:480px;
  object-fit:cover;
  object-position: top center;
  display:block;
  vertical-align: top;
}
}
.bbx-puppy-panel{border-radius:18px;border:1px solid rgba(0,0,0,.08);background:#fff;padding:18px}
.bbx-puppy-title{margin:0 0 10px;font-size:34px;line-height:1.15}
.bbx-puppy-badges{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.bbx-badge{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;border:1px solid rgba(0,0,0,.10);background:rgba(0,0,0,.03);font-size:13px;line-height:1}
.bbx-puppy-price{font-size:26px;font-weight:700;margin:8px 0 0}
.bbx-puppy-price-note{display:block;font-size:12px;font-weight:500;opacity:.6;letter-spacing:.04em;text-transform:uppercase;margin-top:2px}
.bbx-puppy-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
@media (max-width:520px){.bbx-puppy-meta{grid-template-columns:1fr}}
.bbx-meta-item{padding:12px;border-radius:14px;border:1px solid rgba(0,0,0,.08);background:rgba(0,0,0,.02)}
.bbx-meta-label{font-size:12px;text-transform:uppercase;letter-spacing:.04em;opacity:.7}
.bbx-meta-value{margin-top:4px;font-size:16px;font-weight:600}
.bbx-puppy-description{margin-top:18px}
.bbx-puppy-description h2{font-size:18px;margin:0 0 10px}
.bbx-puppy-gallery{margin-top:18px}
.bbx-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
@media (max-width:900px){.bbx-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:520px){.bbx-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.bbx-gallery-grid a{display:block;border-radius:14px;overflow:hidden;border:1px solid rgba(0,0,0,.08);background:#fff}
.bbx-gallery-grid a{aspect-ratio:3/4}
.bbx-gallery-grid img{width:100%;height:100%;object-fit:contain;display:block;background:rgba(0,0,0,.02)}

/* Reserve button */
.bbx-reserve-cta{margin-top:16px;display:flex;justify-content:center}
.bbx-puppy-actions{display:flex;flex-direction:column;gap:10px;margin-top:20px}
.bbx-puppy-actions .bbx-back-btn{margin-left:0}
.bbx-reserve-btn{
  background-color:#F0B74C;
  font-size:20px;
  font-weight:700;
  line-height:20px;
  border-radius:25px;
  font-family:"Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  padding:14px 28px;
  color:#111;
  text-decoration:none;
  display:inline-block;
}
.bbx-puppy-actions .bbx-reserve-btn{
  display:block;
  text-align:center;
  width:100%;
  box-sizing:border-box;
}
.bbx-reserve-btn:hover{filter:brightness(.95)}
.bbx-reserve-btn:active{transform:translateY(1px)}
.bbx-back-btn{
  background-color:rgba(0,0,0,.08) !important;
  color:#555 !important;
  font-weight:500 !important;
  font-size:16px !important;
}

/* RESERVED overlay */
.bbx-puppy-hero.is-reserved img{filter:brightness(.45)}
.bbx-reserved-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:0;margin:0;box-sizing:border-box;pointer-events:none;overflow:hidden;z-index:5}

/* Lightbox */
body.bbx-lightbox-open{overflow:hidden}
.bbx-lightbox-overlay{position:fixed;inset:0;display:none;z-index:99999}
.bbx-lightbox-overlay.is-open{display:block}
.bbx-lightbox-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72)}
.bbx-lightbox-dialog{
  position:absolute;left:50%;top:50%;
  transform:translate(-50%,-50%);
  width:min(1100px, calc(100vw - 28px));
  height:min(80vh, 760px);
  display:flex;align-items:center;justify-content:center;
}
.bbx-lightbox-img{
  max-width:100%;max-height:100%;
  border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  background:#111;
}
.bbx-lightbox-close{
  position:absolute;right:-6px;top:-10px;
  width:44px;height:44px;border-radius:999px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(0,0,0,.35);
  color:#fff;font-size:28px;line-height:40px;cursor:pointer;
}
.bbx-lightbox-nav{
  position:absolute;top:50%;transform:translateY(-50%);
  width:44px;height:44px;border-radius:999px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(0,0,0,.35);
  color:#fff;font-size:34px;line-height:38px;cursor:pointer;
}
.bbx-lightbox-prev{left:-6px}
.bbx-lightbox-next{right:-6px}
@media (max-width:520px){
  .bbx-lightbox-prev{left:6px}
  .bbx-lightbox-next{right:6px}
  .bbx-lightbox-close{right:6px}
}

.bbx-puppy-hero.is-reserved .bbx-puppy-hero-bg{filter:brightness(.55)}

.bbx-puppy-hero-empty{
  height:100%;
  min-height:480px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.03);
  color:rgba(0,0,0,0.55);
  font-style:italic;
}
@media (max-width:900px){
  .bbx-puppy-hero-empty{height:100%;min-height:360px}
}

.bbx-reserved-overlay-img{max-width:100% !important;max-height:100% !important;width:auto !important;height:auto !important;object-fit:contain;display:block}


/* --- Pending + Guardianship overlays (v1.5.59) --- */
.bbx-puppy-hero{ position:relative; }

.bbx-pending-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;z-index:4}
.bbx-pending-overlay-img{
  max-width:100%;
  max-height:100%;
  width:100%;
  height:100%;
  object-fit:contain;
}

.bbx-guardianship-badge{position:absolute;top:12px;right:12px;background:rgba(0,0,0,0.35);color:#fff;font-size:12px;font-weight:600;padding:6px 10px;border-radius:999px;letter-spacing:0.2px;pointer-events:none;z-index:6}


/* Pending overlay (single puppy hero) */
.bbx-puppy-hero-inner{ position: relative; }
.bbx-puppy-pending-overlay,
.bbx-puppy-reserved-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}
.bbx-puppy-pending-overlay img,
.bbx-puppy-reserved-overlay img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
}

/* Guardianship badge (subtle, top-right) */
.bbx-puppy-guardianship-badge{
  position:absolute;
  top:12px;
  right:12px;
  font-size:12px;
  font-weight:600;
  letter-spacing:.02em;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,0.75);
  color:#111;
  pointer-events:none;
}

/* Back button */
.bbx-back-wrap{
  display:flex;
  justify-content:flex-end;
  margin-top:30px;
}
.bbx-back-btn{
  background-color:#F0B74C;
  font-size:20px;
  font-weight:700;
  line-height:20px;
  border-radius:25px;
  padding:14px 28px;
  border:none;
  cursor:pointer;
}
.bbx-back-btn:hover{
  opacity:0.9;
}

/* Back button inside puppy panel */
.bbx-back-cta{position:absolute;right:24px;bottom:24px;}

.bbx-puppy-panel{position:relative;padding-bottom:90px;}

button.bbx-reserve-btn{-webkit-appearance:none;appearance:none;border:none;}

/* YouTube embed in puppy profile */
.bbx-puppy-video{
  margin: 20px 0;
}
.bbx-puppy-video iframe{
  max-width: 100%;
}



/* YouTube embed: standard 16:9 landscape (no layout shift) */
.bbx-puppy-video{
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  margin: 20px 0;
  overflow: hidden;
  border-radius: 12px;
}
.bbx-puppy-video iframe,
.bbx-puppy-video embed,
.bbx-puppy-video object{
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* No-video placeholder — same 16:9 box, centred text */
.bbx-puppy-video-placeholder {
  background: linear-gradient(135deg, #e8f4f1 0%, #d4eae4 100%);
  border: 2px dashed rgba(129, 185, 168, 0.5);
}
.bbx-puppy-video-placeholder-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}
.bbx-puppy-video-placeholder-icon {
  font-size: 36px;
  line-height: 1;
  opacity: 0.7;
}
.bbx-puppy-video-placeholder-inner p {
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #4a8a78;
  margin: 0;
  text-align: center;
}

/* Gallery carousel below video — inherits same 100% width as .bbx-puppy-video */
.bbx-puppy-gallery-carousel {
  width: 100%;
  margin-top: 20px;
}
.bbx-puppy-gallery-carousel .bbx-carousel {
  margin-top: 0;
}

/* Gallery thumbnails: portrait + no cropping */
.bbx-gallery-grid a{aspect-ratio:3/4}
.bbx-gallery-grid img{height:100%;object-fit:contain;background:rgba(0,0,0,.02)}

/* Lightbox polish */
.bbx-lightbox-overlay{opacity:0;transition:opacity .18s ease}
.bbx-lightbox-overlay.is-open{opacity:1}
.bbx-lightbox-dialog{gap:0}
.bbx-lightbox-topbar{
  position:absolute;left:0;right:0;top:-54px;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 6px;
}
.bbx-lightbox-counter{
  color:rgba(255,255,255,.85);
  font-size:14px;
  letter-spacing:.3px;
}
.bbx-lightbox-stage{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.bbx-lightbox-img{transition:opacity .18s ease}
.bbx-lightbox-spinner{
  width:44px;height:44px;border-radius:999px;
  border:3px solid rgba(255,255,255,.22);
  border-top-color:rgba(255,255,255,.75);
  animation:bbxSpin .8s linear infinite;
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
}
@keyframes bbxSpin{to{transform:translate(-50%,-50%) rotate(360deg)}}


.bbx-lightbox-nav{
  width:48px;
  height:48px;
  font-size:26px;
  font-weight:600;
  background:rgba(0,0,0,0.55);
  border:1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(4px);
}

.bbx-lightbox-nav:hover,
.bbx-lightbox-close:hover{
  background:rgba(0,0,0,0.75);
}

.bbx-lightbox-prev{ left:12px; }
.bbx-lightbox-next{ right:12px; }

.bbx-lightbox-close{
  top:-48px;
  right:0;
}



/* --- Lightbox buttons styled like Reserve button --- */
.bbx-lightbox-nav,
.bbx-lightbox-close{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:52px;
  height:52px;
  border-radius:50%;
  background:#F0B74C;
  color:#111;
  border:none;
  font-size:22px;
  font-weight:700;
  line-height:1;
  box-shadow:0 6px 18px rgba(0,0,0,0.25);
  transition:all .18s ease;
}

.bbx-lightbox-nav:hover,
.bbx-lightbox-close:hover{
  background:#F0B74C;
  color:#fff;
}

.bbx-lightbox-prev{ left:20px; }
.bbx-lightbox-next{ right:20px; }

.bbx-lightbox-close{
  top:-60px;
  right:0;
}



/* --- FINAL OVERRIDE: Lightbox buttons match Reserve button --- */
body .bbx-lightbox-overlay .bbx-lightbox-nav,
body .bbx-lightbox-overlay .bbx-lightbox-close{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:56px !important;
  height:56px !important;
  border-radius:999px !important;
  background:#F0B74C !important;
  color:#111 !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:0 10px 22px rgba(0,0,0,0.28) !important;
  cursor:pointer !important;
  padding:0 !important;
  line-height:1 !important;
  font-weight:800 !important;
}

body .bbx-lightbox-overlay .bbx-lightbox-nav{
  font-size:34px !important;
}

body .bbx-lightbox-overlay .bbx-lightbox-close{
  font-size:28px !important;
}

body .bbx-lightbox-overlay .bbx-lightbox-nav:hover,
body .bbx-lightbox-overlay .bbx-lightbox-close:hover{
  background:#F0B74C !important;
  color:#fff !important;
}

body .bbx-lightbox-overlay .bbx-lightbox-prev{ left:18px !important; }
body .bbx-lightbox-overlay .bbx-lightbox-next{ right:18px !important; }
body .bbx-lightbox-overlay .bbx-lightbox-close{ top:-64px !important; right:0 !important; }


/* --- Fix: keep lightbox close button inside viewport --- */
body .bbx-lightbox-overlay .bbx-lightbox-close{
  position:fixed !important;
  top:16px !important;
  right:16px !important;
  z-index:10003 !important;
}
