/*
Theme Name: Leal Lentes
Theme URI: https://leallentes.com.br
Author: Leal Lentes
Author URI: https://leallentes.com.br
Description: Tema oficial da Leal Lentes.
Version: 1.2
*/

/* =========================
   RESET / BASE
========================= */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #111;
  background: #fff;
}

img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
:focus-visible{ outline: 2px solid #111; outline-offset: 3px; }

/* Rolagem suave + âncoras com header fixo */
html{ scroll-behavior: smooth; }
section[id]{ scroll-margin-top: 110px; }

/* =========================
   LAYOUT
========================= */
.container{
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
   HEADER (DESKTOP)
========================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.site-header .container{
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px 20px;
}

.brand{
  display: inline-flex;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.custom-logo-link{ display: inline-flex; align-items: center; }
.custom-logo{ max-height: 52px; width: auto; display: block; }

.site-nav{ margin-left: auto; }

/* =========================
   MENU (DESKTOP) + DROPDOWN
========================= */
.site-nav .nav-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav .nav-list > li{ position: relative; }

.site-nav .nav-list > li > a{
  display: inline-flex;
  align-items: center;
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0.98;
}
.site-nav .nav-list > li > a:hover{ opacity: 0.7; }

.site-nav .sub-menu{
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10ff
ww
10px);
  transition: all 0.2s ease;
  z-index: 999;
}
.site-nav .sub-menu li a{
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.site-nav .sub-menu li a:hover{ background: #f5f5f5; }

.site-nav .menu-item:hover > .sub-menu{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Item ativo no menu */
.site-nav .nav-list a.is-active{
  position: relative;
  opacity: 1;
}
.site-nav .nav-list a.is-active::after{
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 2px;
  height: 2px;
  background: #111;
  border-radius: 2px;
}

/* =========================
   MENU MOBILE (HAMBÚRGUER)
========================= */
.menu-toggle{
  display: none;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}
.menu-toggle__bar{
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  margin: 5px 0;
}
.menu-overlay{ display: none; }

/* =========================
   CONTEÚDO / FOOTER
========================= */
.site-main{ padding: 0; }

.site-footer{
  border-top: 1px solid #eee;
  padding: 24px 0;
  font-size: 14px;
  color: #666;
}

/* =========================
   HOME VITRINE + POLIMENTO PREMIUM
========================= */
.section{ padding: 80px 0; }
.section--soft{ background: #fafafa; }
.section--dark{ background: #111; }

.section__head{ margin-bottom: 22px; }

.section__title{
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.section__title--light{ color: #fff; }

.section__desc{
  margin: 0;
  color: #555;
  font-size: 16px;
  max-width: 68ch;
}
.section__desc--light{ color: rgba(255,255,255,0.75); }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}
.btn:hover{
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}
.btn--primary{ background: #111; color: #fff; }
.btn--ghost{ background: transparent; border-color: #ddd; color: #111; }
.btn--light{ background: #fff; color: #111; }
.btn--outline-light{ background: transparent; border-color: rgba(255,255,255,0.35); color: #fff; }

/* Grids */
.grid{ display: grid; gap: 18px; }
.grid--3{ grid-template-columns: repeat(3, 1fr); }
.grid--4{ grid-template-columns: repeat(4, 1fr); }

/* Cards / Products / Quotes */
.card, .product, .quote{
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* Imagens premium */
.card__img, .product__img{
  position: relative;
  overflow: hidden;
  background: #f4f4f4;
}
.card__img{ aspect-ratio: 4 / 3; }
.product__img{ aspect-ratio: 1 / 1; }

.card__img img, .product__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card:hover img, .product:hover img{
  transform: scale(1.02);
  transition: transform 0.25s ease;
}

/* Cards Ray-Ban: texto overlay */
.card__body{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.55) 70%,
    rgba(0,0,0,0.78) 100%);
}
.card__title, .card__text{ color: #fff; }
.card__text{ opacity: 0.9; }

/* Produtos (mantém bloco branco) */
.product__body{ padding: 14px; }
.product__title{ margin: 0 0 6px; font-size: 16px; }
.product__meta{ margin: 0 0 10px; color: #666; font-size: 13px; }
.product__price{ margin: 0 0 12px; font-weight: 800; font-size: 14px; }

.product__cta{
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border: 0;
  cursor: pointer;
}

/* Quotes / contato */
.quote{ padding: 18px; }
.quote__text{ margin: 0 0 10px; color: #333; }
.quote__name{ margin: 0; font-weight: 800; color: #111; }

.contact{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.contact__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================
   HERO – ESTILO RAY-BAN
========================= */
.hero--rayban{
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

/* IMPORTANTE: escolha 1 só. Aqui fica a REAL que você já usa */
.hero--rayban .hero__bg{
  position: absolute;
  inset: 0;
  background-image: url("assets/img/produtos/maragogi.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero--rayban::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.35) 45%,
    rgba(0,0,0,0.10) 70%,
    rgba(0,0,0,0) 100%
  );
  z-index: 2;
}

.hero--rayban .hero__content{
  position: relative;
  z-index: 3;
  max-width: 520px;
}
.hero--rayban .hero__eyebrow{
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}
.hero--rayban .hero__title{
  margin: 0 0 14px;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero--rayban .hero__subtitle{
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.4;
  opacity: 0.9;
}

/* =========================
   VARIANTES (COR)
========================= */
.variant{
  display: grid;
  gap: 6px;
  margin: 10px 0 12px;
}
.variant__label{
  font-size: 12px;
  color: #666;
  font-weight: 800;
}
.variant__select{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  font-weight: 700;
  background: #fff;
}

/* =========================
   CARRINHO (badge + página)
========================= */
.cart-count{
  display: none;
  margin-left: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Página Carrinho */
.cart-wrap{ max-width: 860px; }

.cart-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cart-title{
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.02em;
}

.cart-desc{ color:#555; }

.cart-list{
  display: grid;
  gap: 12px;
  margin: 12px 0 18px;
}

.cart-row{
  display:grid;
  grid-template-columns: 92px 1fr 120px;
  gap: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  background:#fff;
  padding: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

.cart-row__img{
  width: 92px;
  height: 92px;
  border-radius: 14px;
  overflow:hidden;
  background:#f4f4f4;
}

.cart-row__img img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.cart-row__ph{ width:100%; height:100%; background:#eee; }

.cart-row__name{ font-weight: 900; margin-bottom: 4px; }
.cart-row__meta{ color:#666; font-size: 13px; margin-bottom: 8px; }

.cart-remove{
  border:0;
  background:transparent;
  color:#111;
  opacity:0.75;
  font-weight:800;
  padding:0;
  cursor:pointer;
}
.cart-remove:hover{ opacity:1; }

.cart-row__qty{
  display:flex;
  flex-direction:column;
  gap: 6px;
  align-items:flex-start;
}
.cart-row__qty label{ font-size: 12px; color:#666; font-weight:800; }

.cart-row__qty input{
  width: 90px;
  padding: 10px 10px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  font-weight: 800;
}

.cart-notes{ margin-top: 8px; display: grid; gap: 8px; }
.cart-notes label{ font-size: 12px; color:#666; font-weight:800; }

.cart-notes textarea{
  width:100%;
  padding: 12px 12px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  font-size: 14px;
}

.cart-actions{
  margin-top: 14px;
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================
   ANIMAÇÕES PREMIUM
========================= */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal{ opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =========================
   RESPONSIVO (MOBILE)
========================= */
@media (max-width: 960px) {
  .custom-logo{ max-height: 40px; }

  .menu-toggle{ display: inline-flex; margin-left: auto; }
  .site-nav{ display: none; }

  .menu-overlay{
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 1000;
  }

  body.menu-open .site-nav{
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 86%;
    max-width: 360px;
    background: #fff;
    border-left: 1px solid #eee;
    padding: 84px 18px 18px;
    z-index: 1001;
  }

  body.menu-open .menu-overlay{
    opacity: 1;
    visibility: visible;
  }

  body.menu-open .site-nav .nav-list{
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  body.menu-open .site-nav .nav-list > li > a{
    width: 100%;
    padding: 12px 10px;
    font-size: 15px;
  }

  body.menu-open .site-nav .sub-menu{
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 8px 10px;
    min-width: auto;
    display: none;
  }

  .hero--rayban{ min-height: 72vh; }
  .hero--rayban .hero__title{ font-size: 38px; }
  .hero--rayban .hero__subtitle{ font-size: 15px; }

  .grid--3{ grid-template-columns: 1fr; }
  .grid--4{ grid-template-columns: 1fr 1fr; }

  .section{ padding: 62px 0; }
  .section__title{ font-size: 28px; }

  .cart-row{ grid-template-columns: 80px 1fr; }
  .cart-row__qty{
    grid-column: 1 / -1;
    flex-direction: row;
    align-items:center;
    justify-content: space-between;
  }
  .cart-row__qty input{ width: 120px; }
}
/* Catálogo /produtos/ */
.catalog-filters { margin: 14px 0 22px; }
.catalog-filters__grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto auto;
  gap: 10px;
  align-items: center;
}
.catalog-input, .catalog-select{
  width:100%;
  padding: 12px 12px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  font-weight: 700;
  background: #fff;
}
.catalog-btn{ white-space: nowrap; }

.badge{
  position:absolute;
  top: 12px;
  left: 12px;
  background: rgba(17,17,17,0.9);
  color:#fff;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
}

.catalog-card__link{ display:block; }

@media (max-width: 960px){
  .catalog-filters__grid{
    grid-template-columns: 1fr;
  }
}
/* Página do produto (single) */
.product-single { max-width: 1100px; margin: 0 auto; }
.product-single__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.product-single__image{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #f4f4f4;
}
.product-single__image img{
  width: 100%;
  height: auto;
  display: block;
}
.product-single__ph{
  aspect-ratio: 1/1;
  background: #eee;
}

.product-single__title{
  margin: 6px 0 10px;
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.product-single__price{
  margin: 0 0 12px;
  font-weight: 900;
  font-size: 18px;
}
.product-single__desc{
  margin: 0 0 16px;
  color: #555;
  max-width: 62ch;
}

.product-single__tags{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.tag{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  font-weight: 800;
  font-size: 12px;
  color: #111;
}

.product-single__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.product-single__extras{
  margin-top: 14px;
  color: #555;
  font-size: 14px;
}
.product-single__extras p{ margin: 6px 0; }

@media (max-width: 960px){
  .product-single__grid{ grid-template-columns: 1fr; }
  .product-single__title{ font-size: 32px; }
}
