:root {
  --ziba-blue: #60b9ff;
  --ziba-blue-dark: #1e4f9f;
  --ziba-sky-deep: #0a2342;
  --ziba-sky-mid: #134b84;
  --ziba-cloud: #f3f8ff;
  --ziba-deep: #0b2a5a;
  --ziba-muted: rgba(213, 231, 255, 0.82);
  --ziba-light: rgba(255, 255, 255, 0.88);
  --ziba-surface: rgba(23, 86, 155, 0.32);
  --ziba-surface-bright: rgba(255, 255, 255, 0.24);
  --ziba-glass-border: rgba(255, 255, 255, 0.28);
  --ziba-cta: #0b2a5a;
  --ziba-cta-hover: #083b86;
  --ziba-radius-lg: 32px;
  --ziba-radius-md: 20px;
  --ziba-shadow-lg: 0 48px 120px rgba(8, 56, 120, 0.35);
  --ziba-shadow-md: 0 32px 88px rgba(8, 56, 120, 0.26);
  --ziba-transition: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ziba-font: "Iransansxfanum", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ziba-font);
  background: radial-gradient(circle at 18% 18%, rgba(173, 223, 255, 0.55), transparent 54%),
      radial-gradient(circle at 82% 22%, rgba(144, 210, 255, 0.46), transparent 60%),
      radial-gradient(circle at 54% 78%, rgba(92, 177, 255, 0.38), transparent 64%),
      linear-gradient(165deg, #f1f8ff 0%, #c0e4ff 32%, #7ebfff 68%, #4a94e2 100%);
  color: var(--ziba-cloud);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
    background-attachment: fixed;

}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background: url("data:image/svg+xml,%3Csvg width='1600' height='1200' viewBox='0 0 1600 1200' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='waveGrad' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23ffffff' stop-opacity='0.82'/%3E%3Cstop offset='45%25' stop-color='%23c7e7ff' stop-opacity='0.58'/%3E%3Cstop offset='100%25' stop-color='%2383c4ff' stop-opacity='0.52'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 240 Q200 180 400 220 T800 220 T1200 200 T1600 230 V1200 H0 Z' fill='url(%23waveGrad)'/%3E%3Cpath d='M0 520 Q240 460 480 500 T960 500 T1440 470 T1600 500 V1200 H0 Z' fill='url(%23waveGrad)' opacity='0.7'/%3E%3Cpath d='M0 820 Q260 760 520 800 T1040 800 T1600 780 V1200 H0 Z' fill='url(%23waveGrad)' opacity='0.45'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.72;
}

body::after {
  background: radial-gradient(ellipse at 22% 42%, rgba(255, 255, 255, 0.32), transparent 60%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.18) 18%, rgba(255, 255, 255, 0));
  mix-blend-mode: screen;
}

.app {
  position: relative;
  padding: clamp(16px, 4vw, 40px);
  max-width: 1400px;
  margin: 0 auto;
}

.ziba-shell {
  position: sticky;
  top: clamp(12px, 2vw, 28px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 36px);
  padding: clamp(18px, 2.6vw, 26px) clamp(24px, 5vw, 44px);
  border-radius: 40px;
  background: radial-gradient(circle at 20% 0%, rgba(120,160,255,0.25), transparent 60%),
            radial-gradient(circle at 80% 10%, rgba(100,140,255,0.20), transparent 60%),
            linear-gradient(180deg, rgba(10,22,45,0.92), rgba(12,28,58,0.95));
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 32px 80px rgba(20, 66, 140, 0.42);
  transition: box-shadow 0.4s var(--ziba-transition), transform 0.4s var(--ziba-transition);
  position: relative;
  text-align: center;
  overflow: hidden;
  padding-left: 200px;

}

.ziba-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.36), transparent 52%),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.24), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.ziba-shell:hover {
  box-shadow: 0 40px 110px rgba(42, 120, 220, 0.45);
  transform: translateY(-2px);
}

.ziba-shell > * {
  position: relative;
  z-index: 1;
}

.ziba-shell__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 18px);
}

.ziba-shell__logo img {
  width: clamp(56px, 20vw, 100px);
  height: clamp(56px, 6vw, 70px);
  border-radius: 18px;
  object-fit: contain;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(167, 218, 255, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: clamp(0, 1.6vw, 14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ziba-shell__identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  align-items: center;
}

.ziba-shell__identity-fa {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  color: #f7fbff;
  text-shadow: 0 18px 42px rgba(3, 20, 52, 0.65);
  margin-bottom: 12px;
}

.ziba-shell__identity-en {
  font-size: clamp(14px, 1.8vw, 16px);
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(235, 244, 255, 0.82);
  text-shadow: 0 10px 28px rgba(4, 22, 58, 0.5);
}

.ziba-shell__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  position: absolute;
  left: clamp(16px, 4vw, 36px);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.ziba-shell__back {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.78), rgba(154, 213, 255, 0.48));
  color: var(--ziba-cta);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s var(--ziba-transition), background 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 10px 24px rgba(6, 34, 88, 0.28);
}

.ziba-shell__back svg {
  width: 18px;
  height: 18px;
}

.ziba-shell__back:hover {
  transform: translateX(-4px);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(163, 220, 255, 0.6));
  box-shadow: 0 18px 46px rgba(30, 96, 188, 0.36);
}

.ziba-main {
  margin-top: clamp(28px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 48px);
}

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

@media (min-width: 1200px) {
  .brand-grid__cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .brand-subcategories {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 16px 20px !important; /* فاصله بین ستون و ردیف */
    }

}

.brand-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 32px;
  padding: clamp(24px, 3.2vw, 32px);
  border-radius: var(--ziba-radius-lg);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.72), rgba(178, 226, 255, 0.38));
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 32px 90px rgba(9, 56, 120, 0.24);
  backdrop-filter: blur(26px) saturate(170%);
  color: var(--ziba-cta);
  cursor: pointer;
  max-height: 400px;
  direction: rtl;
  text-align: right;
    transition:
      transform 0.28s var(--ziba-transition),
      box-shadow 0.28s var(--ziba-transition),
      opacity 0.24s var(--ziba-transition);
}

.brand-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 118px rgba(9, 56, 120, 0.3);
}

.brand-card__logo {
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(166, 219, 255, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.brand-card__logo img {
  max-width: 72px;
  max-height: 72px;
  object-fit: contain;
}

.brand-card__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
  align-items: stretch;
}

.brand-card__title {
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 800;
  color: var(--ziba-cta);
  text-shadow: 0 10px 28px rgba(9, 56, 120, 0.28);
}

.brand-card__subtitle {
  font-size: 14px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: rgba(13, 50, 101, 0.6);
  text-transform: uppercase;
}

.brand-card__copy {
  display: none;
  margin: 0;
  font-size: 15px;
  line-height: 2;
  color: rgba(8, 45, 92, 0.72);
  text-align: right;
}

.brand-card__cta {
  width:100%;
  justify-content: space-between;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-direction: row;
  direction: rtl;
  font-size: 15px;
  font-weight: 700;
  color: var(--ziba-cta);
  text-decoration: none;
  align-self: flex-end;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(161, 218, 255, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 28px rgba(8, 45, 92, 0.16);
  transition: color 0.3s var(--ziba-transition), box-shadow 0.3s var(--ziba-transition);
}

.brand-card__cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ziba-transition);
  margin-inline-start: 6px;
}

.brand-card:hover .brand-card__cta {
  box-shadow: 0 18px 36px rgba(9, 56, 120, 0.26);
  color: var(--ziba-cta-hover);
}

.brand-card:hover .brand-card__cta svg {
  transform: translateX(-4px);
}

.brand-grid--brand-open .brand-card {
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
}

.brand-grid--brand-open .brand-grid__cards {
gap: 0;
}

.brand-grid--brand-open .brand-card--active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.brand-grid--brand-open .brand-card:not(.brand-card--active) {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  border-width: 0;
  overflow: hidden;
  transition: none !important;
}

.brand-grid--closing .brand-card {
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}

.brand-card--active {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(16px, 3.5vw, 32px);
  padding: clamp(28px, 4.5vw, 38px);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.82), rgba(160, 217, 255, 0.45));
  box-shadow: var(--ziba-shadow-lg);
  opacity: 1 !important;
  pointer-events: auto !important;
  max-height: none;
}

.brand-card--active .brand-card__content {
  gap: 12px;
  align-items: flex-start;
  text-align: right;
}

.brand-card--active .brand-card__logo {
  align-self: center;
  justify-self: end;
}

.brand-card--active .brand-card__cta {
  display: none;
}

.brand-card--active .brand-card__copy {
  display: block;
  animation: fade-in 0.4s var(--ziba-transition) both;
  margin-top: 6px;
}

.brand-expanded {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2.6vw, 22px);
  opacity: 0;
  transform: translateY(32px);
  pointer-events: none;
  max-height: 0;
  will-change: transform, opacity;
  transition:
    opacity 0.24s var(--ziba-transition),
    transform 0.24s var(--ziba-transition);
}

.brand-expanded.brand-expanded--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  max-height: 4000px;
  margin-top: clamp(10px, 2vw, 18px);
}

.brand-subcategories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brand-subcategories__card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  gap: clamp(14px, 2.6vw, 22px);
  padding: clamp(18px, 2.8vw, 26px) clamp(24px, 4.2vw, 34px);
  border-radius: var(--ziba-radius-md);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.75), rgba(173, 220, 255, 0.45));
  border: 1px solid rgba(255, 255, 255, 0.6);
  text-decoration: none;
  color: var(--ziba-cta);
  box-shadow: 0 28px 72px rgba(9, 56, 120, 0.22);
  backdrop-filter: blur(24px) saturate(170%);
  transition: transform 0.35s var(--ziba-transition), box-shadow 0.35s var(--ziba-transition);
  direction: rtl;
}

.brand-subcategories__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 88px rgba(9, 56, 120, 0.3);
}

.brand-subcategories__card figure {
  width: 120px;
  height: 86px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(162, 217, 255, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.brand-subcategories__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-subcategories__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: right;
  align-items: flex-start;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-subcategories__title {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 800;
  color: var(--ziba-cta);
  text-shadow: 0 10px 28px rgba(9, 56, 120, 0.26);
}

.brand-subcategories__subtitle {
  font-size: 14px;
  letter-spacing: 0.16em;
  color: rgba(13, 50, 101, 0.62);
  text-transform: uppercase;
}

.brand-subcategories__cta {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-direction: row;
  direction: rtl;
  font-size: 15px;
  font-weight: 700;
  color: var(--ziba-cta);
  margin-inline-start: 0;
  margin-inline-end: auto;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(163, 220, 255, 0.52));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 26px rgba(9, 56, 120, 0.16);
  transition: color 0.3s var(--ziba-transition), box-shadow 0.3s var(--ziba-transition);
}

.brand-subcategories__cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ziba-transition);
  margin-inline-start: 6px;
}

.brand-subcategories__card:hover .brand-subcategories__cta {
  color: var(--ziba-cta-hover);
  box-shadow: 0 18px 34px rgba(9, 56, 120, 0.24);
}

.brand-subcategories__card:hover .brand-subcategories__cta svg {
  transform: translateX(-4px);
}

.brand-contact {
  padding: clamp(22px, 3.6vw, 32px);
  border-radius: var(--ziba-radius-lg);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.78), rgba(171, 220, 255, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: var(--ziba-shadow-md);
  backdrop-filter: blur(26px) saturate(170%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(18px, 3.2vw, 26px);
}

.brand-contact__section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-contact__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ziba-cta);
  text-align: right;
  text-shadow: 0 10px 24px rgba(9, 56, 120, 0.26);
}

.brand-contact__item {
  font-size: 14px;
  color: rgba(8, 45, 92, 0.76);
  text-decoration: none;
  line-height: 1.8;
}

.brand-contact__item:hover {
  color: var(--ziba-cta-hover);
}

body.brand-open .ziba-shell__back {
  display: inline-flex;
}

body.brand-open .ziba-shell__actions {
  pointer-events: auto;
}

.welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(8, 19, 32, 0.92), rgba(24, 63, 94, 0.88)),
    url("../images/main_10.jpg") center/cover no-repeat;
  transition:
      opacity 0.32s var(--ziba-transition),
      transform 0.4s var(--ziba-transition);
  cursor: pointer;
  overflow: hidden;
}

.welcome-screen::before,
.welcome-screen::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.welcome-screen::before {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(92, 183, 255, 0.75), rgba(92, 183, 255, 0));
  top: -12%;
  inset-inline-end: -8%;
}

.welcome-screen::after {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
  bottom: -18%;
  inset-inline-start: -10%;
}

.welcome-screen__inner {
  max-width: 520px;
  padding: 48px;
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 45px 140px rgba(5, 12, 24, 0.42);
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: inherit;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(24px) saturate(140%);
}

.welcome-screen__inner > * {
  position: relative;
  z-index: 1;
}

.welcome-screen__inner::before,
.welcome-screen__inner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

.welcome-screen__inner::before {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at top, rgba(92, 183, 255, 0.35), rgba(92, 183, 255, 0));
  inset: auto -120px -160px auto;
}

.welcome-screen__inner::after {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at bottom, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  inset: -140px auto auto -120px;
}

.welcome-screen__brand-en {
  font-size: 18px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.welcome-screen__brand-tag {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.welcome-screen__title {
  font-size: clamp(38px, 6vw, 48px);
  font-weight: 800;
  margin-top:0px;
  margin-bottom:30px;
}

.welcome-screen__subtitle {
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom:0px;
}

.welcome-screen__lead {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.welcome-screen__description {
  line-height: 2;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
}

.welcome-screen__cta {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-direction: row-reverse;
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ziba-cta);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(161, 218, 255, 0.6));
  cursor: pointer;
  transition: transform 0.35s var(--ziba-transition), box-shadow 0.35s var(--ziba-transition),
    color 0.35s var(--ziba-transition);
  position: relative;
  z-index: 1;
}

.welcome-screen__cta svg {
  width: 18px;
  height: 18px;
}

.welcome-screen__cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 64px rgba(9, 56, 120, 0.24);
  color: var(--ziba-cta-hover);
}

.welcome-screen__cta:hover svg {
  transform: translateX(-4px);
  transition: transform 0.35s var(--ziba-transition);
}

.welcome-screen:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.6);
  outline-offset: 8px;
}

body.welcome-active {
  overflow: hidden;
}

body.welcome-dismissed .welcome-screen {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-30px);
}

body.welcome-dismissed {
  overflow-y: auto;
}

@media (max-width: 1024px) {

  .ziba-shell {
    gap: 0;
    border-radius: 28px;
    justify-content: center;
    padding-left:44px;
  }
  .ziba-shell__back svg {
    width: 16px;
    height: 16px;
  }
   .ziba-shell span {
    display: none !important;
  }
  .ziba-shell .ziba-shell__back {
    padding: 12px 12px;
  }
  .ziba-shell__identity-fa{
    margin-bottom: 2px;

  }
  .ziba-shell__actions {
    width: auto;
    justify-content: flex-start;
  }
  .ziba-shell__logo {
    justify-content: center;
  }
  .ziba-shell__logo.info_zh {
    display: none;
  }
  
  
  .ziba-shell__actions {
    transform: none;
    order: 2;
    width: auto !important;
    justify-content: flex-start;
    pointer-events: auto;
        top: 50%;
    transform: translateY(-50%);
  }
  .ziba-shell__back {
    width: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .ziba-shell {
    padding: 16px 20px;
  }
  .ziba-shell__actions {
    width: 100%;
  }
  .ziba-shell__back {
    padding: 8px 16px;
    font-size: 14px;
    gap: 6px;
  }
  .ziba-shell__back svg {
    width: 16px;
    height: 16px;
  }
  .brand-card--active {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .brand-card--active .brand-card__content {
    align-items: flex-start;
  }
  .brand-card--active .brand-card__logo {
    justify-self: center;
  }
  .brand-subcategories__card {
    flex-direction: column;
    align-items: stretch;
    text-align: right;
    gap: 18px;
  }
  .brand-subcategories__cta {
    align-self: flex-end;
    margin-inline-start: 0;
  }
  .brand-subcategories__card figure {
    width: 100%;
    height: 160px;
  }
  .brand-contact {
    grid-template-columns: 1fr;
  }
  .welcome-screen__inner {
    padding: 36px 28px;
  }
}

@media (max-width: 540px) {
  .ziba-shell {
    gap: 0;
    border-radius: 28px;
    justify-content: space-between;
  }
  .ziba-shell__back svg {
    width: 16px;
    height: 16px;
  }
   .ziba-shell span {
    display: none !important;
  }
  .ziba-shell .ziba-shell__back {
    padding: 12px 12px;
  }
  .ziba-shell__identity-fa{
    margin-bottom: 2px;

  }
  .ziba-shell__actions {
    width: auto;
    justify-content: flex-start;
  }
  .brand-grid__cards {
    grid-template-columns: 1fr;
  }
  .brand-card {
    padding: 22px;
  }
  .brand-card--active {
    justify-items: stretch;
  }
  .brand-card--active .brand-card__logo {
    justify-self: center;
  }
}


/* وقتی کاربر روی یک ساب‌کتگوری کلیک می‌کند، این کلاس باعث می‌شود ساب‌کتگوری‌ها با انیمیشن بروند */
.brand-subcategories--exiting {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  will-change: transform, opacity;
  transition:
    transform 0.22s var(--ziba-transition),
    opacity 0.22s var(--ziba-transition);
}

/* کانتینر محصولات زیر ساب‌کتگوری‌ها */
.brand-products {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(16px);
  max-height: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transition:
    opacity 0.22s var(--ziba-transition),
    transform 0.22s var(--ziba-transition);
}

.brand-products--visible {
  opacity: 1;
  transform: translateY(0);
  max-height: 4000000px;
  pointer-events: auto;
}

/* کارت محصول: از همون کارت ساب‌کتگوری استفاده می‌کنیم + یک کلاس مودفایر */
.brand-product-card .brand-subcategories__title {
  font-size: clamp(17px, 2vw, 20px);
}

.brand-product-card .brand-subcategories__subtitle {
  font-size: 13px;
  color: rgba(13, 50, 101, 0.7);
}

.brand-product-card .brand-product__description {
  font-size: 13px;
  color: rgba(8, 45, 92, 0.8);
  line-height: 1.7;
  margin-top: 4px;
}

.brand-product-card .brand-subcategories__cta span {
  font-size: 14px;
}


.product-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.product-modal--visible {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.product-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 23, 60, 0.70);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.22s var(--ziba-transition);
}

.product-modal--visible .product-modal__backdrop {
  opacity: 1;
}

.product-modal__dialog {
  position: relative;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 22px 24px;
  border-radius: 26px;
  background: linear-gradient(155deg,
    rgba(255, 255, 255, 0.94),
    rgba(173, 220, 255, 0.68)
  );
  box-shadow: 0 30px 80px rgba(3, 27, 80, 0.6);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  will-change: transform, opacity;
  transition:
    transform 0.22s var(--ziba-transition),
    opacity 0.22s var(--ziba-transition);
}

.product-modal--visible .product-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.product-modal__close {
  position: absolute;
  top: 10px;
  left: 16px;
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: rgba(5, 37, 90, 0.85);
      padding: 4px 10px;
    z-index: 99999;
    background-color: #d0dcef;
    border-radius: 12px;
}

.product-modal__slider {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-modal__slider-viewport {
  flex: 1 1 auto;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-modal__slider-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-modal__nav {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(140deg,
    rgba(255, 255, 255, 0.96),
    rgba(163, 220, 255, 0.7)
  );
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: var(--ziba-cta);
  box-shadow: 0 10px 24px rgba(6, 34, 88, 0.24);
}

.product-modal__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-modal__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ziba-cta);
  text-shadow: 0 12px 28px rgba(9, 56, 120, 0.32);
}

.product-modal__subtitle {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10, 42, 90, 0.7);
}

.product-modal__text {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(8, 45, 92, 0.9);
}

.product-modal__add-to-cart {
  align-self: flex-start;
  margin-top: 4px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(145deg,
    rgba(255, 255, 255, 0.96),
    rgba(163, 220, 255, 0.8)
  );
  font-size: 14px;
  font-weight: 700;
  color: var(--ziba-cta);
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(6, 34, 88, 0.26);
}

/* ==== اسلایدر محصول (Splide) در مودال ==== */

.product-modal__slider.splide {
  width: 100%;
}

.product-modal__slider .splide__track {
  border-radius: 20px;
  overflow: hidden;
}

.product-modal__slider .splide__slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (max-width: 768px) {
  .product-modal__slider.splide {
    width: 100%;
  }
}


@media (prefers-reduced-motion: reduce) {
  .brand-expanded,
  .brand-products,
  .brand-subcategories--exiting,
  .product-modal__dialog,
  .product-modal__backdrop {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}


body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}


.ziba-shell__identity-en-custom{
  max-width: 300px;
  opacity: 0.6;

}


.ziba-shell__identity-fa-custom{
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 4px;
}

.brand-card__bg{
        display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    gap: 16px;
}


.product-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}

.product-modal__header-text {
  flex: 1;
}

.product-modal__buy-header {
  background: #45568b;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 500px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.product-modal__buy-header:hover {
  background: #1ba9e6;
}

.product-modal__text h1{
    font-size:16px;
}
.product-modal__text h2{
    font-size:16px;
}


@media (max-width: 720px) {
  .product-modal__header {
    align-items: flex-start;
    flex-direction: column;
  }
  .product-modal__content {
    padding-bottom: 100px;
  }
}