/* --- IMPORTAÇÃO DAS FONTES E RESET BÁSICO --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Montserrat:wght@400;500;700&display=swap');

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* ===== PALETA (igual à página azul da RA) =====
   Dourado: #C5A049
   Azul muito escuro: #040f1a
   Texto claro: #E6E9EF
   Bordas translucidas: rgba(255,255,255,.08)
*/
:root{
  --primary-color:#C5A049;     /* dourado */
  --secondary-color:#040f1a;   /* azul escuro (fundo) */
  --bg-elev:#0b1d2b;           /* cartões / superfícies elevadas */
  --bg-soft:#0a1826;           /* campos, pills, hover */
  --text-color:#E6E9EF;        /* texto padrão claro */
  --text-muted:#B7C0CC;        /* texto secundário */
  --border-color:rgba(255,255,255,.08);
  --success-color:#5D9C59;
  --error-color:#D9534F;
}

/* --- ESTILOS GERAIS (MOBILE-FIRST) --- */
body{
  font-family:'Montserrat',sans-serif;
  color:var(--text-color);
  background-color:var(--secondary-color);
  line-height:1.6;
}

h1,h2,h3,h4,.logo-text{
  font-family:'Cormorant Garamond',serif;
  font-weight:700;
  color:var(--text-color);
}

body.no-scroll{overflow:hidden;}

/* --- CABEÇALHO --- */
header{
  background:var(--secondary-color);
  position:sticky; top:0; z-index:990;
  padding:1rem 1.5rem;
  display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap;
  border-bottom:1px solid var(--border-color);
  box-shadow:0 2px 18px rgba(0,0,0,.35);
}

.logo{
  display:flex; align-items:center; gap:.75rem;
  text-decoration:none; cursor:pointer;
}

.logo-image{
  width:56px; height:56px; border-radius:50%; object-fit:cover; display:block;
  border:2px solid var(--primary-color);
  background:#0e1926;
  box-shadow:0 1px 2px rgba(0,0,0,.25);
}

.logo .logo-text{font-size:1.75rem; letter-spacing:1px; color:var(--text-color);}

.search-container{
  width:100%; display:flex; align-items:center;
  background:var(--bg-soft);
  border:1px solid var(--border-color);
  border-radius:1.5rem; padding:.5rem 1rem;
  order:3; flex-basis:100%;
  transition:box-shadow .3s,border-color .3s;
}
.search-container:focus-within{box-shadow:0 0 0 3px rgba(197,160,73,.25); border-color:rgba(197,160,73,.45);}
.search-container input{
  width:100%; border:none; background:none; outline:none;
  padding:.5rem; font-size:1rem; color:var(--text-color);
}
.search-container i{color:var(--primary-color); cursor:pointer;}

.cart-icon{position:relative; cursor:pointer; padding:.5rem; order:2;}
.cart-icon i{font-size:1.8rem; color:var(--primary-color);}
.cart-badge{
  position:absolute; top:0; right:0;
  background:var(--primary-color); color:#0a0f18;
  border-radius:50%; width:20px; height:20px;
  display:flex; justify-content:center; align-items:center;
  font-size:.8rem; font-weight:800; transform:translate(25%,-25%);
}

/* --- BARRA DE CATEGORIAS --- */
.categories-container{
  background:var(--secondary-color);
  display:flex; overflow-x:auto;
  border-bottom:1px solid var(--border-color);
}
.categories-bar{
  display:flex; justify-content:flex-start; align-items:center;
  padding:.75rem 1.5rem; gap:.75rem; width:100%;
}
.category-btn{
  display:flex; gap:.5rem; align-items:center;
  border:1px solid var(--border-color);
  color:var(--text-color);
  border-radius:1.5rem; padding:.6rem 1.2rem; cursor:pointer;
  background:var(--bg-soft); white-space:nowrap;
  font-size:.9rem; font-weight:600;
  transition:all .25s ease;
}
.category-btn:hover{
  background:var(--bg-elev);
  border-color:rgba(197,160,73,.5);
  color:var(--text-color);
  box-shadow:0 4px 14px rgba(0,0,0,.25);
}
.category-btn.active{
  background:var(--primary-color);
  color:#0a0f18;
  border-color:var(--primary-color);
  box-shadow:0 6px 18px rgba(197,160,73,.25);
}

/* ---  BANNER CUPOM --- */
.coupon-banner {
  background: linear-gradient(135deg, #0066FF, #003399);
  border: 1px solid var(--blue);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
  flex-wrap: wrap;
}

.coupon-banner-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coupon-banner-info i {
  font-size: 1.8rem;
  color: var(--gold);
}

.coupon-banner-text strong {
  font-size: 1.05rem;
  display: block;
}

.coupon-banner-text span {
  font-size: .85rem;
  opacity: .9;
}

.coupon-code-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed var(--gold);
  border-radius: 8px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: .05em;
  cursor: pointer;
}

.coupon-code-box:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* --- SEÇÃO HERO --- */
.hero-section{
  background:linear-gradient(180deg, #0f2233 0%, var(--secondary-color) 100%);
  color:var(--text-color);
  text-align:center;
  padding:4rem 1.5rem 20vw;
  position:relative;
}
.hero-section h2{font-size:2.6rem; margin-bottom:.5rem; letter-spacing:1px;}
.hero-section p{font-size:1.1rem; color:var(--text-muted);}
.wave-divider{position:absolute; bottom:0; left:0; width:100%; line-height:0;}
.wave-divider svg{display:block; width:100%; height:auto;}
.wave-divider .shape-fill{fill:var(--secondary-color);} /* mantém a emenda escura */

/* --- SEÇÃO DE DESTAQUE --- */
.featured-look{
  display:flex; flex-direction:column; align-items:center; gap:2rem;
  padding:3rem 1.5rem; text-align:center;
  max-width:1200px; margin:2rem auto; border-radius:1rem;
  background:var(--bg-elev);
  border:1px solid var(--border-color);
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}
.featured-look-img{
  width:100%; max-width:350px; height:auto; border-radius:1rem;
  box-shadow:0 12px 30px rgba(0,0,0,.35);
  border:1px solid var(--border-color);
  background:#0e1926;
}
.featured-look-info h3{font-size:2.2rem; margin-bottom:.5rem; color:var(--text-color);}
.featured-look-info p{font-size:1rem; max-width:520px; margin-bottom:1.5rem; color:var(--text-muted);}
.featured-look-info .btn-primary{
  background:var(--primary-color); color:#0a0f18;
  padding:.85rem 2.5rem; border:none; border-radius:2rem;
  font-weight:800; cursor:pointer; text-decoration:none;
  text-transform:uppercase; letter-spacing:1px; font-size:.9rem;
  transition:transform .15s, filter .2s, box-shadow .2s;
  box-shadow:0 8px 18px rgba(197,160,73,.25);
}
.featured-look-info .btn-primary:hover{transform:translateY(-2px); filter:saturate(110%);}

/* --- LISTA DE PRODUTOS --- */
.products{width:100%; max-width:1200px; padding:2rem 1.5rem; margin:0 auto;}
.products-container{display:grid; grid-template-columns:1fr 1fr; gap:1rem;}
.product-card{
  background:var(--bg-elev); border-radius:1rem; overflow:hidden; cursor:pointer;
  transition:transform .25s, box-shadow .25s, border-color .25s;
  box-shadow:0 6px 18px rgba(0,0,0,.35);
  display:flex; flex-direction:column; border:1px solid var(--border-color);
}
.product-card:hover{transform:translateY(-6px); box-shadow:0 12px 28px rgba(0,0,0,.45); border-color:rgba(197,160,73,.35);}
.product-card:hover .product-img{transform:scale(1.05);}
.product-img-container{width:100%; height:180px; overflow:hidden; background:var(--bg-soft);}
.product-img{width:100%; height:100%; object-fit:cover; transition:transform .35s ease;}
.product-info{padding:1rem; display:flex; flex-direction:column; flex-grow:1; text-align:center;}
.product-name{font-size:1.1rem; font-weight:700; margin-bottom:.5rem; color: var(--text-color)}
.product-description{display:none; color:var(--text-muted);}
.product-price{font-size:1.25rem; color:var(--text-color); margin-bottom:1rem; font-weight:800;}
.product-button{
  width:100%; background:transparent; color:var(--primary-color);
  border:1px solid var(--primary-color);
  padding:.7rem; font-size:.95rem; font-weight:800; border-radius:.5rem; cursor:pointer;
  transition:all .2s; margin-top:auto;
}
.product-button:hover{background:var(--primary-color); color:#fff;}

/* --- CARRINHO DE COMPRAS --- */
.cart-overlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.6);
  z-index:999; opacity:0; visibility:hidden;
  transition:opacity .3s, visibility .3s;
}
.cart-overlay.show{opacity:1; visibility:visible;}

.cart-sidebar{
  position:fixed; top:0; right:0; width:100%; max-width:420px; height:100%;
  background:var(--bg-elev);
  box-shadow:-6px 0 24px rgba(0,0,0,.5);
  z-index:1000; display:flex; flex-direction:column;
  transform:translateX(100%); transition:transform .35s cubic-bezier(.25,.46,.45,.94);
  border-left:1px solid var(--border-color);
}
.cart-sidebar.show{transform:translateX(0);}

.cart-header{
  display:flex; justify-content:space-between; align-items:center;
  padding:1rem 1.5rem; border-bottom:1px solid var(--border-color);
}
.cart-header h3{font-size:1.6rem; color:var(--text-color);}
.close-cart-btn{background:none; border:none; font-size:2rem; cursor:pointer; color:var(--primary-color);}

.cart-body{padding:1.5rem; overflow-y:auto; flex-shrink:1;}
.cart-footer{
  padding:1.5rem; border-top:1px solid var(--border-color);
  background:var(--bg-soft); overflow-y:auto; flex-grow:1;
}

.finish-order-btn-container{
  padding:1rem 1.5rem; border-top:1px solid var(--border-color);
  background:var(--secondary-color); box-shadow:0 -2px 5px rgba(0,0,0,.2);
}

.cart-empty{text-align:center; padding-top:4rem; color:var(--text-muted);}
.cart-empty i{font-size:4rem; margin-bottom:1rem; color:var(--border-color);}
.cart-empty p{font-size:1.2rem; font-weight:700;}

.cart-item{display:flex; align-items:center; gap:1rem; margin-bottom:1.5rem;}
.cart-item-img{
  width:80px; height:80px; object-fit:cover; border-radius:.5rem;
  border:1px solid var(--border-color); background:#0e1926;
}
.cart-item-info{flex-grow:1;}
.cart-item-name{
  font-size:1.1rem; font-weight:700;
  font-family:'Cormorant Garamond',serif; margin-bottom:.25rem; color:var(--text-color);
}
.cart-item-price{font-size:.95rem; color:var(--primary-color); font-weight:800;}
.cart-item-controls{display:flex; align-items:center; gap:.5rem; margin-top:.5rem;}
.quantity-btn{
  background:var(--bg-soft); border:1px solid var(--border-color);
  width:28px; height:28px; border-radius:50%; cursor:pointer; font-weight:800;
  color:var(--text-color); transition:background .2s, border-color .2s;
}
.quantity-btn:hover{background:#102335; border-color:rgba(197,160,73,.35);}
.remove-item-btn{background:none; border:none; color:var(--error-color); font-size:1.8rem; cursor:pointer; margin-left:auto;}

.product-image-fly{
  position:fixed; z-index:1001; border-radius:50%; object-fit:cover;
  border:2px solid var(--primary-color);
  transition:all .7s cubic-bezier(.55,.055,.675,.19);
}

/* opções entrega/retirada */
.options-toggle{
  display:flex; border:1px solid var(--border-color); border-radius:1.5rem; overflow:hidden; margin-bottom:1.5rem;
  background:var(--secondary-color);
}
.delivery-btn{
  flex:1; padding:.75rem; border:none; background:transparent; cursor:pointer;
  font-size:1rem; font-weight:800; color:var(--text-muted); transition:background .25s,color .25s;
}
.delivery-btn.active{background:var(--primary-color); color:#0a0f18;}
.form-group{margin-bottom:1rem;}
.form-group label{display:block; margin-bottom:.5rem; font-weight:800; font-size:.9rem; color:var(--text-color);}
.form-group input,.form-group select,.form-group textarea{
  width:100%; padding:.75rem; border:1px solid var(--border-color); border-radius:.5rem;
  font-size:1rem; color:var(--text-color); background:#0f2233;
  transition:border-color .2s, box-shadow .2s;
}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{
  border-color:rgba(197,160,73,.6); box-shadow:0 0 0 3px rgba(197,160,73,.2); outline:none;
}
.form-group input.error,.form-group textarea.error,.form-group select.error{
  border-color:var(--error-color)!important; box-shadow:0 0 0 3px rgba(217,83,79,.25)!important;
}

.payment-option{
  display:flex; align-items:center; gap:.75rem; padding:.75rem;
  border:1px solid var(--border-color); border-radius:.5rem; margin-bottom:.5rem; cursor:pointer;
  color:var(--text-color); background:#0f2233;
  transition:border-color .2s, background .2s;
}
.payment-option:hover{background:#102335;}
.payment-option input[type="radio"]{display:none;}
.payment-option .radio-custom{
  width:20px; height:20px; border:2px solid var(--border-color); border-radius:50%; display:inline-block; position:relative; transition:border-color .2s;
}
.payment-option input[type="radio"]:checked + .radio-custom{border-color:var(--primary-color);}
.payment-option input[type="radio"]:checked + .radio-custom::after{
  content:''; width:10px; height:10px; background:var(--primary-color); border-radius:50%;
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
}
.payment-option.selected{border-color:rgba(197,160,73,.5); background:#0f2233;}

#troco-container{
  display:none; margin-top:1rem; padding:1rem; background:var(--bg-elev);
  border-radius:.5rem; border:1px solid var(--border-color);
}
.delivery-fee-notice{
  font-size:.8rem; text-align:center; color:var(--text-muted);
  background:var(--bg-elev); padding:.5rem; border-radius:.5rem; margin:1.5rem 0; border:1px solid var(--border-color);
}

.date-time-row{display:flex; gap:1rem;}

.coupon-container{display:flex; gap:.5rem; margin-bottom:.5rem;}
#coupon-input{
  flex-grow:1; padding:.75rem; border:1px solid var(--border-color); border-radius:.5rem;
  font-size:1rem; background:#0f2233; color:var(--text-color);
  transition:border-color .2s, box-shadow .2s;
}
#coupon-input:focus{border-color:rgba(197,160,73,.6); box-shadow:0 0 0 3px rgba(197,160,73,.2); outline:none;}

.cart-summary{margin:1.5rem 0; border-top:1px solid var(--border-color); padding-top:1.5rem;}
.summary-line{display:flex; justify-content:space-between; margin-bottom:.5rem; font-size:1rem; color:var(--text-muted);}
.summary-line.total{font-size:1.3rem; font-weight:800; color:var(--text-color);}
.summary-line.total span:last-child{color:var(--primary-color);}

#apply-coupon-btn{
  border:1px solid var(--primary-color); background:transparent; color:var(--primary-color);
  padding:0 1.5rem; border-radius:.5rem; cursor:pointer; font-weight:800; transition:background .2s,color .2s;
}
#apply-coupon-btn:hover{background:var(--primary-color); color:#fff;}

.finish-order-btn{
  width:100%; padding:1rem; font-size:1.2rem; font-weight:800;
  background:var(--primary-color); color:#fff; border:none; border-radius:.5rem; cursor:pointer;
  transition:filter .2s, transform .1s;
}
.finish-order-btn:hover:not(:disabled){filter:saturate(110%); transform:translateY(-1px);}
.finish-order-btn:disabled{background:#7e6a31; color:#fff; opacity:.5; cursor:not-allowed;}
.finish-order-btn .fa-whatsapp{margin-right:.5rem;}

.view-cart-banner{
  position:fixed; bottom:-100px; left:0; width:100%;
  background:var(--secondary-color); color:var(--text-color);
  z-index:980; padding:.75rem 1.5rem; display:flex; justify-content:space-between; align-items:center;
  box-shadow:0 -6px 16px rgba(0,0,0,.45); transition:bottom .35s ease-in-out; border-top:1px solid var(--border-color);
}
.view-cart-banner.show{bottom:0;}
.view-cart-banner p{margin:0; font-weight:800; font-size:1.1rem;}
.view-cart-banner-btn{
  background:transparent; color:var(--text-color); border:1px solid var(--text-color);
  padding:.5rem 1rem; border-radius:.5rem; font-weight:800; cursor:pointer; transition:background .2s,color .2s;
}
.view-cart-banner-btn:hover{background:var(--primary-color); color: var(--text-color);}

/* --- RODAPÉ --- */
footer{
  background:var(--secondary-color); color:var(--text-muted);
  text-align:center; padding:2.5rem 1.5rem; margin-top:3rem;
  border-top:1px solid var(--border-color);
}

/* --- MEDIA QUERIES --- */
@media (min-width:640px){
  .products-container{grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:1.5rem;}
  .product-img-container{height:250px;}
  .product-description{display:block;}
}

@media (min-width:768px){
  header{padding:1rem 2rem;}
  .search-container{order:2; flex-basis:auto; width:auto; max-width:400px;}
  .cart-icon{order:3;}
  .categories-bar{justify-content:center;}
  .category-btn{padding:.75rem 1.5rem; font-size:1rem;}

  .featured-look{flex-direction:row; text-align:left; padding:4rem; gap:3rem;}

  .hero-section{padding:6rem 2rem 12vw;}
  .hero-section h2{font-size:3.6rem;}
  .hero-section p{font-size:1.2rem;}
}

@media (min-width:1024px){
  .hero-section{padding:8rem 2rem 10vw;}
  .hero-section h2{font-size:4.6rem;}
  .products{padding:3rem 2rem;}
  .products-container{gap:2rem;}
  .product-img-container{height:300px;}
}

/* Banner do cabeçalho (opcional, definido pelo admin em Configurações) */
header.header--banner {
    background-size: cover;
    background-position: center;
    color: #fff;
}
header.header--banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,.6), rgba(0,0,0,.3), rgba(0,0,0,.1));
    z-index: 0;
}
header.header--banner > * {
    position: relative;
    z-index: 1;
}
