/* Kliko home — faithful reproduction of the supplied mobile mockup.
   Loaded last (after ltr.css) so it wins over the older storefront composition.
   Scoped to the customer-facing shell + .home; admin/auth/detail pages untouched. */

:root{
  --yellow:#FFD400;
  --ink:#0B0B0B;
  --muted2:#6B7280;
  --faint:#9CA3AF;
  --hairline:#EDEDED;
  --price:#E8232A;
}

/* ---------- page canvas ---------- */
.customer-page:has(.home){background:#fff}
.customer-page:has(.home) main{padding:0 16px 24px}
.home{padding-bottom:8px}

/* ---------- header ---------- */
.customer-page .app-header{height:auto;min-height:56px;padding:14px 16px 6px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border:0}
.customer-page .store-head{flex:0 0 auto}
.customer-page .brand{gap:7px;color:var(--ink);font-family:'Baloo Bhaijaan 2',Arial,sans-serif;font-weight:800}
.customer-page .brand .brand-word{font-size:28px;letter-spacing:-1.2px;line-height:1}
.customer-page .brand b{width:30px;height:30px;background:var(--yellow);color:#0B0B0B;border-radius:9px;font-size:19px;font-weight:900;display:grid;place-items:center;font-family:Arial,sans-serif;box-shadow:0 2px 5px rgba(0,0,0,.08)}
.customer-page .head-actions{display:flex;align-items:center;gap:14px;flex-direction:row}
.customer-page .head-btn{width:auto;height:auto;background:none;border:0;box-shadow:none;color:var(--ink);display:grid;place-items:center}
.customer-page .head-btn .icon{width:22px;height:22px;stroke-width:1.8}
.customer-page .nav-badge{background:var(--yellow);color:#0B0B0B;font-size:10px;font-weight:700;border-radius:50%;min-width:16px;height:16px;display:grid;place-items:center;padding:0;border:1px solid #fff;font-family:Arial,sans-serif;line-height:1;position:absolute;top:-3px;right:-4px}
.customer-page .head-btn.has-badge{position:relative}
.customer-page .head-actions .notification-trigger,.customer-page .notification-bell{color:var(--ink)}
.customer-page .notification-bell .notification-count{background:var(--yellow);color:#0B0B0B;border-color:#fff}

/* ---------- search row ---------- */
.shop-search-row{display:flex;align-items:center;gap:10px;margin:6px 0 14px}
.shop-search-input{position:relative;flex:1;min-width:0;display:flex;align-items:center;height:40px;background:#F4F4F5;border:1px solid #E8E8E8;border-radius:20px;padding:0 14px}
.shop-search-input .ss-icon{color:#6B7280;display:grid;place-items:center;margin-right:8px}
.shop-search-input .ss-icon .icon{width:16px;height:16px}
.shop-search-input input{flex:1;min-width:0;border:0;background:none;outline:none;font-size:13.5px;color:var(--ink);font-family:inherit}
.shop-search-input input::placeholder{color:#9CA3AF}
.lang-pill{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 11px;background:#fff;border:1px solid #E5E7EB;border-radius:20px;font-size:13px;font-weight:700;color:#111;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.lang-pill .icon{width:11px;height:11px;color:#6B7280}
.lang-flag{width:20px;height:14px;border-radius:3px;overflow:hidden;display:inline-block;background:linear-gradient(90deg,#0055A4 0 33.3%,#fff 33.3% 66.6%,#EF4135 66.6% 100%)}

/* ---------- hero ---------- */
.hero-banner{display:block;border-radius:20px;overflow:hidden;box-shadow:0 4px 12px rgba(0,0,0,.06);margin:0 0 18px;line-height:0}
.hero-banner img{width:100%;height:auto;display:block}

/* ---------- category rail ---------- */
.cat-rail{display:flex;align-items:center;gap:6px;margin:0 0 20px}
.cat-rail-scroll{display:flex;gap:9px;overflow-x:auto;flex:1;min-width:0;scrollbar-width:none;padding:2px 2px 4px}
.cat-rail-scroll::-webkit-scrollbar{display:none}
.cat-tile{flex:0 0 auto;min-width:56px;display:flex;flex-direction:column;align-items:center;gap:8px;text-decoration:none;color:inherit}
.cat-tile-ic{width:56px;height:56px;border-radius:16px;background:#fff;border:1px solid var(--hairline);display:grid;place-items:center;overflow:visible}
.cat-tile-ic .icon{width:30px;height:30px;color:var(--ink);stroke-width:1.7}
.cat-tile-ic .filled-category{stroke:none;width:30px;height:30px}
.cat-tile.is-active .cat-tile-ic{background:#FFF6C9;border:1.5px solid var(--yellow)}
.cat-tile.is-active .cat-tile-ic .icon{color:#FF8A00}
.cat-tile-label{font-size:9.5px;font-weight:600;color:#111;text-align:center;line-height:1.15;white-space:nowrap}
.cat-next-btn{flex:0 0 32px;width:32px;height:32px;min-height:32px;padding:0;border-radius:50%;background:#fff;border:1px solid var(--hairline);display:grid;place-items:center;color:#111;box-shadow:0 1px 4px rgba(0,0,0,.06);cursor:pointer}
.cat-next-btn .icon{width:12px;height:12px}

/* ---------- section header ---------- */
.home-sec{display:flex;align-items:flex-end;justify-content:space-between;margin:4px 0 14px}
.home-sec-title{position:relative;font-size:20px;font-weight:800;letter-spacing:-.3px;color:var(--ink);padding-bottom:7px;line-height:1.1;display:inline-block}
.home-sec-underline{position:absolute;bottom:0;left:0;width:96px;height:3.5px;border-radius:2px;background:var(--yellow)}
.home-sec-link{display:inline-flex;align-items:center;gap:3px;font-size:12.5px;font-weight:500;color:#4B5563}
.home-sec-link .icon{width:11px;height:11px}

/* ---------- product card rail ---------- */
.home-rail{display:flex;gap:12px;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:2px 16px 8px;scroll-snap-type:x proximity}
.home-rail::-webkit-scrollbar{display:none}
.home-card{flex:0 0 152px;scroll-snap-align:start;border:1px solid #F0F0F0;border-radius:16px;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.05);overflow:hidden;display:flex;flex-direction:column}
.home-card-top{display:block;text-decoration:none;color:inherit;flex:1}
.home-card-media{position:relative;width:100%;height:100px;display:grid;place-items:center;overflow:hidden;background:#0A0A0A}
.home-card-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.home-card-media .prod-logo{position:absolute;inset:0;display:grid;place-items:center;padding:14px;color:#fff;font-size:26px}
.home-card-media .prod-logo svg,.home-card-media .prod-logo .brand-svg{width:100%;height:100%;object-fit:contain}
.home-card-media .netflix-letter{font-size:38px;color:#E50914}
.home-card-media.openai{background:radial-gradient(circle at 50% 40%,#123b30,#04120F)}
.home-card-media.openai .prod-logo{color:#10A37F}
.home-card-media.netflix{background:radial-gradient(circle at 50% 40%,#3d0a12,#120303)}
.home-card-media.youtube{background:radial-gradient(circle at 50% 40%,#5c0a0c,#1c0000)}
.home-card-media.disney{background:radial-gradient(circle at 50% 40%,#0e2350,#050d24)}
.home-card-media.spotify{background:radial-gradient(circle at 50% 40%,#0f4d2c,#04150b)}
.home-card-media.microsoft{background:radial-gradient(circle at 50% 40%,#20242e,#0b0d11)}
.home-card-media.adobe{background:radial-gradient(circle at 50% 40%,#3a0b0b,#140404)}
.home-card-media.capcut{background:radial-gradient(circle at 50% 40%,#101216,#050607)}
.home-card-media.generic{background:radial-gradient(circle at 50% 40%,#2a2f3a,#10131a)}

/* ---------- nouveautés media-only tiles ---------- */
.new-rail{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:2px 16px 8px}
.new-rail::-webkit-scrollbar{display:none}
.new-tile{flex:0 0 88px;width:88px;height:88px;border-radius:14px;overflow:hidden;display:block;box-shadow:0 2px 6px rgba(0,0,0,.06)}
.new-tile .home-card-media{height:100%;width:100%}
.home-card-body{padding:10px 10px 8px;display:flex;flex-direction:column;align-items:flex-start}
.home-card-title{font-size:14px;font-weight:700;color:#0B0B0B;line-height:1.25;margin:0 0 3px;overflow-wrap:anywhere;min-height:17px}
.home-card-sub{font-size:11px;font-weight:400;color:#9CA3AF;margin:0 0 4px;line-height:1.3}
.home-card-badge{display:inline-flex;align-items:center;gap:3px;padding:2px 8px;border-radius:9px;background:#FFE9EC;color:#E8232A;font-size:10px;font-weight:700;margin:0 0 5px;line-height:1.6;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-card-badge .icon{width:11px;height:11px;flex:none}
.home-card-price{display:flex;align-items:baseline;margin:0 0 1px}
.home-card-price b{font-size:17px;font-weight:800;color:var(--price);white-space:nowrap}
.home-card-dur{font-size:10.5px;font-weight:400;color:#9CA3AF;margin:0}
.home-card-cta{margin:auto 8px 8px}
.home-cart-btn{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;height:34px;min-height:34px;border-radius:17px;background:var(--yellow);color:#0B0B0B;font-size:11.5px;font-weight:700;padding:0 6px;box-shadow:none;white-space:nowrap}
.home-cart-btn .icon{width:13px;height:13px;flex:none}

/* ---------- promo card ---------- */
.promo-card{display:flex;align-items:center;border-radius:20px;background:linear-gradient(155deg,#3A2A15 0%,#1C1308 100%);overflow:hidden;margin:10px 0 20px;min-height:138px;box-shadow:0 4px 12px rgba(0,0,0,.10)}
.promo-copy{flex:1 1 58%;padding:16px 0 16px 20px;display:flex;flex-direction:column;align-items:flex-start}
.promo-title{font-size:22px;font-weight:800;color:#fff;line-height:1.1;margin:0 0 6px}
.promo-title .promo-alt{color:var(--yellow)}
.promo-sub{font-size:12px;font-weight:500;color:rgba(255,255,255,.82);line-height:1.35;margin:0 0 12px}
.promo-cta{display:inline-flex;align-items:center;gap:7px;background:var(--yellow);color:#0B0B0B;border-radius:18px;padding:9px 14px;font-size:12.5px;font-weight:700;box-shadow:0 2px 6px rgba(0,0,0,.2)}
.promo-cta .icon{width:12px;height:12px}
.promo-visual{flex:0 0 42%;display:flex;align-items:center;justify-content:center}
.promo-visual img{width:100%;height:100%;object-fit:contain;max-width:none}

/* ---------- bottom nav ---------- */
.customer-page .customer-bottom-nav{left:50%;right:auto;transform:translateX(-50%);width:min(calc(100% - 24px),580px);bottom:calc(10px + env(safe-area-inset-bottom));min-height:62px;height:62px;padding:6px 6px;background:#fff;border:0;border-radius:22px;box-shadow:0 -4px 20px rgba(0,0,0,.10);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));direction:ltr;align-items:center}
.customer-bottom-nav>a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;color:#71717A;font-size:8px;position:relative;white-space:nowrap}
.customer-bottom-nav>a>span{white-space:nowrap;line-height:1.15}
.customer-bottom-nav>a>.icon{width:20px;height:20px}
.customer-bottom-nav .home-tab>.icon{width:36px;height:36px;background:var(--yellow);color:#0B0B0B;border-radius:50%;padding:9px;box-shadow:none}
.customer-bottom-nav .selected{color:#111;font-weight:700}
.customer-bottom-nav .nav-badge{right:calc(50% - 17px);top:0}

/* ---------- desktop ---------- */
@media(min-width:600px){
  .customer-page:has(.home) main{max-width:640px;margin:0 auto;padding:0 20px 24px}
  .customer-page .app-header{max-width:640px;margin:0 auto;padding-left:20px;padding-right:20px}
  .customer-page .customer-bottom-nav{max-width:580px}
  .home-card{flex-basis:200px}
  .home-card-media{height:128px}
  .promo-title{font-size:28px}
}
