/* core/styles/home.css: الرئيسية. tokens فقط.
   الفكرة: bandeau صغير بالأسود (بحال نسخة "on black" ديال اللوغو) + النقطة الحمرا فـ آخر العناوين. */
.home { padding-bottom: 8px; }
.dot { color: var(--c-accent); }

/* ---------- hero mini ---------- */
.hm-wrap { padding-top: 14px; }
.hm {
  position: relative; display: grid; grid-template-columns: 1fr minmax(0, 44%); align-items: stretch; gap: 12px;
  min-height: 160px; padding: 18px 0 18px 20px; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--c-ink); color: var(--c-on-ink);
}
.hm.hm-text { grid-template-columns: 1fr; padding-right: 20px; }
.hm-txt { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; position: relative; z-index: 1; }
.hm-t { font-size: clamp(1.3rem, .95rem + 1.7vw, 2.4rem); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; max-width: 16ch; }
.hm-s { margin: 8px 0 0; font-size: var(--fs-xs); line-height: 1.45; color: rgba(255, 255, 255, .72); max-width: 38ch; }
.hm-cta { margin-top: 14px; display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 999px; background: #fff; color: var(--c-ink); font-size: var(--fs-sm); font-weight: 600; transition: background var(--t-fast), color var(--t-fast); }
.hm-cta:hover { background: var(--c-accent); color: #fff; }

/* الصور: 3 بطاقات صغار مفرقين بحال مروحة */
.hm-media { position: relative; min-height: 124px; }
.hm-tile { position: absolute; width: 50%; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: #2a2a2a; box-shadow: 0 0 0 3px var(--c-ink); }
.hm-tile img { width: 100%; height: 100%; object-fit: cover; }
.hm-n1 .hm-tile { left: 22%; top: 50%; transform: translateY(-50%) rotate(-4deg); width: 58%; }
.hm-n2 .hm-tile:nth-child(1) { left: 4%; top: 12%; transform: rotate(-7deg); }
.hm-n2 .hm-tile:nth-child(2) { left: 42%; top: 6%; transform: rotate(5deg); }
.hm-n3 .hm-tile:nth-child(1) { left: -4%; top: 20%; transform: rotate(-9deg); }
.hm-n3 .hm-tile:nth-child(2) { left: 24%; top: 2%; z-index: 2; }
.hm-n3 .hm-tile:nth-child(3) { left: 52%; top: 22%; transform: rotate(8deg); }
.hm-one { margin: -18px 0; }
.hm-one img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) {
  .hm { min-height: 240px; padding: 32px 0 32px 40px; grid-template-columns: 1fr minmax(0, 46%); }
  .hm.hm-text { padding-right: 40px; }
  .hm-s { font-size: var(--fs-sm); }
  .hm-tile { width: auto; height: 76%; border-radius: 14px; box-shadow: 0 0 0 4px var(--c-ink); }
  .hm-n3 .hm-tile:nth-child(1) { left: 8%; top: 16%; }
  .hm-n3 .hm-tile:nth-child(2) { left: 32%; top: 4%; }
  .hm-n3 .hm-tile:nth-child(3) { left: 56%; top: 18%; }
  .hm-one { margin: -32px 0; }
}
@media (min-width: 1100px) { .hm-n3 .hm-tile:nth-child(1) { left: 22%; } .hm-n3 .hm-tile:nth-child(2) { left: 42%; } .hm-n3 .hm-tile:nth-child(3) { left: 62%; } }

/* ---------- الأقسام ---------- */
.home-sec { margin-top: 30px; }
@media (min-width: 768px) { .home-sec { margin-top: 48px; } }
.sec-t { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.9rem); font-weight: 700; margin-bottom: 14px; }
.sec-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-link { font-size: var(--fs-sm); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--c-line-strong); }
.sec-link:hover { text-decoration-color: var(--c-ink); }
.home-more { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- الأصناف: bento بحال Kiabi ---------- */
.bento { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(112px, 31vw, 210px); gap: 10px; }
.bento-1 { grid-template-columns: 1fr; }
.bento-3 .tile-1, .bento-4 .tile-1 { grid-row: span 2; }
.bento-4 .tile-4 { grid-column: span 2; }
.tile { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--c-soft); isolation: isolate; }
.tile img, .tile-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile-ph { background: linear-gradient(135deg, var(--c-soft), var(--c-line)); }
.tile-pill { position: absolute; left: 10px; bottom: 10px; padding: 6px 13px; border-radius: 999px; background: #fff; color: var(--c-ink); font-size: var(--fs-xs); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
@media (hover: hover) { .tile:hover img { transform: scale(1.04); } }
@media (min-width: 900px) {
  .bento { grid-auto-rows: 300px; gap: 14px; }
  .bento-4 { grid-template-columns: 1.25fr 1fr 1fr 1fr; }
  .bento-3 { grid-template-columns: 1.25fr 1fr 1fr; }
  .bento-3 .tile-1, .bento-4 .tile-1 { grid-row: auto; }
  .bento-4 .tile-4 { grid-column: auto; }
  .tile-pill { left: 14px; bottom: 14px; font-size: var(--fs-sm); padding: 7px 16px; }
}

.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trust-1 { grid-template-columns: 1fr; } .trust-2, .trust-4 { grid-template-columns: repeat(2, 1fr); }
.trust li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: var(--radius); background: var(--c-soft); text-align: center; }
.trust-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--c-bg); color: var(--c-ink); display: flex; align-items: center; justify-content: center; }
.trust-t { font-size: 12.5px; line-height: 1.3; font-weight: 500; color: var(--c-ink); }
@media (min-width: 768px) {
  .trust, .trust-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
  .trust li { flex-direction: row; justify-content: center; text-align: left; padding: 20px; gap: 14px; }
  .trust-t { font-size: var(--fs-sm); }
}

/* أقسام قديمة (related فـ صفحة المنتج) */
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.sec-head h2 { font-size: var(--fs-xl); font-weight: 600; }
.sec-head a { font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 4px; }
