/* =====================================
   Brands Page Styles
   ===================================== */

.brands-page {
  width: 100%;
  background: #222222;
  color: #ffffff;
  min-height: 100vh;
}

.brands-page *,
.brands-page *::before,
.brands-page *::after {
  box-sizing: border-box;
}

/* =====================================
   Hero Section
   ===================================== */
.brands-hero {
  position: relative;
  width: 100%;
  height: 394px;
  overflow: hidden;
  margin-bottom: 40px;
}

.brands-hero__image-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.brands-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brands-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(34, 34, 34, 0.9) 100%
  );
}

.brands-hero__content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
}

.brands-hero__title {
  font-family: 'PeydaFaNumWeb', sans-serif !important;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
}

/* =====================================
   Container
   ===================================== */
.brands-container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 94px 80px;
}

/* =====================================
   Breadcrumb
   ===================================== */
.brands-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'PeydaFaNumWeb', sans-serif !important;
  font-size: 18px;
  margin-bottom: 60px;
  padding: 20px 0;
  direction: rtl;
  opacity: 0.6;
}

.brands-breadcrumb__link {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.brands-breadcrumb__link:hover {
  opacity: 1;
}

.brands-breadcrumb__current {
  color: #ffffff;
}

.brands-breadcrumb__separator {
  color: #ffffff;
}

/* =====================================
   Page Header
   ===================================== */
.brands-header {
  text-align: right;
  margin-bottom: 60px;
  direction: rtl;
}

.brands-header__title {
  font-family: 'PeydaFaNumWeb', sans-serif !important;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.3;
  color: #ffffff;
  margin: 0 0 24px 0;
}

.brands-header__description {
  font-size: 20px;
}

/* =====================================
   Brands Intro
   ===================================== */
.brands-intro {
  text-align: center;
  margin-bottom: 60px;
  direction: rtl;
}

.brands-intro__text {
  font-size: 16px;
}

/* =====================================
   Brands Grid
   ===================================== */
.brands-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* =====================================
   Brand Card
   ===================================== */
.brand-card {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 80px;
  align-items: start;
  direction: rtl;
}

.brand-card__logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 120px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
}

.brand-card__logo {
  max-width: 100%;
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-card__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand-card__name {
  font-family: 'PeydaFaNumWeb', sans-serif !important;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
  text-align: right;
}

.brand-card__description {
  font-family: 'PeydaFaNumWeb', sans-serif !important;
  font-size: 18px;
  font-weight: 300;
  line-height: 2.33;
  color: #fdfdfd;
  text-align: right;
  direction: rtl;
}

.brand-card__description p {
  margin: 0 0 24px 0;
}

.brand-card__description p:last-child {
  margin-bottom: 0;
}

/* =====================================
   Empty State
   ===================================== */
.brands-empty {
  text-align: center;
  padding: 80px 20px;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'PeydaFaNumWeb', sans-serif !important;
  font-size: 18px;
}

/* =====================================
   Editor Styles
   ===================================== */
.brands-page-block-editor {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 20px;
}

/* =====================================
   Responsive Design
   ===================================== */

/* Tablet */
@media (max-width: 1024px) {
  .brands-hero {
    height: 350px;
  }

  .brands-hero__title {
    font-size: 40px;
  }

  .brands-container {
    padding: 0 50px 60px;
  }

  .brands-header__title {
    font-size: 28px;
  }

  .brands-header__description {
    font-size: 24px;
  }

  .brand-card {
    grid-template-columns: 300px 1fr;
    gap: 50px;
  }

  .brand-card__logo-wrapper {
    min-height: 100px;
    padding: 25px;
  }

  .brand-card__logo {
    max-height: 120px;
  }

  .brand-card__name {
    font-size: 24px;
  }

  .brand-card__description {
    font-size: 16px;
    line-height: 2;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .brands-hero {
    height: 280px;
  }

  .brands-hero__title {
    font-size: 32px;
  }

  .brands-container {
    padding: 0 30px 40px;
  }

  .brands-breadcrumb {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .brands-header {
    margin-bottom: 40px;
  }

  .brands-header__title {
    font-size: 24px;
  }

  .brands-header__description {
    font-size: 20px;
  }

  .brands-grid {
    gap: 50px;
  }

  .brand-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .brand-card__logo-wrapper {
    min-height: 80px;
    padding: 20px;
  }

  .brand-card__logo {
    max-height: 100px;
  }

  .brand-card__name {
    font-size: 22px;
  }

  .brand-card__description {
    font-size: 15px;
    line-height: 1.9;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .brands-hero {
    height: 240px;
  }

  .brands-hero__title {
    font-size: 26px;
  }

  .brands-container {
    padding: 0 20px 30px;
  }

  .brands-header__title {
    font-size: 22px;
  }

  .brands-header__description {
    font-size: 18px;
  }

  .brands-grid {
    gap: 40px;
  }

  .brand-card {
    gap: 25px;
  }

  .brand-card__logo-wrapper {
    min-height: 70px;
    padding: 15px;
  }

  .brand-card__logo {
    max-height: 80px;
  }

  .brand-card__name {
    font-size: 20px;
  }

  .brand-card__description {
    font-size: 14px;
    line-height: 1.8;
  }

  .brand-card__description p {
    margin-bottom: 18px;
  }
}

/* Very Small Mobile */
@media (max-width: 360px) {
  .brands-container {
    padding: 0 15px 20px;
  }

  .brands-hero__title {
    font-size: 24px;
  }

  .brands-header__title {
    font-size: 20px;
  }

  .brands-header__description {
    font-size: 16px;
  }

  .brand-card__name {
    font-size: 18px;
  }

  .brand-card__description {
    font-size: 13px;
  }
}