:root{
  /* Paleta baseada no look (vinho/roxo + magenta) */
  --bg-dark: #120a10;
  --wine: #2a0f1a;
  --plum: #2b1231;
  --magenta: #ff2d85;
  --magenta2:#ff3d5f;
  --accent: #ff3b30;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --card:#ffffff;

  --header-grad: linear-gradient(90deg, rgba(22,10,16,.92), rgba(43,18,49,.92));
  --btn-grad: linear-gradient(90deg, var(--magenta2), var(--magenta));
}

*{ box-sizing:border-box; }
html, body{ width:100%; overflow-x:hidden; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:#fff;
}
a{ color: inherit; }
a:hover{ color: inherit; }

.container-wg{ width:min(1200px, 92vw); margin:0 auto; }

/* ===== TOP BAR (premium glass) ===== */
.topbar{
  position: sticky;
  top:0;
  z-index:1000;
  background: var(--header-grad);
  border-bottom:1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
}
.topbar .row{
  display:flex;
  align-items:center;
  gap:14px;
  padding:12px 0;
  min-width:0;
}

.brand{
  display:flex;
  align-items:center;
  text-decoration:none;
  font-weight:900;
  min-width:0;
}
.brand img{
  width:160px;
  height:44px;
  object-fit:contain;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.35));
}

/* Mobile nav button */
.mnavbtn{
  display:none;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  cursor:pointer;
}
.mnavbtn:hover{ background: rgba(255,255,255,.14); }
.mnav-ico{
  display:block;
  width:18px; height:14px;
  margin:0 auto;
  position:relative;
}
.mnav-ico::before,
.mnav-ico::after,
.mnav-ico{
  background:none;
}
.mnav-ico::before{
  content:"";
  position:absolute; left:0; right:0; top:0;
  height:2px; background:#fff; border-radius:99px;
  box-shadow: 0 6px 0 #fff, 0 12px 0 #fff;
}

/* Search */
.searchwrap{ flex:1; display:flex; justify-content:center; min-width:0; }
.searchbar{
  width:min(760px, 100%);
  display:flex;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  overflow:hidden;
  background: rgba(255,255,255,.08);
  min-width:0;
}
.searchbar input{
  border:0;
  outline:none;
  padding:13px 16px;
  flex:1;
  font-size:16px;
  background: transparent;
  color:#fff;
  min-width:0;
}
.searchbar input::placeholder{ color: rgba(255,255,255,.65); }
.searchbar button{
  border:0;
  outline:none;
  padding:13px 18px;
  font-weight:900;
  color:#fff;
  background: rgba(255,255,255,.10);
  border-left:1px solid rgba(255,255,255,.18);
  cursor:pointer;
}
.searchbar button:hover{ background: rgba(255,255,255,.16); }

/* Menu right */
.navwrap{ display:flex; align-items:center; gap:12px; }

/* top menu */
.topmenu{
  display:flex;
  align-items:center;
  gap:16px;
  font-weight:800;
  text-transform:uppercase;
  font-size:13px;
  letter-spacing:.7px;
  white-space:nowrap;
}
.topmenu a{
  text-decoration:none;
  color: rgba(255,255,255,.92);
  padding:10px 6px;
}
.topmenu a.active{ color:#fff; position:relative; }
.topmenu a.active::after{
  content:"";
  position:absolute;
  left:6px; right:6px; bottom:6px;
  height:2px;
  background: var(--btn-grad);
  border-radius:99px;
}

/* ===== Dropdown (hover suave + não desaparece) ===== */
.dropdown{ position:relative; }
.dropdown > a{ cursor:pointer; }

/* ponte invisível para manter hover */
.dropdown::after{
  content:"";
  position:absolute;
  left:-10px;
  right:-10px;
  top:34px;
  height:18px;
}

.dropdown-menu{
  display:none;
  position:absolute;
  right:0;
  top:48px;
  width:min(420px, 88vw);
  background: rgba(15,11,18,.96);
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  box-shadow:0 18px 55px rgba(0,0,0,.45);
  padding:10px;
  animation: ddIn .16s ease-out;
}
@keyframes ddIn{
  from{ opacity:0; transform: translateY(-6px); }
  to{ opacity:1; transform: translateY(0); }
}
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover{ display:block; }

.dd-title{
  font-weight:950;
  padding:10px 10px 6px;
  color:#fff;
  letter-spacing:.3px;
}
.dd-empty{
  padding:10px;
  color: rgba(255,255,255,.65);
}
.dd-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:11px 10px;
  border-radius:12px;
  text-decoration:none;
  color:#fff;
}
.dd-item:hover{ background: rgba(255,255,255,.08); }
.dd-item small{ color: rgba(255,255,255,.65); font-weight:800; }

/* icons */
.iconbtn{
  display:flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  font-weight:900;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background: rgba(255,255,255,.08);
  color:#fff;
  white-space:nowrap;
}
.iconbtn:hover{ background: rgba(255,255,255,.14); }
.icon{ width:18px; height:18px; display:inline-block; }
.icon svg{ width:18px; height:18px; display:block; fill:#fff; }

/* Carrinho: esconder texto (fica só ícone) */
.iconbtn.cart .label{ display:none; }

/* ===== MOBILE DRAWER ===== */
.mnav{ display:none; }
body.mnav-open .mnav{ display:block; }
.mnav{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.45);
  z-index:2000;
}
.mnav-inner{
  position:absolute;
  top:72px;
  right:16px;
  left:16px;
  background: rgba(15,11,18,.96);
  border:1px solid rgba(255,255,255,.14);
  border-radius:16px;
  box-shadow:0 18px 55px rgba(0,0,0,.55);
  padding:14px;
}
.mnav-title{ color:#fff; font-weight:950; margin-bottom:8px; }
.mnav-item{
  display:block;
  padding:12px 12px;
  border-radius:12px;
  color:#fff;
  text-decoration:none;
}
.mnav-item:hover{ background: rgba(255,255,255,.08); }
.mnav-empty{ color: rgba(255,255,255,.65); padding:10px 12px; }
.mnav-sep{ height:1px; background: rgba(255,255,255,.10); margin:10px 0; }
.mnav-close{
  margin-top:12px;
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color:#fff;
  font-weight:900;
  cursor:pointer;
}
.mnav-close:hover{ background: rgba(255,255,255,.14); }

/* ===== HERO / SLIDER ===== */
.hero{ background: #0b0710; color:#fff; }
.hero-banner{
  min-height:460px;
  position:relative;
  overflow:hidden;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.hero-banner::before{
  content:"";
  position:absolute; inset:0;
  background-image: var(--hero-img, none);
  background-size:cover;
  background-position:center;
  opacity:.86;               /* MAIS visível */
  filter:saturate(1.1) contrast(1.06);
  transform: scale(1.02);
}
.hero-banner::after{
  content:"";
  position:absolute; inset:0;
  /* overlay menos escuro */
  background:
    radial-gradient(1100px 500px at 25% 35%, rgba(255,61,95,.22), transparent 55%),
    linear-gradient(90deg, rgba(10,6,12,.55), rgba(10,6,12,.22) 55%, rgba(10,6,12,.55));
}

.hero-content{
  position:relative;
  z-index:2;
  padding:58px 0;
}
.hero h1{
  margin:0 0 12px;
  font-size: clamp(28px, 3.6vw, 52px); /* ligeiramente menor */
  font-weight:950;
  line-height:1.04;
}
.hero p{
  margin:0;
  max-width:860px;
  color: rgba(255,255,255,.86);
  font-size:18px;
}
.hero-actions{
  margin-top:16px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.btn-grad{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:999px;
  background: var(--btn-grad);
  color:#fff;
  text-decoration:none;
  font-weight:950;
  border:0;
}
.btn-grad:hover{ filter: brightness(1.05); }

.slider-dots{
  position:absolute;
  right:18px;
  bottom:18px;
  display:flex;
  gap:8px;
  z-index:3;
}
.dot{
  width:10px; height:10px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.10);
  cursor:pointer;
}
.dot.active{
  background: var(--magenta);
  border-color: rgba(255,255,255,.55);
}

/* ===== CARDS (imagem 2) ===== */
.section{ padding:34px 0 60px; }

.grid{
  display:grid;
  gap:22px;
  grid-template-columns: repeat(3, 1fr);
}

.card-seg{
  border:1px solid var(--border);
  border-radius:0;
  overflow:hidden;
  background: var(--card);
  text-decoration:none;
}
.card-seg .img{
  height:260px;
  background:#f3f4f6;
  background-image: var(--img, none);
  background-size:cover;
  background-position:center;
}
.card-seg .panel{
  background: #0aa6c7; /* estilo W&G */
  color:#fff;
  padding:26px 22px;
  text-align:center;
}
.card-seg h3{ margin:0 0 10px; font-size:32px; font-weight:950; }
.card-seg p{ margin:0 0 18px; opacity:.95; line-height:1.35; min-height:44px; }
.card-seg .btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  justify-content:center;
  padding:12px 16px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.85);
  color:#fff;
  font-weight:950;
}
.card-seg .btn:hover{ background: rgba(255,255,255,.12); }

/* ===== Footer ===== */
.footer{
  border-top:1px solid var(--border);
  padding:18px 0;
  color:#6b7280;
  font-size:14px;
  background:#fff;
}

/* ===== RESPONSIVO (corrige mobile) ===== */
@media (max-width: 980px){
  .topmenu{ display:none; }
  .mnavbtn{ display:inline-flex; align-items:center; justify-content:center; }
  .brand img{ width:150px; height:40px; }
}

@media (max-width: 720px){
  .topbar .row{
    flex-wrap:wrap;
    gap:10px;
    padding:10px 0;
  }

  .brand{ order:1; }
  .mnavbtn{ order:2; }
  .navwrap{ order:3; margin-left:auto; }
  .searchwrap{ order:4; width:100%; justify-content:stretch; }

  .searchbar{
    width:100%;
    border-radius:16px;
  }
  .searchbar input{ font-size:15px; padding:12px 14px; }
  .searchbar button{ padding:12px 14px; }

  .hero-content{ padding:28px 0; }
  .hero-banner{ min-height:420px; }

  .grid{ grid-template-columns:1fr; }
}
/* ===== PÁGINAS INTERNAS (Contactos / Catálogo) ===== */
.page-hero{
  position:relative;
  padding:54px 0;
  color:#fff;
  background:#0b0710;
  overflow:hidden;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.page-hero::before{
  content:"";
  position:absolute; inset:0;
  background-image: var(--bg, none);
  background-size:cover;
  background-position:center;
  opacity:.82;
  filter:saturate(1.05) contrast(1.08);
  transform: scale(1.02);
}
.page-hero::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(1100px 500px at 25% 35%, rgba(255,61,95,.22), transparent 55%),
    linear-gradient(90deg, rgba(10,6,12,.62), rgba(10,6,12,.28) 55%, rgba(10,6,12,.62));
}
.page-hero .content{ position:relative; z-index:2; }
.page-hero h1,
.page-hero h2{ margin:0; font-weight:950; letter-spacing:.2px; }
.page-hero .subtitle{ margin-top:10px; color: rgba(255,255,255,.86); max-width:860px; }

.breadcrumb{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  font-weight:800;
  font-size:13px;
  color: var(--muted);
  margin:18px 0;
}
.breadcrumb a{ text-decoration:none; color: var(--muted); }
.breadcrumb a:hover{ color: var(--text); }
.breadcrumb .sep{ opacity:.55; }
.breadcrumb .active{ color: var(--text); }

.wg-card{
  border:1px solid var(--border);
  background:#fff;
  border-radius:18px;
  box-shadow: 0 10px 25px rgba(2,6,23,.06);
}
.wg-card .head{
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  font-weight:950;
}
.wg-card .body{ padding:16px; }

/* Grid helpers */
.grid-2{ display:grid; grid-template-columns: 1.15fr .85fr; gap:22px; }
.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap:22px; }
.grid-auto{ display:grid; grid-template-columns: repeat(4, 1fr); gap:18px; }
@media (max-width: 980px){
  .grid-2{ grid-template-columns: 1fr; }
  .grid-auto{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px){
  .grid-3{ grid-template-columns: 1fr; }
  .grid-auto{ grid-template-columns: 1fr; }
}

/* Contactos */
.contact-grid{ display:grid; grid-template-columns: 1fr; gap:14px; }
.contact-card{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:14px;
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
  box-shadow: 0 10px 25px rgba(2,6,23,.06);
}
.icon-square{
  width:44px; height:44px;
  border-radius:14px;
  background: rgba(255,61,95,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
.icon-square svg{ width:22px; height:22px; fill: var(--magenta); }
.contact-card h4{ margin:0 0 6px; font-size:16px; font-weight:950; }

/* Form */
.wg-form{ display:grid; gap:12px; }
.wg-label{ font-weight:900; font-size:13px; color: var(--text); }
.wg-input,
.wg-textarea,
.wg-select{
  width:100%;
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 12px;
  outline:none;
  font-size:15px;
  background:#fff;
}
.wg-textarea{ min-height:140px; resize:vertical; }
.wg-input:focus,
.wg-textarea:focus,
.wg-select:focus{ border-color: rgba(255,45,133,.55); box-shadow: 0 0 0 4px rgba(255,45,133,.10); }
.wg-help{ color: var(--muted); font-size:13px; line-height:1.35; }

.wg-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:0;
  background: var(--btn-grad);
  color:#fff;
  font-weight:950;
  cursor:pointer;
  text-decoration:none;
}
.wg-btn:hover{ filter: brightness(1.05); }
.wg-btn-outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  color: var(--text);
  font-weight:950;
  cursor:pointer;
  text-decoration:none;
}
.wg-btn-outline:hover{ background:#f9fafb; }

/* Alerts */
.wg-alert{ padding:12px 14px; border-radius:14px; border:1px solid var(--border); background:#fff; }
.wg-alert.success{ border-color: rgba(16,185,129,.35); background: rgba(16,185,129,.08); }
.wg-alert.error{ border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.08); }

/* Cards catálogo */
.card-clean{
  border:1px solid var(--border);
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  text-decoration:none;
  box-shadow: 0 10px 25px rgba(2,6,23,.06);
}
.card-clean:hover{ transform: translateY(-2px); box-shadow: 0 18px 38px rgba(2,6,23,.10); }
.card-clean .img{
  height:200px;
  background:#f3f4f6;
  background-image: var(--img, none);
  background-size:cover;
  background-position:center;
}
.card-clean .pad{ padding:14px; }
.card-clean .title{ font-weight:950; margin:0 0 6px; }
.card-clean .meta{ color: var(--muted); font-weight:800; font-size:13px; }

/* Produto */
.price{ font-weight:950; }
.wg-badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:950;
  font-size:12px;
}
.wg-badge.success{ background: rgba(16,185,129,.10); border-color: rgba(16,185,129,.35); }
.wg-badge.info{ background: rgba(59,130,246,.10); border-color: rgba(59,130,246,.35); }
.wg-badge.warn{ background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.40); }

/* Paginação simples */
.pager{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.pager a, .pager span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  height:38px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid var(--border);
  text-decoration:none;
  font-weight:950;
  color: var(--text);
  background:#fff;
}
.pager a:hover{ background:#f9fafb; }
.pager .active{ background: rgba(255,45,133,.10); border-color: rgba(255,45,133,.35); }
.pager .disabled{ opacity:.45; pointer-events:none; }

/* ========================= */
/* USER DROPDOWN HEADER */
/* ========================= */

.wg-user{
  position:relative !important;
  display:inline-flex !important;
  align-items:center !important;
}

/* usa o mesmo estilo do iconbtn */
.wg-user-btn{
  background: rgba(255,255,255,.08) !important;
  border:1px solid rgba(255,255,255,.18) !important;
  color:#fff !important;
}
.wg-user-btn:hover{ background: rgba(255,255,255,.14) !important; }

.wg-user-menu{
  position:absolute !important;
  right:0 !important;
  top: calc(100% + 10px) !important;
  min-width: 240px !important;
  background:#fff !important;
  border:1px solid rgba(0,0,0,.08) !important;
  border-radius:16px !important;
  box-shadow: 0 20px 45px rgba(0,0,0,.18) !important;
  padding:8px !important;
  z-index:99999 !important;

  /* 🔥 aqui está o essencial */
  display:none !important;
}

.wg-user.open .wg-user-menu{
  display:block !important;
}

.wg-user-menu a{
  display:flex !important;
  padding:10px 12px !important;
  border-radius:12px !important;
  text-decoration:none !important;
  color:#111827 !important;
  font-weight:900 !important;
}
.wg-user-menu a:hover{ background:#f3f4f6 !important; }

.wg-user-menu a.danger{ color:#dc2626 !important; }
.wg-user-menu a.danger:hover{ background:#fee2e2 !important; }

.wg-user-divider{
  height:1px !important;
  background:#e5e7eb !important;
  margin:6px 4px !important;
}

/* Mobile: esconder texto para não ocupar */
@media (max-width: 520px){
  .wg-user-btn .label{ display:none !important; }
}
/* Checkout premium tweaks */
.section h1 { letter-spacing: .2px; }
.wg-card { border-radius: 18px; box-shadow: 0 12px 30px rgba(2,6,23,.06); }
.wg-card .head { border-top-left-radius:18px; border-top-right-radius:18px; }