/* v374: new home page look (hero + trust chips + round categories + founder card + clean product cards + WhatsApp button).
   iPhone-safe: no :has(), no lookbehind. Colours follow the theme (--brand-*). */
#view-home{--es:#2a170e}
.h2-hero{position:relative;overflow:hidden;border-radius:26px;color:#fff;padding:20px 18px 18px;min-height:236px;
  background:linear-gradient(135deg,rgb(var(--brand-700)) 0%,rgb(var(--brand-600)) 50%,rgb(var(--brand-400)) 100%);
  box-shadow:0 14px 30px -14px rgb(var(--brand-700)/.55)}
.h2-hero::before{content:"";position:absolute;width:260px;height:260px;right:-70px;top:-90px;border-radius:50%;background:rgba(255,255,255,.14);filter:blur(10px);pointer-events:none}
.h2-hero-txt{position:relative;z-index:2;max-width:62%}
.h2-pill{display:inline-block;font-size:11px;font-weight:700;background:rgba(255,255,255,.22);padding:5px 10px;border-radius:99px;line-height:1.3}
.h2-title{font-size:23px;line-height:1.25;font-weight:900;margin:9px 0 6px}
.h2-title b{color:var(--es)}
.h2-desc{font-size:12px;line-height:1.55;opacity:.95}
.h2-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;position:relative;z-index:3}
.h2-b1{display:inline-flex;align-items:center;gap:6px;background:#fff;color:rgb(var(--brand-700));font-weight:800;font-size:13px;padding:11px 15px;border-radius:14px;box-shadow:0 6px 16px rgba(0,0,0,.18);transition:transform .15s}
.h2-b2{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.16);color:#fff;font-weight:700;font-size:13px;padding:11px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.3)}
.h2-b2.hidden{display:none}
.h2-b1:active,.h2-b2:active{transform:scale(.96)}
.h2-col{position:absolute;right:-4px;top:18px;width:140px;height:205px;z-index:1}
.h2-col img{position:absolute;width:92px;height:112px;object-fit:cover;border-radius:16px;border:3px solid #fff;box-shadow:0 10px 24px rgba(0,0,0,.3);background:#fff;opacity:0;animation:h2-pop .6s cubic-bezier(.2,.8,.3,1.2) forwards}
.h2-col img:nth-child(1){right:44px;top:0;--r:-8deg}
.h2-col img:nth-child(2){right:2px;top:54px;--r:7deg;animation-delay:.12s}
.h2-col img:nth-child(3){right:50px;top:106px;--r:-3deg;animation-delay:.24s}
@keyframes h2-pop{from{opacity:0;transform:translateY(16px) rotate(0) scale(.9)}to{opacity:1;transform:rotate(var(--r)) scale(1)}}
@media (min-width:768px){.h2-hero{padding:34px 36px;min-height:280px}.h2-title{font-size:34px}.h2-desc{font-size:14px}.h2-col{right:40px;top:20px;width:260px;height:250px}.h2-col img{width:120px;height:146px}.h2-col img:nth-child(1){right:110px;top:0}.h2-col img:nth-child(2){right:0;top:46px}.h2-col img:nth-child(3){right:118px;top:96px}}
@media (prefers-reduced-motion:reduce){.h2-col img{animation:none;opacity:1;transform:rotate(var(--r))}}

.h2-trust{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin-top:12px!important;padding:2px 1px 4px;-webkit-overflow-scrolling:touch}
.h2-trust::-webkit-scrollbar{display:none}
.h2-t{flex:0 0 auto;display:flex;gap:8px;align-items:center;background:#fff;border:1px solid rgb(var(--brand-200));border-radius:14px;padding:9px 12px 9px 9px;font-size:12px;font-weight:800;color:var(--es);line-height:1.25}
.h2-t i{width:28px;height:28px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:rgb(var(--brand-600)/.1);color:rgb(var(--brand-600));font-size:13px;flex:none}
.h2-t small{display:block;font-weight:500;color:#8a7262;font-size:10.5px}

/* promo carousel (Admin → Promo banners) stays; its category list/strip are replaced by the round categories */
#home-storefront .gs-sf-cats,#home-storefront .gs-sf-strip{display:none!important}
#home-storefront.gs-sf{display:block}
#home-storefront.hidden{display:none}

/* long "duty & shipping included" heading: the trust chips and the card line say it now */
#home-products > div:first-child{display:none}

/* search row: search box + Link button */
#home-search-wrap{flex-direction:row!important;align-items:stretch;margin-top:4px}
#home-search-wrap #ps-label{display:none}
#home-search-wrap > div{flex:1;min-width:0}
#home-search-wrap #home-prod-search{border-width:1.5px!important;border-color:rgb(var(--brand-200))!important;padding-top:13px!important;padding-bottom:13px!important;box-shadow:0 2px 8px rgba(42,23,14,.05)!important}
.h2-link{flex:none;display:flex;align-items:center;gap:6px;background:var(--es);color:#fff;border-radius:16px;padding:0 14px;font-size:12.5px;font-weight:800}
.h2-link:active{transform:scale(.96)}

/* round categories on the home page */
#home-cat-tiles.grid{display:flex!important;gap:12px;overflow-x:auto;scrollbar-width:none;padding:2px 2px 6px;-webkit-overflow-scrolling:touch}
#home-cat-tiles.grid::-webkit-scrollbar{display:none}
#home-cat-tiles .cat-tile{flex:0 0 auto;width:70px;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important;text-align:center}
#home-cat-tiles .cat-tile:hover{transform:none;box-shadow:none}
#home-cat-tiles .cat-pic{width:68px;height:68px;aspect-ratio:auto!important;margin:0 auto;border-radius:50%;border:2px solid rgb(var(--brand-200));box-shadow:inset 0 0 0 2px #fff;background:#fff!important}
#home-cat-tiles .cat-pic::after{display:none}
#home-cat-tiles .cat-pic img{transform:scale(1.9);transform-origin:62% 82%}
#home-cat-tiles .cat-tile:hover .cat-pic img{transform:scale(1.9)}
#home-cat-tiles .cat-pic svg{width:30px;height:30px}
#home-cat-tiles .cat-tile > div:last-child{padding:6px 0 0!important;display:block}
#home-cat-tiles .cat-tile > div:last-child .truncate{font-size:11px;white-space:normal;line-height:1.25}
#home-cat-tiles .cat-tile > div:last-child .text-\[10px\],#home-cat-tiles .cat-go{display:none}
@media (min-width:768px){#home-cat-tiles .cat-tile{width:92px}#home-cat-tiles .cat-pic{width:88px;height:88px}}
.h2-cats-h{display:flex;justify-content:space-between;align-items:flex-end}
.h2-cats-h h3,.h2-sec-h{font-size:17px;font-weight:900;color:var(--es)}

/* founder card */
.h2-f{display:flex;gap:14px;align-items:center;background:linear-gradient(135deg,#fff,rgb(var(--brand-50)));border:1px solid rgb(var(--brand-200));border-radius:22px;padding:14px}
#home-cat-tiles.hidden ~ .h2-f{display:none}
.h2-f img{width:78px;height:78px;border-radius:50%;object-fit:cover;object-position:50% 20%;border:3px solid rgb(var(--brand-400));flex:none}
.h2-f h4{font-size:15px;font-weight:900;color:var(--es)}
.h2-f p{font-size:11.5px;color:#6b5546;line-height:1.5;margin:3px 0 8px}
.h2-f .row{display:flex;gap:6px;flex-wrap:wrap}
.h2-wa{display:inline-flex;align-items:center;gap:5px;background:#22c55e;color:#fff;font-size:11.5px;font-weight:800;padding:7px 11px;border-radius:11px}
.h2-ab{background:#fff;border:1px solid rgb(var(--brand-200));color:var(--es);font-size:11.5px;font-weight:800;padding:7px 11px;border-radius:11px}

/* clean product cards (home, categories, search, similar items) */
.gs-pc{border:0!important;box-shadow:0 2px 10px rgba(42,23,14,.07)!important;border-radius:18px!important}
.gs-pc .gs-pc-nm{font-size:12px;font-weight:700;color:var(--es);line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gs-pc .gs-pc-pr{font-size:16px;font-weight:900;color:rgb(var(--brand-700));line-height:1.1}
.gs-pc .gs-pc-sub{display:block;font-size:10px;color:#9a8474;font-weight:600;margin-top:2px}
.gs-pc .gs-pc-add{flex:none;width:36px;height:36px;border-radius:12px;background:var(--es);color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;transition:transform .15s}
.gs-pc .gs-pc-add:active{transform:scale(.9)}

/* How it works: 3 small cards in a row */
#how-demo{display:none!important}
#how-3{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
#how-3 > div{padding:12px 6px!important;background:#fff!important;border:1px solid rgb(var(--brand-200))}
#how-3 > div > div:first-child{width:38px!important;height:38px!important;font-size:16px!important;border-radius:12px!important;color:#fff!important;background:linear-gradient(135deg,rgb(var(--brand-700)),rgb(var(--brand-400)))!important}
#how-3 h4{font-size:12px!important}
#how-3 p{font-size:10.5px!important;line-height:1.35}


/* similar items under a product */
.h2-sim{padding:4px 20px 22px}
.h2-sim h4{font-size:15px;font-weight:900;color:var(--es);margin-bottom:10px}
.h2-sim-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.h2-sim-c{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 2px 10px rgba(42,23,14,.08);text-align:left;cursor:pointer}
.h2-sim-c .im{aspect-ratio:1/1;background:#f6efe8}
.h2-sim-c img{width:100%;height:100%;object-fit:cover}
.h2-sim-c .bd{padding:8px 9px 10px}
.h2-sim-c .nm{font-size:11.5px;font-weight:700;color:var(--es);line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.h2-sim-c .pr{font-size:14px;font-weight:900;color:rgb(var(--brand-700));margin-top:4px}

/* v375: hero floating icons back, Telegram as a round icon on phones */
.h2-hero .gs-hx{z-index:0}
.h2-hero .gs-hx{opacity:.55}
@media (max-width:767px){.h2-tg span{display:none}.h2-tg{padding:11px 13px}}
/* link paste box at the top (main way to order) */
#home-quick{background:#fff!important;border:1.5px solid rgb(var(--brand-200))!important;border-style:solid!important;border-radius:20px!important;padding:12px!important;box-shadow:0 2px 10px rgba(42,23,14,.05)!important;margin-top:12px!important}
#home-quick > div:first-child span{background:rgb(var(--brand-600))!important}
#home-quick > div:last-child{flex-direction:row!important}
#home-quick #home-quick-link{border-color:rgb(var(--brand-200))!important;background:rgb(var(--brand-50))!important}
#btn-import-home{background:var(--es)!important;flex:none;padding-left:16px!important;padding-right:16px!important}

/* v378: owner's correct photo on the price page */
.gs-qa-ok{margin-top:8px;font-size:12px;font-weight:800;color:#15803d;background:#dcfce7;border:1px solid #86efac;border-radius:10px;padding:6px 10px}
.gs-qa-you{display:none;font-size:11px;font-weight:800;color:#9a3412;margin-top:10px}
.gs-qa-card.open .gs-qa-you{display:block}
.gs-qa-old img{opacity:.55;filter:grayscale(.5)}
.ks-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.ks-row img{width:56px;height:56px;object-fit:cover;border-radius:8px;border:2px solid #22c55e}
.ks-add{font-size:11px;font-weight:800;padding:5px 9px;border-radius:9px;background:#dcfce7;color:#166534;border:1px solid #86efac}
.ks-clr{font-size:11px;font-weight:700;padding:5px 8px;border-radius:9px;background:#fff;color:#b91c1c;border:1px solid #fecaca}

/* v383: laptop/desktop - fill the full width (owner, Nov 30) */
@media (min-width:1024px){
  .h2-trust{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;overflow:visible}
  .h2-t{padding:14px 18px 14px 14px;font-size:15px;gap:12px}
  .h2-t i{width:42px;height:42px;border-radius:12px;font-size:18px}
  .h2-t small{font-size:12.5px}
  #home-cat-tiles.grid{justify-content:space-between;gap:10px;overflow:visible}
  #home-cat-tiles .cat-tile{flex:1 1 0;width:auto;min-width:0;max-width:130px}
  #home-cat-tiles .cat-pic{width:100%;max-width:100px;height:auto;aspect-ratio:1/1!important}
  #home-cat-tiles .cat-tile > div:last-child .truncate{font-size:13px}
  .h2-f{padding:22px 28px;gap:24px}
  .h2-f img{width:116px;height:116px}
  .h2-f > div{flex:1;display:grid;grid-template-columns:1fr auto;column-gap:28px;align-items:center}
  .h2-f h4{font-size:22px;grid-column:1}
  .h2-f p{font-size:15px;grid-column:1;margin:6px 0 0}
  .h2-f .row{grid-column:2;grid-row:1 / span 2;gap:10px;flex-wrap:nowrap}
  .h2-wa,.h2-ab{font-size:15px;padding:12px 20px;border-radius:14px}
}

/* v384: pop-out category circles (cut-out product rises above the circle) */
#home-cat-tiles.h2-pop .cat-tile{padding-top:16px}
#home-cat-tiles.h2-pop .cat-pic[data-pop]{position:relative;overflow:visible!important;border:0!important;background:radial-gradient(circle at 50% 35%,#fff3e6,#f4c79a 70%,#e5a149)!important;box-shadow:inset 0 -6px 12px rgba(193,84,10,.25),0 6px 14px rgba(42,23,14,.12)!important}
#home-cat-tiles.h2-pop .cat-pic.pop-all{background:#fff!important;border:2px solid #f4c79a!important;box-shadow:0 6px 14px rgba(42,23,14,.08)!important}
#home-cat-tiles.h2-pop .cat-pic .pop-img{position:absolute;left:50%;bottom:10%;height:118%;width:auto;max-width:88%;object-fit:contain;transform:translateX(-50%);filter:drop-shadow(0 6px 6px rgba(42,23,14,.28));transition:transform .25s}
#home-cat-tiles.h2-pop .cat-tile:hover .cat-pic .pop-img{transform:translateX(-50%) translateY(-5px) scale(1.05)}
#home-cat-tiles.h2-pop .cat-pic .pop-shoes,#home-cat-tiles.h2-pop .cat-pic .pop-jewelry{height:105%}
#home-cat-tiles.h2-pop .cat-pic .pop-glasses{height:auto;width:108%;max-width:none;bottom:28%;transform:translateX(-50%) rotate(-8deg)}
#home-cat-tiles.h2-pop .cat-tile:hover .cat-pic .pop-glasses{transform:translateX(-50%) translateY(-5px) rotate(-8deg) scale(1.05)}
#home-cat-tiles.h2-pop .cat-pic .pop-other{height:122%;transform:translateX(-50%) rotate(25deg)}
#home-cat-tiles.h2-pop .cat-tile:hover .cat-pic .pop-other{transform:translateX(-50%) translateY(-5px) rotate(25deg)}
@media (prefers-reduced-motion:reduce){#home-cat-tiles.h2-pop .cat-pic .pop-img{transition:none}}

/* v385: clean product cards */
.gs-pc > div:first-child{background:#f6efe8!important}
.gs-pc > div:first-child img{transition:transform .35s}
.gs-pc:hover > div:first-child img{transform:scale(1.04)}
.gs-pc [data-share-product]{width:30px;height:30px;font-size:11px;opacity:.9}
.gs-pc .gs-pc-nm{font-size:12.5px}
@media (min-width:1024px){.gs-pc .gs-pc-nm{font-size:14px}.gs-pc .gs-pc-pr{font-size:18px}}

/* v385: scroll rows (new arrivals / budget picks) */
#h2-rows{display:flex;flex-direction:column;gap:18px}
.h2-row-h{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:8px}
.h2-row-h h3{font-size:17px;font-weight:900;color:var(--es)}
.h2-row-h button{font-size:12px;font-weight:800;color:rgb(var(--brand-600))}
.h2-row-s{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;padding:2px 2px 8px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
.h2-row-s::-webkit-scrollbar{display:none}
.h2-rc{flex:0 0 132px;scroll-snap-align:start;background:#fff;border-radius:16px;box-shadow:0 2px 10px rgba(42,23,14,.07);overflow:hidden;cursor:pointer}
.h2-rc .im{position:relative;aspect-ratio:1/1;background:#f6efe8;overflow:hidden}
.h2-rc .im img{width:100%;height:100%;object-fit:cover;transition:transform .35s}
.h2-rc:hover .im img{transform:scale(1.05)}
.h2-rc .off{position:absolute;top:6px;left:6px;background:#f43f5e;color:#fff;font-size:10px;font-weight:800;padding:2px 6px;border-radius:7px}
.h2-rc .nm{font-size:11.5px;font-weight:700;color:var(--es);line-height:1.3;padding:8px 9px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:38px}
.h2-rc .pr{font-size:14px;font-weight:900;color:rgb(var(--brand-700));padding:3px 9px 10px}
@media (min-width:1024px){.h2-rc{flex-basis:176px}.h2-rc .nm{font-size:13px}.h2-rc .pr{font-size:16px}}

/* v385: loading skeleton (hidden as soon as the product list shows) */
#home-products:not(.hidden) + #h2-skel,#h2-skel.done{display:none}
.h2-sk{background:#fff;border-radius:18px;padding:0 0 12px;box-shadow:0 2px 10px rgba(42,23,14,.05);overflow:hidden}
.h2-sk i,.h2-sk b{display:block;background:linear-gradient(90deg,#f3ebe3 25%,#fbf6f1 50%,#f3ebe3 75%);background-size:200% 100%;animation:h2sk 1.2s linear infinite}
.h2-sk i{aspect-ratio:1/1}
.h2-sk b{height:11px;border-radius:6px;margin:12px 12px 0}
.h2-sk b.s{width:45%;height:15px;margin-top:10px}
@keyframes h2sk{from{background-position:200% 0}to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.h2-sk i,.h2-sk b{animation:none}}

/* v385: bottom nav - active tab gets an orange pill */
nav.fixed.bottom-0 > button > i,nav.fixed.bottom-0 > button > div{display:inline-flex;align-items:center;justify-content:center;width:52px;height:30px;border-radius:999px;transition:background .2s}
nav.fixed.bottom-0 > button.text-brand-600 > i,nav.fixed.bottom-0 > button.text-brand-600 > div{background:rgb(var(--brand-600)/.13)}
nav.fixed.bottom-0 > button > div > i{font-size:1.125rem}
nav.fixed.bottom-0{border-top-color:#f0e4d8!important;box-shadow:0 -4px 18px rgba(42,23,14,.08)!important}

/* v386: footer in the brand orange (owner: no brown) */
#site-footer{background:linear-gradient(135deg,#c1540a 0%,#d9701f 55%,#e5a149 100%)!important;color:#fff!important}
#site-footer .text-indigo-100,#site-footer .text-indigo-200,#site-footer .text-indigo-300{color:#fff7ee!important}
#site-footer h4{color:#fff!important;letter-spacing:.02em}
#site-footer a:hover,#site-footer button:hover{color:#fff!important;text-decoration:underline}
#site-footer .bg-white\/10{background:rgba(255,255,255,.18)!important}
#site-footer .border-white\/20{border-color:rgba(255,255,255,.35)!important}
#site-footer .border-white\/10{border-color:rgba(255,255,255,.3)!important}

/* v396 brand shops row */
.h2-brand{flex:0 0 auto;width:112px;scroll-snap-align:start;display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 6px;background:#fff;border:1px solid #efe3d6;border-radius:18px;box-shadow:0 1px 3px rgba(0,0,0,.05)}
.h2-brand-pic{width:72px;height:72px;border-radius:999px;overflow:hidden;background:#f9f4f0;display:flex;align-items:center;justify-content:center;font-size:26px;border:2px solid rgb(var(--brand-600)/.35)}
.h2-brand-pic img{width:100%;height:100%;object-fit:cover}
.h2-brand-nm{font-size:12px;font-weight:900;color:#1e293b;text-align:center;line-height:1.2;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.h2-brand-n{font-size:10px;color:#64748b;font-weight:600}

/* v397 brand page: section tiles with photos */
.gs-bsec-row{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 6px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.gs-bsec-row::-webkit-scrollbar{display:none}
.gs-bsec{flex:0 0 auto;width:84px;display:flex;flex-direction:column;align-items:center;gap:5px;background:none;border:0;padding:0}
.gs-bsec-pic{width:68px;height:68px;border-radius:999px;overflow:hidden;background:#f9f4f0;display:flex;align-items:center;justify-content:center;font-size:24px;border:2px solid #efe3d6;transition:border-color .2s,transform .2s}
.gs-bsec-pic img{width:100%;height:100%;object-fit:cover}
.gs-bsec-nm{font-size:11px;font-weight:800;color:#334155;text-align:center;line-height:1.2;max-width:84px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gs-bsec.on .gs-bsec-pic{border-color:rgb(var(--brand-600));transform:scale(1.05);box-shadow:0 4px 12px rgb(var(--brand-600)/.25)}
.gs-bsec.on .gs-bsec-nm{color:rgb(var(--brand-700))}
