.collections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 24px;
}

.collection-card {
  position: relative;
  height: 420px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.collection-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

.collection-content {
  position: absolute;
  left: 24px;
  bottom: 28px;
  z-index: 2;
}

.collection-content h3 {
  color: #fff;
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.collection-btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #111;
  text-decoration: none;
  background: #ffffff;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.85);
  transition: background-color .25s ease,
              color .25s ease,
              border-color .25s ease,
              transform .25s ease;
}

.collection-btn:hover {
  background: #ff6a00; /* Street Orange */
  color: #ffffff;
  border-color: #ff6a00;
  transform: translateY(-2px);
}
@media (max-width: 768px) {

  .collections {
    grid-template-columns: repeat(2, 1fr); /* 2 جنب بعض */
    gap: 10px;
    padding: 16px;
  }

  .collection-card {
    height: 260px; /* أقصر */
  }

  .collection-content {
    left: 16px;
    bottom: 16px;
  }

  .collection-content h3 {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .collection-btn {
    padding: 10px 20px;
    font-size: 12px;
  }
}
/* ===== Language Switch ===== */

/* افتراضي نخفي العربي */
.lang-ar {
  display: none;
}

/* English */
html[lang="en"] .lang-en {
  display: inline-block;
}
html[lang="en"] .lang-ar {
  display: none;
}

/* Arabic */
html[lang="ar"] .lang-ar {
  display: inline-block;
}
html[lang="ar"] .lang-en {
  display: none;
}

/* ضبط الاتجاه للعربي */
html[lang="ar"] .collection-content {
  right: 24px;
  left: auto;
  text-align: right;
}
/* افتراضي إنجليزي */
.lang-ar {
  display: none;
}
.lang-en {
  display: inline-block;
}

/* لما اللغة عربي */
html[dir="rtl"] .lang-ar {
  display: inline-block;
}

html[dir="rtl"] .lang-en {
  display: none;
}
/* ===== Arabic is DEFAULT ===== */
.lang-en {
  display: none;
}

.lang-ar {
  display: inline-block;
}

/* ===== When site switches to English (LTR) ===== */
html[dir="ltr"] .lang-en {
  display: inline-block;
}

html[dir="ltr"] .lang-ar {
  display: none;
}
