.brand-links-section {
  margin: 20px 0;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 12px;
}

.brand-links-heading {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
}

.brand-links-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.brand-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px 10px;
  background: white;
  transition: all 0.2s ease;
}

.brand-link:hover {
  border-color: #7a9e60;
  background: #f0fff0;
}

.brand-link .link-label {
  font-weight: 600;
  color: #333;
}

.brand-link .link-domain {
  font-size: 0.8rem;
  color: #666;
}

.brand-link.official { border-left: 4px solid #3a7; }
.brand-link.retailer { border-left: 4px solid #08c; }
.brand-link.affiliate { border-left: 4px solid #c60; }

.brand-link.inactive {
  opacity: 0.6;
  pointer-events: none;
}

/* ==============================================
   affiliate products
   ============================================== */
   .affiliate-products-section {
  margin: 30px 0;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.affiliate-heading {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
}

.affiliate-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.affiliate-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  background: #fafafa;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.affiliate-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.affiliate-image img {
  width: 100%;
  height: auto;
  display: block;
}

.affiliate-info {
  padding: 10px;
  text-align: center;
}

.affiliate-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.affiliate-pricing {
  font-size: 0.9rem;
}

.price-sale {
  color: #d00;
  font-weight: 700;
  margin-right: 6px;
}

.price-retail s {
  color: #888;
}

.viewmore-btn {
  display: inline-block;
  background: #226b39;
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.viewmore-btn:hover {
  background: #2b8048;
}

.affiliate-viewmore {
  text-align: center;
  margin-top: 16px;
}
/* ==============================================
   video section
   ============================================== */
.brand-videos-section {
  margin: 30px 0;
  padding: 16px;
  background: #fafafa;
  border-radius: 12px;
}

.brand-videos-heading {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 15px;
}

.brand-videos-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.video-card {
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  background: white;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.play-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: white;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.video-info {
  padding: 10px;
}

.video-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 5px;
}

.video-desc {
  font-size: 0.85rem;
  color: #666;
}

/* --- Mobile-first, app-like design for brand_header_block.php--- */
.brand-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: #fafafa;
  border-bottom: 1px solid #ddd;
}
.brand-logo-container {
  width: 120px;
  height: auto;
  margin-bottom: 1rem;
}
.brand-logo {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}
.brand-info {
  margin-bottom: 0.75rem;
}
.brand-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #222;
  margin: 0.25rem 0;
}
.brand-official-link {
  display: inline-block;
  margin-top: 0.25rem;
  background: #2a5d34;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  font-size: 0.9rem;
  text-decoration: none;
}
.brand-official-link:hover {
  background: #367d46;
}
.brand-description-container {
  max-width: 600px;
  margin-top: 1rem;
  position: relative;
}
.brand-description {
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
  max-height: 4.5em;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.brand-description.expanded {
  max-height: none;
}
.toggle-description {
  background: none;
  border: none;
  color: #0066cc;
  cursor: pointer;
  margin-top: 0.3rem;
  font-size: 0.9rem;
}

/* --- Desktop scaling --- */
@media (min-width: 768px) {
  .brand-hero {
    flex-direction: row;
    justify-content: center;
    text-align: left;
    gap: 2rem;
  }
  .brand-logo-container {
    width: 150px;
    flex-shrink: 0;
  }
  .brand-info {
    flex: 1;
  }
  .brand-description-container {
    max-width: 700px;
  }
}
/* --- Brand Patterns Grid --- */
.brand-patterns-section {
  padding: 1.5rem 1rem;
  background: #fff;
  border-top: 1px solid #ddd;
}
.brand-section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 1rem;
}
.brand-patterns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.pattern-card {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pattern-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}
.pattern-thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.pattern-sale-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #d22;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
}
.pattern-info {
  padding: 0.5rem;
  text-align: center;
}
.pattern-name {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  margin: 0;
}
.pattern-name a {
  color: inherit;
  text-decoration: none;
}
.pattern-name a:hover {
  text-decoration: underline;
}

/* --- Responsive spacing --- */
@media (min-width: 768px) {
  .brand-patterns-section {
    padding: 2rem 1rem;
  }
  .brand-section-title {
    font-size: 1.8rem;
  }
}
/* --- Brand Promos Section --- */
.brand-promos-section {
    margin: 40px 0;
    padding: 0 15px;
}

.brand-promos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.promo-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    border-left: 6px solid #2a7cff;
    display: flex;
    flex-direction: column;
}
.promo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.promo-type {
  background: #333;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.4rem 0.6rem;
}
.promo-card.sale .promo-type {
  background: #0a7;
}
.promo-card.promo .promo-type {
  background: #c30;
}
.promo-content {
  padding: 1rem;
  text-align: center;
}
.promo-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.3rem;
}
.promo-desc {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.5rem;
}
.promo-code-label {
  margin: 0.5rem 0 0.2rem;
  font-weight: 600;
  color: #333;
}
.promo-code {
  display: inline-block;
  background: #eee;
  border: 1px dashed #666;
  padding: 5px 10px;
  font-weight: bold;
  letter-spacing: 1px;
  font-family: monospace;
  margin-bottom: 0.5rem;
}
.promo-end {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 0.8rem;
}
.promo-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}
.promo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #2a7cff;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-main h3.promo-code {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.promo-code span {
    background: #eef3ff;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 17px;
}

.promo-desc {
    margin: 8px 0;
    font-size: 15px;
    color: #444;
}

.promo-expiry {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.promo-btn {
    background: #2a7cff;
    color: #fff;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    transition: 0.2s;
}

.promo-btn:hover {
    background: #1b5fd6;
}
.sale-badge {
    background: #27ae60 !important;
}

.promo-badge-type {
    background: #2a7cff !important;
}
/* --- Brand Videos --- */
.brand-videos-section {
  padding: 1.5rem 1rem 2rem;
  background: #fff;
  border-top: 1px solid #ddd;
}
.brand-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.video-card {
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.video-card:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.video-thumb iframe,
.video-thumb img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  border: none;
}
.video-info {
  padding: 0.75rem 1rem;
  text-align: center;
}
.video-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.4rem;
}
.video-desc {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.5rem;
}
.video-date {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 0.8rem;
}
.video-btn {
  display: inline-block;
  background: #222;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}
.video-btn:hover {
  background: #444;
}
/* --- Affiliate Products (CamoHuntnStuff feed) --- */
.brand-affiliate-section {
  padding: 1.5rem 1rem 2rem;
  background: #fafafa;
  border-top: 1px solid #ddd;
}
.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.affiliate-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.affiliate-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.affiliate-thumb {
  display: block;
  position: relative;
}
.affiliate-thumb img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.affiliate-sale-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #c30;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
}
.affiliate-info {
  padding: 0.6rem 0.8rem;
  text-align: center;
}
.affiliate-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.affiliate-name a {
  color: #222;
  text-decoration: none;
}
.affiliate-name a:hover {
  text-decoration: underline;
}
.affiliate-pricing {
  font-size: 0.9rem;
  color: #222;
}
.affiliate-sale-price {
  color: #c30;
  font-weight: 700;
  margin-right: 5px;
}
.affiliate-retail-price s {
  color: #777;
  font-size: 0.85rem;
}
.affiliate-footer {
  text-align: center;
  margin-top: 1.5rem;
}
.affiliate-browse-btn {
  display: inline-block;
  background: #222;
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}
.affiliate-browse-btn:hover {
  background: #444;
}
/* === Brand Selector Bar === */
.brand-selector-bar {
  position: sticky;
  top: 60px; /* stays just below the main nav */
  z-index: 900;
  background-color: #3e3e3e;
  text-align: center;
  padding: 12px;
  border-bottom: 1px solid #555;
  color: #fff;
}

.brand-selector-bar label {
  font-weight: 600;
  color: #ffd700;
  margin-right: 8px;
}

#brand-select {
  background-color: #2b2b2b;
  color: #fff;
  border: 1px solid #555;
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 16px;
  max-width: 90%;
}

#brand-select optgroup {
  color: #ffd700;
  background-color: #2b2b2b;
  font-weight: bold;
}

#brand-select option {
  background-color: #2b2b2b;
  color: #fff;
}

#brand-select:hover,
#brand-select:focus {
  border-color: #d9534f;
  outline: none;
}
