
/* Phase 85 — shop/mixes only. Premium Minimal cleanup. */

/* Desktop */
@media (min-width:851px){
  .store-shell{
    padding-top:38px!important;
    padding-bottom:34px!important;
  }

  .category-head{
    max-width:760px!important;
    margin-bottom:22px!important;
  }

  .category-head h1{
    margin:4px 0 12px!important;
    line-height:1.08!important;
  }

  .category-head p{
    line-height:1.9!important;
    margin:0!important;
  }

  .finder{
    margin:20px 0 22px!important;
    padding:22px 24px!important;
    gap:18px!important;
    border-radius:18px!important;
  }

  .finder h2{
    margin:4px 0 8px!important;
    line-height:1.4!important;
  }

  .finder p{
    margin:0!important;
    line-height:1.8!important;
  }

  .product-grid{
    gap:12px!important;
  }

  .product-card{
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
    border-radius:16px!important;
  }

  .product-card>div{
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    padding:14px!important;
  }

  .product-card h3{
    line-height:1.25!important;
    margin:2px 0 5px!important;
  }

  .product-card p{
    line-height:1.65!important;
  }

  .product-card .note{
    min-height:34px!important;
  }

  .buy-row{
    margin-top:auto!important;
    padding-top:10px!important;
  }

  .detail-link{
    margin-top:8px!important;
  }
}

/* Mobile */
@media (max-width:520px){
  .store-shell{
    width:min(100% - 20px,1180px)!important;
    padding-top:22px!important;
    padding-bottom:18px!important;
  }

  .category-head{
    margin-bottom:18px!important;
  }

  .category-head h1{
    font-size:34px!important;
    line-height:1.12!important;
    margin:4px 0 12px!important;
  }

  .category-head p{
    font-size:14px!important;
    line-height:1.9!important;
    margin:0!important;
  }

  .finder{
    margin:16px 0 18px!important;
    padding:22px 16px 18px!important;
    gap:14px!important;
    border-radius:18px!important;
  }

  .finder h2{
    font-size:25px!important;
    line-height:1.5!important;
    margin:4px 0 10px!important;
  }

  .finder p{
    font-size:13px!important;
    line-height:1.9!important;
    margin:0!important;
  }

  .finder button{
    min-height:48px!important;
    padding:10px 14px!important;
    font-size:15px!important;
  }

  .product-grid{
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
  }

  .product-card{
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
    border-radius:15px!important;
  }

  .product-card img{
    aspect-ratio:1/1!important;
    object-fit:cover!important;
  }

  .product-card>div{
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    padding:10px 10px 9px!important;
  }

  .product-card small{
    font-size:11px!important;
  }

  .product-card h3{
    font-size:21px!important;
    line-height:1.25!important;
    margin:3px 0 5px!important;
  }

  .product-card p{
    font-size:11.5px!important;
    line-height:1.65!important;
    margin:2px 0!important;
  }

  .product-card .note{
    min-height:34px!important;
  }

  .buy-row{
    grid-template-columns:1fr!important;
    gap:6px!important;
    margin-top:auto!important;
    padding-top:8px!important;
  }

  .buy-row select{
    min-height:44px!important;
    font-size:15px!important;
    padding:8px!important;
  }

  .quick-add{
    min-height:42px!important;
    font-size:16px!important;
  }

  .detail-link{
    margin-top:7px!important;
    font-size:10.5px!important;
    line-height:1.5!important;
  }
}

/* Remove only unnecessary page-bottom whitespace before the global footer. */
.store-shell{
  margin-bottom:0!important;
}


/* =========================================================
   Phase 86 — Copy/readability fixes for shop/mixes
   Desktop + mobile
   ========================================================= */

/* Keep the English brand name as one readable unit. */
.category-head h1 .brand-nowrap{
  white-space:nowrap!important;
  display:inline-block!important;
}

/* Give the H1 enough width on desktop to prevent awkward 3-line breakup. */
@media (min-width:851px){
  .category-head{
    max-width:860px!important;
  }
  .category-head h1{
    max-width:860px!important;
    text-wrap:balance!important;
  }
}

/* On mobile, allow the title to stay balanced without splitting Coffee Lovers itself. */
@media (max-width:520px){
  .category-head h1{
    font-size:32px!important;
    line-height:1.16!important;
    text-wrap:balance!important;
  }
  .category-head h1 .brand-nowrap{
    white-space:nowrap!important;
  }

  /* Slightly reduce button font so the clearer label fits cleanly in two-column cards. */
  .quick-add{
    font-size:14px!important;
    line-height:1.25!important;
    padding:9px 6px!important;
  }
}

/* Phase 87 — CTA one-line refinement */
.quick-add{
  font-size:14px!important;
  white-space:nowrap!important;
  line-height:1.2!important;
}
@media(max-width:520px){
  .quick-add{
    font-size:13px!important;
    white-space:nowrap!important;
  }
}


/* =========================================================
   Phase 88 — Smart Coffee Finder step-by-step flow
   shop/mixes only — desktop + mobile
   ========================================================= */
.finder{
  align-items:center!important;
}
.finder #openFinder{
  white-space:nowrap;
}

.finder-step-panel{
  margin:18px 0 22px!important;
  padding:26px!important;
  border:1px solid #decfbd!important;
  border-radius:20px!important;
  background:#fff!important;
}

.finder-progress{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:24px;
  color:#8f673b;
  font-size:12px;
  font-weight:700;
}
.finder-progress>div{
  flex:1;
  height:4px;
  background:#efe8df;
  border-radius:999px;
  overflow:hidden;
}
.finder-progress i{
  display:block;
  width:25%;
  height:100%;
  background:#b88345;
  border-radius:inherit;
  transition:width .28s ease;
}

.finder-step{
  max-width:760px;
  margin-inline:auto;
  text-align:center;
}
.finder-step-kicker{
  display:block;
  margin-bottom:8px;
  font-size:11px;
  letter-spacing:.12em;
  color:#a4723b;
  font-weight:800;
}
.finder-step h3,
.finder-result-head h3{
  margin:0 0 20px;
  font-size:25px;
  line-height:1.55;
  color:#221c18;
}
.finder-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.finder-options button{
  min-height:54px;
  border:1px solid #d8c7b4;
  border-radius:14px;
  background:#faf7f2;
  color:#271f1a;
  font:inherit;
  font-weight:700;
  cursor:pointer;
  transition:.2s ease;
}
.finder-options button:hover,
.finder-options button.is-selected{
  border-color:#214d40;
  background:#214d40;
  color:#fff;
  transform:translateY(-1px);
}

.finder-results{
  max-width:850px;
  margin-inline:auto;
}
.finder-result-head{
  text-align:center;
  margin-bottom:18px;
}
.finder-restart{
  border:0;
  background:transparent;
  color:#725438;
  text-decoration:underline;
  cursor:pointer;
  font:inherit;
  font-size:12px;
}
.finder-result-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.finder-result-grid article{
  border:1px solid #decfbd;
  border-radius:16px;
  padding:20px;
  background:#faf7f2;
}
.finder-result-grid small{
  color:#9b6a37;
  font-weight:800;
}
.finder-result-grid h3{
  margin:5px 0 8px;
  font-size:24px;
}
.finder-result-grid p{
  min-height:42px;
  line-height:1.75;
  color:#655b54;
}
.finder-result-grid .smart-buy{
  width:100%;
  min-height:46px;
  border:0;
  border-radius:12px;
  background:#214d40;
  color:#fff;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}

@media(max-width:520px){
  .finder{
    display:block!important;
  }
  .finder #openFinder{
    width:100%!important;
    margin-top:16px!important;
    white-space:normal!important;
  }
  .finder-step-panel{
    padding:18px 14px!important;
    margin:12px 0 18px!important;
  }
  .finder-progress{
    margin-bottom:18px;
  }
  .finder-step h3,
  .finder-result-head h3{
    font-size:22px;
    line-height:1.55;
    margin-bottom:16px;
  }
  .finder-options{
    grid-template-columns:1fr;
    gap:8px;
  }
  .finder-options button{
    min-height:50px;
    font-size:14px;
  }
  .finder-result-grid{
    grid-template-columns:1fr;
  }
  .finder-result-grid article{
    padding:16px;
  }
}


/* Phase 89 — Finder title itself is the action */
.finder.finder-title-action{
  display:block!important;
}
.finder.finder-title-action>div{
  width:100%!important;
}
.finder .finder-heading-button{
  display:inline-block!important;
  width:auto!important;
  min-height:0!important;
  margin:4px 0 8px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#fff!important;
  font:inherit!important;
  font-size:24px!important;
  line-height:1.45!important;
  font-weight:800!important;
  text-align:right!important;
  cursor:pointer!important;
  box-shadow:none!important;
}
.finder .finder-heading-button:hover{
  opacity:.82;
}
@media(max-width:520px){
  .finder .finder-heading-button{
    width:auto!important;
    margin:4px 0 10px!important;
    padding:0!important;
    white-space:normal!important;
    font-size:23px!important;
    text-align:right!important;
  }
}


/* =========================================================
   Phase 90 — Entire green finder box is the CTA
   Desktop + mobile
   ========================================================= */
.finder.finder-fullbox-action{
  cursor:pointer!important;
  transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease!important;
  user-select:none!important;
}
.finder.finder-fullbox-action:hover{
  transform:translateY(-2px)!important;
  box-shadow:0 10px 28px rgba(22,53,45,.14)!important;
}
.finder.finder-fullbox-action:focus-visible{
  outline:3px solid #c58a3a!important;
  outline-offset:3px!important;
}
.finder.finder-fullbox-action h2{
  color:#fff!important;
  margin:4px 0 8px!important;
}
.finder.finder-fullbox-action p{
  color:rgba(255,255,255,.88)!important;
  margin:0!important;
}
.finder.finder-fullbox-action .kicker{
  color:#c58a3a!important;
}
@media(max-width:520px){
  .finder.finder-fullbox-action{
    min-height:0!important;
  }
  .finder.finder-fullbox-action h2{
    font-size:24px!important;
    line-height:1.5!important;
  }
}


/* =========================================================
   Phase 91 — Show blend composition in Smart Finder results
   ========================================================= */
.finder-blend-profile{
  display:block;
  margin:2px 0 10px;
  color:#7f5a33;
  font-size:14px;
  line-height:1.6;
  font-weight:800;
}
@media(max-width:520px){
  .finder-blend-profile{
    font-size:13px;
    margin-bottom:8px;
  }
}


/* Phase 187 hotfix — locked product-card image geometry */
.product-card img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:1 / 1!important;
  object-fit:cover!important;
  object-position:center!important;
}
@media(max-width:520px){
  .product-card img{
    height:calc((100vw - 36px)/2)!important;
    max-height:220px!important;
    min-height:0!important;
  }
}


/* Phase 191 Hotfix 2 — dynamic package price on mix listing cards */
.mix-card-price{
  margin-top:8px;
  margin-bottom:1px;
  color:#76512f;
  font-weight:900;
  line-height:1.2;
  text-align:right;
}
.mix-card-price span{
  font-size:17px;
}
.mix-card-price small{
  font-size:10px;
  font-weight:800;
  margin-right:3px;
}
@media(max-width:520px){
  .mix-card-price{
    margin-top:7px;
    margin-bottom:0;
  }
  .mix-card-price span{
    font-size:14px;
  }
  .mix-card-price small{
    font-size:9px;
  }
}
