/* Home page (resources/views/catalog/home.blade.php). Values from reference/isplati-prototype.css.
   Scoped to .home so nothing leaks to other pages; component fallbacks (.btn, .chip, .card…) mirror ds.css values. */

.home .wrap{width:100%;max-width:1312px;margin:0 auto;padding-left:16px;padding-right:16px}
@media(min-width:768px){.home .wrap{padding-left:24px;padding-right:24px}}
@media(min-width:1024px){.home .wrap{padding-left:32px;padding-right:32px}}

/* typography helpers */
.home .h1{font-weight:800;font-size:30px;line-height:36px;letter-spacing:-0.02em;margin:0}
.home .h2{font-weight:800;font-size:22px;line-height:28px;letter-spacing:-0.01em;margin:0}
.home .h3{font-weight:700;font-size:18px;line-height:24px;margin:0}
.home .h4{font-weight:700;font-size:16px;line-height:22px;margin:0}
@media(min-width:1024px){.home .h2{font-size:28px;line-height:36px}.home .h3{font-size:20px;line-height:28px}}
.home .body-s{font-size:14px;line-height:20px;margin:0}
.home .cap{font-size:13px;line-height:18px;font-weight:500}
.home .eyebrow{display:block;font-weight:700;font-size:12px;line-height:16px;letter-spacing:.08em;text-transform:uppercase;color:#5A6472}
.home .muted{color:#5A6472}
.home .green{color:#00754F}
.home .price{font-weight:800;font-size:20px;line-height:24px;font-variant-numeric:tabular-nums;letter-spacing:-0.01em}
.home svg.i{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* component fallbacks (same values as the design system) */
.home .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:8px;font-family:inherit;font-weight:700;font-size:15px;line-height:20px;border:1px solid transparent;cursor:pointer;text-decoration:none;transition:background-color .15s ease,border-color .15s ease,color .15s ease;white-space:nowrap;background:none;color:#0B1320}
.home .btn-primary{background:#A6FF00;color:#0B1320}
.home .btn-primary:hover{background:#95E600;color:#0B1320}
.home .btn-primary:active{background:#86D000}
.home .btn-dark{background:#0B1320;color:#FFFFFF}
.home .btn-dark:hover{background:#1E2836;color:#FFFFFF}
.home .btn-ghost{color:#0B1320}
.home .btn-ghost:hover{background:#ECEFED;color:#0B1320}
.home .btn-sm{min-height:36px;padding:0 12px;font-size:14px}
.home .btn-block{width:100%}
.home .btn svg.i{width:18px;height:18px}
.home .card{background:#FFFFFF;border:1px solid #DDE3E0;border-radius:12px}
.home .chip{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:999px;border:1px solid #C5CEC9;background:#FFFFFF;font-weight:600;font-size:14px;color:#0B1320;cursor:pointer;text-decoration:none;white-space:nowrap}
.home .chip:hover{border-color:#0B1320;color:#0B1320}
.home :focus-visible{outline:2px solid #0B1320;outline-offset:2px;box-shadow:0 0 0 5px #A6FF00}

/* sections */
.home .sect{padding-top:24px}
@media(min-width:1024px){.home .sect{padding-top:32px}}
.home .shead{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;row-gap:2px;align-items:center;margin-bottom:10px}
.home .shead>h2,.home .shead>p{grid-column:1/-1}
.home .shead>a{grid-column:1/-1;justify-self:start;padding-left:0;padding-right:0}
.home .shead-link{color:#00754F}
@media(min-width:768px){.home .shead>p{grid-column:1}.home .shead>a{grid-column:2;grid-row:1/span 2;justify-self:end;padding:0 12px}}

/* hero */
.home .hero{background:#0B1320;color:#FFFFFF;padding:0}
.home .hero-in{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:center;padding-top:24px;padding-bottom:28px}
@media(min-width:768px){.home .hero-in:has(.tagcard){grid-template-columns:minmax(0,3fr) minmax(0,2fr)}}
@media(min-width:1024px){.home .hero-in:has(.tagcard){grid-template-columns:minmax(0,2fr) minmax(0,1fr)}}
.home .hero-main{display:flex;flex-direction:column;gap:10px;min-width:0}
.home .hero .eyebrow{color:#A6FF00}
.home .hero .h1{color:#FFFFFF;font-size:clamp(34px,5vw,56px);line-height:1.08;font-weight:800}
.home .hero .hl{color:#A6FF00}
.home .hero .hero-lead{font-size:17px;line-height:26px;max-width:560px;color:#C9D1CD;margin:0}
.home .hero-search-area{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;min-width:0}
.home .home-search{position:relative;max-width:640px;margin:0}
@media(min-width:1024px){
  .home .hero-search-area:has(.popular){width:fit-content;max-width:100%}
  .home .hero-search-area:has(.popular) :is(.home-search,.ai-bar){contain:inline-size;width:100%;max-width:none}
}
.home .searchbox{display:flex;align-items:center;gap:8px;height:54px;border:0;border-radius:10px;background:#FFFFFF;padding:0 6px 0 18px;width:100%}
.home .searchbox:focus-within{box-shadow:0 0 0 3px #A6FF00}
.home .searchbox .sb-icon{display:flex;color:#0B1320}
.home .searchbox input{border:0;outline:0;flex:1 1 0;min-width:0;font-family:inherit;font-size:17px;font-weight:500;color:#0B1320;background:transparent;height:44px;padding:0;-webkit-appearance:none;appearance:none}
.home .searchbox input:focus-visible{outline:0;box-shadow:none}
.home .searchbox input::placeholder{color:#6B7480}
.home .searchbox input::-webkit-search-cancel-button{-webkit-appearance:none}
.home .searchbox .btn{min-height:48px}
@media(max-width:420px){.home .searchbox{padding-left:12px}.home .searchbox .btn{padding:0 12px}.home .searchbox input{font-size:16px}}
.home .home-search .suggestions{top:calc(100% + 6px)}
.home .ai-bar{display:flex;align-items:center;gap:10px;max-width:640px;padding:10px 12px;border-radius:10px;background:#16202F;border:1px solid #2C3A4D;text-decoration:none;color:#FFFFFF;min-height:48px}
.home .ai-bar:hover{border-color:#A6FF00}
.home .ai-mark{width:28px;height:28px;border-radius:8px;background:#A6FF00;color:#0B1320;display:inline-flex;align-items:center;justify-content:center;flex:none}
.home .ai-mark svg.i{width:16px;height:16px}
.home .ai-text{flex:1 1 0;min-width:0;font-size:14px;line-height:20px}
.home .ai-text span{color:#C9D1CD}
.home .popular{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.home .popular .cap{color:#C9D1CD}
.home .hero .chip{background:transparent;color:#FFFFFF;border-color:#3B4A5E;min-height:44px}
.home .hero .chip:hover{border-color:#A6FF00;color:#FFFFFF}
.home .perks{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;padding-top:8px;border-top:1px solid #1E2836}
.home .perks .perk{display:inline-flex;align-items:center;gap:6px;font-size:13px;line-height:18px;font-weight:500;color:#E3E8E5}
.home .perks .perk svg.i{width:16px;height:16px;color:#A6FF00}
.home .perk-cta{font-size:13px;line-height:18px;color:#A6FF00;font-weight:800;text-decoration:none;display:inline-flex;align-items:center;min-height:44px}
.home .perk-cta:hover{text-decoration:underline}
.home .hero :focus-visible{outline-color:#FFFFFF}

/* example price card */
.home .tagcard{display:none;position:relative;background:#FFFFFF;border-radius:16px;padding:16px;color:#0B1320}
@media(min-width:768px){.home .tagcard{display:block;max-width:420px}}
@media(min-width:1024px){.home .tagcard{max-width:none}}
.home .tagcard::before{content:"";position:absolute;top:16px;right:16px;width:14px;height:14px;border-radius:50%;background:#0B1320}
.home .tagcard .eyebrow{margin-bottom:8px}
.home .tc-product{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.home .tc-thumb{width:64px;height:64px;flex:none;border-radius:8px;background:#F3F5F4;overflow:hidden;display:flex;align-items:center;justify-content:center}
.home .tc-thumb img{width:100%;height:100%;object-fit:contain}
.home .tc-name{display:flex;flex-direction:column;min-width:0}
.home .tc-name b{font-size:15px;line-height:20px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.home .tc-rows{display:flex;flex-direction:column;gap:6px;margin:0 0 10px}
.home .tc-rows>div{display:flex;align-items:center;justify-content:space-between;gap:12px}
.home .tc-rows dt{font-size:14px;line-height:20px}
.home .tc-rows dd{margin:0;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}
.home .tc-rows dd.price{font-weight:800}
.home .tc-rows .tc-min{background:#F0FFD6;border-radius:8px;padding:8px 10px;margin:0 -10px}

/* category bento */
.home .bento{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.home .bento .bt{display:flex;align-items:center;gap:12px;padding:12px;border-radius:14px;background:#FFFFFF;border:1px solid #DDE3E0;text-decoration:none;color:#0B1320;min-height:60px;transition:border-color .15s ease;position:relative;overflow:hidden;min-width:0}
.home .bento .bt:hover{border-color:#0B1320;color:#0B1320}
.home .bento .bt>span:last-of-type{min-width:0}
.home .bento .bi{width:48px;height:48px;border-radius:12px;background:#F0FFD6;display:flex;align-items:center;justify-content:center;flex:none}
.home .bento .bt:hover .bi{background:#A6FF00}
.home .bento .bi svg.i{width:26px;height:26px;stroke:#0B1320;stroke-width:2}
.home .bento .bt b{font-size:15px;line-height:20px;display:block;overflow-wrap:anywhere}
.home .bento .bt small{display:block;font-size:12px;line-height:16px;color:#5A6472;margin-top:2px}
.home .bento .feat{grid-column:1/-1;background:#0B1320;border-color:#0B1320;color:#FFFFFF;min-height:120px}
.home .bento .feat:hover{color:#FFFFFF;border-color:#A6FF00}
.home .bento .feat:hover .bi{background:#A6FF00}
.home .bento .feat .bi{background:#A6FF00;width:64px;height:64px}
.home .bento .feat .bi svg.i{width:34px;height:34px}
.home .bento .feat b{font-size:20px;line-height:26px}
.home .bento .feat small{color:#C9D1CD}
.home .bento .feat .feat-count{color:#A6FF00;font-weight:700;margin-top:8px}
.home .bento .alt{background:#F0FFD6;border-color:#DDF5AE}
.home .bento .alt .bi{background:#FFFFFF}
.home .bento .all{background:#A6FF00;border-color:#A6FF00;justify-content:space-between;font-weight:800}
.home .bento .all:hover{background:#95E600;border-color:#95E600}
.home .bento .all small{color:#0B1320}
@media(min-width:768px){
.home .bento{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.home .bento .feat{grid-column:span 2;grid-row:span 2;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:20px}
.home .bento .alt{grid-column:span 2}
.home .bento .all{grid-column:auto}
}
@media(min-width:1024px){
.home .bento{grid-template-columns:repeat(6,minmax(0,1fr))}
.home .bento .bt{flex-direction:column;align-items:flex-start;justify-content:space-between;min-height:104px;padding:12px}
.home .bento .feat{min-height:220px;padding:16px}
.home .bento .feat b{font-size:26px;line-height:32px}
.home .bento .all{grid-column:span 3;flex-direction:row;align-items:center;min-height:104px}
}
.home .allcats{margin-top:12px;scroll-margin-top:96px}
.home .allcats:focus{outline:0}
.home .allcats h3{margin-bottom:10px}
.home .allcats ul{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.home .allcats .chip{min-height:44px}

/* new products grid (cards reuse .product-tile from catalog.css) */
.home .home-grid{margin:0}

/* sponsored placement keeps its own include */
.home .home-ad{padding-top:24px}

/* brands & merchants */
.home .twoeq{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
@media(min-width:768px){.home .twoeq{grid-template-columns:repeat(2,minmax(0,1fr))}}
.home .sub-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.home .sub-head a{color:#00754F;font-weight:700;display:inline-flex;align-items:center;min-height:44px}
.home .brand-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;list-style:none;margin:0;padding:0}
@media(min-width:480px){.home .brand-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.home .brand-card{display:flex;align-items:center;justify-content:center;min-height:52px;height:100%;padding:8px 10px;text-decoration:none;color:#0B1320}
.home .brand-card:hover{border-color:#0B1320}
.home .brand-card img{display:block;max-width:100%;max-height:32px;object-fit:contain}
.home .brand-name{font-weight:800;font-size:15px;line-height:20px;text-align:center;overflow-wrap:anywhere}
.home .merchant-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px;list-style:none;margin:0;padding:0}
.home .merchant-card{display:flex;align-items:center;gap:10px;padding:10px;text-decoration:none;color:#0B1320;height:100%}
.home .merchant-card:hover{border-color:#0B1320}
.home .mc-text{display:flex;flex-direction:column;min-width:0}
.home .mc-fresh{display:inline-flex;align-items:center;gap:4px}
.home .mc-fresh svg.i{width:14px;height:14px}

/* guest join card */
.home .join{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;background:#FFFFFF;border:1px solid #DDE3E0;border-radius:16px;padding:16px}
@media(min-width:900px){.home .join{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;padding:18px}}
.home .join-copy{display:flex;flex-direction:column;gap:10px}
.home .perks-list{display:flex;flex-direction:column;gap:6px;list-style:none;margin:0;padding:0}
.home .join .perk{display:flex;gap:8px;align-items:flex-start;font-size:14px;line-height:20px}
.home .join .perk svg.i{color:#00754F;margin-top:1px;width:18px;height:18px}
.home .join-actions{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.home .join-actions a:not(.btn){color:#00754F;font-weight:700}

/* newsletter band */
.home .nl-band{background:#A6FF00;border-radius:16px;padding:16px;display:grid;grid-template-columns:minmax(0,1fr);gap:20px;color:#0B1320}
@media(min-width:1024px){.home .nl-band{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);padding:20px;align-items:center}}
.home .nl-copy,.home .nl-side{display:flex;flex-direction:column;gap:10px}
.home .nl-band .eyebrow{color:#0B1320}
.home .nl-form-home,.home .nl-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.home .tchip{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:6px 14px;border-radius:999px;border:1px solid #0B1320;color:#0B1320;background:rgba(255,255,255,.35);font-size:13px;line-height:18px;font-weight:600;cursor:pointer}
.home .tchip input{accent-color:#0B1320;width:16px;height:16px;min-height:0;padding:0;margin:0;flex:none}
.home .nl-login{color:#0B1320;font-weight:700;display:inline-flex;align-items:center;min-height:44px}
.home .nl-band :focus-visible{outline-color:#0B1320;box-shadow:0 0 0 5px #FFFFFF}

/* how it works */
.home .how{background:#0B1320;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px;color:#FFFFFF}
.home .how-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.home .how-head .h3{color:#FFFFFF}
.home .how-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;list-style:none;margin:0;padding:0}
.home .how-steps li{display:flex;align-items:flex-start;gap:12px}
.home .how-steps h3{color:#FFFFFF;margin-bottom:4px}
.home .how-steps p{color:#C9D1CD}
.home .how-icon{width:40px;height:40px;border-radius:10px;background:#A6FF00;color:#0B1320;display:flex;align-items:center;justify-content:center;flex:none}
.home .how-foot{display:flex;flex-wrap:wrap;gap:12px 24px;border-top:1px solid #25303F;padding-top:16px}
.home .how-foot span{display:flex;align-items:flex-start;gap:8px;flex:1 1 300px;font-size:13px;line-height:18px;font-weight:500;color:#E3E8E5}
.home .how-foot svg.i{width:16px;height:16px;color:#A6FF00;margin-top:1px}
.home .how :focus-visible{outline-color:#FFFFFF}
.home>.wrap:last-child{padding-bottom:24px}

@media(prefers-reduced-motion:reduce){.home *{transition:none!important}}

/* category photos (real product image from the category) */
.home .bt .bt-img{display:block;width:64px;height:64px;flex:none;border-radius:12px;overflow:hidden;background:#f0ecED}
.home .bt .bt-img img{display:block;width:100%;height:100%;object-fit:cover}
.home .bt.feat.has-img{position:relative;overflow:hidden}
.home .bt.feat .bt-img{width:100%;height:auto;aspect-ratio:16/7;border-radius:14px;margin-bottom:8px}

/* Keep the featured category horizontal and separate the content bands on phones. */
.home .tagcard .eyebrow{color:#0B1320;background:#F0FFD6;display:inline-block;padding:4px 10px;border-radius:999px;font-size:12px;letter-spacing:.06em;font-weight:800}

body:has(.home .hero) .hdr-search{display:none}

@media(max-width:767.98px){
  body:has(.home .hero) .hdr .mm-row{display:none}
  .home .hero-in{padding-block:16px 18px}
  .home .perks{gap:4px 10px}
  .home>.wrap{padding-inline:0}
  .home>.wrap>.sect{padding:16px 16px}
  .home>.wrap:last-child{padding-bottom:0}
  .home>.wrap>.sect:has(#h-new){
    background:#F0FFD6;
    border-block:1px solid #DDF5AE;
  }
  .home .shead>a{min-height:44px;color:#00754F}
  .home .bento .bt{gap:8px;padding:10px}
  .home .bento .bt b{font-size:14px;line-height:19px;overflow-wrap:anywhere}
  .home .bento .bt small{overflow-wrap:anywhere}
  .home .bento .bi,.home .bento .bt-img{width:36px;height:36px;border-radius:8px}
  .home .bento .bi svg.i{width:22px;height:22px}
  .home .bento .feat{min-height:80px;padding:10px;gap:10px}
  .home .bento .feat .bi,.home .bento .feat .bt-img{width:64px;height:64px;margin:0}
  .home .bento .feat .bi svg.i{width:34px;height:34px}
  .home .bento .feat b{font-size:18px;line-height:24px}
  .home .bento .all{grid-column:1/-1;min-height:56px}
  .home .allcats ul{
    flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;
    margin-inline:-16px;padding:6px 16px 8px;
  }
  .home .allcats li{flex:none}
  .home .home-grid{grid-template-columns:minmax(0,1fr);gap:8px}
  .home .home-grid .product-tile{
    display:grid;grid-template-columns:minmax(84px,30%) minmax(0,1fr);
    align-items:start;
  }
  .home .home-grid .product-tile-visual{padding:10px}
  .home .home-grid .product-tile-actions{position:static;display:flex;justify-content:center;margin-top:4px}
  .home .home-grid .product-icon{width:44px;height:44px;min-height:44px}
  .home .home-grid .product-tile-info{min-width:0;padding:8px 10px 8px 0}
  .home .home-grid .product-tile h3{min-height:0;margin-bottom:6px}
  .home .home-grid .product-tile-row{margin-top:8px}
  .home .home-grid .product-tile-cta{min-width:0;white-space:normal;overflow-wrap:anywhere}
  .home .twoeq>div+div{border-top:1px solid #C5CEC9;padding-top:12px}
  .home .merchant-grid,.home .how-steps{grid-template-columns:minmax(0,1fr)}
  .home .merchant-card{flex-wrap:wrap}
  .home .sub-head{flex-wrap:wrap;gap:4px 12px}
  .home .join,.home .nl-band,.home .how{padding:16px}
  .home .join-actions .btn,.home .nl-actions .btn,.home .how-head .btn{
    min-width:0;min-height:44px;max-width:100%;white-space:normal;text-align:center;padding-block:8px;
  }
}
