/* Skina Cell 4.6.13 — ajustes solicitados: categorias sem rolagem, cards com ação compacta. */
/* Categorias: grade responsiva, sem arrastar para os lados. */
.premium-categories{padding:22px 0 10px}
.premium-category-heading{gap:14px;margin-bottom:12px}
.premium-category-links{
  box-sizing:border-box;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:9px;
  width:100%;
  max-width:100%;
  min-width:0;
  margin:0;
  padding:0 0 3px;
  overflow:visible;
  scrollbar-width:none;
}
.premium-category-links>a{
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  min-width:0;
  width:100%;
  min-height:48px;
  gap:8px;
  padding:8px 10px;
  border-radius:13px;
  font-size:11.5px;
  line-height:1.28;
  white-space:normal;
  overflow-wrap:anywhere;
  transition:background .16s,border-color .16s,transform .16s;
}
.premium-category-links>a:hover{transform:translateY(-1px)}
.premium-category-links>a>span{display:block;min-width:0}
.premium-category-links i,.premium-category-links img{
  box-sizing:border-box;
  flex:0 0 29px;
  width:29px;
  height:29px;
  font-size:15px;
  border-radius:9px;
}
.premium-category-links>a:focus-visible{outline:3px solid #77b992;outline-offset:2px}
/* Cards: comprar ocupa o espaço restante; carrinho é ícone quadrado ao lado.
   A especificidade evita que o tema premium estique os dois botões. */
.sp-product-card .sp-buy-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 43px!important;
  column-gap:8px;
  row-gap:0;
  width:100%;
  min-width:0;
  align-items:stretch;
}
.sp-product-card .sp-buy-row>.sp-quantity.visually-hidden{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
  clip-path:inset(50%)!important;
}
.sp-product-card .sp-buy-row>button[data-buy-now]{
  box-sizing:border-box;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  grid-column:1;
  min-width:0;
  width:100%;
  min-height:43px;
  padding:8px 12px;
  border-radius:12px;
  line-height:1.2;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}
.sp-product-card .sp-buy-row>button.sp-add-button[data-cart-add],
.sp-product-card .sp-buy-row>button.sp-add-button[data-cart-add]:visited{
  box-sizing:border-box;
  display:grid!important;
  place-items:center!important;
  grid-column:2;
  min-width:0!important;
  width:43px!important;
  max-width:43px!important;
  height:43px!important;
  min-height:43px!important;
  padding:0!important;
  margin:0;
  border:1px solid #c8ddcf!important;
  border-radius:12px!important;
  background:#f5faf7!important;
  color:#176449!important;
  -webkit-text-fill-color:#176449!important;
  box-shadow:none!important;
  line-height:1;
  font-size:19px;
}
.sp-product-card .sp-buy-row>button.sp-add-button[data-cart-add]:hover{
  border-color:#176449!important;
  background:#e5f4ea!important;
  color:#104d38!important;
  -webkit-text-fill-color:#104d38!important;
}
.sp-product-card .sp-buy-row>button.sp-add-button[data-cart-add]:focus-visible,
.sp-product-card .sp-buy-row>button[data-buy-now]:focus-visible{
  outline:3px solid #83c6a2;
  outline-offset:2px;
}
.sp-product-card .sp-buy-row>button.sp-add-button i{font-size:19px;line-height:1}
@media(max-width:1100px){
  .premium-category-links{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:700px){
  .premium-categories{padding:19px 0 9px}
  .premium-category-heading{align-items:center;margin-bottom:11px}
  .premium-category-links{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    margin:0;
    padding:0;
  }
  .premium-category-links>a{
    min-height:44px;
    padding:7px 8px;
    gap:7px;
    border-radius:11px;
    font-size:10.5px;
  }
  .premium-category-links i,.premium-category-links img{
    flex-basis:27px;width:27px;height:27px;font-size:14px;
  }
  .sp-product-card .sp-buy-row{
    grid-template-columns:minmax(0,1fr) 37px!important;
    column-gap:5px;
    margin-top:8px;
  }
  .sp-product-card .sp-buy-row>button[data-buy-now]{
    min-height:38px;
    height:38px;
    padding:6px 5px;
    font-size:10px;
    border-radius:9px;
  }
  .sp-product-card .sp-buy-row>button.sp-add-button[data-cart-add]{
    min-height:38px!important;
    width:37px!important;
    max-width:37px!important;
    height:38px!important;
    border-radius:9px!important;
  }
  .sp-product-card .sp-buy-row>button.sp-add-button i{font-size:17px}
}
@media(max-width:360px){
  .premium-category-links>a{font-size:10px}
  .sp-product-card .sp-buy-row{grid-template-columns:minmax(0,1fr) 34px!important;gap:4px}
  .sp-product-card .sp-buy-row>button.sp-add-button[data-cart-add]{width:34px!important;max-width:34px!important}
  .sp-product-card .sp-buy-row>button[data-buy-now]{font-size:9px}
}
@media(prefers-reduced-motion:reduce){.premium-category-links>a{transition:none}}

/* 4.6.15 — manter categorias em grade no desktop; restaurar trilho com scroll no celular. */
@media(min-width:701px){
  .premium-categories .premium-category-links{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    overflow-x:visible;
    overflow-y:visible;
    width:100%;
    max-width:100%;
  }
}
@media(min-width:701px) and (max-width:1100px){
  .premium-categories .premium-category-links{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:700px){
  .premium-categories .premium-category-links{
    display:flex;
    flex-wrap:nowrap;
    justify-content:flex-start;
    gap:8px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x proximity;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
    scrollbar-color:#9cbaaa transparent;
    padding:3px 2px 10px;
    width:100%;
    max-width:100%;
    min-width:0;
  }
  .premium-categories .premium-category-links>a{
    flex:0 0 auto;
    width:auto;
    max-width:196px;
    min-width:126px;
    min-height:45px;
    white-space:nowrap;
    scroll-snap-align:start;
    font-size:11px;
    padding:7px 12px 7px 8px;
  }
  .premium-categories .premium-category-links>a>span{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .premium-categories .premium-category-links::-webkit-scrollbar{height:5px}
  .premium-categories .premium-category-links::-webkit-scrollbar-thumb{background:#9cbaaa;border-radius:999px}
  .premium-categories .premium-category-links::-webkit-scrollbar-track{background:transparent}
}


/* 4.6.14 — estoque disponível no carrinho */
.cart-item .cart-stock-limit{display:block;margin-top:2px;font-size:11px;line-height:1.3;color:#49715f;font-weight:600}
.cart-qty button:disabled,.checkout-quantity button:disabled{opacity:.35;cursor:not-allowed;pointer-events:none}

/* 4.6.16 — categorias estilo original da Skina Cell, desktop sem scroll.
   Somente desktop/tablet; a trilha móvel da 4.6.15 continua intacta. */
@media (min-width:701px){
  .premium-categories .premium-category-links{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:center;
    gap:11px;
    width:100%;
    max-width:900px;
    min-width:0;
    margin:0 auto;
    padding:4px 2px 9px;
    overflow-x:visible;
    overflow-y:visible;
    scrollbar-width:none;
  }
  .premium-categories .premium-category-links>a{
    box-sizing:border-box;
    display:inline-flex;
    flex:0 0 auto;
    justify-content:flex-start;
    align-items:center;
    gap:11px;
    width:auto;
    max-width:100%;
    min-width:0;
    min-height:56px;
    padding:10px 20px 10px 11px;
    border:1px solid #dde7df;
    border-radius:999px;
    background:#fff;
    box-shadow:0 5px 16px rgba(22,65,38,.045);
    color:#20342a;
    font-size:13px;
    font-weight:650;
    line-height:1.3;
    white-space:nowrap;
    overflow-wrap:normal;
  }
  .premium-categories .premium-category-links>a>span{
    min-width:0;
    overflow:visible;
    white-space:nowrap;
  }
  .premium-categories .premium-category-links i,
  .premium-categories .premium-category-links img{
    display:grid;
    place-items:center;
    flex:0 0 34px;
    width:34px;
    height:34px;
    border-radius:50%;
    background:#eff6f0;
    color:#176448;
    font-size:17px;
    object-fit:contain;
  }
  .premium-categories .premium-category-links>a:hover{
    background:#edf6f0;
    border-color:#a4c7ad;
    box-shadow:0 8px 18px rgba(22,65,38,.08);
    transform:translateY(-1px);
  }
}
