/* ==========================================================================
   Café com Guerreiro — loja, carrinho e página de produto
   ========================================================================== */

/* ---------- Botão do carrinho no header ---------- */
.cart-btn{
  position:relative;
  display:flex; align-items:center; justify-content:center;
  width:40px; height:40px;
  color:var(--snow);
}
.site-header.scrolled .cart-btn, .site-header.solid .cart-btn{ color:var(--black); }
.cart-btn svg{ width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.cart-badge{
  position:absolute; top:0; right:0;
  min-width:17px; height:17px; padding:0 4px;
  border-radius:999px;
  background:var(--orange); color:var(--white);
  font-size:0.68rem; font-weight:700;
  display:none; align-items:center; justify-content:center;
}

/* ==========================================================================
   ESCOLHA SEU COMBUSTÍVEL — catálogo de produtos na home
   ========================================================================== */
.fuel-section{ background:var(--white); }

.fuel-products-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
  gap:24px;
  margin-top:8px;
}

.fuel-product-card{
  display:flex; flex-direction:column;
  background:var(--snow);
  border:1.5px solid rgba(0,0,0,0.06);
  border-radius:var(--radius-md);
  overflow:hidden;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.fuel-product-card:hover, .fuel-product-card:focus-visible{
  transform:translateY(-6px);
  box-shadow:0 22px 36px -20px rgba(0,0,0,0.25);
  border-color:var(--orange);
}

.fuel-product-media{ position:relative; aspect-ratio:1/1; min-height:0; background:var(--white); }
.fuel-product-media img{ width:100%; height:100%; object-fit:cover; }

.fuel-placeholder{
  width:100%; height:100%;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  background:linear-gradient(160deg, var(--amber-10), rgba(3,48,40,0.06));
  color:var(--green);
}
.fuel-placeholder svg{ width:38px; height:38px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; opacity:0.65; }
.fuel-placeholder span{ font-size:0.72rem; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; opacity:0.75; }

.fuel-product-tag{
  position:absolute; top:12px; left:12px;
  background:var(--orange); color:var(--white);
  padding:5px 12px; border-radius:999px;
  font-size:0.68rem; font-weight:700; letter-spacing:0.04em; text-transform:uppercase;
}

.fuel-product-body{ padding:20px 20px 24px; flex:1; display:flex; flex-direction:column; }
.fuel-product-body h3{
  font-family:var(--font-display); font-size:1.15rem; color:var(--black);
  text-transform:uppercase; margin-bottom:8px;
}
.fuel-product-body p{ color:#454545; font-size:0.88rem; line-height:1.5; flex:1; }
.fuel-product-price{
  display:block; margin-top:14px;
  font-weight:700; color:var(--orange); font-size:0.98rem;
}

.fuel-note{ margin-top:30px; font-size:0.92rem; color:#454545; }
.fuel-note strong{ color:var(--black); }

/* ==========================================================================
   CARRINHO (drawer lateral)
   ========================================================================== */
.cart-overlay{
  position:fixed; inset:0; z-index:900;
  background:rgba(0,0,0,0.5);
  opacity:0; visibility:hidden;
  transition:opacity .35s var(--ease), visibility .35s;
}
.cart-overlay.open{ opacity:1; visibility:visible; }

.cart-drawer{
  position:fixed; top:0; right:0; bottom:0; z-index:901;
  width:min(420px, 100%);
  background:var(--snow);
  display:flex; flex-direction:column;
  transform:translateX(100%);
  transition:transform .4s var(--ease);
  box-shadow:-20px 0 50px -20px rgba(0,0,0,0.3);
}
.cart-drawer.open{ transform:translateX(0); }

.cart-drawer-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:24px 26px; border-bottom:1px solid rgba(0,0,0,0.08);
}
.cart-drawer-head h3{ font-family:var(--font-display); font-size:1.3rem; color:var(--black); text-transform:uppercase; }
.cart-close{ font-size:1.6rem; line-height:1; color:var(--black); }

.cart-scroll{ flex:1; min-height:0; overflow-y:auto; }
.cart-body{ padding:20px 26px; }
.cart-empty{ color:#454545; text-align:center; margin-top:40px; }

.cart-item{
  display:grid; grid-template-columns:56px 1fr auto; gap:14px;
  padding:16px 0; border-bottom:1px solid rgba(0,0,0,0.07);
}
.cart-item img{ width:56px; height:56px; object-fit:cover; border-radius:10px; }
.cart-item-noimg{
  width:56px; height:56px; border-radius:10px;
  background:var(--amber-10);
  display:flex; align-items:center; justify-content:center;
  font-size:1.4rem;
}
.cart-item-info h4{ font-family:var(--font-display); font-size:1rem; color:var(--black); text-transform:uppercase; }
.cart-item-variant{ display:block; font-size:0.8rem; color:#454545; margin:2px 0 8px; }
.qty-stepper{ display:inline-flex; align-items:center; gap:10px; }
.qty-stepper button{
  width:24px; height:24px; border-radius:50%; border:1px solid rgba(0,0,0,0.2);
  color:var(--black); font-size:0.95rem; line-height:1;
}
.qty-stepper button:hover{ background:var(--black); color:var(--snow); }
.cart-item-side{ text-align:right; display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
.cart-item-side strong{ color:var(--black); font-size:0.95rem; }
.cart-item-remove{ font-size:0.76rem; color:var(--orange); text-decoration:underline; }

.cart-summary{ border-top:1px solid rgba(0,0,0,0.08); padding:24px 26px 30px; display:none; }
.cart-total{ display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; font-size:1.05rem; }
.cart-total strong{ color:var(--orange); font-size:1.3rem; }
.cart-checkout-btn{ width:100%; }

.checkout-form{ display:flex; flex-direction:column; gap:22px; margin-top:26px; padding-top:22px; border-top:1px solid rgba(0,0,0,0.08); }
.checkout-form label{ font-size:0.82rem; font-weight:600; color:var(--black); display:flex; flex-direction:column; gap:8px; }
.checkout-form label span{ font-weight:400; color:#454545; }
.checkout-question{ display:block; width:100%; font-size:0.82rem; font-weight:600; color:var(--black); margin:0; }
.checkout-form input, .checkout-form textarea{
  font-family:inherit; font-size:0.92rem; font-weight:400;
  padding:12px 14px; border-radius:10px; border:1.5px solid rgba(0,0,0,0.15);
  background:var(--white); resize:vertical;
}
.checkout-form input:focus, .checkout-form textarea:focus{ outline:none; border-color:var(--orange); }

.delivery-options{ display:flex; flex-direction:column; gap:10px; margin-top:-8px; }
.delivery-card{
  display:flex; align-items:flex-start; gap:12px;
  padding:14px 16px; border-radius:12px; border:1.5px solid rgba(0,0,0,0.15);
  cursor:pointer; transition:border-color .2s, box-shadow .2s;
}
.delivery-card.active{ border-color:var(--black); box-shadow:inset 0 0 0 1px var(--black); }
.delivery-card input{ margin-top:3px; accent-color:var(--black); flex-shrink:0; }
.delivery-card-body{ display:flex; flex-direction:column; gap:3px; }
.delivery-card-body strong{ font-size:0.92rem; font-weight:600; color:var(--black); }
.delivery-card-body small{ font-size:0.78rem; color:#454545; line-height:1.4; }
.frete-estimado{
  font-size:0.82rem; color:var(--black); background:var(--amber-10);
  border-radius:10px; padding:10px 14px; margin-top:-4px;
}
.frete-estimado strong{ color:var(--orange); }

.cart-submit{ width:100%; margin-top:4px; }

/* ==========================================================================
   PÁGINA DE PRODUTO
   ========================================================================== */
.product-page-header{ height:98px; }

.product-hero{ padding:64px 0 100px; background:var(--white); }
.product-breadcrumb{ font-size:0.85rem; color:#454545; margin-bottom:34px; }
.product-breadcrumb a{ color:var(--black); font-weight:600; }
.product-breadcrumb a:hover{ color:var(--orange); }

.product-grid{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:70px; }
.product-media{ position:relative; }
.product-media-image{
  width:100%; aspect-ratio:1/1;
  background:var(--snow);
  border-radius:var(--radius-lg);
  box-shadow:0 40px 70px -34px rgba(0,0,0,0.3);
  overflow:hidden;
}
.product-media-image img{
  width:100%; height:100%; object-fit:contain;
  display:block;
}
.product-placeholder{
  width:100%; aspect-ratio:1/1;
  border-radius:var(--radius-lg);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:16px;
  background:linear-gradient(160deg, var(--amber-10), rgba(3,48,40,0.06));
  color:var(--green);
}
.product-placeholder svg{ width:64px; height:64px; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; opacity:0.6; }
.product-placeholder span{ font-size:0.85rem; font-weight:600; opacity:0.75; }
.product-media-tag{
  position:absolute; top:-16px; left:-16px;
  background:var(--green); color:var(--snow);
  padding:10px 18px; border-radius:999px;
  font-family:var(--font-display); font-size:0.8rem; text-transform:uppercase;
  transform:rotate(-8deg);
}

.product-info .eyebrow{ margin-bottom:10px; }
.product-info h1{
  font-family:var(--font-display); font-size:clamp(2rem, 4vw, 3rem);
  color:var(--black); text-transform:uppercase; margin-bottom:16px;
}
.product-info-desc{ color:#454545; font-size:1.03rem; max-width:520px; margin-bottom:22px; }
.product-notas{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:34px; }
.product-notas li{
  background:var(--amber-10); border-radius:999px; padding:8px 16px;
  font-size:0.85rem; color:var(--black); font-weight:500;
}

.product-selector{ margin-bottom:26px; }
.product-selector-label{
  display:block; font-size:0.76rem; font-weight:700; letter-spacing:0.1em;
  text-transform:uppercase; color:var(--black); margin-bottom:12px;
}
.variant-options{ display:flex; flex-wrap:wrap; gap:10px; }
.variant-pill{
  padding:11px 20px; border-radius:999px; border:1.5px solid rgba(0,0,0,0.18);
  font-size:0.9rem; font-weight:600; color:var(--black);
  transition:background .25s, color .25s, border-color .25s;
}
.variant-pill.active{ background:var(--black); color:var(--snow); border-color:var(--black); }
.variant-pill:not(.active):hover{ border-color:var(--black); }

.product-price{ font-size:1.7rem; font-weight:700; color:var(--orange); margin:26px 0; display:flex; align-items:baseline; gap:12px; }
.product-price .preco-de{ font-size:1.1rem; font-weight:500; color:#9aa39d; text-decoration:line-through; }
.product-price .preco-por{ color:var(--orange); }

.product-qty-row{ display:flex; align-items:center; gap:22px; margin-bottom:28px; }
.product-qty-row .qty-stepper button{ width:34px; height:34px; font-size:1.1rem; }
.product-qty-row .qty-stepper span{ font-size:1.05rem; font-weight:600; min-width:20px; text-align:center; display:inline-block; }

.add-to-cart-btn{ width:100%; max-width:320px; }

.product-back{ margin-top:34px; }
.product-back a{ font-size:0.9rem; color:#454545; }
.product-back a:hover{ color:var(--orange); }

@media(max-width:1080px){
  .fuel-grid{ grid-template-columns:1fr; gap:44px; }
  .fuel-media{ order:-1; }
  .fuel-media-tag{ left:calc(50% - 100px); }
  .product-grid{ grid-template-columns:1fr; gap:40px; }
}

@media(max-width:640px){
  .fuel-cards{ grid-template-columns:1fr; }
  .cart-item{ grid-template-columns:48px 1fr; }
  .cart-item-side{ grid-column:2; flex-direction:row; justify-content:space-between; align-items:center; width:100%; }
  .cart-drawer{ width:100%; }
}

/* Miniaturas da página de produto (produtos com mais de uma foto) */
.product-thumbs{ display:flex; gap:12px; margin-top:16px; }
.product-thumb{ width:72px; height:72px; padding:0; border:2px solid transparent; border-radius:12px; overflow:hidden; background:var(--snow); cursor:pointer; opacity:0.7; }
.product-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.product-thumb.active, .product-thumb:hover{ border-color:var(--green); opacity:1; }
