/* BUZZRI v2.8.1 — refreshed generated product images + visual catalog */

/* Home: image-first popular catalog */
.buzzri-home-product-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin-top:24px;
}
.buzzri-home-product-card{
  min-width:0;
  overflow:hidden;
  border:1px solid #e6e8ed;
  border-radius:18px;
  background:#fff;
  color:#111827;
  text-decoration:none!important;
  box-shadow:0 6px 22px rgba(15,23,42,.055);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.buzzri-home-product-card:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 32px rgba(15,23,42,.10);
  border-color:#d3d7df;
}
.buzzri-home-product-image{
  position:relative;
  width:100%;
  aspect-ratio:1/1;
  overflow:hidden;
  background:#f4f5f7;
}
.buzzri-home-product-image>img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.buzzri-home-product-image-fallback{
  display:flex;
  width:100%;
  height:100%;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  background:linear-gradient(135deg,#111827,#303642);
  color:#fff;
}
.buzzri-home-product-image-fallback .buzzri-platform-icon{
  width:68px!important;
  height:68px!important;
  border-radius:18px;
  background:#fff;
}
.buzzri-home-product-image-fallback strong{font-size:20px}
.buzzri-home-image-badge{
  position:absolute;
  top:12px;
  right:12px;
  left:auto;
  z-index:2;
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 11px;
  border-radius:999px;
  background:#ffd400;
  color:#111;
  font-size:11px;
  line-height:1;
  font-weight:900;
  box-shadow:0 5px 16px rgba(0,0,0,.16);
}
.buzzri-home-image-badge::before{content:"★";margin-right:5px;font-size:10px}

.buzzri-home-product-card-body{padding:15px 15px 16px}
.buzzri-home-product-meta{
  margin-bottom:7px;
  color:#747b87;
  font-size:11px;
  font-weight:750;
}
.buzzri-home-product-card-body h3{
  display:-webkit-box;
  min-height:42px;
  margin:0;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  color:#111827;
  font-size:14px;
  line-height:1.5;
  font-weight:850;
}
.buzzri-home-product-rating{
  margin-top:8px;
  color:#f3aa00;
  font-size:12px;
  font-weight:850;
}
.buzzri-home-product-rating small{color:#747b87;font-weight:650}
.buzzri-home-product-card-foot{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid #eef0f3;
}
.buzzri-home-product-card-foot strong{
  color:#111827;
  font-size:20px;
  line-height:1;
  font-weight:950;
}
.buzzri-home-product-card-foot strong small{margin-left:2px;font-size:11px;font-weight:800}
.buzzri-home-product-card-foot>span{
  color:#555e6c;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}

/* Service catalog cards */
.buzzri-product-card-image{
  position:relative;
  width:calc(100% + 36px);
  aspect-ratio:1/1;
  margin:-18px -18px 16px;
  overflow:hidden;
  border-bottom:1px solid #e8eaee;
  background:#f4f5f7;
}
.buzzri-product-card-image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

@media (max-width:1180px){
  .buzzri-home-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:820px){
  .buzzri-home-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .buzzri-home-product-card{border-radius:15px}
  .buzzri-home-product-card-body{padding:12px}
  .buzzri-home-product-card-body h3{font-size:13px;min-height:39px}
  .buzzri-home-product-card-foot strong{font-size:18px}
  .buzzri-home-product-card-foot>span{display:none}
  .buzzri-home-image-badge{top:8px;right:8px;left:auto;min-height:26px;padding:0 9px;font-size:10px}
}
@media (max-width:420px){
  .buzzri-home-product-grid{gap:9px}
  .buzzri-home-product-meta{font-size:10px}
  .buzzri-home-product-card-body h3{font-size:12px}
  .buzzri-home-product-card-foot{margin-top:10px;padding-top:9px}
  .buzzri-home-product-card-foot strong{font-size:17px}
}


/* v2.8.6 — compact two-column service catalog on smartphones */
@media (max-width:760px){
  .buzzri-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }
  .buzzri-product-card{
    min-width:0;
    border-radius:14px;
  }
  .buzzri-product-card-link{
    min-width:0;
    padding:10px;
  }
  .buzzri-product-card-image{
    width:calc(100% + 20px);
    margin:-10px -10px 10px;
    aspect-ratio:1/1;
    border-bottom:1px solid #eef0f3;
  }
  .buzzri-product-card-image .buzzri-home-image-badge,
  .buzzri-product-card-image>.buzzri-home-image-badge{
    top:6px;
    right:6px;
    min-height:22px;
    padding:0 7px;
    font-size:8px;
    box-shadow:0 3px 9px rgba(0,0,0,.14);
  }
  .buzzri-product-card-image .buzzri-home-image-badge::before,
  .buzzri-product-card-image>.buzzri-home-image-badge::before{
    margin-right:3px;
    font-size:8px;
  }
  .buzzri-product-head{
    gap:7px;
    align-items:flex-start;
  }
  .buzzri-product-head .buzzri-platform-icon{
    flex:0 0 32px;
    width:32px;
    height:32px;
    border-radius:10px;
    font-size:11px;
  }
  .buzzri-product-kicker{
    gap:4px;
    margin-bottom:4px;
  }
  .buzzri-product-platform{
    font-size:9px;
  }
  .buzzri-product-category{
    padding:2px 5px;
    font-size:8px;
  }
  .buzzri-product-card h3{
    display:-webkit-box;
    min-height:34px;
    margin:0;
    overflow:hidden;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    font-size:11.5px;
    line-height:1.45;
    letter-spacing:-.015em;
  }
  .buzzri-product-desc{
    display:none;
  }
  .buzzri-product-badges{
    min-height:24px;
    margin:8px 0 7px;
    gap:4px;
  }
  .buzzri-product-badge{
    max-width:100%;
    padding:4px 6px;
    overflow:hidden;
    font-size:8.5px;
    line-height:1;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  /* On the compact card, keep the trust badge; detailed discount/quantity remain on the product page. */
  .buzzri-product-badges .buzzri-product-badge:not(.is-guarantee):not(.is-refill){
    display:none;
  }
  .buzzri-product-bottom{
    gap:6px;
    padding-top:8px;
  }
  .buzzri-product-from{
    margin-bottom:3px;
    font-size:8.5px;
  }
  .buzzri-product-price-row{
    gap:2px;
  }
  .buzzri-product-price{
    font-size:19px;
  }
  .buzzri-product-price-suffix{
    font-size:9px;
  }
  .buzzri-product-arrow{
    flex:0 0 30px;
    width:30px;
    height:30px;
    font-size:14px;
  }
  .buzzri-product-social{
    min-height:42px;
    padding:7px 8px;
    gap:5px;
  }
  .buzzri-like-btn{
    padding:5px 7px;
    gap:3px;
    font-size:9px;
  }
  .buzzri-like-btn .buzzri-heart{
    font-size:13px;
  }
  .buzzri-rating-mini{
    font-size:9px;
  }
  .buzzri-rating-mini small{
    display:none;
  }
}

@media (max-width:390px){
  .buzzri-product-grid{gap:7px}
  .buzzri-product-card-link{padding:8px}
  .buzzri-product-card-image{width:calc(100% + 16px);margin:-8px -8px 9px}
  .buzzri-product-head .buzzri-platform-icon{flex-basis:29px;width:29px;height:29px;border-radius:9px}
  .buzzri-product-card h3{min-height:32px;font-size:10.8px}
  .buzzri-product-price{font-size:18px}
  .buzzri-product-arrow{flex-basis:28px;width:28px;height:28px}
  .buzzri-product-social{padding:6px 7px}
}

/* v2.8.8 — mobile service catalog matches the Home "popular services" card pattern:
   two columns, square product image, compact product meta/title, then price. */
.buzzri-mobile-trust{display:none}
@media (max-width:760px){
  .buzzri-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .buzzri-product-card{
    min-width:0;
    aspect-ratio:auto;
    overflow:hidden;
    border:1px solid #e6e8ed;
    border-radius:15px;
    background:#fff;
    box-shadow:0 5px 18px rgba(15,23,42,.055);
  }
  .buzzri-product-card-link{
    display:flex;
    flex-direction:column;
    width:100%;
    height:auto;
    min-width:0;
    padding:0;
  }
  .buzzri-product-card-image{
    order:1;
    width:100%;
    height:auto;
    margin:0;
    aspect-ratio:1/1;
    overflow:hidden;
    border:0;
    border-bottom:1px solid #eceef2;
    background:#f4f5f7;
  }
  .buzzri-product-card-image img{
    display:block;
    width:100%;
    height:100%;
    max-width:none;
    object-fit:cover;
    object-position:center;
  }
  .buzzri-recommend-row{
    order:2;
    margin:9px 10px 0;
  }
  .buzzri-recommend-row:empty{display:none}
  .buzzri-featured-badge{display:none!important}
  .buzzri-recommend-badge{
    max-width:100%;
    min-height:25px;
    padding:3px 8px;
    font-size:9px;
  }
  .buzzri-recommend-medal{width:18px;height:18px;font-size:9px}
  .buzzri-product-head{
    order:3;
    display:block;
    min-width:0;
    margin:0;
    padding:11px 11px 0;
  }
  .buzzri-product-head>.buzzri-platform-icon{display:none!important}
  .buzzri-product-title-wrap{min-width:0;width:100%}
  .buzzri-product-kicker{
    display:flex;
    align-items:center;
    gap:4px;
    min-width:0;
    margin-bottom:7px;
    color:#6b7280;
    font-size:9.5px;
    font-weight:750;
    white-space:nowrap;
  }
  .buzzri-product-category{
    padding:3px 6px;
    border-radius:999px;
    background:#f1f4f8;
    color:#667085;
    font-size:8.5px;
  }
  .buzzri-product-card h3{
    display:-webkit-box;
    min-height:38px;
    margin:0;
    overflow:hidden;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    color:#111827;
    font-size:13px;
    line-height:1.45;
    font-weight:850;
    letter-spacing:-.015em;
  }
  .buzzri-product-desc,
  .buzzri-product-badges,
  .buzzri-product-social{
    display:none!important;
  }
  .buzzri-product-bottom{
    order:4;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:6px;
    min-width:0;
    margin:10px 11px 0;
    padding:10px 0 12px;
    border-top:1px solid #eef0f3;
    background:#fff;
  }
  .buzzri-product-price-block{min-width:0;flex:1 1 auto}
  .buzzri-product-from{display:none}
  .buzzri-product-price-row{display:flex;align-items:baseline;gap:2px;min-width:0}
  .buzzri-product-price{font-size:22px;line-height:1;font-weight:950;letter-spacing:-.045em}
  .buzzri-product-price-suffix{font-size:10px;color:#667085;font-weight:800}
  .buzzri-mobile-trust{display:none!important}
  .buzzri-product-arrow{
    flex:0 0 31px;
    width:31px;
    height:31px;
    border-radius:999px;
    font-size:13px;
  }
  .buzzri-product-card-image .buzzri-home-image-badge,
  .buzzri-product-card-image>.buzzri-home-image-badge{
    top:7px;
    right:7px;
    min-height:23px;
    padding:0 7px;
    font-size:8px;
  }
}
@media (max-width:390px){
  .buzzri-product-grid{gap:8px}
  .buzzri-product-card{border-radius:13px}
  .buzzri-product-head{padding:9px 9px 0}
  .buzzri-product-kicker{font-size:9px;margin-bottom:6px}
  .buzzri-product-category{font-size:8px;padding:2px 5px}
  .buzzri-product-card h3{min-height:35px;font-size:12px}
  .buzzri-product-bottom{margin:8px 9px 0;padding:9px 0 10px}
  .buzzri-product-price{font-size:20px}
  .buzzri-product-arrow{flex-basis:29px;width:29px;height:29px;font-size:12px}
}


/* v2.8.9 — mobile Services cards use the exact same visual recipe as Home / Popular Services. */
@media (max-width:760px){
  .buzzri-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .buzzri-product-card{
    min-width:0;overflow:hidden;border:1px solid #e6e8ed;border-radius:15px;
    background:#fff;box-shadow:0 6px 22px rgba(15,23,42,.055);
  }
  .buzzri-product-card-link{display:flex;flex-direction:column;width:100%;height:auto;padding:0!important}
  .buzzri-product-card-image{
    order:1;position:relative;width:100%!important;height:auto!important;aspect-ratio:1/1;
    margin:0!important;overflow:hidden;border:0;background:#f4f5f7;
  }
  .buzzri-product-card-image img{display:block;width:100%;height:100%;object-fit:cover}
  .buzzri-product-card-image .buzzri-home-image-badge{top:8px;right:8px;left:auto;min-height:26px;padding:0 9px;font-size:10px}
  /* Ranking is already represented by merchandising order / image recommendation badge on mobile. */
  .buzzri-recommend-row,.buzzri-featured-badge,.buzzri-recommend-badge{display:none!important}
  .buzzri-product-head{order:2;display:block;margin:0;padding:12px 12px 0!important;min-width:0}
  .buzzri-product-head>.buzzri-platform-icon{display:none!important}
  .buzzri-product-title-wrap{width:100%;min-width:0}
  .buzzri-product-kicker{display:block;margin:0 0 7px;color:#747b87;font-size:11px;font-weight:750;white-space:normal}
  .buzzri-product-platform::after{content:" ・ ";}
  .buzzri-product-category{padding:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;font-size:inherit!important}
  .buzzri-product-card h3{
    display:-webkit-box;min-height:39px;margin:0;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;
    color:#111827;font-size:13px;line-height:1.5;font-weight:850;letter-spacing:0;
  }
  .buzzri-product-desc,.buzzri-product-badges,.buzzri-product-social,.buzzri-mobile-trust{display:none!important}
  .buzzri-product-bottom{
    order:3;display:flex;align-items:flex-end;justify-content:space-between;gap:10px;
    margin:14px 12px 0!important;padding:12px 0 16px!important;border-top:1px solid #eef0f3;background:#fff;
  }
  .buzzri-product-from{display:none!important}
  .buzzri-product-price-row{display:flex;align-items:baseline;gap:2px}
  .buzzri-product-price{color:#111827;font-size:18px;line-height:1;font-weight:950;letter-spacing:0}
  .buzzri-product-price-suffix{margin-left:2px;color:#111827;font-size:11px;font-weight:800}
  .buzzri-product-arrow{display:none!important}
}
@media (max-width:420px){
  .buzzri-product-grid{gap:9px}
  .buzzri-product-head{padding:12px 12px 0!important}
  .buzzri-product-kicker{font-size:10px}
  .buzzri-product-card h3{font-size:12px;min-height:36px}
  .buzzri-product-bottom{margin-top:10px!important;padding-top:9px!important}
  .buzzri-product-price{font-size:17px}
}


/* v2.8.10 — one source of truth visually: Services mobile renders the exact Home/PICK UP card. */
.buzzri-services-mobile-home-card{display:none}
@media (max-width:760px){
  .buzzri-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .buzzri-product-card{
    min-width:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    overflow:visible!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  .buzzri-product-card>.buzzri-product-card-link,
  .buzzri-product-card>.buzzri-product-social{display:none!important}
  .buzzri-services-mobile-home-card{
    display:block!important;
    width:100%;
    margin:0!important;
    padding:0!important;
  }
  /* Explicitly neutralize old Services-card mobile rules so there is no top gutter. */
  .buzzri-services-mobile-home-card .buzzri-home-product-image{
    width:100%!important;
    margin:0!important;
    aspect-ratio:1/1!important;
  }
  .buzzri-services-mobile-home-card .buzzri-home-product-card-body{padding:12px!important}
  .buzzri-services-mobile-home-card .buzzri-home-product-meta{margin-bottom:7px!important;font-size:11px!important}
  .buzzri-services-mobile-home-card .buzzri-home-product-card-body h3{
    min-height:39px!important;margin:0!important;font-size:13px!important;line-height:1.5!important;
  }
  .buzzri-services-mobile-home-card .buzzri-home-product-card-foot{
    margin-top:14px!important;padding-top:12px!important;border-top:1px solid #eef0f3!important;
  }
  .buzzri-services-mobile-home-card .buzzri-home-product-card-foot strong{font-size:18px!important}
  .buzzri-services-mobile-home-card .buzzri-home-product-card-foot>span{display:none!important}
}
@media (max-width:420px){
  .buzzri-product-grid{gap:9px}
  .buzzri-services-mobile-home-card .buzzri-home-product-meta{font-size:10px!important}
  .buzzri-services-mobile-home-card .buzzri-home-product-card-body h3{font-size:12px!important}
  .buzzri-services-mobile-home-card .buzzri-home-product-card-foot{margin-top:10px!important;padding-top:9px!important}
  .buzzri-services-mobile-home-card .buzzri-home-product-card-foot strong{font-size:17px!important}
}


/* v2.8.11 — desktop Services catalog uses the same Home/PICK UP card and responsive column count. */
/* Reuse the Home card at every viewport size so Home and Services cannot drift visually. */
.buzzri-product-card{
  min-width:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  overflow:visible!important;
  background:transparent!important;
  box-shadow:none!important;
}
.buzzri-product-card>.buzzri-product-card-link,
.buzzri-product-card>.buzzri-product-social{display:none!important}
.buzzri-services-mobile-home-card{
  display:block!important;
  width:100%;
  margin:0!important;
  padding:0!important;
}
.buzzri-product-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
@media (max-width:1180px){
  .buzzri-product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
}
@media (max-width:820px){
  .buzzri-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
}
@media (max-width:420px){
  .buzzri-product-grid{gap:9px}
}


/* v2.8.12 — enlarge and center desktop Services cards inside the 1320px storefront lane. */
@media (min-width:1181px){
  body:has(.buzzri-shop) .buzzri-product-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:20px!important;
    width:100%!important;
    max-width:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  body:has(.buzzri-shop) .buzzri-shop-hero,
  body:has(.buzzri-shop) .buzzri-shop-toolbar,
  body:has(.buzzri-shop) .buzzri-shop-summary{
    width:100%!important;
    max-width:none!important;
  }
}
