/* Classic Tobacco RO — modern, aerisit, minimal (HTML + JS) */
:root{--bg:#0b0e14;--stroke:rgba(255,255,255,.10);--stroke-2:rgba(255,255,255,.16);--text:rgba(255,255,255,.92);--muted:rgba(255,255,255,.70);--muted-2:rgba(255,255,255,.55);--accent:#d8b26e;--accent-2:#7bd3d7;--danger:#ff6b6b;--ok:#51cf66;--radius-lg:22px;--radius-md:16px;--shadow:0 16px 50px rgba(0,0,0,.45);--shadow-soft:0 10px 30px rgba(0,0,0,.35);--max:1180px;--gap:18px;--font:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,"Apple Color Emoji","Segoe UI Emoji";}
*{box-sizing:border-box}html,body{height:100%}
body::before{content:"";position:fixed;inset:0;pointer-events:none;
  background-image:url("assets/pattern.svg");
  background-size:220px 220px;opacity:.22;mix-blend-mode:overlay;
}

body{margin:0;
  /* modern-elegant: warm tobacco gradient + subtle pattern */
  background:
    radial-gradient(900px 520px at 75% 8%, rgba(216,178,110,.12), transparent 60%),
    radial-gradient(1100px 680px at 15% 0%, rgba(123,211,215,.06), transparent 60%),
    radial-gradient(900px 700px at 20% 110%, rgba(132,90,45,.22), transparent 55%),
    linear-gradient(180deg, #0b0e14 0%, #120c07 100%);
  color:var(--text);font-family:var(--font);line-height:1.5}
a{color:inherit;text-decoration:none}img{max-width:100%;display:block}button,input,select,textarea{font:inherit;color:inherit;border:1px solid var(--stroke);background:rgba(255,255,255,.12);border-radius:16px;padding:10px 12px;min-height:120px;resize:vertical}
.container{max-width:var(--max);margin:0 auto;padding:24px}.small{font-size:.92rem;color:var(--muted)}
.topbar{position:sticky;top:0;z-index:50;background:rgba(11,14,20,.85);backdrop-filter:blur(10px);border-bottom:1px solid var(--stroke)}
.nav{max-width:var(--max);margin:0 auto;min-height:52px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.brand{display:flex;align-items:center;gap:12px;font-weight:900;letter-spacing:.3px;user-select:none}
.brand-logo{height:28px;width:auto}
.brand-logo.sm{width:34px;height:34px;border-radius:12px}
.brand-mark{display:none}
.brand-mark{width:40px;height:40px;border-radius:14px;background:radial-gradient(circle at 30% 30%, #fff2, transparent 52%),linear-gradient(135deg, rgba(216,178,110,.95), rgba(216,178,110,.45));box-shadow:0 14px 40px rgba(0,0,0,.45);position:relative;overflow:hidden}
.brand-mark::after{content:"";position:absolute;inset:-40%;background:radial-gradient(circle at 20% 40%, rgba(123,211,215,.55), transparent 55%);transform:rotate(18deg)}
.brand-name{display:flex;flex-direction:column;line-height:1.05}.brand-name b{font-size:1rem}
.brand-name span{font-weight:700;font-size:.78rem;color:var(--muted);letter-spacing:.12em;text-transform:uppercase}
.nav-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.nav-links{display:none;gap:8px;align-items:center}
.nav-links a{padding:10px 12px;border-radius:999px;color:var(--muted);border:1px solid transparent}
.nav-links a:hover{color:var(--text);background:rgba(255,255,255,.06);border-color:var(--stroke)}
.nav-links a.active{color:var(--text);background:rgba(216,178,110,.12);border-color:rgba(216,178,110,.25)}
@media (min-width:920px){.nav-links{display:flex}}
.icon-btn{color:var(--text);width:36px;height:36px;min-width:36px;min-height:36px;border-radius:999px;display:grid;place-items:center;border:1px solid var(--stroke);background:rgba(255,255,255,.14);cursor:pointer}
.icon-btn:hover{background:rgba(255,255,255,.07);border-color:var(--stroke-2)}
.icon{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 12px;min-height:38px;border-radius:14px;border:1px solid var(--stroke);background:rgba(255,255,255,.14);cursor:pointer;line-height:1}
.btn:hover{background:rgba(255,255,255,.08);border-color:var(--stroke-2)}
.btn.primary{color:#1a1206;border-color:rgba(216,178,110,.55);background:linear-gradient(135deg, rgba(216,178,110,.98), rgba(216,178,110,.65))}
.btn.primary:hover{filter:brightness(1.05)}
.pill{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;border:1px solid var(--stroke);background:rgba(255,255,255,.05);color:var(--muted);font-size:.9rem}
.badge{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:999px;border:1px solid var(--stroke);background:rgba(255,255,255,.05);color:var(--muted);font-size:.88rem}
.hero{border-radius:var(--radius-lg);border:1px solid var(--stroke);background:radial-gradient(1200px 700px at 20% 30%, rgba(216,178,110,.18), transparent 65%),radial-gradient(900px 600px at 80% 40%, rgba(123,211,215,.12), transparent 60%),rgba(255,255,255,.035);box-shadow:var(--shadow);overflow:hidden}
.hero-inner{padding:26px;display:grid;grid-template-columns:1.15fr .85fr;gap:22px;align-items:stretch}
@media (max-width:960px){.hero-inner{grid-template-columns:1fr}}
.kicker{color:rgba(123,211,215,.95);font-weight:800;letter-spacing:.16em;text-transform:uppercase;font-size:.82rem}
.h1{margin:10px 0 10px;font-size:clamp(2.05rem, 4.1vw, 3.1rem);line-height:1.06}
.lead{margin:0 0 14px;color:var(--muted);font-size:1.02rem}
.card{backdrop-filter: blur(10px);border:1px solid var(--stroke);border-radius:var(--radius-lg);background:rgba(255,255,255,.14);box-shadow:var(--shadow-soft)}
.card.pad{padding:18px}
.input{font:inherit;color:inherit;outline:none;border:1px solid var(--stroke);background:rgba(255,255,255,.12);border-radius:16px;padding:8px 10px;min-height:36px}
.input input{width:100%;border:none;background:transparent;outline:none;color:var(--text)}
.input:focus-within{border-color:rgba(123,211,215,.35);box-shadow:0 0 0 4px rgba(123,211,215,.12)}
.section{margin-top:18px}
.section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin:18px 0 10px}
.section-title h2{margin:0;font-size:1.22rem}.section-title p{margin:0;color:var(--muted)}
.product-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:var(--gap)}
.product{grid-column:span 3;border:1px solid var(--stroke);border-radius:var(--radius-lg);background:rgba(255,255,255,.06);overflow:hidden;box-shadow:var(--shadow-soft);transition:transform .18s ease,border-color .18s ease,background .18s ease;display:flex;flex-direction:column;height:100%}
.product:hover{transform:translateY(-3px);border-color:rgba(216,178,110,.25);background:rgba(255,255,255,.055)}
@media (max-width:1050px){.product{grid-column:span 4}}@media (max-width:760px){.product{grid-column:span 6}}@media (max-width:520px){.product{grid-column:span 12}}
.product-media{aspect-ratio:4/3;background:radial-gradient(circle at 20% 25%, rgba(216,178,110,.28), transparent 55%),radial-gradient(circle at 70% 70%, rgba(123,211,215,.18), transparent 55%),rgba(0,0,0,.25);border-bottom:1px solid var(--stroke);position:relative}
.product-media .tag{position:absolute;top:12px;left:12px;background:rgba(11,14,20,.65);border:1px solid var(--stroke);color:var(--muted);padding:6px 10px;border-radius:999px;font-size:.82rem}
.product-body{padding:14px;display:flex;flex-direction:column;flex:1}.product-title{margin:0 0 6px;font-size:1rem}.product-meta{margin:0 0 10px;color:var(--muted);font-size:.92rem}
.price-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto}
.price{font-weight:900;letter-spacing:.2px}
.strike{color:var(--muted-2);text-decoration:line-through;margin-right:8px;font-weight:700}
.toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding:12px;border-radius:var(--radius-lg);border:1px solid var(--stroke);background:rgba(255,255,255,.035)}
.select{border:1px solid var(--stroke);background:rgba(255,255,255,.12);padding:6px 10px;min-height:36px;border-radius:14px;outline:none}
.select:focus{border-color:rgba(123,211,215,.35);box-shadow:0 0 0 4px rgba(123,211,215,.12)}
.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:var(--gap)}
.col-12{grid-column:span 12}.col-8{grid-column:span 8}.col-6{grid-column:span 6}.col-4{grid-column:span 4}
@media (max-width:960px){.col-8,.col-6,.col-4{grid-column:span 12}}
.table{width:100%;border-collapse:collapse;overflow:hidden;border-radius:var(--radius-md);border:1px solid var(--stroke)}
.table td,.table th{padding:12px 12px;border-bottom:1px solid var(--stroke);text-align:left;color:var(--muted)}
.table th{color:var(--text);background:rgba(255,255,255,.035)}
.table tr:last-child td{border-bottom:none}
.qty{display:flex;align-items:center;gap:10px}
.qty button{width:36px;height:36px;border-radius:12px;border:1px solid var(--stroke);background:rgba(255,255,255,.05);cursor:pointer}
.qty button:hover{background:rgba(255,255,255,.08);border-color:var(--stroke-2)}
.qty input{width:54px;text-align:center;border-radius:12px;border:1px solid var(--stroke);background:rgba(255,255,255,.04);padding:8px 10px;outline:none}
.footer{margin-top:28px;border-top:1px solid var(--stroke);background:rgba(255,255,255,.025)}
.footer-inner{max-width:var(--max);margin:0 auto;padding:22px;display:grid;grid-template-columns:2fr 1fr 1fr;gap:18px}
@media (max-width:860px){.footer-inner{grid-template-columns:1fr}}
.footer a{color:var(--muted)}.footer a:hover{color:var(--text)}
.footer h4{margin:0 0 10px}.footer p{margin:0;color:var(--muted)}
.footer .fineprint{max-width:var(--max);margin:0 auto;padding:12px 22px 22px;color:var(--muted-2);font-size:.88rem}
.mobile-menu{display:none;position:fixed;inset:0;background:rgba(0,0,0,.55);backdrop-filter:blur(6px);z-index:80}
.mobile-menu[aria-hidden="false"]{display:block}
.mobile-panel{position:absolute;top:10px;right:10px;left:10px;border-radius:22px;border:1px solid var(--stroke);background:rgba(11,14,20,.92);box-shadow:var(--shadow);padding:14px}
.mobile-panel a{display:flex;align-items:center;justify-content:space-between;padding:12px 12px;border-radius:14px;color:var(--muted)}
.mobile-panel a:hover{background:rgba(255,255,255,.06);color:var(--text)}
.mobile-panel .row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.hr{height:1px;background:var(--stroke);margin:10px 0}
.toast{position:fixed;bottom:18px;left:18px;right:18px;max-width:560px;margin:0 auto;border-radius:18px;border:1px solid rgba(216,178,110,.25);background:rgba(11,14,20,.88);box-shadow:var(--shadow);padding:14px;display:none;z-index:90}
.toast.show{display:block}
.toast .row{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}
.toast p{margin:0;color:var(--muted)}.toast b{color:var(--text)}.toast .actions{display:flex;gap:10px;flex-wrap:wrap}
.pagehead{padding:16px;border-radius:var(--radius-lg);border:1px solid var(--stroke);background:rgba(255,255,255,.03)}
.pagehead h1{margin:0 0 6px;font-size:1.55rem}.pagehead p{margin:0;color:var(--muted)}
.notice{border:1px solid rgba(255,107,107,.25);background:rgba(255,107,107,.12);border-radius:var(--radius-md);padding:12px 14px;color:rgba(255,255,255,.88);display:flex;gap:10px;align-items:flex-start}
.notice strong{color:#fff}
.breadcrumb{color:var(--muted);font-size:.92rem;margin-bottom:10px}
.breadcrumb a{color:var(--muted)}.breadcrumb a:hover{color:var(--text)}
.form{display:grid;gap:12px}
.form label{color:var(--muted);font-size:.92rem}
.form input,.form textarea,.form select{width:100%;padding:12px 12px;border-radius:14px;border:1px solid var(--stroke);background:rgba(255,255,255,.05);outline:none}
.form input:focus,.form textarea:focus,.form select:focus{border-color:rgba(123,211,215,.35);box-shadow:0 0 0 4px rgba(123,211,215,.12)}
.form textarea{min-height:110px;resize:vertical}

.product-media img{width:100%;height:100%;object-fit:cover;display:block}


/* Buton adăugare în coș din catalog */
.add-to-cart{ padding:7px 10px; border-radius:999px; font-size:14px; }
.price-row{ gap:10px; }


/* Elegant tobacco background */
body {
    background:
        linear-gradient(rgba(30,20,15,0.75), rgba(30,20,15,0.75)),
        url('./assets/bg-tobacco.jpg') no-repeat center center fixed;
    background-size: cover;
}


/* Reviews */
.stars{letter-spacing:2px; font-weight:800; color:var(--accent); font-size:14px}
.about-page .card p{margin:0}

.nav-links a{
  padding:6px 8px;
  font-size:0.9rem;
}


/* Fix menu & icon buttons height inside slim navbar */
.icon-btn{
  height:32px;
  width:32px;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
}

.icon-btn .icon{
  width:18px;
  height:18px;
}

/* Slim header: keep brand on one line */

.topbar .brand-name b{font-size:0.95rem; line-height:1}
.topbar .brand{align-items:center; gap:10px}

/* Ensure icon buttons never exceed navbar height */
.topbar .icon-btn{width:36px;height:36px;min-width:36px;min-height:36px;display:flex;align-items:center;justify-content:center}

/* Search bar: more compact + readable placeholder */
.input{padding:8px 12px; min-height:40px}
.input input{height:24px}
input::placeholder, textarea::placeholder{color:rgba(255,255,255,.65)}

.topbar .icon-btn{color:var(--text)}

/* Brand text visible & compact */
.topbar .brand-name{
  line-height:1.1;
}
.topbar .brand-name b{
  font-size:0.95rem;
}
.topbar .brand-name span{
  display:inline;
  font-size:0.85rem;
  opacity:.9;
}


/* ===== UI size fixes (override) ===== */
:root{--control-h:36px;--control-pad-y:6px;--control-pad-x:10px}

/* Search + form controls */
.input{
  padding:6px 10px !important;
  min-height:var(--control-h) !important;
  align-items:center !important;
}
.input input{
  height:calc(var(--control-h) - 12px) !important;
  padding:0 !important;
  border:none !important;
  background:transparent !important;
  min-height:0 !important;
}
input, textarea, select{
  box-sizing:border-box !important;
  min-height:var(--control-h) !important;
  padding:var(--control-pad-y) var(--control-pad-x) !important;
  line-height:1.2 !important;
  font-size:0.95rem !important;
}
textarea{
  min-height:120px !important;
}

/* Cart quantity stepper */
.qty{gap:8px !important}
.qty button{
  width:30px !important;
  height:30px !important;
  min-width:30px !important;
  min-height:30px !important;
  padding:0 !important;
  line-height:1 !important;
  font-size:18px !important;
  background:rgba(255,255,255,.14) !important;
  display:grid !important;
  place-items:center !important;
}
.qty input{
  width:46px !important;
  height:30px !important;
  min-height:30px !important;
  padding:0 6px !important;
  background:rgba(255,255,255,.12) !important;
}

/* Keep navbar icon buttons tidy */
.topbar .icon-btn{
  width:36px !important;
  height:36px !important;
  min-width:36px !important;
  min-height:36px !important;
}

/* Search icon aligned with text */
.input{
  align-items:center !important;
}
.input .icon{
  align-self:center !important;
  margin-top:0 !important;
}

/* Stronger opacity for UI surfaces */
.card{
  background:rgba(255,255,255,.22) !important;
}
.input,
.select,
textarea,
input{
  background:rgba(255,255,255,.22) !important;
}
.btn,
.icon-btn{
  background:rgba(255,255,255,.28) !important;
}
.qty input{
  background:rgba(255,255,255,.22) !important;
}


/* ===== Professional polish ===== */
:root{
  --surface: rgba(255,255,255,.22);
  --surface-strong: rgba(255,255,255,.28);
  --surface-soft: rgba(255,255,255,.18);
  --focus: rgba(216,178,110,.55);
}

/* Better readability on glass UI */
.card{background:var(--surface) !important; border-color:rgba(255,255,255,.16) !important}
.input,.select,input,textarea{background:var(--surface) !important; border-color:rgba(255,255,255,.16) !important}
.btn,.icon-btn{background:var(--surface-strong) !important; border-color:rgba(255,255,255,.18) !important}

/* Consistent hover/focus */
.btn:hover,.icon-btn:hover,.card:hover{border-color:rgba(255,255,255,.24)}
input:focus,textarea:focus,select:focus,.input:focus-within{
  outline:none !important;
  box-shadow:0 0 0 3px var(--focus) !important;
  border-color:rgba(216,178,110,.55) !important;
}

/* ===== FIX: search icon and text on same line ===== */
.input{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  gap:10px !important;
}
.input .icon{
  flex:0 0 auto !important;
  display:block !important;
  margin:0 !important;
  align-self:center !important;
}
.input input{
  flex:1 1 auto !important;
  margin:0 !important;
  align-self:center !important;
  height:24px !important;
  min-height:0 !important;
  padding:0 !important;
  border:none !important;
  background:transparent !important;
}

/* If any page has SVG inheriting wrong fill, keep it readable */
.icon{fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round}

/* Make placeholders readable */
::placeholder{color:rgba(255,255,255,.68) !important}

/* Tighten form controls */
input,select,textarea{
  font-size:0.95rem !important;
  line-height:1.2 !important;
}


/* White text for main action buttons */
.btn.primary,
a.btn.primary{
  color:#ffffff !important;
}

.inline-btn {
  display: inline-block;
  padding: 2px 6px;
  margin: 0 2px;
  background: black; /* galben / auriu */
  color: #d4af37;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.80em;
}
.inline-btn:hover {
  background: black;
}

/* Rating stars (folosite in loc de descriere) */
.rating-stars {
  color: #FFD24A; /* auriu – catalog */
  letter-spacing: 2px;
}
.rating-stars[aria-label] { cursor: default; }


/* ⭐ Force stars on product page to be identical with catalog */
.prod-stars,
.product-stars,
.product-rating,
.stars,
#pdStars,
#pdRating {
  color: #FFD24A !important;
}


.product-detail-copy{margin-top:18px;padding-top:18px;border-top:1px solid rgba(255,255,255,.08)}
.product-copy h3{margin:0 0 10px;font-size:1.05rem}
.product-copy p{margin:0 0 12px;color:var(--muted);line-height:1.7}
.product-copy-list{margin:0;padding-left:18px;color:var(--text);display:grid;gap:8px}
.product-copy-list li{line-height:1.5}


/* Fix vizual pentru câmpurile de căutare din Acasă și Magazin */
.input > input,
.input > input:focus,
.input > input:active,
.input > input:focus-visible{
  box-shadow:none !important;
  border:none !important;
  outline:none !important;
  background:transparent !important;
}

.input{
  overflow:hidden;
}

.input:focus-within{
  box-shadow:0 0 0 3px var(--focus) !important;
}



/* Recenzii sub imagine în pagina de produs */
.product-reviews{
  margin-top:16px;
}

.product-reviews-card{
  background:linear-gradient(180deg, #ffffff 0%, #fff8ef 100%);
  border:1px solid rgba(168,116,62,.16);
  border-radius:22px;
  padding:18px;
  box-shadow:0 10px 28px rgba(0,0,0,.05);
}

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

.product-reviews-kicker{
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#9a6a3d;
  margin-bottom:6px;
  font-weight:700;
}

.product-reviews-card h3{
  margin:0;
  font-size:20px;
  line-height:1.2;
}

.product-reviews-score{
  text-align:right;
  white-space:nowrap;
  color:#4c3723;
}

.stars{
  color:#d99a2b;
  letter-spacing:1px;
  display:block;
  margin-bottom:4px;
}

.product-review-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.product-review-item{
  background:rgba(255,255,255,.78);
  border:1px solid rgba(168,116,62,.12);
  border-radius:16px;
  padding:14px;
}

.product-review-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
}

.product-review-item p{
  margin:0;
  color:#4c3723;
  line-height:1.55;
}

@media (max-width: 900px){
  .product-reviews-head{
    flex-direction:column;
    align-items:flex-start;
  }
  .product-reviews-score{
    text-align:left;
  }
}


/* Ajustări layout imagine + recenzii + descriere */
.product-reviews{
  margin-top:0 !important;
}
.product-media{
  border-bottom-left-radius:0 !important;
  border-bottom-right-radius:0 !important;
}
.product-reviews-card{
  border-top-left-radius:0 !important;
  border-top-right-radius:0 !important;
  border-top:none !important;
  box-shadow:0 14px 30px rgba(0,0,0,.04) !important;
}

.product-description-extra{
  margin-top:16px;
  padding:18px;
  border:1px solid rgba(168,116,62,.14);
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.78) 0%, rgba(255,248,239,.92) 100%);
}
.product-description-extra h3{
  margin:0 0 10px 0;
  font-size:18px;
}
.product-description-extra p{
  margin:0 0 10px 0;
  line-height:1.65;
  color:#4c3723;
}
.product-description-extra ul{
  margin:0;
  padding-left:20px;
  line-height:1.7;
  color:#4c3723;
}


/* Recenzii integrate cu imaginea produsului */
.product-media{
  border-bottom-left-radius:0 !important;
  border-bottom-right-radius:0 !important;
  overflow:hidden;
}

.product-media-extension{
  margin-top:0 !important;
}

.product-reviews-integrated{
  border:1px solid rgba(168,116,62,.14);
  border-top:none;
  border-bottom-left-radius:22px;
  border-bottom-right-radius:22px;
  background:
    linear-gradient(180deg, rgba(255,252,248,.98) 0%, rgba(255,246,234,.98) 100%);
  padding:18px;
  box-shadow:0 16px 34px rgba(60,33,9,.06);
}

.product-reviews-summary{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}

.product-reviews-kicker{
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#9a6a3d;
  font-weight:800;
  margin-bottom:6px;
}

.product-reviews-summary h3{
  margin:0;
  font-size:20px;
  line-height:1.15;
  color:#24160b;
}

.product-rating-badge{
  min-width:120px;
  padding:10px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(168,116,62,.14);
  text-align:center;
  box-shadow:0 8px 20px rgba(0,0,0,.04);
}

.product-rating-badge strong{
  display:block;
  font-size:20px;
  color:#24160b;
  margin-top:2px;
}

.product-rating-badge small{
  display:block;
  color:#7a5a3a;
  margin-top:2px;
  font-size:12px;
}

.stars{
  color:#d99a2b;
  letter-spacing:1px;
}

.small-stars{
  font-size:13px;
  margin-bottom:6px;
}

.product-review-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.review-chip{
  background:rgba(255,255,255,.82);
  border:1px solid rgba(168,116,62,.12);
  border-radius:18px;
  padding:14px;
  box-shadow:0 6px 18px rgba(0,0,0,.03);
}

.review-chip-wide{
  grid-column:1 / -1;
}

.review-chip-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:6px;
}

.review-chip-top strong{
  color:#24160b;
}

.review-date{
  color:#8b6b49;
  font-size:12px;
}

.review-chip p{
  margin:0;
  color:#4c3723;
  line-height:1.58;
  font-size:14px;
}

@media (max-width: 900px){
  .product-reviews-summary{
    flex-direction:column;
    align-items:flex-start;
  }
  .product-review-grid{
    grid-template-columns:1fr;
  }
  .review-chip-wide{
    grid-column:auto;
  }
}

.product-media{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}
.product-reviews-integrated{border-top:none;margin-top:-2px}


/* stil integrat recenzii cu imagine */
.product-media{
  border-bottom-left-radius:0!important;
  border-bottom-right-radius:0!important;
}

.product-reviews-integrated{
  background:rgba(255,255,255,.08);
  color:#fff;
  padding:18px;
  border-top:1px solid rgba(255,255,255,.15);
  border-bottom-left-radius:22px;
  border-bottom-right-radius:22px;
}

.product-reviews-integrated h3,
.product-reviews-integrated p,
.product-reviews-integrated strong{
  color:#fff;
}

.review-chip{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
}

.review-date{
  color:rgba(255,255,255,.75);
}

/* reduce review section height */
.product-reviews-integrated{
  padding:12px 14px;
}

.product-review-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}

.review-chip{
  padding:10px 12px;
  font-size:13px;
}

.review-chip p{
  font-size:13px;
  line-height:1.45;
}



/* product tabs under image */
.product-tabs{
  background:rgba(255,255,255,.08);
  border-radius:18px;
  padding:12px;
  margin-top:10px;
}

.product-tab-menu{
  display:flex;
  gap:6px;
  margin-bottom:10px;
}

.product-tab{
  flex:1;
  padding:8px 10px;
  border:none;
  border-radius:10px;
  background:rgba(255,255,255,.12);
  color:#fff;
  cursor:pointer;
  font-size:13px;
}

.product-tab.active{
  background:rgba(255,255,255,.25);
}

.product-tab-content{
  display:none;
}

.product-tab-content.active{
  display:block;
}

.product-summary{
  font-size:14px;
}

.summary-rating{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:6px;
}

.summary-meta{
  font-size:12px;
  opacity:.8;
}

.summary-text{
  line-height:1.5;
}


/* Recenzii: text alb pentru lizibilitate mai bună */
.product-tabs,
.product-tabs .summary-text,
.product-tabs .summary-meta,
.product-tabs .product-tab-content,
.product-tabs .product-tab-content p,
.product-tabs .product-tab-content strong,
.product-tabs .product-tab-content h3,
.product-tabs .review-date,
.product-tabs .review-chip p,
.product-tabs .review-chip strong,
.product-tabs .stars,
.product-tabs .small-stars{
  color:#fff !important;
}

.product-tabs .review-chip{
  background:rgba(255,255,255,.08) !important;
  border:1px solid rgba(255,255,255,.14) !important;
}

.product-tabs .product-tab{
  color:#fff !important;
}

/* pastreaza stelutele galbene la recenzii */
.product-tabs .stars,
.product-tabs .small-stars{
  color:#f5b301 !important;
}


/* butoane tab mai mici si mai discrete */
.product-tab-menu{
  gap:4px;
}

.product-tab{
  padding:4px 8px !important;
  font-size:12px !important;
  border-radius:8px !important;
  min-height:24px !important;
  line-height:1.2 !important;
}

.product-tab.active{
  background:rgba(255,255,255,.18) !important;
}



/* culoare globala pentru toate stelutele de rating */
.stars,
.small-stars,
.rating-stars,
.rating-stars svg,
.product-rating-badge .stars{
  color:#f5b301 !important;
  fill:#f5b301 !important;
}

/*CIGARETTE*/

.scene {
      position: relative;
      padding-top: 10px;
      transform: scaleX(-1) rotate(-15deg);
    }
    /* Țigara */
    .cigar {
      position: relative;
      width: 200px;
      height: 30px;
      display: flex;
      align-items: center;
    }
    /* Partea arsă */
    .ember-section {
      position: relative;
      width: 30px;
      height: 25px;
      border-radius: 50% 20% 20% 50%;
      background: #2a1a0a;
      overflow: visible;
    }
    /* Jarul incandescent */
    .ember {
      position: absolute;
      width: 100%;
      height: 100%;
      border-radius: 50% 20% 20% 50%;
      background: 
        radial-gradient(ellipse at 30% 50%, #ff4500 0%, transparent 50%),
        radial-gradient(ellipse at 50% 30%, #ff6b00 0%, transparent 40%),
        radial-gradient(ellipse at 40% 60%, #ff2200 0%, transparent 45%),
        radial-gradient(ellipse at 60% 50%, #cc2200 0%, transparent 50%),
        linear-gradient(90deg, #1a0a00 0%, #2a1510 100%);
      animation: emberGlow 0.5s ease-in-out infinite alternate;
    }
    .ember::before {
      content: '';
      position: absolute;
      width: 80%;
      height: 80%;
      top: 10%;
      left: 5%;
      border-radius: 50% 30% 30% 50%;
      background: 
        radial-gradient(ellipse at 25% 40%, #ff5500 0%, transparent 40%),
        radial-gradient(ellipse at 45% 55%, #ff3300 0%, transparent 35%),
        radial-gradient(ellipse at 35% 35%, #ff7700 0%, transparent 30%),
        radial-gradient(ellipse at 55% 45%, #ff4400 0%, transparent 35%);
      animation: emberFlicker 0.3s ease-in-out infinite alternate;
    }
    .ember::after {
      content: '';
      position: absolute;
      width: 60%;
      height: 60%;
      top: 20%;
      left: 10%;
      border-radius: 50%;
      background: 
        radial-gradient(ellipse at 30% 50%, #ffaa00 0%, transparent 30%),
        radial-gradient(ellipse at 50% 40%, #ff8800 0%, transparent 25%);
      animation: emberCore 0.4s ease-in-out infinite alternate;
      filter: blur(1px);
    }
    /* Crăpături în jar */
    .ember-cracks {
      position: absolute;
      width: 100%;
      height: 100%;
      border-radius: 50% 20% 20% 50%;
      background: 
        radial-gradient(ellipse 3px 8px at 20% 30%, #111 0%, transparent 100%),
        radial-gradient(ellipse 4px 6px at 40% 60%, #0a0a0a 0%, transparent 100%),
        radial-gradient(ellipse 3px 10px at 30% 70%, #151515 0%, transparent 100%),
        radial-gradient(ellipse 5px 4px at 50% 40%, #0d0d0d 0%, transparent 100%);
      opacity: 0.7;
    }
    /* Strălucirea jarului */
    .ember-glow {
      position: absolute;
      width: 80px;
      height: 80px;
      left: -15px;
      top: -17px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255, 100, 0, 0.4) 0%, rgba(255, 50, 0, 0.2) 30%, transparent 70%);
      animation: glowPulse 1s ease-in-out infinite alternate;
      pointer-events: none;
    }
    /* Corpul trabucului */
    .cigar-body {
      width: 190px;
      height: 25px;
      background: linear-gradient(180deg, 
        #8B7355 0%, 
        #6B5344 15%,
        #5D4637 30%,
        #4A3728 50%,
        #5D4637 70%,
        #6B5344 85%,
        #7A6350 100%
      );
      border-radius: 0 10px 10px 0;
      position: relative;
      box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.5);
    }
    /* Textura trabucului */
    .cigar-body::before {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      border-radius: 0 10px 10px 0;
      background: 
        repeating-linear-gradient(
          90deg,
          transparent 0px,
          transparent 3px,
          rgba(0, 0, 0, 0.05) 3px,
          rgba(0, 0, 0, 0.05) 4px
        ),
        repeating-linear-gradient(
          45deg,
          transparent 0px,
          transparent 10px,
          rgba(0, 0, 0, 0.03) 10px,
          rgba(0, 0, 0, 0.03) 20px
        );
    }
    /* Banda trabucului */
    .cigar-band {
      position: absolute;
      right: 30px;
      width: 25px;
      height: 25px;
      background: linear-gradient(180deg, #8B4513 0%, #654321 50%, #8B4513 100%);
      border-radius: 3px;
      box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    }
    .cigar-band::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 10px;
      height: 23px;
      background: linear-gradient(135deg, #DAA520 0%, #B8860B 50%, #DAA520 100%);
      border-radius: 2px;
    }
    /* Container fum */
   /* =========================
   CIGARETTE / CIGAR SMOKE
   ========================= */

.smoke-container {
  position: absolute;
  left: -10px;
  top: -185px;
  width: 190px;
  height: 260px;
  pointer-events: none;
  overflow: visible;
  z-index: 20;
}

/* Thick continuous smoke right at the ember */
.smoke-thick {
  position: absolute;
  bottom: 38px;
  left: 18px;
  border-radius: 50%;
  opacity: 0.55;
  filter: blur(10px);
  transform-origin: bottom center;
  background:
    radial-gradient(
      ellipse at center,
      rgba(235, 235, 235, 0.42) 0%,
      rgba(205, 205, 205, 0.26) 42%,
      rgba(170, 170, 170, 0.08) 72%,
      transparent 100%
    );
  animation: baseSmoke 2.6s ease-in-out infinite;
}

.smoke-thick-1 {
  width: 30px;
  height: 75px;
  left: 12px;
  animation-delay: 0s;
}

.smoke-thick-2 {
  width: 26px;
  height: 68px;
  left: 0px;
  animation-delay: 0.45s;
}

.smoke-thick-3 {
  width: 28px;
  height: 72px;
  left: 28px;
  animation-delay: 0.9s;
}

/* Main smoke puffs */
.smoke {
  position: absolute;
  bottom: 42px;
  left: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  opacity: 0;
  filter: blur(8px);
  transform-origin: center center;
  background:
    radial-gradient(
      ellipse at center,
      rgba(225, 225, 225, 0.48) 0%,
      rgba(200, 200, 200, 0.30) 32%,
      rgba(170, 170, 170, 0.14) 62%,
      transparent 100%
    );
}

.smoke::before,
.smoke::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse at center,
      rgba(220, 220, 220, 0.22) 0%,
      rgba(180, 180, 180, 0.10) 55%,
      transparent 100%
    );
  filter: blur(6px);
}

.smoke::before {
  width: 70%;
  height: 70%;
  top: 8%;
  left: -12%;
}

.smoke::after {
  width: 60%;
  height: 60%;
  top: 20%;
  right: -10%;
}

/* Staggered timings for continuity */
.smoke-1  { animation: denseSmoke1 4.8s linear infinite; animation-delay: 0s; }
.smoke-2  { animation: denseSmoke2 5.1s linear infinite; animation-delay: 0.35s; }
.smoke-3  { animation: denseSmoke3 4.7s linear infinite; animation-delay: 0.7s; }
.smoke-4  { animation: denseSmoke4 5.3s linear infinite; animation-delay: 1.05s; }
.smoke-5  { animation: denseSmoke1 4.9s linear infinite; animation-delay: 1.4s; }
.smoke-6  { animation: denseSmoke2 5.2s linear infinite; animation-delay: 1.75s; }
.smoke-7  { animation: denseSmoke3 4.8s linear infinite; animation-delay: 2.1s; }
.smoke-8  { animation: denseSmoke4 5.4s linear infinite; animation-delay: 2.45s; }
.smoke-9  { animation: denseSmoke1 5s linear infinite; animation-delay: 2.8s; }
.smoke-10 { animation: denseSmoke2 5.3s linear infinite; animation-delay: 3.15s; }

/* =========================
   ANIMATIONS
   ========================= */

@keyframes denseSmoke1 {
  0% {
    transform: translate(0, 0) scale(0.5) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.5;
  }
  30% {
    transform: translate(18px, -50px) scale(1) rotate(8deg);
    opacity: 0.42;
  }
  60% {
    transform: translate(42px, -120px) scale(1.45) rotate(-10deg);
    opacity: 0.24;
  }
  100% {
    transform: translate(68px, -210px) scale(2) rotate(15deg);
    opacity: 0;
  }
}

@keyframes denseSmoke2 {
  0% {
    transform: translate(0, 0) scale(0.45) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.46;
  }
  34% {
    transform: translate(10px, -62px) scale(1.05) rotate(-8deg);
    opacity: 0.38;
  }
  68% {
    transform: translate(36px, -138px) scale(1.55) rotate(11deg);
    opacity: 0.18;
  }
  100% {
    transform: translate(56px, -220px) scale(2.1) rotate(-14deg);
    opacity: 0;
  }
}

@keyframes denseSmoke3 {
  0% {
    transform: translate(0, 0) scale(0.55) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.48;
  }
  36% {
    transform: translate(26px, -48px) scale(1.02) rotate(10deg);
    opacity: 0.4;
  }
  70% {
    transform: translate(54px, -136px) scale(1.62) rotate(-12deg);
    opacity: 0.2;
  }
  100% {
    transform: translate(82px, -226px) scale(2.2) rotate(18deg);
    opacity: 0;
  }
}

@keyframes denseSmoke4 {
  0% {
    transform: translate(0, 0) scale(0.42) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 0.4;
  }
  38% {
    transform: translate(14px, -44px) scale(0.95) rotate(-6deg);
    opacity: 0.34;
  }
  72% {
    transform: translate(38px, -122px) scale(1.48) rotate(9deg);
    opacity: 0.16;
  }
  100% {
    transform: translate(62px, -196px) scale(1.9) rotate(-10deg);
    opacity: 0;
  }
}

@keyframes baseSmoke {
  0% {
    transform: scaleY(0.92) scaleX(0.95) skewX(0deg);
    opacity: 0.34;
  }
  25% {
    transform: scaleY(1.08) scaleX(1.12) skewX(6deg);
    opacity: 0.58;
  }
  50% {
    transform: scaleY(1.16) scaleX(0.98) skewX(-5deg);
    opacity: 0.44;
  }
  75% {
    transform: scaleY(1.03) scaleX(1.08) skewX(5deg);
    opacity: 0.52;
  }
  100% {
    transform: scaleY(0.95) scaleX(1) skewX(-2deg);
    opacity: 0.36;
  }
}

/* clickabil */
.cigar {
  cursor: pointer;
  z-index: 5;
}

/* boost de fum când se trage din țigară */
.scene.puffing .smoke,
.scene.puffing .smoke-thick {
  filter: blur(10px);
}

.scene.puffing .smoke {
  animation-duration: 3s !important;
}

.scene.puffing .smoke-thick {
  opacity: 0.85;
  transform: scale(1.15);
}

/* jar mai intens */
.scene.puffing .ember {
  filter: brightness(1.35) saturate(1.3);
}

.scene.puffing .ember-glow {
  opacity: 1;
  transform: scale(1.25);
  filter: blur(2px);
}

.scene.puffing .ember::before,
.scene.puffing .ember::after {
  filter: brightness(1.35);
}

.scene.puffing .smoke-1,
.scene.puffing .smoke-2,
.scene.puffing .smoke-3,
.scene.puffing .smoke-4,
.scene.puffing .smoke-5,
.scene.puffing .smoke-6,
.scene.puffing .smoke-7,
.scene.puffing .smoke-8,
.scene.puffing .smoke-9,
.scene.puffing .smoke-thick-1,
.scene.puffing .smoke-thick-2,
.scene.puffing .smoke-thick-3,
.scene.puffing .smoke-10 {
  animation-duration: 1.5s !important;
  opacity: 1 !important;
}

/* Responsive cart grid */
.cart-header,
.cart-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: center;
}

@media (max-width: 768px) {
  .cart-header { display:none; }
  .cart-item {
    display:block;
    padding:16px;
    border:1px solid #ddd;
    border-radius:12px;
    margin-bottom:12px;
  }
  .cart-item > div {
    display:flex;
    justify-content:space-between;
    margin-bottom:10px;
  }
  .cart-item > div::before {
    content: attr(data-label);
    font-weight:600;
  }
}

/* ===== Catalog mobile: 2 produse pe rând =====
   Păstrează 4 coloane pe desktop, 3 pe tabletă și forțează 2 coloane
   inclusiv pe telefoane înguste, suprascriind regula veche max-width:520px. */
@media (max-width: 760px) {
  .product-grid {
    gap: 12px !important;
  }

  .product-grid .product,
  .product {
    grid-column: span 6 !important;
  }

  .product-body {
    padding: 10px !important;
  }

  .product-title {
    font-size: .9rem !important;
    line-height: 1.25 !important;
  }

  .product-meta {
    font-size: .8rem !important;
    margin-bottom: 8px !important;
  }

  .price-row {
    gap: 6px !important;
    flex-wrap: wrap !important;
  }

  .price {
    font-size: .95rem !important;
  }

  .add-to-cart {
    width: 100% !important;
    min-height: 34px !important;
    padding: 7px 8px !important;
    font-size: .82rem !important;
  }

  .product-media .tag {
    top: 8px !important;
    left: 8px !important;
    padding: 4px 7px !important;
    font-size: .7rem !important;
  }
}

@media (max-width: 420px) {
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .product-grid {
    gap: 10px !important;
  }
}


/* ===== Coș responsive real: rândurile de tabel devin carduri pe mobil ===== */
@media (max-width: 720px) {
  #cartRoot { overflow-x: hidden !important; }
  #cartRoot .card.pad { padding: 12px !important; overflow: visible !important; }
  #cartRoot .table,
  #cartRoot .table thead,
  #cartRoot .table tbody,
  #cartRoot .table tr,
  #cartRoot .table th,
  #cartRoot .table td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  #cartRoot .table {
    border: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    table-layout: fixed !important;
  }
  #cartRoot .table thead { display: none !important; }
  #cartRoot .table tbody tr {
    margin: 0 0 14px !important;
    padding: 12px !important;
    border: 1px solid var(--stroke) !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,.035) !important;
    overflow: hidden !important;
  }
  #cartRoot .table tbody tr:last-child { margin-bottom: 0 !important; }
  #cartRoot .table td {
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    color: var(--text) !important;
    text-align: left !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
  #cartRoot .table td:last-child { border-bottom: 0 !important; padding-bottom: 0 !important; }
  #cartRoot .table td::before {
    content: attr(data-label);
    display: block !important;
    margin-bottom: 6px !important;
    font-size: .78rem !important;
    font-weight: 800 !important;
    letter-spacing: .02em !important;
    color: var(--muted) !important;
  }
  #cartRoot .table td[data-label=""]::before { display: none !important; }
  #cartRoot .cart-product-info {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
    min-width: 0 !important;
  }
  #cartRoot .cart-product-info img {
    width: 64px !important;
    height: 54px !important;
    flex: 0 0 auto !important;
  }
  #cartRoot .cart-product-info div,
  #cartRoot .cart-product-info b,
  #cartRoot .cart-product-info span {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
  #cartRoot .qty {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    max-width: 100% !important;
  }
  #cartRoot .qty input { width: 48px !important; min-width: 48px !important; }
  #cartRoot .table td .btn { width: 100% !important; justify-content: center !important; }
}

@media (max-width: 380px) {
  #cartRoot .cart-product-info { grid-template-columns: 1fr !important; }
  #cartRoot .cart-product-info img {
    width: 100% !important;
    height: auto !important;
    max-height: 160px !important;
  }
}


/* === Îmbunătățiri UX mobile / checkout / performanță vizuală === */
html { scroll-behavior: smooth; }
.product,
.card,
.btn,
.icon-btn,
.qty button,
.add-to-cart {
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:active,
.icon-btn:active,
.qty button:active,
.add-to-cart:active { transform: translateY(1px) scale(.98); }
.product:hover,
.card:hover { box-shadow: 0 18px 48px rgba(0,0,0,.42); }
.product-media img { transform: translateZ(0); transition: transform .28s ease, filter .28s ease; }
.product:hover .product-media img { transform: scale(1.035); filter: saturate(1.05); }
.form input,
.form textarea,
.form select,
.input,
.select,
.qty input { transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.qty {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 4px;
  width: max-content;
}
.qty button {
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--text);
  min-width: 38px;
  min-height: 38px;
}
.qty input {
  min-height: 38px;
  border-color: transparent;
  background: transparent;
  font-weight: 800;
}
.cart-remove { border-color: rgba(255,107,107,.24) !important; color: rgba(255,255,255,.9); }
.cart-remove:hover { background: rgba(255,107,107,.12) !important; border-color: rgba(255,107,107,.38) !important; }
.checkout-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.checkout-line-main { min-width: 0; }
.checkout-line-main b,
.checkout-line-total { overflow-wrap: anywhere; word-break: break-word; }
.checkout-line-total { flex: 0 0 auto; text-align: right; }
.checkout-submit { width: 100%; margin-top: 4px; }
@media (max-width: 760px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .card.pad { padding: 14px; }
  .checkout-line {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .checkout-line-total { text-align: left; }
  #checkoutSummary [style*="justify-content:space-between"] {
    gap: 12px;
    align-items: flex-start;
  }
  #checkoutSummary b,
  #checkoutSummary span { overflow-wrap: anywhere; word-break: break-word; }
  .form input,
  .form select,
  .form textarea { font-size: 16px; }
  .btn,
  .add-to-cart { min-height: 42px; }
}
@media (max-width: 420px) {
  .qty { width: 100%; justify-content: space-between !important; }
  .qty button { min-width: 42px; }
  .qty input { flex: 1; width: auto !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ===  content sections pentru ieftintutun === */
.info-content { margin-top: 26px; }
.info-card {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 24px;
  padding: clamp(18px, 3vw, 34px);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
}
.info-card h2 { margin: 0 0 12px; font-size: clamp(1.45rem, 3vw, 2.25rem); line-height: 1.15; }
.info-card h3 { margin: 0 0 8px; font-size: 1.06rem; }
.info-card p { color: var(--muted); line-height: 1.75; margin: 0 0 14px; }
.info-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.info-columns article, .faq-content details {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  padding: 16px;
  background: rgba(0,0,0,.12);
}
.faq-content details + details { margin-top: 12px; }
.faq-content summary { cursor: pointer; font-weight: 800; color: var(--text); }
.faq-content details p { margin-top: 10px; margin-bottom: 0; }
@media (max-width: 800px) {
  .info-columns { grid-template-columns: 1fr; }
  .info-card { border-radius: 18px; }
}

/* === Imagini  interactive pentru homepage și Despre noi === */
.info-visual-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.info-visual-card { position: relative; overflow: hidden; min-height: 220px; margin: 0; border-radius: 22px; border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.16); box-shadow: 0 18px 42px rgba(0,0,0,.22); isolation: isolate; }
.info-visual-card img { width: 100%; height: 100%; min-height: 220px; display: block; object-fit: cover; transform: scale(1.005); transition: transform .45s ease, filter .45s ease; }
.info-visual-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.78)); z-index: 1; pointer-events: none; }
.info-visual-card figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: grid; gap: 5px; padding: 12px; border-radius: 16px; background: rgba(10,7,5,.58); border: 1px solid rgba(255,255,255,.13); backdrop-filter: blur(8px); transform: translateY(6px); transition: transform .3s ease, background .3s ease, border-color .3s ease; }
.info-visual-card figcaption b { color: var(--text); font-size: 1rem; }
.info-visual-card figcaption span { color: rgba(255,255,255,.74); font-size: .88rem; line-height: 1.45; }
.info-visual-card:hover img, .info-visual-card:focus-within img { transform: scale(1.055); filter: saturate(1.12) contrast(1.04); }
.info-visual-card:hover figcaption, .info-visual-card:focus-within figcaption { transform: translateY(0); background: rgba(10,7,5,.72); border-color: rgba(212,175,55,.35); }
.about-visuals { margin-top: 22px; }
.about-visuals .info-visual-card, .about-visuals .info-visual-card img { min-height: 250px; }
@media (max-width: 900px) { .info-visual-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .info-visual-grid { grid-template-columns: 1fr; gap: 12px; } .info-visual-card, .info-visual-card img, .about-visuals .info-visual-card, .about-visuals .info-visual-card img { min-height: 210px; } .info-visual-card figcaption { left: 10px; right: 10px; bottom: 10px; } }
@media (prefers-reduced-motion: reduce) { .info-visual-card img, .info-visual-card figcaption { transition: none !important; } }
.story-content { margin-top: 26px; }


/* === Safari/iPhone responsive fix: catalog + cos + checkout === */
html{width:100%;max-width:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{width:100%;max-width:100%;overflow-x:hidden}.container,.section,.card,.product-grid,.grid,.table,#cartRoot,#checkoutRoot{min-width:0;max-width:100%}
@media (max-width:760px){
  .product-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;width:100%!important;min-width:0!important}
  .product-grid>.product,.product-grid .product{grid-column:auto!important;width:auto!important;min-width:0!important;max-width:100%!important}
  .product-media,.product-body,.price-row,.product-title,.product-meta{min-width:0!important;max-width:100%!important}
  .product-title,.product-meta,.price{overflow-wrap:anywhere!important;word-break:break-word!important}
}
@media (max-width:720px){
  #cartRoot,#checkoutRoot{overflow-x:hidden!important}
  #cartRoot .card.pad,#checkoutRoot .card.pad{width:100%!important;max-width:100%!important;overflow:hidden!important}
  #cartRoot .table{display:block!important;width:100%!important;max-width:100%!important;border:0!important;border-collapse:separate!important;table-layout:auto!important;overflow:visible!important}
  #cartRoot .table thead{display:none!important}
  #cartRoot .table tbody{display:grid!important;grid-template-columns:1fr!important;gap:12px!important;width:100%!important;max-width:100%!important}
  #cartRoot .table tr{display:grid!important;grid-template-columns:1fr!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:12px!important;margin:0!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:16px!important;background:rgba(255,255,255,.055)!important;overflow:hidden!important}
  #cartRoot .table td{display:grid!important;grid-template-columns:minmax(82px,.42fr) minmax(0,1fr)!important;align-items:start!important;gap:10px!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:10px 0!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.08)!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;text-align:left!important}
  #cartRoot .table td:last-child{border-bottom:0!important;padding-bottom:0!important}
  #cartRoot .table td::before{content:attr(data-label)!important;display:block!important;min-width:0!important;color:var(--muted)!important;font-weight:900!important;font-size:.78rem!important;line-height:1.25!important;overflow-wrap:anywhere!important}
  #cartRoot .table td[data-label=""]::before{content:""!important;display:none!important}
  #cartRoot .cart-product-info{display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;gap:10px!important;align-items:start!important;width:100%!important;max-width:100%!important;min-width:0!important}
  #cartRoot .cart-product-info img{width:58px!important;height:48px!important;max-width:58px!important;object-fit:cover!important;flex:none!important}
  #cartRoot .cart-product-info>div,#cartRoot .cart-product-info b,#cartRoot .cart-product-info span,#cartRoot .table td>*,#cartRoot .table td b,#cartRoot .table td span{min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important}
  #cartRoot .qty{width:100%!important;max-width:100%!important;display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important}
  #cartRoot .qty input{min-width:44px!important;width:54px!important;flex:0 0 54px!important}
  #cartRoot .cart-remove,#cartRoot .table td .btn{width:100%!important;max-width:100%!important;justify-content:center!important}
  #checkoutItems,#checkoutSummary{min-width:0!important;max-width:100%!important;overflow-x:hidden!important}
  .checkout-line{display:grid!important;grid-template-columns:1fr!important;gap:6px!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important}
  .checkout-line-main,.checkout-line-main b,.checkout-line-total,#checkoutSummary b,#checkoutSummary span{min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;text-align:left!important}
}
@media (max-width:420px){
  #cartRoot .table td{display:block!important}
  #cartRoot .table td::before{margin-bottom:6px!important}
  #cartRoot .cart-product-info{grid-template-columns:1fr!important}
  #cartRoot .cart-product-info img{width:100%!important;height:auto!important;max-width:100%!important;max-height:170px!important}
}
@supports (-webkit-touch-callout:none){
  @media (max-width:760px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.product-grid>.product{grid-column:auto!important;width:100%!important;min-width:0!important}}
  @media (max-width:720px){#cartRoot .table,#cartRoot .table tbody,#cartRoot .table tr,#cartRoot .table td{display:block!important;width:100%!important;max-width:100%!important}#cartRoot .table tr{margin-bottom:12px!important}#cartRoot .table td::before{margin-bottom:6px!important}}
}

/* Hardcore  landing pages */
.info-nav{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 22px}.info-nav a{padding:9px 12px;border-radius:999px;border:1px solid var(--stroke);background:rgba(255,255,255,.06);color:var(--muted)}.info-nav a:hover{color:var(--text);border-color:rgba(216,178,110,.35)}.info-article{max-width:980px;margin:0 auto}.info-article h1{font-size:clamp(2rem,4vw,3rem);line-height:1.06;margin:12px 0}.info-article h2{margin-top:28px;font-size:1.45rem}.info-article h3{margin-top:18px}.info-article p,.info-article li{color:var(--muted);font-size:1.02rem;line-height:1.75}.info-article .toc{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin:18px 0}.info-article .toc a,.info-box{border:1px solid var(--stroke);background:rgba(255,255,255,.05);border-radius:18px;padding:14px}.info-box{margin:18px 0}.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin:18px 0}.info-card2{border:1px solid var(--stroke);background:rgba(255,255,255,.055);border-radius:20px;padding:16px}.info-cta{border:1px solid rgba(216,178,110,.3);background:linear-gradient(135deg,rgba(216,178,110,.13),rgba(255,255,255,.04));border-radius:22px;padding:20px;margin:24px 0}.faq details{border:1px solid var(--stroke);border-radius:16px;padding:12px 14px;margin:10px 0;background:rgba(255,255,255,.04)}.faq summary{cursor:pointer;font-weight:800}.muted-note{font-size:.92rem;color:var(--muted-2)!important}.cluster-list a{display:inline-flex;margin:5px;padding:8px 10px;border:1px solid var(--stroke);border-radius:999px;color:var(--muted)}


/* Brand SEO pages */
.brand-hero{display:grid;grid-template-columns:1.1fr .9fr;gap:22px;align-items:center;margin-top:18px;padding:26px;border:1px solid var(--stroke);border-radius:var(--radius-lg);background:radial-gradient(900px 500px at 20% 30%, rgba(216,178,110,.18), transparent 65%),rgba(255,255,255,.045);box-shadow:var(--shadow)}
.brand-hero h1{font-size:clamp(2rem,4vw,3rem);margin:8px 0 12px}.brand-hero p{color:var(--muted);font-size:1.03rem}.brand-visual{border-radius:24px;overflow:hidden;border:1px solid var(--stroke);background:rgba(0,0,0,.22);min-height:260px}.brand-visual img{width:100%;height:100%;object-fit:cover;display:block}.brand-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:16px;margin-top:18px}.brand-card{grid-column:span 4;border:1px solid var(--stroke);border-radius:22px;background:rgba(255,255,255,.055);box-shadow:var(--shadow-soft);overflow:hidden;transition:.18s ease}.brand-card:hover{transform:translateY(-3px);border-color:rgba(216,178,110,.35)}.brand-card img{width:100%;height:170px;object-fit:cover;display:block}.brand-card .body{padding:15px}.brand-card h2,.brand-card h3{margin:0 0 8px}.brand-card p{margin:0;color:var(--muted)}.seo-copy{margin-top:20px;padding:20px;border:1px solid var(--stroke);border-radius:22px;background:rgba(255,255,255,.04)}.seo-copy h2{margin-top:0}.seo-copy p,.seo-copy li{color:var(--muted);line-height:1.75}.link-cloud{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.faq{display:grid;gap:12px;margin-top:18px}.faq details{border:1px solid var(--stroke);border-radius:16px;background:rgba(255,255,255,.045);padding:13px}.faq summary{cursor:pointer;font-weight:800}.faq p{color:var(--muted)}@media(max-width:900px){.brand-hero{grid-template-columns:1fr}.brand-card{grid-column:span 6}}@media(max-width:560px){.brand-card{grid-column:span 12}}


/* Fix categorie produse: carduri clare, click către pagina produsului */
.category-page .product-category-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));}
.product-link-card{position:relative;min-height:100%;text-decoration:none;}
.product-link-card img{height:190px;object-fit:cover;background:rgba(255,255,255,.04);}
.product-link-card strong{display:inline-flex;margin-top:10px;color:var(--accent);font-size:.95rem;}
.category-copy{padding:24px;line-height:1.75;}
.category-page .brand-visual img{object-fit:cover;max-height:360px;width:100%;}
@media (max-width:720px){.product-link-card img{height:170px}.category-page .brand-hero{grid-template-columns:1fr}}


/* FIX 2026-05-05: carduri produse compacte + linkuri clare */
.category-page .product-category-grid,
.brand-page .product-category-grid{
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:14px;
  align-items:stretch;
}
.category-page .product-link-card,
.brand-page .product-link-card{
  display:flex;
  flex-direction:column;
  min-height:0;
  border-radius:18px;
  overflow:hidden;
}
.category-page .product-link-card img,
.brand-page .product-link-card img{
  height:132px !important;
  aspect-ratio:4/3;
  object-fit:cover;
}
.category-page .product-link-card > div,
.brand-page .product-link-card > div{
  padding:12px 12px 13px;
  display:flex;
  flex-direction:column;
  gap:5px;
}
.category-page .product-link-card span,
.brand-page .product-link-card span{
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--accent);
  font-weight:800;
}
.category-page .product-link-card h3,
.brand-page .product-link-card h3{
  font-size:1rem;
  line-height:1.22;
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.category-page .product-link-card p,
.brand-page .product-link-card p{
  font-size:.86rem;
  line-height:1.4;
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.category-page .product-link-card strong,
.brand-page .product-link-card strong{
  margin-top:4px;
  font-size:.88rem;
}
@media(max-width:640px){
  .category-page .product-category-grid,
  .brand-page .product-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .category-page .product-link-card img,
  .brand-page .product-link-card img{height:105px !important}
  .category-page .product-link-card > div,
  .brand-page .product-link-card > div{padding:10px}
}


/* Fix final: carduri compacte si linkuri clare catre pagini de produs */
.compact-product-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important;gap:16px!important;align-items:stretch!important}
.compact-product-card{display:flex!important;flex-direction:column!important;min-height:0!important;padding:0!important;overflow:hidden!important;border-radius:18px!important;text-decoration:none!important}
.compact-product-card img{width:100%!important;height:145px!important;object-fit:cover!important;display:block!important;border-radius:0!important}
.compact-product-card .compact-card-body{padding:12px 14px!important;display:flex!important;flex-direction:column!important;gap:5px!important;min-height:142px!important}
.compact-product-card span{font-size:.72rem!important;text-transform:uppercase!important;letter-spacing:.08em!important;color:var(--accent)!important;font-weight:800!important}
.compact-product-card h3{font-size:1rem!important;line-height:1.22!important;margin:0!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.compact-product-card p{font-size:.86rem!important;line-height:1.35!important;margin:0!important;color:var(--muted)!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.compact-product-card strong{margin-top:auto!important;font-size:.88rem!important;color:var(--text)!important}
.compact-hero .brand-visual img{max-height:260px!important;object-fit:cover!important}
.brand-index-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important;gap:16px!important}
.brand-tile{display:flex!important;flex-direction:column!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:20px!important;overflow:hidden!important;background:var(--card)!important;text-decoration:none!important;color:inherit!important}
.brand-tile img{height:150px!important;width:100%!important;object-fit:cover!important}.brand-tile div{padding:14px!important}.brand-tile h3{margin:0 0 6px!important}.brand-tile p{margin:0 0 10px!important;color:var(--muted)!important}


/* FIX FINAL v5: carduri mult mai compacte pe categoriile găleată/pungă și pe paginile de brand */
.category-page .compact-product-grid,
.brand-page .compact-product-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(165px,1fr))!important;
  gap:12px!important;
  align-items:start!important;
}
.category-page .compact-product-card,
.brand-page .compact-product-card{
  grid-column:auto!important;
  width:100%!important;
  min-height:0!important;
  height:auto!important;
  border-radius:16px!important;
  overflow:hidden!important;
  background:rgba(255,255,255,.055)!important;
}
.category-page .compact-product-card img,
.brand-page .compact-product-card img{
  height:96px!important;
  min-height:0!important;
  width:100%!important;
  object-fit:cover!important;
}
.category-page .compact-product-card .compact-card-body,
.brand-page .compact-product-card .compact-card-body{
  min-height:0!important;
  padding:9px 10px 10px!important;
  gap:4px!important;
}
.category-page .compact-product-card span,
.brand-page .compact-product-card span{
  font-size:.66rem!important;
  line-height:1.1!important;
}
.category-page .compact-product-card h3,
.brand-page .compact-product-card h3{
  font-size:.88rem!important;
  line-height:1.15!important;
  -webkit-line-clamp:2!important;
  min-height:2.05em!important;
}
.category-page .compact-product-card p,
.brand-page .compact-product-card p{
  display:none!important;
}
.category-page .compact-product-card strong,
.brand-page .compact-product-card strong{
  margin-top:3px!important;
  font-size:.78rem!important;
  line-height:1.15!important;
  color:var(--accent)!important;
}
@media (min-width:1100px){
  .category-page .compact-product-grid,
  .brand-page .compact-product-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;}
}
@media (max-width:520px){
  .category-page .compact-product-grid,
  .brand-page .compact-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  .category-page .compact-product-card img,
  .brand-page .compact-product-card img{height:88px!important;}
}


/* NAV CONSISTENCY FIX */
.nav-links{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.nav-links a{white-space:nowrap}
.nav-links a.active{color:var(--accent);font-weight:800}
@media(max-width:900px){.nav-links{gap:10px;font-size:.92rem}.nav{align-items:flex-start}.nav-right{flex-wrap:wrap;justify-content:flex-end}}


/* ===== MOBILE NAV FINAL FIX v7 =====
   Pe telefon, bara de sus rămâne curată: logo + coș + hamburger.
   Linkurile complete sunt în meniul deschis din hamburger. */
@media (max-width: 900px){
  .topbar{position:sticky;top:0;z-index:100;}
  .topbar .nav{min-height:58px;padding:8px 12px;display:flex;align-items:center!important;justify-content:space-between;gap:8px;flex-wrap:nowrap!important;}
  .topbar .brand{min-width:0;max-width:calc(100vw - 112px);gap:8px!important;}
  .topbar .brand-logo{width:34px!important;height:34px!important;min-width:34px!important;}
  .topbar .brand-name{min-width:0;overflow:hidden;line-height:1.05!important;}
  .topbar .brand-name b{display:block;font-size:.9rem!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .topbar .brand-name span:not([style]){display:none!important;}
  .topbar .scene{display:none!important;}
  .topbar .nav-right{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:8px!important;flex-wrap:nowrap!important;min-width:auto;}
  .topbar .nav-links{display:none!important;}
  .topbar .icon-btn{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;border-radius:14px!important;padding:0!important;}
  #openMenu{display:flex!important;}
  .mobile-menu{z-index:9999!important;}
  .mobile-panel{top:8px!important;left:8px!important;right:8px!important;max-height:calc(100vh - 16px);overflow:auto;border-radius:20px!important;padding:12px!important;}
  .mobile-panel .row{position:sticky;top:0;background:rgba(11,14,20,.96);z-index:2;padding-bottom:8px;}
  .mobile-panel a{font-size:1rem!important;padding:13px 12px!important;margin:3px 0;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.045);}
  .mobile-panel a:active{transform:scale(.99);}
  .container{padding:16px!important;}
}
@media (min-width: 901px){
  #openMenu{display:none!important;}
}
@media (max-width: 380px){
  .topbar .brand-name b{font-size:.82rem!important;}
  .topbar .brand-logo{width:30px!important;height:30px!important;min-width:30px!important;}
  .topbar .icon-btn{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;}
}
