/* ===== كوليا — Sections ===== */

/* ---------- شريط الإعلان ---------- */
.topbar { background: var(--black); color: #d9d9d9; font-size: 12.5px; }
.topbar__row { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 16px; }
.topbar__links { display: flex; gap: 22px; }
.topbar__links a { transition: color .2s; }
.topbar__links a:hover { color: #fff; }
.topbar__promo { color: #cfcfcf; }
.topbar__promo strong { color: #fff; font-weight: 700; }

/* ---------- الهيدر ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header__row { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 24px; }

.logo { display: flex; flex-direction: column; line-height: 1; }
.logo__ar { font-family: var(--font-display); font-weight: 700; font-size: 27px; letter-spacing: .02em; color: var(--ink); }
.logo__en { font-family: var(--font-body); font-weight: 500; font-size: 10px; letter-spacing: .42em; color: var(--muted); margin-top: 4px; padding-inline-start: 2px; }
.logo--light .logo__ar { color: #fff; }

.nav { display: flex; gap: 30px; }
.nav__link {
  font-size: 14.5px; font-weight: 500; color: var(--ink);
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding-block: 4px; transition: color .2s;
}
.nav__link:hover, .nav__link.is-active { color: #000; }
.nav__link.is-active::after {
  content: ""; position: absolute; inset-block-end: -2px; inset-inline: 0;
  height: 2px; background: var(--ink);
}
.nav__tag { font-size: 9px; font-weight: 700; color: #fff; padding: 2px 6px; border-radius: 2px; letter-spacing: .02em; }
.nav__tag--sale { background: var(--ink); }
.nav__tag--hot { background: var(--sale); }

.header__actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; width: 42px; height: 42px;
  display: grid; place-items: center; color: var(--ink);
  transition: background .2s, color .2s;
}
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn:hover { color: #000; }
.icon-btn--count::after {
  content: attr(data-count);
  position: absolute; top: 4px; inset-inline-end: 4px;
  background: var(--ink); color: #fff; font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; padding: 0 3px; border-radius: 999px;
  display: grid; place-items: center; line-height: 1;
}

/* ---------- الهيرو (full-bleed) ---------- */
.hero { position: relative; background: var(--hero-bg); overflow: hidden; }
.hero__track { display: flex; transition: transform .8s var(--ease); }
.hero__slide { position: relative; min-width: 100%; height: clamp(480px, 56vw, 640px); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(216,214,210,0) 38%, rgba(216,214,210,.55) 62%, rgba(216,214,210,.92) 100%);
}
.hero__inner { position: relative; height: 100%; display: flex; align-items: center; }
.hero__text { max-width: 460px; }
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 4.6vw, 58px); line-height: 1.08; letter-spacing: -.02em; color: var(--ink);
}
.hero__sub { margin-top: 18px; font-size: 16px; color: var(--muted-2); }
.hero__btn { margin-top: 30px; }
.hero__dots { position: absolute; inset-block-end: 22px; inset-inline-start: 50%; transform: translateX(50%); display: flex; gap: 8px; z-index: 3; }
.hero__dots button { width: 9px; height: 9px; border-radius: 999px; background: rgba(17,17,17,.3); transition: all .3s; }
.hero__dots button.is-active { background: var(--ink); width: 26px; border-radius: 999px; }
/* الحركة المتدرجة للنص */
.hero__slide .hero__text > * { opacity: 0; transform: translateY(18px); }
.hero__slide.is-active .hero__text > * { animation: heroReveal .7s var(--ease) forwards; }
.hero__slide.is-active .hero__sub { animation-delay: .12s; }
.hero__slide.is-active .hero__btn { animation-delay: .24s; }
@keyframes heroReveal { to { opacity: 1; transform: translateY(0); } }

/* ---------- الكاروسيل العام ---------- */
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; gap: var(--gap); transition: transform .55s var(--ease); }
.carousel__track > li { flex: 0 0 calc((100% - 3 * var(--gap)) / 4); }

/* ---------- بطاقة فئة ---------- */
.cat-card { position: relative; display: block; overflow: hidden; }
.cat-card__media { aspect-ratio: 3 / 4; background: var(--surface-2); overflow: hidden; }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.cat-card:hover .cat-card__media img { transform: scale(1.06); }
.cat-card__label {
  position: absolute; inset-block-end: 22px; inset-inline: 28px;
  background: #fff; color: var(--ink); text-align: center;
  padding: 12px; font-weight: 500; font-size: 15px;
  transition: background .25s, color .25s;
}
.cat-card:hover .cat-card__label { background: var(--ink); color: #fff; }

/* ---------- بطاقة منتج ---------- */
.product-track > li { flex: 0 0 calc((100% - 3 * var(--gap)) / 4); }
.product-card { position: relative; }
.product-card__media {
  position: relative; aspect-ratio: 1 / 1; background: var(--surface);
  overflow: hidden; display: grid; place-items: center;
}
.product-card__media img {
  width: 100%; height: 100%; object-fit: contain; padding: 16%;
  transition: opacity .5s var(--ease);
}
.product-card__media .img-alt { position: absolute; inset: 0; opacity: 0; }
.product-card:hover .product-card__media .img-main { opacity: 0; }
.product-card:hover .product-card__media .img-alt { opacity: 1; }

/* أيقونات إجراءات تظهر عند التمرير */
.product-card__actions {
  position: absolute; inset-block-start: 12px; inset-inline-end: 12px;
  display: flex; flex-direction: column; gap: 8px; z-index: 4;
}
.product-card__actions button {
  width: 36px; height: 36px; background: #fff; color: var(--ink);
  display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; transform: translateX(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s, color .2s;
}
.product-card__actions button svg { width: 17px; height: 17px; }
.product-card:hover .product-card__actions button { opacity: 1; transform: translateX(0); }
.product-card__actions button:nth-child(2) { transition-delay: .05s; }
.product-card__actions button:nth-child(3) { transition-delay: .1s; }
.product-card__actions button:hover { background: var(--ink); color: #fff; }

/* زر "اختر الخيارات" ينزلق من الأسفل */
.product-card__add {
  position: absolute; inset-block-end: 0; inset-inline: 0;
  background: var(--ink); color: #fff; text-align: center;
  padding: 14px; font-size: 13.5px; font-weight: 500;
  transform: translateY(100%); transition: transform .35s var(--ease); z-index: 3;
}
.product-card:hover .product-card__add { transform: translateY(0); }
.product-card__add:hover { background: #000; }

/* عدّاد داخل البطاقة */
.product-card__timer {
  position: absolute; inset-block-end: 14px; inset-inline: 18px;
  background: #fff; color: var(--sale); text-align: center;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  padding: 7px; z-index: 2;
}
.product-card:hover .product-card__timer { opacity: 0; }
.product-card__timer .num { direction: ltr; unicode-bidi: isolate; }

.product-card__body { padding-block: 16px 4px; }
.product-card__title {
  font-size: 14.5px; font-weight: 500; color: var(--ink); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 42px;
}
.product-card__title:hover { color: #000; }
.product-card__rating { margin-block: 8px 6px; }
.product-card__price { font-weight: 700; font-size: 15px; color: var(--ink); direction: rtl; }
.product-card__price .sep { color: var(--muted); margin-inline: 4px; }

/* ---------- شبكة 4 ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

/* ---------- بانرين ---------- */
.dual-banner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.banner { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); }
.banner__media { position: absolute; inset: 0; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.banner:hover .banner__media img { transform: scale(1.05); }
.banner__overlay {
  position: absolute; inset-block-end: 36px; inset-inline: 0;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-shadow: 0 1px 12px rgba(0,0,0,.25);
}
.banner__title { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 26px; }

/* ---------- تبويبات منتجات مميزة ---------- */
.tabs { display: inline-flex; gap: 28px; margin-top: 18px; }
.tab { font-size: 15px; font-weight: 500; color: var(--muted); padding-bottom: 6px; position: relative; transition: color .2s; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); }
.tab.is-active::after { content: ""; position: absolute; inset-block-end: 0; inset-inline: 0; height: 2px; background: var(--ink); }

/* ---------- قسم الاستدامة ---------- */
.story-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.story-split__media { position: relative; background: var(--surface-2); overflow: hidden; min-height: 380px; }
.story-split__media img { width: 100%; height: 100%; object-fit: cover; }
.play-btn {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%);
  width: 64px; height: 64px; border-radius: 999px; background: rgba(255,255,255,.9);
  display: grid; place-items: center; color: var(--ink); transition: transform .3s var(--ease), background .3s;
}
.story-split__media:hover .play-btn { transform: translate(-50%,-50%) scale(1.1); background: #fff; }
.play-btn svg { width: 26px; height: 26px; margin-inline-start: 3px; }
.story-split__body { background: var(--surface); display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 56px; }
.story-split__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; }
.story-split__text { color: var(--muted-2); font-size: 15.5px; line-height: 1.8; }

/* ---------- البراندات ---------- */
.brands__row { display: flex; align-items: center; justify-content: center; gap: 30px 52px; flex-wrap: wrap; }
.brand-logo { height: 28px; width: auto; display: block; opacity: .5; transition: opacity .3s; }
.brand-logo:hover { opacity: 1; }

/* ---------- قصص نجاح ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.testi-card { border: 1px dashed var(--line-2); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.testi-card__quote { font-family: var(--font-display); font-size: 40px; line-height: .6; color: var(--ink); }
.testi-card__title { font-weight: 700; font-size: 16px; }
.testi-card__text { color: var(--muted-2); font-size: 14.5px; line-height: 1.8; }
.testi-card__author { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.testi-card__avatar { width: 52px; height: 52px; border-radius: 999px; background: var(--surface-2); object-fit: cover; }
.testi-card__name { font-weight: 700; font-size: 14.5px; }
.testi-card__role { color: var(--muted); font-size: 13px; }

/* ---------- الشريط الأسطوري ---------- */
.marquee { background: var(--black); color: #fff; overflow: hidden; direction: ltr; padding-block: 14px; }
.marquee__track { display: flex; width: max-content; animation: marqueeMove 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 28px; padding-inline-end: 28px; }
.marquee__group span { font-size: 13px; font-weight: 500; letter-spacing: .04em; white-space: nowrap; }
.marquee__group .dot { color: #6b6b6b; }
@keyframes marqueeMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- مميزات المتجر ---------- */
.features { background: var(--surface); }
.features__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 36px; }
.feature { display: flex; align-items: center; gap: 16px; }
.feature:not(:last-child) { border-inline-end: 1px solid var(--line-2); }
.feature svg { width: 34px; height: 34px; color: var(--ink); flex-shrink: 0; }
.feature h4 { font-size: 15px; font-weight: 700; }
.feature p { font-size: 13px; color: var(--muted-2); }

/* ---------- الفوتر ---------- */
.footer { background: #fff; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.6fr; gap: 36px; padding-block: 56px; }
.footer__col h5 { font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.footer__col ul { display: flex; flex-direction: column; gap: 11px; }
.footer__col ul a { color: var(--muted-2); font-size: 14px; transition: color .2s; }
.footer__col ul a:hover { color: var(--ink); }
.footer__brand .logo { margin-bottom: 18px; }
.footer__brand p { color: var(--muted-2); font-size: 14px; line-height: 1.9; margin-bottom: 14px; }
.footer__news p { color: var(--muted-2); font-size: 14px; margin-bottom: 16px; }
.news-form { display: flex; gap: 8px; margin-bottom: 20px; }
.news-form input { flex: 1; border: 1px solid var(--line-2); padding: 12px 14px; font-size: 14px; outline: none; transition: border-color .2s; }
.news-form input:focus { border-color: var(--ink); }
.news-form .btn { padding-inline: 22px; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.social a svg { width: 17px; height: 17px; }
.social a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.footer__bar { border-top: 1px solid var(--line); }
.footer__bar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.footer__bar-row p { font-size: 13px; color: var(--muted-2); }
.footer__bar-row a { color: var(--ink); font-weight: 500; }
.pay { display: flex; gap: 8px; }
.pay li { width: 42px; height: 27px; border: 1px solid var(--line); border-radius: 4px; display: grid; place-items: center; background: #fff; }
.pay svg { height: 14px; width: auto; }

/* ---------- استجابة ---------- */
@media (max-width: 1024px) {
  .carousel__track > li, .product-track > li { flex-basis: calc((100% - 2 * var(--gap)) / 3); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand, .footer__news { grid-column: span 3; }
}
@media (max-width: 880px) {
  .nav, .topbar__links { display: none; }
  .hero__text { max-width: 100%; }
  .hero__scrim { background: linear-gradient(to top, rgba(216,214,210,.96) 8%, rgba(216,214,210,.5) 42%, rgba(216,214,210,.15) 100%); }
  .hero__inner { align-items: flex-end; padding-bottom: 44px; }
  .story-split, .dual-banner { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .features__row { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(2) { border-inline-end: none; }
}
@media (max-width: 640px) {
  .carousel__track > li, .product-track > li { flex-basis: calc((100% - var(--gap)) / 2); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section { padding-block: 48px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand, .footer__news { grid-column: span 2; }
  .footer__bar-row { flex-direction: column; }
}
