:root{
  --bg:#ffffff;
  --text:#0d0d0d;
  --muted:#8a8a8a;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: .2px;
}

/* top bar */
.topbar{
  position:fixed;
  top:0; left:0; right:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 20px;
  z-index:10;
}

.icon-btn{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:0;
  background:transparent;
  color:var(--text);
  cursor:pointer;
  padding:0;
}
.icon-btn svg{ width:20px; height:20px; }
.icon-btn:active{ transform: translateY(0.5px); }

.cart{ position:relative; text-decoration:none; }
.cart-dot{
  position:absolute;
  right:6px;
  top:6px;
  width:6px; height:6px;
  border-radius:999px;
  background:var(--text);
  opacity:0;
}

/* main stage */
.stage{
  min-height:100vh;
  display:grid;
  grid-template-columns: 1fr minmax(240px, 620px) 1fr;
  grid-template-rows: 1fr auto 1fr;
  align-items:center;
  justify-items:center;
  padding:86px 20px 40px; /* lasă loc pentru topbar */
}

/* arrows */
.nav-arrow{
  border:0;
  background:transparent;
  color:var(--text);
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  cursor:pointer;
  opacity:.75;
}
.nav-arrow svg{ width:22px; height:22px; }
.nav-arrow:disabled{
  opacity:.18;
  cursor:default;
}

.left{ grid-column:1; grid-row:2; justify-self:end; }
.right{ grid-column:3; grid-row:2; justify-self:start; }

/* product */
.product{
  grid-column:2;
  grid-row:2;
  margin:0;
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
}

.product img{
  max-width: min(120px, 38vw);
  max-height: 60vh;        /* CHEIA: nu mai “sparge” ecranul */
  width: auto;
  height: auto;
  object-fit: contain;     /* se încadrează frumos */
  display:block;
}


/* meta */
.meta{
  grid-column:2;
  grid-row:3;
  text-align:center;
  padding-top:26px;
}

.dots{
  display:flex;
  justify-content:center;
  gap:8px;
  margin:0 0 14px;
}

.dot{
  width:4px; height:4px;
  border-radius:999px;
  background:var(--muted);
  opacity:.45;
}
.dot.active{ opacity:1; background:var(--text); }

h1{
  font-size:14px;
  font-weight:500;
  margin:0;
  letter-spacing:1px;
}

.price{
  margin:10px 0 0;
  font-size:14px;
  color:var(--text);
}

.add{
  margin-top:18px;
  width:42px;
  height:42px;
  border:0;
  background:transparent;
  color:var(--text);
  font-size:22px;
  line-height:1;
  cursor:pointer;
}

.add:active{ transform: translateY(0.5px); }

.added{
  margin:10px 0 0;
  font-size:12px;
  color:var(--muted);
  min-height:16px;
}

/* mobile tweaks */
@media (max-width: 520px){
  .stage{ grid-template-columns: 44px 1fr 44px; }
  .product img{ width: 76vw; }
}
.cart {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;

  min-width: 16px;
  height: 16px;
  padding: 0 4px;

  background: #000;
  color: #fff;

  font-size: 11px;
  line-height: 16px;
  text-align: center;

  border-radius: 999px;

  display: none; /* ascuns când coșul e gol */
}
.lang-btn{
  border:0;
  background:transparent;
  color:#0d0d0d;
  font-size:12px;
  letter-spacing:1px;
  cursor:pointer;
  padding:6px 8px;
}

.lang-btn:active{
  transform: translateY(0.5px);
}
.top-title{
  font-size:12px;
  letter-spacing:2px;
  opacity:.9;
}

.cart-wrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:86px 20px 40px;
}

.cart-card{
  width:min(520px, 92vw);
  border:1px solid #e9e9e9;
  border-radius:16px;
  padding:18px;
}

.row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 2px;
  border-bottom:1px solid #f2f2f2;
}

.row.total{ border-bottom:0; padding-top:16px; }

.label{
  font-size:12px;
  color:#6f6f6f;
  letter-spacing:1px;
  text-transform:uppercase;
}

.value{ font-size:14px; }

.qty-btn{
  border:0;
  background:transparent;
  font-size:18px;
  width:34px;
  height:34px;
  cursor:pointer;
}

.qty{
  display:inline-block;
  width:34px;
  text-align:center;
}

.actions{
  display:flex;
  gap:10px;
  margin-top:14px;
}

.ghost{
  flex:1;
  border:1px solid #e9e9e9;
  background:transparent;
  border-radius:12px;
  padding:12px 14px;
  cursor:pointer;
}

.pay{
  flex:1;
  display:flex;
  justify-content:center;
  align-items:center;
  text-decoration:none;
  border-radius:12px;
  padding:12px 14px;
  background:#0d0d0d;
  color:#fff;
}

.note{
  margin:12px 2px 0;
  font-size:12px;
  color:#6f6f6f;
  min-height:16px;
}

.form{
  margin-top:18px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.field span{
  font-size:11px;
  color:#6f6f6f;
  letter-spacing:1px;
  text-transform:uppercase;
}

.field input,
.field textarea{
  border:1px solid #e9e9e9;
  border-radius:10px;
  padding:10px 12px;
  font-size:14px;
  font-family:inherit;
}

.field input:focus,
.field textarea:focus{
  outline:none;
  border-color:#0d0d0d;
}

/* hover image swap (smooth) */
.swap{
  position: relative;
}

.swap .img{
  display:block;
  max-width: min(520px, 78vw);
  max-height: 60vh;
  width: auto;
  height: auto;
  object-fit: contain;

  transition: opacity 260ms ease;
  will-change: opacity;
}

.swap .hover{
  position:absolute;
  inset:0;              /* stă fix peste prima */
  margin:auto;
  opacity:0;
}

.swap:hover .base{
  opacity:0;
}

.swap:hover .hover{
  opacity:1;
}

/* pe touch (telefon) nu există hover, deci arată doar prima */
@media (hover: none){
  .swap .hover{ display:none; }
}

.swap .img{ transition: opacity 260ms ease, transform 260ms ease; }
.swap:hover .img{ transform: scale(1.01); }

.footer{
  margin-top:60px;
  padding:24px 20px;
  border-top:1px solid #eee;
  text-align:center;
}

.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  justify-content:center;
  margin-bottom:14px;
}

.footer-links a{
  font-size:12px;
  color:#6f6f6f;
  text-decoration:none;
}

.footer-links a:hover{
  color:#0d0d0d;
}

.footer-payments img{
  height:22px;
  opacity:.8;
}

/* --------------------
   FOOTER
-------------------- */
.footer{
  margin-top:60px;
  padding:24px 20px;
  border-top:1px solid #eee;
  text-align:center;
}

.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  justify-content:center;
  margin-bottom:14px;
}

.footer-links a{
  font-size:12px;
  color:#6f6f6f;
  text-decoration:none;
}

.footer-links a:hover{
  color:#0d0d0d;
}

.footer-payments img{
  height:22px;
  opacity:.8;
}

/* NETOPIA badge positioning */
iframe[src*="mny.ro"],
div[id^="netopia"],
div[class*="netopia"]{
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 9999;
}

iframe[src*="mny.ro"]{
  position: static !important;
  display: block;
  margin: 16px auto 0;
}

/* Trust block NETOPIA */
.footer-payments{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  margin-top:12px;
  font-size:12px;
  color:#6f6f6f;
}

/* badge NETOPIA mare */
iframe[src*="mny.ro"],
div[id*="netopia"],
div[class*="netopia"]{
  margin:0 auto !important;
}
