/* ===== Home: banner slider + trust band + category strip (BlueGam-inspired) ===== */
.home-banner { padding-top: 26px; padding-bottom: 8px; }
.banner-frame { position: relative; overflow: hidden; border: 1px solid var(--tamm-line); border-radius: 22px; background: linear-gradient(100deg,#f4f9ff,#dcedf9); box-shadow: var(--tamm-shadow-soft); aspect-ratio: 2200 / 690; }
.banner-track { position: absolute; inset: 0; }
.banner-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.banner-slide.active { opacity: 1; visibility: visible; }
.banner-slide a, .banner-slide picture { display: block; width: 100%; height: 100%; }
.banner-slide img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.banner-arrow { position: absolute; top: 50%; z-index: 3; width: 38px; height: 38px; margin-top: -19px; display: grid; place-items: center; border: 1px solid var(--tamm-line); border-radius: 50%; background: rgba(255,255,255,.95); color: var(--tamm-ink); font-size: 13px; cursor: pointer; box-shadow: 0 6px 16px rgba(18,43,84,.14); transition: transform .2s, background .2s; }
.banner-arrow:hover { background: #fff; transform: scale(1.08); }
.banner-arrow--prev { right: 14px; }
.banner-arrow--next { left: 14px; }
.home-banner.single .banner-arrow, .home-banner.single .banner-dots { display: none; }
.banner-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.banner-dots button { width: 26px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: #cdd9e6; cursor: pointer; transition: background .25s, width .25s; }
.banner-dots button.active { width: 44px; background: var(--tamm-blue); }

/* full-width white trust band */
.trust-strip { margin-top: 18px; border-top: 0 !important; border-bottom: 0 !important; background: var(--tamm-paper); box-shadow: 0 0 0 100vmax var(--tamm-paper); clip-path: inset(0 -100vmax); position: relative; }
.trust-strip::after { content: ''; position: absolute; inset-inline: -100vmax; bottom: 0; height: 1px; background: var(--tamm-line); }

/* categories */
.category-strip { padding-top: 34px; padding-bottom: 6px; }
.category-strip[hidden] { display: none; }
.category-strip-title { margin: 0 0 18px; font-family: 'IBM Plex Sans Arabic', sans-serif; font-size: 20px; font-weight: 700; color: var(--tamm-ink); }
.category-strip-list { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.category-chip { width: 96px; display: grid; justify-items: center; gap: 9px; padding: 0; border: 0; background: none; color: var(--tamm-ink); cursor: pointer; font-size: 13px; font-weight: 700; }
.category-chip .cc-icon { width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid var(--tamm-line); border-radius: 50%; background: var(--tamm-paper); font-size: 30px; box-shadow: var(--tamm-shadow-soft); transition: transform .25s, border-color .25s, box-shadow .25s; }
.category-chip:hover .cc-icon { transform: translateY(-3px); border-color: var(--tamm-cyan); }
.category-chip.active .cc-icon { border-color: var(--tamm-blue); box-shadow: 0 0 0 3px rgba(25,87,166,.15); }
.category-chip.active { color: var(--tamm-blue); }

@media (max-width: 720px) {
  .home-banner { padding-top: 14px; }
  .banner-frame { border-radius: 16px; aspect-ratio: 16 / 9; }
  .home-banner.no-mob .banner-frame { aspect-ratio: 2200 / 690; }
  .banner-arrow { width: 30px; height: 30px; margin-top: -15px; font-size: 11px; }
  .banner-arrow--prev { right: 8px; } .banner-arrow--next { left: 8px; }
  .category-strip { padding-top: 24px; }
  .category-strip-title { font-size: 17px; }
  .category-strip-list { flex-wrap: nowrap; overflow-x: auto; gap: 10px; padding-bottom: 8px; scrollbar-width: none; }
  .category-strip-list::-webkit-scrollbar { display: none; }
  .category-chip { flex: 0 0 76px; width: 76px; font-size: 11px; }
  .category-chip .cc-icon { width: 56px; height: 56px; font-size: 24px; }
}

/* ===================== v2: icons, interaction, layout polish ===================== */

/* --- banner --- */
.banner-frame { cursor: pointer; transition: box-shadow .35s, transform .35s; }
.banner-frame:hover { box-shadow: 0 18px 44px rgba(20,52,93,.16); }
.banner-slide img { transition: transform 6s ease; }
.banner-slide.active img { transform: scale(1.025); }
.banner-dots button { position: relative; overflow: hidden; }
.banner-dots button.active::after { content: ''; position: absolute; inset: 0; background: var(--tamm-cyan); transform-origin: right; animation: bannerProgress 5s linear forwards; }
.home-banner:hover .banner-dots button.active::after { animation-play-state: paused; }
@keyframes bannerProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* --- trust band --- */
.trust-item { transition: transform .25s; }
.trust-item .trust-icon { transition: background .25s, color .25s, transform .25s; }
.trust-item:hover { transform: translateY(-2px); }
.trust-item:hover .trust-icon { background: var(--tamm-blue); color: #fff; transform: rotate(-8deg) scale(1.06); }

/* --- category strip --- */
.category-strip { padding-top: 40px; padding-bottom: 10px; }
.category-strip-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.category-strip-title { margin: 0; position: relative; padding-inline-start: 14px; }
.category-strip-title::before { content: ''; position: absolute; inset-block: 4px; inset-inline-start: 0; width: 4px; border-radius: 4px; background: linear-gradient(var(--tamm-cyan), var(--tamm-blue)); }
.category-strip-list { gap: 18px 26px; }
.category-chip { width: 104px; gap: 11px; font-family: inherit; }
.category-chip .cc-icon { position: relative; width: 74px; height: 74px; border: 0; color: #fff; font-size: 27px; background: linear-gradient(145deg, var(--cc-a, #2f7be5), var(--cc-b, #1957a6)); box-shadow: 0 12px 24px -8px var(--cc-b, #1957a6); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.category-chip .cc-icon i { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.category-chip:hover .cc-icon { transform: translateY(-5px); border-color: transparent; box-shadow: 0 18px 30px -10px var(--cc-b, #1957a6); }
.category-chip:hover .cc-icon i { transform: scale(1.18) rotate(-8deg); }
.category-chip:active .cc-icon { transform: scale(.94); }
.category-chip.active .cc-icon { box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--cc-b, #1957a6), 0 12px 24px -8px var(--cc-b, #1957a6); }
.category-chip .cc-count { position: absolute; top: -3px; inset-inline-end: -3px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 99px; border: 2px solid var(--tamm-sand); background: var(--tamm-ink); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1; }
.category-chip .cc-name { line-height: 1.5; }

/* --- quick search --- */
.home-search { position: relative; display: flex; align-items: center; width: min(100%, 360px); height: 46px; padding-inline: 16px 5px; gap: 10px; border: 1px solid var(--tamm-line); border-radius: 99px; background: #fff; box-shadow: var(--tamm-shadow-soft); transition: border-color .25s, box-shadow .25s, width .3s; }
.home-search:focus-within { border-color: var(--tamm-blue); box-shadow: 0 0 0 4px rgba(25,87,166,.12); }
.home-search > i { color: var(--tamm-muted); font-size: 14px; }
.home-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 13.5px; color: var(--tamm-ink); font-family: inherit; }
.home-search input::-webkit-search-cancel-button { display: none; }
.home-search button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--tamm-blue); color: #fff; cursor: pointer; transition: transform .2s; }
.home-search button:hover { transform: scale(1.08); }

/* --- sections rhythm + reveal --- */
.bundles-section, .catalog-section, .how-section { margin-top: 56px; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .banner-slide img, .banner-slide.active img { transition: none; transform: none; } .banner-dots button.active::after { animation: none; } }

/* --- header on scroll --- */
.site-header { transition: box-shadow .3s, background .3s; }
.site-header.is-scrolled { box-shadow: 0 8px 26px rgba(20,52,93,.1); background: rgba(255,255,255,.94); }

/* --- product / subscription cards --- */
.product-grid > .product-card-wrapper, .product-card, .step-card, .active-subscription-card, .bundle-card { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s; }
@media (hover: hover) {
  .product-grid > .product-card-wrapper:hover, .product-card:hover, .step-card:hover, .active-subscription-card:hover, .bundle-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(20,52,93,.13); }
  .product-card:hover .art-cover-img, .product-card:hover .art-mark--img img { transform: scale(1.06); }
}
.active-subscription-image { background: #fff; border: 1px solid var(--tamm-line); }
.active-subscription-image img { object-fit: contain; padding: 4px; }

/* --- toast icons --- */
.toast .toast-ic { margin-inline-end: 6px; }
.toast.success .toast-ic, .toast .fa-circle-check.toast-ic { color: #19896f; }
.toast.error .toast-ic, .toast .fa-circle-xmark.toast-ic, .toast .fa-ban.toast-ic { color: #e0443c; }
.toast .fa-triangle-exclamation.toast-ic { color: #d98a1c; }

/* --- back to top --- */
.back-to-top { position: fixed; left: 18px; bottom: 22px; z-index: 40; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--tamm-line); border-radius: 50%; background: #fff; color: var(--tamm-blue); font-size: 15px; cursor: pointer; box-shadow: 0 10px 24px rgba(20,52,93,.18); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .3s, transform .3s, background .2s, color .2s; }
.back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--tamm-blue); color: #fff; }

@media (max-width: 720px) {
  .category-strip { padding-top: 28px; }
  .category-strip-head { gap: 12px; margin-bottom: 16px; }
  .home-search { width: 100%; height: 42px; }
  .category-strip-list { gap: 12px; padding: 6px 4px 10px; }
  .category-chip { flex: 0 0 82px; width: 82px; }
  .category-chip .cc-icon { width: 60px; height: 60px; font-size: 22px; }
  .category-chip .cc-count { min-width: 19px; height: 19px; font-size: 9.5px; }
  .bundles-section, .catalog-section, .how-section { margin-top: 36px; }
  .back-to-top { bottom: 88px; left: 12px; width: 40px; height: 40px; }
}

/* ===================== v3: banner natural ratio, overlay search, sizing ===================== */
.home-banner { padding-top: 22px; padding-bottom: 42px; }           /* room for the search bar that overlaps the banner */
.banner-stage { position: relative; width: min(100%, 980px); margin-inline: auto; }
.banner-frame { aspect-ratio: var(--ar-d, 16 / 5); }                 /* natural ratio of Adv1 -> nothing cropped */
.banner-slide img { object-fit: contain; }
.banner-slide.active img { transform: none; }

/* dots: small glass pill on the image, top corner */
.banner-dots { position: absolute; top: 12px; inset-inline-start: 14px; z-index: 4; margin: 0; padding: 6px 9px; border-radius: 99px; background: rgba(255,255,255,.72); backdrop-filter: blur(8px); box-shadow: 0 4px 14px rgba(18,43,84,.12); gap: 5px; }
.banner-dots button { width: 16px; height: 4px; }
.banner-dots button.active { width: 30px; }

/* search bar floats on the lower edge of the banner */
.home-search--overlay { position: absolute; z-index: 5; inset-inline: 0; bottom: -32px; margin-inline: auto; width: min(88%, 560px); height: 54px; padding-inline: 20px 6px; border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.97); box-shadow: 0 16px 38px rgba(18,43,84,.22); }
.home-search--overlay input { font-size: 14.5px; }
.home-search--overlay button { width: auto; height: 42px; padding-inline: 20px; gap: 8px; display: inline-flex; border-radius: 99px; font-size: 13.5px; font-weight: 800; }
.home-search--overlay button i { font-size: 12px; }

.category-strip { padding-top: 18px; }

@media (max-width: 720px) {
  .home-banner { padding-top: 12px; padding-bottom: 36px; }
  .banner-stage { width: 100%; }
  .banner-frame { aspect-ratio: var(--ar-m, var(--ar-d, 16 / 7)); border-radius: 16px; }
  .banner-dots { top: 8px; inset-inline-start: 8px; padding: 4px 7px; }
  .banner-dots button { width: 12px; } .banner-dots button.active { width: 22px; }
  .home-search--overlay { bottom: -27px; width: 92%; height: 46px; padding-inline: 14px 4px; }
  .home-search--overlay input { font-size: 13px; }
  .home-search--overlay button { height: 36px; padding-inline: 14px; font-size: 12px; }
  .banner-arrow { display: none; }  /* swipe on mobile */
}
@media (min-width: 1100px) { .banner-stage { width: min(100%, 1000px); } }

/* ===================== v4: search bar below banner (gap), compact mobile trust row, centered categories ===================== */

/* search bar no longer overlaps the image: it sits underneath with a clear gap (desktop + mobile) */
.home-banner { padding-bottom: 10px; }
.home-search--overlay { position: relative; inset-inline: auto; bottom: auto; margin: 18px auto 0; }

/* category icons: perfectly centered (desktop wraps centered, mobile scrolls but stays centered when it fits) */
.category-strip-list { justify-content: center; }
.category-strip-list > :first-child { margin-inline-start: auto; }
.category-strip-list > :last-child { margin-inline-end: auto; }

@media (max-width: 720px) {
  .home-banner { padding-bottom: 6px; }
  .home-search--overlay { bottom: auto; margin: 14px auto 0; }

  /* trust band: small, 4 features side by side */
  .trust-strip { margin-top: 12px; padding: 10px 0; grid-template-columns: repeat(4, 1fr); gap: 0; }
  .trust-strip .trust-item,
  .trust-strip .trust-item:first-child,
  .trust-strip .trust-item:last-child,
  .trust-strip .trust-item:nth-child(odd) { flex-direction: column; justify-content: flex-start; text-align: center; gap: 6px; padding: 4px 4px; border-inline-start: 1px solid var(--tamm-line); }
  .trust-strip .trust-item:first-child { border-inline-start: 0; }
  .trust-strip .trust-icon { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; font-size: 13px; }
  .trust-strip .trust-item > span:last-child { gap: 0; justify-items: center; }
  .trust-strip .trust-item strong { font-size: 11px; line-height: 1.4; }

  .category-strip { padding-top: 20px; }
}

/* ===================== v5: image logo in header, trust descriptions on mobile, categories start from first item ===================== */
.brand-mark { padding: 0; overflow: hidden; background: none; box-shadow: none; transform: none; border-radius: 12px; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* categories: center when they fit, but never clip the first item when they overflow */
.category-strip-list { justify-content: flex-start; }
@media (min-width: 721px) { .category-strip-list { justify-content: center; } }

@media (max-width: 720px) {
  .trust-strip .trust-item small { display: block; font-size: 8.5px; line-height: 1.55; color: var(--tamm-muted); }
  .trust-strip .trust-item strong { font-size: 10.5px; }
  .trust-strip .trust-item { gap: 5px; padding: 4px 5px; }
  .trust-strip .trust-item > span:last-child { gap: 2px; }
  .trust-strip .trust-icon { width: 28px; height: 28px; flex-basis: 28px; font-size: 12px; }
}

/* ===================== v6: mobile trust band = same strip as desktop (icon beside text), just smaller type ===================== */
@media (max-width: 720px) {
  .trust-strip { margin-top: 12px; padding: 10px 0; grid-template-columns: repeat(4, 1fr); gap: 0; }
  .trust-strip .trust-item,
  .trust-strip .trust-item:first-child,
  .trust-strip .trust-item:last-child,
  .trust-strip .trust-item:nth-child(odd) { flex-direction: row; align-items: center; justify-content: flex-start; text-align: start; gap: 5px; padding: 4px 6px; border-inline-start: 1px solid var(--tamm-line); }
  .trust-strip .trust-item:first-child { border-inline-start: 0; padding-inline-start: 0; }
  .trust-strip .trust-item:last-child { padding-inline-end: 0; }
  .trust-strip .trust-icon { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 7px; font-size: 10px; }
  .trust-strip .trust-item > span:last-child { display: grid; gap: 2px; justify-items: start; min-width: 0; }
  .trust-strip .trust-item strong { font-size: 8.5px; line-height: 1.35; }
  .trust-strip .trust-item small { display: block; font-size: 6.5px; line-height: 1.5; color: var(--tamm-muted); }
}

/* ===================== v7: mobile trust strip — real small type (browsers floor Arabic text at 12px, so we shrink with zoom) ===================== */
@media (max-width: 720px) {
  .trust-strip { margin-top: 10px; padding: 6px 0; }
  .trust-strip .trust-item,
  .trust-strip .trust-item:first-child,
  .trust-strip .trust-item:last-child,
  .trust-strip .trust-item:nth-child(odd) { flex-direction: row; align-items: center; gap: 4px; padding: 2px 5px; }
  .trust-strip .trust-item:first-child { padding-inline-start: 0; }
  .trust-strip .trust-item:last-child { padding-inline-end: 0; }
  .trust-strip .trust-icon { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 6px; }
  .trust-strip .trust-icon i { font-size: 9px; }
  .trust-strip .trust-item > span:last-child { gap: 0; }
  .trust-strip .trust-item strong { font-size: 12px; line-height: 1.3; zoom: .7; }
  .trust-strip .trust-item small { font-size: 12px; line-height: 1.4; zoom: .5; display: block; }
}