/* COFL — Brand Badges (Multi-Brand)
   IMPORTANT: Only show when a real logo is set.
   Add/extend brand blocks below as you add assets.
*/

/* --- Base (hidden by default) --- */
.brand-badge {
  display: none;                   /* collapses when no logo */
  width: 140px;                    /* adjust per brand if needed */
  height: 110px;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  background-image: var(--brand-logo, none); /* CSS var-based logo hook */
  line-height: 0;
}

/* If a background-image is set inline (e.g., via PHP), show it */
.brand-badge[style*="background-image"] {
  display: block;
}

/* Remove wrapper spacing; we’ll add spacing on visible badges only */
.single-product .product .product_title + .brand-badge-wrap {
  margin-top: 0;
}

/* When a known logo is present, show the badge + add the spacing */
.brand-badge--rolex,
.brand-badge--cartier,
.brand-badge--omega,
.brand-badge--iwc, 
.brand-badge--heuer, 
.brand-badge--breitling {
  display: block;
  margin-top: 2px;                 /* adjust to taste */
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .brand-badge {
    background-position: center center; /* center the SVG */
    margin-left: auto;
    margin-right: auto;                  /* center the box itself */
    display: block;                      /* make sure it still shows */
  }
}


/* --- Brand-specific logo assignments (set the CSS var) --- */

/* Rolex */
.brand-badge--rolex {
  --brand-logo: url('https://comberoflewes.co.uk/wp-content/uploads/2025/08/rolex-logo.svg');
}

/* Cartier */
.brand-badge--cartier {
  --brand-logo: url('https://comberoflewes.co.uk/wp-content/uploads/2025/08/logo-cartier.svg');
}

/* Universal Geneve */
.brand-badge--universal-geneve {
  --brand-logo: url('https://comberoflewes.co.uk/wp-content/uploads/2025/08/universal-geneve.svg');
}

/* Omega */
.brand-badge--omega {
  --brand-logo: url('https://comberoflewes.co.uk/wp-content/uploads/2025/08/omega-logo-1.svg');
}

/* International Watch Company (IWC) — note HTTPS fix */
.brand-badge--iwc {
  --brand-logo: url('https://comberoflewes.co.uk/wp-content/uploads/2025/08/iwc-schaffhausen.svg');
}

/* Heuer */
.brand-badge--heuer {
  --brand-logo: url('https://comberoflewes.co.uk/wp-content/uploads/2025/08/heuer_logo.svg');
}

/* Breitling */
.brand-badge--breitling {
  --brand-logo: url('https://comberoflewes.co.uk/wp-content/uploads/2025/09/breitling-logo-1.svg');}


/* --- Add new brands here by setting --brand-logo and leaving display:block --- */
/* Example (uncomment when you have the asset):
.brand-badge--heuer {
  --brand-logo: url('https://comberoflewes.co.uk/wp-content/uploads/2025/08/heuer-logo.svg');
  display: block;
  margin-top: 2px;
}
*/

/* --- Optional per-brand size overrides (uncomment & tweak)
.brand-badge--cartier { width: 120px; height: 24px; }
.brand-badge--patek-philippe { width: 160px; height: 30px; }
--- */
