/* Componentes e melhorias visuais: menu hamburger, navegação móvel, ícones fixos e melhorias de cards */

/* Small accessibility helpers */
.visually-hidden{position:absolute!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;height:1px;width:1px;margin:-1px;padding:0;border:0;white-space:nowrap}

/* HEADER LAYOUT */
.header-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 18px}
.brand{display:flex;align-items:center;gap:8px}
#search-bar.search-main{flex:1;max-width:720px;display:flex;align-items:center;gap:8px}
#search-bar input[type="search"]{flex:1;padding:10px 12px;border-radius:8px;border:1px solid #e6eefc;background:#fff;min-width:180px}
#search-bar .btn-search{background:#0b5cff;color:#fff;border:0;padding:10px 12px;border-radius:8px;cursor:pointer}
.header-actions{display:flex;align-items:center;gap:12px}
.main-nav{display:flex;gap:12px;align-items:center}
.main-nav a{padding:8px 10px;border-radius:8px;color:#0b172a;text-decoration:none;font-weight:600}
.user-actions{display:flex;align-items:center;gap:8px}
.btn-login{padding:8px 12px;border-radius:8px;border:1px solid transparent;color:#0b172a;text-decoration:none}
.btn-icon{background:transparent;border:0;padding:8px;border-radius:8px;cursor:pointer}
.cart-icon{position:relative;display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.cart-count{position:absolute;top:-6px;right:-6px;background:#ef4444;color:#fff;border-radius:999px;padding:4px 6px;font-size:.75rem;font-weight:700}
.btn-login:focus,.btn-icon:focus,.main-nav a:focus{outline:2px solid #0b5cff}

/* HAMBURGER */
.hamburger{background:transparent;border:0;padding:8px;margin-left:8px;display:inline-flex;align-items:center;cursor:pointer}
.hamburger:focus{outline:2px solid #0b5cff;border-radius:8px}
.hamburger-box{width:28px;height:18px;display:inline-block;position:relative}
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after{display:block;background:#0b172a;height:2px;border-radius:2px;position:absolute;left:0;right:0;transition:all .3s}
.hamburger-inner{top:50%;transform:translateY(-50%)}
.hamburger-inner::before{content:'';top:-8px}
.hamburger-inner::after{content:'';top:8px}
.hamburger[aria-expanded="true"] .hamburger-inner{background:transparent}
.hamburger[aria-expanded="true"] .hamburger-inner::before{transform:translateY(8px) rotate(45deg)}
.hamburger[aria-expanded="true"] .hamburger-inner::after{transform:translateY(-8px) rotate(-45deg)}

/* MOBILE NAV */
.mobile-nav{position:fixed;inset:0;z-index:1100;background:rgba(4,6,15,0.6);display:flex;align-items:flex-start;justify-content:flex-end;visibility:hidden;opacity:0;transition:opacity .25s, visibility .25s}
.mobile-nav[aria-hidden="false"]{visibility:visible;opacity:1}
.mobile-nav-inner{background:#fff;width:320px;max-width:92%;height:100%;padding:18px;box-shadow:-8px 0 24px rgba(2,6,23,.18);overflow:auto}
.mobile-nav-close{border:0;background:transparent;font-size:28px;line-height:1;float:right;cursor:pointer}
.mobile-nav-inner ul{list-style:none;padding:24px 0;margin:0;display:flex;flex-direction:column;gap:12px}
.mobile-nav-inner a{color:#0b172a;text-decoration:none;font-weight:600;padding:8px 12px;border-radius:8px}
.mobile-nav-inner a:focus{outline:2px solid #0b5cff}

/* FLOATING SOCIAL */
.floating-social{position:fixed;right:18px;bottom:18px;z-index:1200;display:flex;flex-direction:column;gap:10px}
.fs-item{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;background:#fff;border-radius:999px;box-shadow:0 8px 20px rgba(2,6,23,.12);text-decoration:none}
.fs-item img{width:22px;height:22px;display:block}
.fs-item:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(2,6,23,.18)}
.fs-item.fs-whatsapp{background:linear-gradient(135deg,#25D366,#128C7E);}
.fs-item.fs-whatsapp img{filter:brightness(0) invert(1)}

/* PRODUCT CARD IMPROVEMENTS */
.products-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;align-items:start}
.product-card{transition:transform .18s ease,box-shadow .18s ease;display:flex;gap:16px;align-items:flex-start;padding:16px;border-radius:14px;background:#fff;min-height:160px;box-shadow:0 8px 24px rgba(2,6,23,.04)}
.product-card:hover{transform:translateY(-8px);box-shadow:0 28px 60px rgba(2,6,23,.12)}
.product-card img{width:160px;height:120px;object-fit:contain;border-radius:12px;flex:0 0 160px;background:#f8fafc}
.product-meta{display:flex;flex-direction:column;justify-content:space-between;padding-left:8px}
.product-meta .product-title{font-size:1.12rem;margin:0 0 6px;font-weight:700}
.category-badge{padding:6px 10px;font-size:.78rem;border-radius:999px;background:#eef2ff;color:#0b5cff}
.product-price{font-size:1.1rem;font-weight:800;color:#0b5cff}
.product-meta .product-actions{margin-top:12px;display:flex;gap:10px;align-items:center}
.btn-cta{background:#0b5cff;color:#fff;padding:10px 14px;border-radius:10px;text-decoration:none;font-weight:700;box-shadow:0 10px 30px rgba(11,92,255,.12)}
.btn-ghost{border:1px solid #e6eefc;color:#0b172a;padding:8px 12px;border-radius:8px;text-decoration:none}
@media (min-width:1025px){.product-card img{width:240px;height:160px;object-fit:contain;background:#f8fafc;flex:0 0 240px}.product-card{min-height:180px}}
/* GRID tweaks to emphasize products on small screens */
@media (max-width:1024px){
  .main-wrap{padding:12px}
  .products-grid{grid-template-columns:repeat( auto-fit, minmax(220px,1fr) )}
  .brand .brand-name{display:inline-block;margin-left:8px}
  .main-nav{display:none}
  .hamburger{display:inline-block; order:-1; margin-right:8px}
  .brand-logo{order:0}

  /* header rearrangement for mobile/tablet */
  .header-top{flex-wrap:wrap;align-items:center}
  .brand{order:0;display:flex;align-items:center;gap:8px}
  .header-actions{order:1;flex:0 0 auto;display:flex;align-items:center;width:100%;justify-content:space-between;padding:6px 0}
  #search-bar.search-main{order:2;width:100%;max-width:100%;margin-top:8px}
  #search-bar input[type="search"]{min-width:120px;padding:12px 14px;background:#fff;border:1px solid #e6eefc;box-shadow:0 6px 18px rgba(2,6,23,.04);border-radius:10px}

  .user-actions{gap:10px}
  .user-actions .btn-icon{width:48px;height:48px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;background:#fff;border:1px solid #e6eefc;box-shadow:0 10px 24px rgba(2,6,23,.06);font-weight:700}
  .user-actions .btn-login{padding:8px 12px;border-radius:8px;background:#fff;border:1px solid #e6eefc}
  .cart-icon{padding:6px;border-radius:8px;background:#fff;border:1px solid #e6eefc;display:inline-flex;align-items:center}

  /* ensure touch targets and spacing */
  .btn-icon, .btn-login, .cart-icon{min-width:44px;min-height:44px}
  .header-actions{padding-left:8px;padding-right:8px}
}

@media (min-width:1025px){
  .hamburger{display:none}
  .mobile-nav{display:none}
}

/* small accessibility tweaks */
.mobile-nav-inner a:hover{background:#f1f5f9}

/* PRODUCT VISIBILITY - mobile & tablet */
@media (max-width:640px){
  .products-grid{grid-template-columns:repeat(1,1fr)}
  .product-card{flex-direction:column;align-items:stretch}
  .product-card img{width:100%;height:220px;object-fit:contain;border-radius:10px;background:#f8fafc}
  .product-meta{padding:12px}
  .product-price{font-size:1.12rem}
  .product-actions .btn-cta{display:block;width:100%;text-align:center}
}
@media (min-width:641px) and (max-width:1024px){
  .products-grid{grid-template-columns:repeat(2,1fr)}
  .product-card{flex-direction:row;align-items:flex-start}
  .product-card img{width:220px;height:150px;flex:0 0 220px}
  .product-meta .product-title{font-size:1.08rem}
  .product-actions .btn-cta{min-width:120px}
}

/* Ensure floating social doesn't occlude important UI on very small screens */
@media (max-width:480px){
  .floating-social{right:10px;bottom:10px;gap:8px}
  .fs-item{width:44px;height:44px}
}

/* Estilos movidos de <style> em index.html para consolidar CSS e permitir cache */
/* Slider e blocos profissionais */
.slider { position: relative; overflow: hidden; border-radius: 8px; background:#fff; box-shadow:0 6px 18px rgba(0,0,0,.06); }
.slider-track { display:flex; transition:transform .45s cubic-bezier(.2,.9,.3,1); will-change:transform; }
.slide { min-width:100%; box-sizing:border-box; padding:24px; display:flex; gap:24px; align-items:center; }
.slide img{ max-width:280px; width:40%; height:auto; border-radius:8px; }
.slide .slide-body{ width:60%; }
.slider-controls{ position:absolute; top:50%; left:0; right:0; transform:translateY(-50%); display:flex; justify-content:space-between; pointer-events:none; }
.slider-btn{ pointer-events:all; background:rgba(0,0,0,.5); color:#fff; border:none; padding:8px 12px; border-radius:6px; margin:0 8px; cursor:pointer; }
.section.highlight { background: linear-gradient(90deg,#0f172a0a,#0ea5e930); padding:24px; border-radius:8px; margin:20px 0; }
.cards-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; }
.card-small { background:#fff; padding:16px; border-radius:8px; box-shadow:0 6px 18px rgba(2,6,23,.06); }
.product-card { background:#fff; padding:16px; border-radius:10px; display:flex; gap:12px; align-items:flex-start; box-shadow:0 8px 20px rgba(2,6,23,.06); }
.product-card img { width:110px; height:80px; object-fit:contain; border-radius:8px; background:#f8fafc; }
.product-meta { flex:1; }
.product-title { font-size:1rem; margin:0 0 6px; }
.product-price { font-weight:700; color:#0b5cff; margin-top:6px; display:inline-block; }
.category-badge { display:inline-block; background:#eef2ff; color:#0b5cff; padding:4px 8px; border-radius:999px; font-size:.75rem; margin-top:6px; }
.campaign { display:flex; gap:18px; align-items:center; justify-content:space-between; padding:20px; border-radius:10px; background:linear-gradient(135deg,#ff7a18 0%,#af002d 100%); color:#fff; box-shadow:0 12px 36px rgba(175,0,45,.18); }
.campaign .cta { background:#fff; color:#af002d; padding:10px 16px; border-radius:8px; font-weight:600; text-decoration:none; }
.meta-list { display:flex; gap:12px; flex-wrap:wrap; }
.meta-item { background:#fff; padding:14px; border-radius:8px; min-width:160px; text-align:center; }
.posts-grid .post { background:#fff; padding:14px; border-radius:8px; display:flex; gap:12px; align-items:center; }
.muted { color: #6b7280; font-size: .95rem; }

/* Garante que o link dentro do product-tile cubra todo o card e mantenha estilo limpo */
.product-tile > .product-link{ display:block; color:inherit; text-decoration:none; }

/* Seção rápida: 3 quadrados (cards) responsivos */
.three-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;align-items:stretch}
.three-grid .product-tile{background:#fff;padding:16px;border-radius:12px;box-shadow:0 12px 30px rgba(2,6,23,.06);text-align:center;transition:transform .18s ease,box-shadow .18s ease}
.three-grid .product-tile:hover{transform:translateY(-6px);box-shadow:0 28px 60px rgba(2,6,23,.12)}
.three-grid .product-media img{width:100%;height:260px;object-fit:contain;border-radius:8px;margin-bottom:12px}
.three-grid .product-body{padding:0}
@media (max-width:1024px){.three-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.three-grid{grid-template-columns:repeat(1,1fr)}.three-grid .product-media img{height:220px}}

/* Estilos do campo de busca no header */
.site-search{ display:flex; align-items:center; gap:8px; margin:0 12px; max-width:520px; flex:1; }
.site-search input{ flex:1; padding:10px 12px; border-radius:8px; border:1px solid rgba(11,20,40,0.06); background:#fff; font-size:0.95rem }
.site-search .btn-search{ background:#0b5cff; color:#fff; border:none; padding:8px 12px; border-radius:8px; cursor:pointer }
@media (max-width:760px){ .site-search{ max-width:240px } }

/* Black Friday — bloco chamativo */
.black-friday{ background: linear-gradient(90deg,#0b1220,#0b5cff); color:#fff; padding:28px; border-radius:12px; margin:20px 0; }
.black-friday .bf-inner{ display:flex; gap:18px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.black-friday .bf-content{ max-width:520px }
.black-friday h2{ font-size:1.6rem; margin:0 0 8px }
.black-friday .bf-sub{ opacity:.88; margin:0 0 12px }
.black-friday .bf-cta{ display:flex; gap:12px; align-items:center }
.black-friday .bf-countdown{ font-weight:800; background:rgba(255,255,255,0.06); padding:8px 12px; border-radius:8px }
.black-friday .bf-deals{ }
.black-friday .bf-deals-viewport{ overflow:hidden; width:100%; }
.black-friday .bf-deals-track{ display:flex; transition:transform .6s cubic-bezier(.2,.9,.3,1); }
.black-friday .bf-deals-track .product-tile{ min-width:100%; flex:0 0 100%; margin:0 8px; box-sizing:border-box }
.black-friday .bf-controls{ display:flex; align-items:center; gap:8px; margin-top:12px }
.black-friday .bf-prev, .black-friday .bf-next{ background:rgba(255,255,255,0.1); color:#fff; border:1px solid rgba(255,255,255,0.12); padding:8px 10px; border-radius:8px; cursor:pointer }
.black-friday .bf-prev:hover, .black-friday .bf-next:hover{ background:rgba(255,255,255,0.14) }
.black-friday .product-tile{ background:#fff; color:#0b172a; padding:10px; border-radius:10px; }

/* small screens: reduce padding */
@media (max-width:560px){ .black-friday .bf-content{ max-width:100% } .black-friday .bf-deals-track .product-tile{ padding:8px } }

/* Barra de marcas (marquee suave) */
.brands-bar{ background:#fff; padding:12px 0; border-top:1px solid rgba(11,99,201,0.04); margin-top:20px }
.brands-viewport{ overflow:hidden }
.brands-track{ display:flex; gap:32px; align-items:center; padding:8px 24px; animation: bf-scroll 24s linear infinite }
.brands-track img{ height:40px; object-fit:contain; filter:grayscale(.05); opacity:.95 }
@keyframes bf-scroll{ from{transform:translateX(0)} to{transform:translateX(-50%)} }

@media (max-width:760px){ .slide img{ display:none } }

/* Accessibility and motion preferences */
:focus-visible{outline:3px solid rgba(11,99,201,0.12);outline-offset:2px}
@media (prefers-reduced-motion: reduce){
  *{transition:none!important;animation-duration:0s!important;scroll-behavior:auto!important}
  .brands-track{animation:none}
}

/* Search controls placed next to search on product pages */
.search-controls{display:flex;align-items:center;margin-left:12px}
.search-controls select{padding:10px 12px;border-radius:10px;border:1px solid rgba(11,99,201,0.06);background:#fff;font-weight:700}

/* Produtos - placeholders inline */
.inline-note{margin-bottom:10px;padding:12px;background:#f1f5f9;border-radius:10px;color:#0b172a;font-size:0.95rem}
.product-item{display:flex;gap:12px;align-items:center;padding:12px;border-radius:12px;background:var(--surface);border:1px solid rgba(11,99,201,0.04);box-shadow:var(--soft-shadow)}
.product-item .inline-media{flex:0 0 120px}
.inline-thumbs img{width:120px;height:90px;object-fit:contain;border-radius:8px}
.inline-body{flex:1}
.inline-title{font-weight:800;margin:0;font-size:1rem}
.inline-meta{color:var(--muted);font-size:0.92rem}
