/* ========== Brand Page Shared Styles ========== */

/* Breadcrumb */
.breadcrumb { padding: 16px 0; font-size: 14px; }
.breadcrumb .container { display: flex; align-items: center; gap: 8px; }
.breadcrumb a { color: var(--color-executive-navy); opacity: 0.6; text-decoration: none; }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb-sep { width: 14px; height: 14px; opacity: 0.4; }
.breadcrumb span { color: var(--color-executive-navy); font-weight: 600; }

/* Brand Hero */
.brand-hero {
  position: relative;
  background: linear-gradient(135deg, #fef0f5 0%, #f3e8f9 40%, var(--color-glow-cream) 100%);
  padding: 60px 0;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.brand-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,226,112,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.brand-hero-content { position: relative; z-index: 1; }
.brand-hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.8);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-executive-navy);
  margin-bottom: 16px;
  border: 1px solid rgba(17,26,53,0.06);
}
.brand-hero h1 {
  font-family: var(--font-headings);
  font-size: 3rem;
  color: var(--color-executive-navy);
  margin: 0 0 12px;
  font-weight: 700;
}
.brand-hero p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--color-ink-charcoal);
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.8;
}

/* Brand Products Section */
.brand-products {
  padding: 40px 0 80px;
  background: var(--color-glow-cream);
  min-height: 300px;
}

.brand-results {
  font-size: 14px;
  color: rgba(17,26,53,0.5);
  margin-bottom: 24px;
  font-weight: 500;
}
.brand-results strong {
  color: var(--color-executive-navy);
}

.brand-empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(17,26,53,0.5);
}
.brand-empty svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  opacity: 0.3;
  display: block;
}
.brand-empty h3 {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  color: var(--color-executive-navy);
  margin-bottom: 8px;
}
.brand-empty p {
  margin-bottom: 24px;
  opacity: 0.7;
}

/* Products Grid */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) {
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Product Card */
.bp-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(17,26,53,0.04);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(17,26,53,0.04);
  position: relative;
}
.bp-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(17,26,53,0.08);
}
.bp-card.hidden { display: none !important; }

.bp-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bp-img-wrap {
  position: relative;
  background: linear-gradient(135deg, #fafafa 0%, #f5f0eb 100%);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
}
.bp-img-wrap img {
  max-height: 100%;
  max-width: 80%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.bp-card:hover .bp-img-wrap img { transform: scale(1.08); }

/* Badge */
.bp-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-headings);
  z-index: 2;
}
.bp-badge--soldout {
  background: #EF4444;
  color: #fff;
}
.bp-badge--low {
  background: var(--color-mochi-yellow);
  color: var(--color-executive-navy);
}

/* Card Info */
.bp-brand {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-executive-navy);
  opacity: 0.45;
  font-weight: 600;
  padding: 20px 20px 0;
}
.bp-name {
  font-family: var(--font-headings);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-executive-navy);
  margin: 6px 0 8px;
  line-height: 1.3;
  padding: 0 20px;
}
.bp-desc {
  font-size: 13px;
  color: var(--color-ink-charcoal);
  opacity: 0.6;
  line-height: 1.5;
  padding: 0 20px;
  margin: 0 0 12px;
}
.bp-skin-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 20px;
  margin-bottom: 12px;
}
.bp-skin-tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--color-glow-cream);
  color: var(--color-executive-navy);
  border: 1px solid rgba(17,26,53,0.06);
}

/* Price Row */
.bp-price-row {
  margin-top: auto;
  padding: 14px 20px 0;
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bp-price {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-executive-navy);
}
.bp-stock-indicator {
  font-size: 12px;
  color: #f59e0b;
  font-weight: 600;
}

/* Add to Cart Button */
.bp-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 32px);
  margin: 16px auto;
  padding: 12px 20px;
  background: var(--color-executive-navy);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: var(--font-headings);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.bp-add-cart:hover {
  background: #1e2d52;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17,26,53,0.2);
}
.bp-add-cart--disabled {
  background: #ccc;
  cursor: not-allowed;
}
.bp-add-cart--disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Sold Out Card */
.bp-card--soldout {
  opacity: 0.7;
}
.bp-card--soldout .bp-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.3);
  z-index: 1;
}

/* Animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .brand-hero { padding: 40px 0; }
  .brand-hero h1 { font-size: 2.2rem; }
  .brand-grid { grid-template-columns: 1fr; }
  .bp-img-wrap { height: 200px; }
}

@media (max-width: 480px) {
  .brand-hero { padding: 30px 0; }
  .brand-hero h1 { font-size: 1.8rem; }
}
