
/* ============================================================
   RONABE FRONT V1.17
   Quantidade + catálogo + cards + páginas informativas
   ============================================================ */

/* 1. CONTROLE DE QUANTIDADE — remove a sobra depois do "+" */
.qty-control{
  display:inline-grid !important;
  width:max-content !important;
  max-width:100%;
  grid-template-columns:34px 52px 34px !important;
  align-items:stretch;
  overflow:hidden;
  border:1px solid #dfcfc4;
  border-radius:8px;
  background:#fff;
  box-sizing:border-box;
  vertical-align:middle;
}
.qty-control button,
.qty-control input{
  box-sizing:border-box;
  min-width:0;
  margin:0 !important;
  border-radius:0 !important;
}
.qty-control button{
  width:34px !important;
  min-width:34px !important;
  height:34px;
  padding:0 !important;
  border:0 !important;
  display:grid;
  place-items:center;
  background:#fbf3ee;
  color:#b23b22;
  font-size:18px;
  line-height:1;
  cursor:pointer;
}
.qty-control input{
  width:52px !important;
  height:34px;
  padding:0 4px !important;
  border:0 !important;
  border-left:1px solid #eaded5 !important;
  border-right:1px solid #eaded5 !important;
  background:#fff;
  text-align:center;
  font-weight:700;
  font-size:11px;
  appearance:textfield;
}
.qty-control input::-webkit-inner-spin-button,
.qty-control input::-webkit-outer-spin-button{appearance:none;margin:0}
.qty-control--detail{
  grid-template-columns:38px 64px 38px !important;
  height:40px;
}
.qty-control--detail button{width:38px !important;height:40px}
.qty-control--detail input{width:64px !important;height:40px}

/* 2. CATEGORIAS — contidas na viewport e scroll horizontal elegante */
.category-tabs{
  position:relative;
  width:100%;
  max-width:100vw;
  overflow:hidden;
  background:#fffaf5;
  border-bottom:1px solid #eee2d9;
  padding:8px 0;
}
.category-tabs .container{
  display:flex !important;
  justify-content:flex-start !important;
  align-items:center;
  gap:6px;
  width:min(100% - 28px,1180px);
  max-width:calc(100vw - 28px);
  overflow-x:auto !important;
  overflow-y:hidden;
  padding:6px !important;
  background:#fcf6f0;
  border-radius:10px;
  scroll-behavior:smooth;
  scrollbar-width:thin;
  scrollbar-color:#d8b7a8 transparent;
  -webkit-overflow-scrolling:touch;
}
.category-tabs .container::-webkit-scrollbar{height:5px}
.category-tabs .container::-webkit-scrollbar-track{background:transparent}
.category-tabs .container::-webkit-scrollbar-thumb{background:#d8b7a8;border-radius:999px}
.category-tabs a{
  flex:0 0 auto;
  max-width:none;
  padding:9px 16px !important;
  border-radius:999px;
  color:#62564f;
  font-size:9px !important;
  font-weight:500;
  text-decoration:none;
  white-space:nowrap;
  transition:background .18s ease,color .18s ease,box-shadow .18s ease;
}
.category-tabs a:hover{background:#f3e6de;color:#9f341d}
.category-tabs a.active{
  background:#b52f0f !important;
  color:#fff !important;
  box-shadow:0 5px 14px rgba(181,47,15,.14);
}

/* 3. CATÁLOGO — grade e cards profissionais */
.catalog-main{
  overflow:hidden;
}
.catalog-results{
  min-width:0;
}
.product-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:18px !important;
  align-items:stretch;
}
.product-card{
  display:flex;
  min-width:0;
  flex-direction:column;
  overflow:hidden;
  border:1px solid #eadfd7 !important;
  border-radius:12px !important;
  background:#fff !important;
  box-shadow:0 5px 18px rgba(84,52,36,.045) !important;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.product-card:hover{
  transform:translateY(-2px);
  border-color:#dfc7bb !important;
  box-shadow:0 12px 30px rgba(84,52,36,.09) !important;
}
.product-card__image{
  position:relative;
  display:block;
  overflow:hidden;
  background:#f5eee9;
  aspect-ratio:4/3;
}
.product-card__image img{
  display:block;
  width:100% !important;
  height:100% !important;
  aspect-ratio:auto !important;
  object-fit:cover !important;
  transition:transform .3s ease;
}
.product-card:hover .product-card__image img{transform:scale(1.025)}
.stock-badge{
  left:10px !important;
  top:10px !important;
  padding:5px 8px !important;
  border-radius:999px !important;
  background:#b52f0f !important;
  box-shadow:0 3px 10px rgba(181,47,15,.18);
  font-size:7px !important;
  font-weight:700;
  letter-spacing:.25px;
}
.product-card__body{
  display:flex;
  flex:1;
  min-width:0;
  flex-direction:column;
  padding:14px !important;
}
.product-card h3{
  display:-webkit-box;
  overflow:hidden;
  min-height:34px;
  margin:0 0 9px !important;
  color:#2f2925;
  font-size:12px !important;
  line-height:1.42;
  font-weight:700;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.product-card ul{
  display:grid;
  gap:4px;
  min-height:48px;
  margin:0 0 8px !important;
  padding:0 !important;
}
.product-card li{
  overflow:hidden;
  margin:0 !important;
  color:#83766f !important;
  font-size:8px !important;
  line-height:1.45;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.product-card .price{
  margin:auto 0 11px !important;
  padding-top:5px;
  color:#a93b22 !important;
  font-size:20px !important;
  line-height:1.1;
}
.product-card__actions,
.product-card__actions--quote{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:8px !important;
  min-width:0;
}
.product-card__actions .btn,
.product-card__actions--quote .btn{
  width:100%;
  min-width:0;
  min-height:38px;
  height:auto;
  padding:8px 7px !important;
  border-radius:8px !important;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  white-space:normal !important;
  word-break:normal;
  overflow-wrap:anywhere;
  line-height:1.15;
  font-size:8px !important;
  font-weight:700;
}
.product-card__actions .btn--primary,
.product-card__actions--quote .btn--primary{
  box-shadow:none;
}
.results-head{
  gap:12px;
}
.results-head form{min-width:0}
.results-head select{
  max-width:100%;
}

/* Produtos sem imagem real */
.product-card__image img[src=""],
.product-card__image img:not([src]){
  visibility:hidden;
}

/* 4. PÁGINAS INFORMATIVAS */
.info-hero{
  padding:54px 0 46px;
  border-bottom:1px solid #eee2da;
  background:linear-gradient(135deg,#fffdfa 0%,#faf0e8 100%);
}
.info-hero__inner{max-width:900px}
.info-back{
  display:inline-flex;
  margin-bottom:24px;
  color:#a84028;
  font-size:9px;
  font-weight:700;
}
.info-eyebrow{
  display:block;
  margin-bottom:8px;
  color:#a84b34;
  font-size:9px;
  font-weight:700;
  letter-spacing:1.1px;
}
.info-hero h1{
  margin:0;
  color:#a23c25;
  font:600 46px/1.05 "Cormorant Garamond",serif;
}
.info-hero p{
  max-width:700px;
  margin:12px 0 0;
  color:#6f665f;
  font-size:12px;
  line-height:1.7;
}
.info-page{
  padding:40px 0 70px;
  background:#fffaf5;
}
.info-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 290px;
  gap:28px;
  align-items:start;
}
.info-content{
  overflow:hidden;
  border:1px solid #eadfd6;
  border-radius:12px;
  background:#fff;
}
.info-section{
  padding:26px 30px;
  border-bottom:1px solid #eee4dd;
}
.info-section:last-child{border-bottom:0}
.info-section h2{
  margin:0 0 12px;
  color:#362d28;
  font-size:17px;
}
.info-section p{
  margin:0 0 11px;
  color:#6d635c;
  font-size:10px;
  line-height:1.75;
}
.info-section p:last-child{margin-bottom:0}
.info-section ul{
  display:grid;
  gap:9px;
  margin:0;
  padding:0;
  list-style:none;
}
.info-section li{
  position:relative;
  padding-left:18px;
  color:#675e57;
  font-size:10px;
  line-height:1.55;
}
.info-section li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  color:#b64227;
  font-weight:800;
}
.info-note{
  margin-top:14px;
  padding:13px 15px;
  border-left:3px solid #b64227;
  border-radius:0 8px 8px 0;
  background:#faf1eb;
  color:#725f54;
  font-size:9px;
  line-height:1.6;
}
.info-aside{
  display:grid;
  gap:14px;
  position:sticky;
  top:120px;
}
.info-aside__card,
.info-nav{
  border:1px solid #eadfd6;
  border-radius:12px;
  background:#fff;
}
.info-aside__card{padding:20px}
.info-aside__card>span{
  color:#b64025;
  font-size:8px;
  font-weight:800;
  letter-spacing:.8px;
}
.info-aside__card h3{
  margin:6px 0 8px;
  font:600 23px "Cormorant Garamond",serif;
  color:#9e3b25;
}
.info-aside__card p{
  margin:0 0 15px;
  color:#746a63;
  font-size:9px;
  line-height:1.6;
}
.info-nav{overflow:hidden}
.info-nav a{
  display:block;
  padding:12px 14px;
  border-bottom:1px solid #eee4dd;
  color:#5d534c;
  font-size:9px;
  text-decoration:none;
}
.info-nav a:last-child{border-bottom:0}
.info-nav a:hover{
  background:#fff8f4;
  color:#a53a21;
}

/* Footer links ficam claramente clicáveis */
.footer a[href*=".php"]{
  transition:color .15s ease,transform .15s ease;
}
.footer a[href*=".php"]:hover{
  color:#b63a1e;
  transform:translateX(2px);
}

/* RESPONSIVO */
@media(max-width:1100px){
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .info-layout{grid-template-columns:1fr 250px}
}
@media(max-width:800px){
  .info-layout{grid-template-columns:1fr}
  .info-aside{position:static}
  .product-card__actions,
  .product-card__actions--quote{grid-template-columns:1fr !important}
}
@media(max-width:640px){
  .product-grid{grid-template-columns:1fr !important}
  .category-tabs .container{
    width:calc(100% - 18px);
    max-width:calc(100vw - 18px);
  }
  .category-tabs a{padding:8px 13px !important}
  .info-hero{padding:38px 0 34px}
  .info-hero h1{font-size:36px}
  .info-section{padding:20px}
}
