/* =====================================
   Catalogs Page Styles
   ===================================== */

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

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

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

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

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

.catalogs-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%
  );
}

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

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

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

/* =====================================
   Breadcrumb
   ===================================== */
.catalogs-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;
}

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

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

.catalogs-breadcrumb__current {
  color: #ffffff;
}

.catalogs-breadcrumb__separator {
  color: #ffffff;
}

/* =====================================
   Two Column Layout (Desktop)
   ===================================== */
.catalogs-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: start;
  direction: rtl;
}

/* =====================================
   Sticky Intro (Right Side)
   ===================================== */
.catalogs-intro {
  position: relative;
}

.catalogs-intro__sticky {
  position: sticky;
  top: 120px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.catalogs-intro__description {
  font-family: 'PeydaFaNumWeb', sans-serif !important;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  text-align: right;
  direction: rtl;
}

/* =====================================
   Catalogs Content (Left Side - Scrollable)
   ===================================== */
.catalogs-content {
  flex: 1;
}

.catalogs-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* =====================================
   Catalog Card
   ===================================== */
.catalog-card {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.catalog-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.catalog-card__image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0a0a;
}

.catalog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.catalog-card:hover .catalog-card__image {
  transform: scale(1.05);
}

.catalog-card__content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.catalog-card__description {
  font-family: 'PeydaFaNumWeb', sans-serif !important;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  text-align: right;
  direction: rtl;
}

.catalog-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.catalog-card__size {
  font-family: 'PeydaFaNumWeb', sans-serif !important;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.catalog-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  background: #d4af37;
  color: #1a1a1a;
  border: none;
  border-radius: 12px;
  font-family: 'PeydaFaNumWeb', sans-serif !important;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.catalog-card__button:hover {
  background: #e5c158;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.catalog-card__button:active {
  transform: translateY(0);
}

.catalog-card__button-icon {
  width: 20px;
  height: 20px;
}

/* =====================================
   Empty State
   ===================================== */
.catalogs-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
   ===================================== */
.catalogs-page-block-editor {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 20px;
}

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

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

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

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

  .catalogs-layout {
    grid-template-columns: 320px 1fr;
    gap: 40px;
  }

  .catalogs-intro__title {
    font-size: 28px;
  }

  .catalogs-intro__description {
    font-size: 16px;
  }

  .catalog-card__title {
    font-size: 22px;
  }

  .catalog-card__content {
    padding: 24px;
  }
}

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

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

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

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

  /* Mobile: Single Column Layout (No Sticky) */
  .catalogs-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .catalogs-intro__sticky {
    position: static; /* Remove sticky on mobile */
    padding: 30px;
  }

  .catalogs-intro__title {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .catalogs-intro__description {
    font-size: 15px;
    line-height: 1.7;
  }

  .catalogs-grid {
    gap: 24px;
  }

  .catalog-card__content {
    padding: 20px;
  }

  .catalog-card__title {
    font-size: 20px;
  }

  .catalog-card__description {
    font-size: 15px;
  }

  .catalog-card__button {
    padding: 12px 24px;
    font-size: 15px;
  }
}

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

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

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

  .catalogs-intro__sticky {
    padding: 20px;
  }

  .catalogs-intro__title {
    font-size: 22px;
  }

  .catalogs-intro__description {
    font-size: 14px;
  }

  .catalog-card__content {
    padding: 16px;
  }

  .catalog-card__title {
    font-size: 18px;
  }

  .catalog-card__description {
    font-size: 14px;
  }

  .catalog-card__button {
    width: 100%;
    padding: 12px 20px;
  }
}

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

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

  .catalogs-intro__title {
    font-size: 20px;
  }

  .catalogs-intro__description {
    font-size: 13px;
  }

  .catalog-card__title {
    font-size: 17px;
  }
}