/* =========================================================
   HomeCar — Salla custom CSS
   Landing styles are prefixed .hc- so they never clash with the theme.
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Baloo+Bhaijaan+2:wght@400..800&display=swap");

:root {
  /* Brand tokens (sampled from the logo) */
  --hc-cream: #E8E3CF;
  --hc-paper: #F4F0E3;
  --hc-plum: #4B2E5F;
  --hc-plum-deep: #2E1B3B;
  --hc-lilac: #B9A6C9;
  --hc-lilac-soft: #E2D6EC;
  --hc-blush: #F6D6DC;
  --hc-butter: #F8E8BE;
  --hc-mint: #DCEAE0;
  --hc-display: "Baloo Bhaijaan 2", "Tajawal", system-ui, sans-serif;
  --hc-body: "Baloo Bhaijaan 2", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hc-radius: 24px;

  /* Salla Twilight theme variables: recolor the whole store */
  --color-primary: #4B2E5F;
  --color-primary-dark: #2E1B3B;
  --color-primary-light: #B9A6C9;
  --color-primary-reverse: #FFFFFF;
  --font-main: "Baloo Bhaijaan 2";
}

/* ---------- Store-wide touches ---------- */
body { font-family: var(--hc-body); background-color: var(--hc-paper); color: var(--hc-plum-deep); }

.s-product-card-entry {
  background: #fff;
  border: 1.5px solid var(--hc-lilac);
  border-radius: var(--hc-radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.s-product-card-entry:hover { transform: translateY(-4px); box-shadow: 0 10px 0 var(--hc-lilac-soft); }
.s-product-card-image { background: var(--hc-cream); }
.s-product-card-content-title, .s-product-card-content-title a { font-weight: 700; color: var(--hc-plum-deep); }
.s-product-card-price { color: var(--hc-plum); font-weight: 800; }

/* ---------- Landing (injected by custom JS) ---------- */
.hc-landing { font-family: var(--hc-body); color: var(--hc-plum-deep); direction: inherit; }
.hc-landing *, .hc-landing *::before, .hc-landing *::after { box-sizing: border-box; }
.hc-wrap { max-width: 1180px; margin-inline: auto; padding-inline: 16px; }

.hc-soft { font-family: var(--hc-display); font-weight: 800; color: var(--hc-plum); line-height: 1.3;
  text-shadow: 0 4px 0 var(--hc-lilac-soft); }

.hc-strip { background: var(--hc-lilac-soft); color: var(--hc-plum); font-size: .95rem; font-weight: 600; overflow: hidden; }
.hc-strip-track { display: flex; gap: 48px; padding-block: 10px; white-space: nowrap; width: max-content; animation: hc-marquee 30s linear infinite; }
[dir="rtl"] .hc-strip-track { animation-name: hc-marquee-rtl; }
.hc-strip-track span::before { content: "✦"; margin-inline-end: 10px; }
@keyframes hc-marquee { to { transform: translateX(-50%); } }
@keyframes hc-marquee-rtl { to { transform: translateX(50%); } }

.hc-star { position: absolute; width: 18px; height: 18px; background: var(--hc-plum);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.hc-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--hc-plum); }
.hc-twinkle { animation: hc-twinkle 3s ease-in-out infinite; }
@keyframes hc-twinkle { 50% { transform: scale(.6) rotate(20deg); } }

.hc-hero { background: var(--hc-cream); padding-block: 48px 64px; position: relative; overflow: hidden; }
.hc-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hc-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--hc-butter); border-radius: 999px; padding: 6px 16px; font-size: .9rem; font-weight: 700; color: var(--hc-plum); }
.hc-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); margin: 16px 0 10px; text-wrap: balance; }
.hc-hero p { font-size: 1.15rem; line-height: 1.8; max-width: 34ch; margin: 0 0 28px; color: var(--hc-plum); }
.hc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hc-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border-radius: 999px;
  font: 700 1.05rem var(--hc-body); text-decoration: none; cursor: pointer; border: 0;
  transition: transform .15s ease, box-shadow .15s ease;
}
.hc-btn-primary { background: var(--hc-plum); color: #fff; box-shadow: 0 5px 0 var(--hc-plum-deep); }
.hc-btn-ghost { background: #fff; color: var(--hc-plum); box-shadow: 0 5px 0 var(--hc-lilac); }
.hc-btn:hover { transform: translateY(-2px); }
.hc-btn:active { transform: translateY(4px); box-shadow: none; }
.hc-btn:focus-visible, .hc-tile:focus-visible { outline: 3px solid var(--hc-plum); outline-offset: 3px; }

.hc-orbit { position: relative; justify-self: center; width: min(100%, 400px); aspect-ratio: 1; max-width: 100%; }
.hc-orbit-bg { position: absolute; inset: 8%; border-radius: 50%; background: var(--hc-lilac-soft); }
.hc-orbit-ring { position: absolute; inset-inline: -2%; top: 38%; height: 26%; border: 3px solid var(--hc-plum); border-radius: 50%; z-index: 0; }
.hc-orbit-bg { z-index: 1; }
.hc-cat { position: absolute; z-index: 2; inset-inline-start: 50%; top: 14%; width: 60%; color: var(--hc-plum);
  transform: translateX(-50%); animation: hc-float 4s ease-in-out infinite; }
[dir="rtl"] .hc-cat { transform: translateX(50%); animation-name: hc-float-rtl; }
.hc-cat svg { display: block; width: 100%; height: auto; }
@keyframes hc-float { 50% { transform: translate(-50%, -10px); } }
@keyframes hc-float-rtl { 50% { transform: translate(50%, -10px); } }
.hc-orbit-tag { position: absolute; z-index: 3; bottom: 6%; left: 50%; transform: translateX(-50%); background: var(--hc-plum); color: #fff;
  font-weight: 700; font-size: .9rem; padding: 6px 18px; border-radius: 999px; white-space: nowrap; }

.hc-section { padding-block: 56px; }
.hc-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.hc-head h2 { font-family: var(--hc-display); font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.4rem); color: var(--hc-plum); margin: 0; line-height: 1.3; }
.hc-head p { margin: 2px 0 0; color: var(--hc-plum); opacity: .75; }

.hc-worlds { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hc-tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 240px;
  padding: 30px; border-radius: 32px; text-decoration: none; overflow: hidden; color: var(--hc-plum);
  transition: transform .2s ease;
}
.hc-tile:hover { transform: translateY(-4px) rotate(-.6deg); }
.hc-tile-home { background: var(--hc-lilac-soft); }
.hc-tile-car { background: var(--hc-blush); }
.hc-tile::before, .hc-tile::after { content: ""; position: absolute; border-radius: 50%; background: #fff; opacity: .45; }
.hc-tile::before { width: 220px; height: 220px; inset-inline-end: -60px; bottom: -80px; }
.hc-tile::after { width: 90px; height: 90px; inset-inline-end: 120px; top: -30px; }
.hc-tile > * { position: relative; z-index: 1; }
.hc-tile h3 { font-family: var(--hc-display); font-weight: 800; font-size: 2.4rem; margin: 0; line-height: 1.2; }
.hc-tile p { margin: 6px 0 0; max-width: 26ch; line-height: 1.7; }
.hc-tile .hc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hc-tile .hc-chips span { font-size: .85rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; background: #fff; }
.hc-tile .hc-go { position: absolute; inset-inline-end: 26px; top: 26px; width: 46px; height: 46px; border-radius: 50%; background: var(--hc-plum); color: #fff; display: grid; place-items: center; font-size: 1.3rem; }

.hc-products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hc-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.hc-tab { font: 700 .95rem var(--hc-body); padding: 8px 20px; border-radius: 999px; border: 0; background: #fff; color: var(--hc-plum); cursor: pointer; }
.hc-tab[aria-selected="true"] { background: var(--hc-plum); color: #fff; }

.hc-gift { position: relative; background: var(--hc-butter); color: var(--hc-plum); border-radius: 36px; padding: 40px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; overflow: hidden; }
.hc-gift-cat { width: 130px; color: var(--hc-plum); }
.hc-gift-cat svg { display: block; width: 100%; height: auto; }
.hc-gift h2 { font-family: var(--hc-display); font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0 0 4px; line-height: 1.3; }
.hc-gift p { margin: 0; line-height: 1.8; }

.hc-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hc-trust div { background: #fff; border-radius: var(--hc-radius); padding: 20px; }
.hc-trust div:nth-child(1) { background: var(--hc-lilac-soft); }
.hc-trust div:nth-child(2) { background: var(--hc-blush); }
.hc-trust div:nth-child(3) { background: var(--hc-butter); }
.hc-trust div:nth-child(4) { background: var(--hc-mint); }
.hc-trust b { display: block; color: var(--hc-plum); margin-bottom: 2px; font-size: 1.05rem; }
.hc-trust span { font-size: .92rem; color: var(--hc-plum); opacity: .8; line-height: 1.6; }

.hc-insta { text-align: center; padding-block: 48px 64px; }
.hc-insta .hc-soft { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 8px; direction: ltr; display: inline-block; }
.hc-insta p { margin: 0 auto 20px; max-width: 40ch; color: var(--hc-plum); }

.hc-reveal { transition: transform .5s ease; }
.hc-reveal.hc-pending { transform: translateY(14px); }

@media (max-width: 900px) {
  .hc-hero-grid, .hc-gift { grid-template-columns: 1fr; }
  .hc-orbit { order: -1; width: min(78%, 320px); }
  .hc-gift { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .hc-products-grid, .hc-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hc-worlds { grid-template-columns: 1fr; }
  .hc-tile { min-height: 220px; }
  .hc-gift { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-strip-track, .hc-cat, .hc-twinkle { animation: none; }
  .hc-reveal, .hc-btn, .hc-tile, .s-product-card-entry { transition: none; transform: none; }
}