/**
 * Jene Pascal Brands - Frontend Editorial Styling
 */

/* Brand Hero */
.jp-brand-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0d0d0d;
  color: #ffffff;
  overflow: hidden;
  margin-bottom: 60px;
}

.jp-brand-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: contrast(1.05);
}

.jp-brand-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  padding: 60px 24px;
}

.jp-brand-logo-wrap {
  max-width: 160px;
  margin: 0 auto 20px;
}

.jp-brand-logo-wrap img {
  max-height: 80px;
  width: auto;
  margin: 0 auto;
  filter: brightness(0) invert(1);
}

.jp-brand-title {
  font-family: var(--jp-font-heading, 'Syne', sans-serif);
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 16px;
}

.jp-brand-short-desc {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin-bottom: 24px;
}

.jp-brand-social-links {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 8px 20px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.jp-brand-social-links a {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.jp-brand-social-links a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Brand Statement / Manifesto Banner */
.jp-brand-statement-banner {
  padding: 50px 32px;
  text-align: center;
  background-color: var(--jp-bg-subtle, #f8f8f7);
  border-left: 6px solid var(--jp-brand-accent, #000000);
  margin-bottom: 60px;
  border-radius: 2px;
}

.jp-brand-statement-text {
  font-family: var(--jp-font-heading, 'Syne', sans-serif);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  max-width: 900px;
  margin: 0 auto;
}

/* Dual Column Story Section */
.jp-brand-stories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  margin-bottom: 70px;
}

@media (max-width: 860px) {
  .jp-brand-stories-grid {
    grid-template-columns: 1fr;
  }
}

.jp-brand-story-block h3 {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--jp-border, #e8e8e6);
  padding-bottom: 10px;
}

.jp-brand-story-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--jp-text-muted, #555555);
}

.jp-brand-story-content p {
  margin-bottom: 16px;
}

/* Lookbook Photography Gallery */
.jp-lookbook-section {
  margin-bottom: 80px;
}

.jp-lookbook-header {
  margin-bottom: 24px;
}

.jp-lookbook-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--jp-brand-accent, #000000);
  display: block;
  margin-bottom: 6px;
}

.jp-lookbook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .jp-lookbook-grid {
    grid-template-columns: 1fr;
  }
}

.jp-lookbook-item {
  aspect-ratio: 4 / 5;
  background-color: #f0f0ef;
  overflow: hidden;
  border-radius: 2px;
}

.jp-lookbook-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.jp-lookbook-item:hover img {
  transform: scale(1.04);
}

/* Culture & Community Section (Split Banner) */
.jp-brand-community-banner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background-color: #121212;
  color: #ffffff;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 80px;
}

@media (max-width: 900px) {
  .jp-brand-community-banner {
    grid-template-columns: 1fr;
  }
}

.jp-brand-comm-media {
  min-height: 380px;
  overflow: hidden;
}

.jp-brand-comm-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jp-brand-comm-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px);
}

.jp-brand-comm-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.jp-brand-comm-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 18px;
  color: #ffffff;
}

.jp-brand-comm-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

/* Video Player */
.jp-brand-video-wrap {
  margin-bottom: 80px;
  text-align: center;
}

.jp-video-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 3px;
  background-color: #000000;
}

.jp-video-responsive iframe,
.jp-video-responsive video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Featured Collection Banner */
.jp-brand-collection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background-color: var(--jp-bg-subtle, #f8f8f7);
  border: 1px solid var(--jp-border, #e8e8e6);
  margin-bottom: 40px;
}

.jp-collection-name {
  font-family: var(--jp-font-heading, 'Syne', sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Directory Page (/brands/) */
.jp-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

@media (max-width: 500px) {
  .jp-directory-grid {
    grid-template-columns: 1fr;
  }
}

.jp-directory-card {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: #121212;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.jp-directory-card img.jp-dir-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.jp-directory-card:hover img.jp-dir-bg {
  transform: scale(1.05);
  opacity: 0.65;
}

.jp-directory-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px;
  color: #ffffff;
}

.jp-directory-logo {
  max-height: 48px;
  max-width: 120px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}

.jp-directory-title {
  font-family: var(--jp-font-heading, 'Syne', sans-serif);
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #ffffff;
}

.jp-directory-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
  margin-bottom: 14px;
}

.jp-directory-action {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Storefront Filter Toolbar & Slide-Out Drawer Panel
   ========================================================================== */
.jp-filter-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--jp-border, #e8e8e6);
}

.jp-filter-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: var(--jp-bg-subtle, #f8f8f7);
  border: 1px solid var(--jp-border, #e8e8e6);
  border-radius: 2px;
  font-family: var(--jp-font-body, inherit);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jp-text, #121212);
  cursor: pointer;
  transition: all 0.2s ease;
}

.jp-filter-trigger-btn:hover {
  background-color: var(--jp-text, #121212);
  color: #ffffff;
}

.jp-filter-badge {
  background-color: var(--jp-text, #121212);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 2px;
}

.jp-filter-trigger-btn:hover .jp-filter-badge {
  background-color: #ffffff;
  color: #000000;
}

.jp-filter-clear-all {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--jp-badge-red, #c0392b);
}

/* Slide-Out Drawer Panel (Mobile & Desktop) */
.jp-filter-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 250;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.jp-filter-drawer.is-active {
  visibility: visible;
  opacity: 1;
}

.jp-filter-drawer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.jp-filter-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 420px;
  height: 100%;
  background-color: #ffffff;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 32px 28px;
}

.jp-filter-drawer.is-active .jp-filter-drawer-panel {
  transform: translateX(0);
}

.jp-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--jp-border, #e8e8e6);
  margin-bottom: 24px;
}

.jp-drawer-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--jp-text, #121212);
  cursor: pointer;
  padding: 4px;
}

.jp-filter-group {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--jp-border, #e8e8e6);
}

.jp-filter-group-title {
  font-family: var(--jp-font-heading, 'Syne', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--jp-text, #121212);
}

.jp-filter-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
}

.jp-filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  cursor: pointer;
}

.jp-filter-count {
  color: var(--jp-text-muted, #777777);
  font-size: 0.78rem;
}

/* Chips (Size, Gender) */
.jp-filter-chips {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  max-height: none;
}

.jp-chip-label {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--jp-border, #e8e8e6);
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.jp-chip-label input {
  display: none;
}

.jp-chip-label.is-active,
.jp-chip-label:hover {
  border-color: #000000;
  background-color: #000000;
  color: #ffffff;
}

/* Swatches (Color) */
.jp-filter-swatches {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  max-height: none;
}

.jp-swatch-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--jp-border, #e8e8e6);
  border-radius: 2px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.jp-swatch-label input {
  display: none;
}

.jp-swatch-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  display: inline-block;
}

.jp-swatch-label.is-active,
.jp-swatch-label:hover {
  border-color: #000000;
  background-color: var(--jp-bg-subtle, #f8f8f7);
}

.jp-filter-price-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--jp-border, #e8e8e6);
  border-radius: 2px;
  font-size: 0.85rem;
  outline: none;
}

.jp-drawer-footer {
  margin-top: auto;
  padding-top: 20px;
}
