/* ════════════════════════════════════════════════════════════
   STRAIN.CSS — stile pagina strain.php
   Lavora sulle classi già presenti nell'HTML originale.
   Usa selettori "body .classe" per battere Bootstrap 5
   senza !important dove possibile.
════════════════════════════════════════════════════════════ */

:root {
  --sg-dark:    #0d1a10;
  --sg-green:   #2ecc71;
  --sg-gold:    #f3a10a;
  --sg-card:    #1a2b1f;
  --sg-card2:   #1e2d22;
  --sg-border:  rgba(46, 204, 113, 0.2);
  --sg-border2: rgba(46, 204, 113, 0.38);
  --sg-text:    #d4e8d8;
  --sg-muted:   #7aab87;
  --sg-radius:  12px;
  --sg-shadow:  0 4px 20px rgba(0, 0, 0, 0.5);
}

/* ════════════════════════════════════════════════════════════
   BARRA TITOLO  .straintitle
════════════════════════════════════════════════════════════ */
body .straintitle {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 0 20px;
  gap: 16px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #0f2016 0%, #1a3324 50%, #0f2016 100%);
  border-bottom: 1px solid var(--sg-border2);
  box-shadow: 0 2px 14px rgba(0,0,0,0.45);
}

/* Tasto indietro */
body .backbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
}
body .backbtn a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--sg-border2);
  background: rgba(46, 204, 113, 0.08);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
body .backbtn a:hover {
  background: rgba(46, 204, 113, 0.22);
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(46, 204, 113, 0.35);
}
body .backbtn i {
  font-size: 1.5rem;
  color: var(--sg-green);
}

/* Contenitore nome + logo + banca */
body .S_TITLE {
  display: flex;
  flex: 1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}

/* Nome strain */
body .sstrainname {
  display: flex;
  align-items: center;
  min-width: 0;
}
body .sstrainname span {
  font-family: 'DM Sans', 'Roboto', sans-serif;
  font-size: clamp(1.2rem, 2.8vw, 1.9rem);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* Logo banca (centro) */
body .banklogo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
body .banklogo img {
  max-height: 50px;
  max-width: 130px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.45));
  transition: transform 0.2s, filter 0.2s;
}
body .banklogo img:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 2px 10px rgba(46,204,113,0.5));
}

/* Nome banca (destra) */
body .bankname {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}
body .bankname span {
  font-family: 'DM Sans', 'Roboto', sans-serif;
  font-size: clamp(0.8rem, 1.8vw, 1.05rem);
  font-weight: 600;
  color: var(--sg-green);
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid var(--sg-border2);
  border-radius: 20px;
  padding: 5px 16px;
  white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════
   FOTO + INFO  .second
════════════════════════════════════════════════════════════ */
body .second {
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-start;
  width: 100%;
  padding: 24px 24px 0 24px;
  box-sizing: border-box;
  background: var(--sg-dark);
  gap: 24px;
}

/* Foto */
body .strain_image {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 44%;
  flex-shrink: 0;
}
body .strain_image img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: var(--sg-radius);
  border: 1px solid var(--sg-border2);
  box-shadow: var(--sg-shadow);
  object-fit: cover;
  cursor: zoom-in;
  transition: box-shadow 0.25s, transform 0.25s;
}
body .strain_image img:hover {
  box-shadow: 0 8px 36px rgba(46,204,113,0.3);
  transform: scale(1.012);
}

/* Scheda informazioni */
body .straininfoo {
  flex: 1;
  min-width: 0;
  background: var(--sg-card);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  padding: 22px 26px;
  box-sizing: border-box;
  box-shadow: var(--sg-shadow);
  color: var(--sg-text);
}

/* Titolo "Strain Information" — override inline style originale */
body .straininfoo h1 {
  font-family: 'DM Sans', 'Roboto', sans-serif;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--sg-green) !important;
  text-align: left !important;
  float: none !important;
  width: auto !important;
  margin: 0 0 16px 0 !important;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sg-border);
  background: transparent;
}

/* Righe dati */
body .straininfoo p {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.93rem;
  color: var(--sg-text);
  margin: 0 0 8px 0;
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
body .straininfoo p:hover {
  background: rgba(46,204,113,0.07);
  border-color: var(--sg-border);
}
body .straininfoo p span {
  font-weight: 600;
  color: var(--sg-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

/* Icone sapori */
body .straininfoo > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--sg-border);
}
body .straininfoo > div img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  float: none !important;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4));
  transition: transform 0.2s;
}
body .straininfoo > div img:hover {
  transform: scale(1.18);
}

/* ════════════════════════════════════════════════════════════
   DESCRIZIONE  .description
════════════════════════════════════════════════════════════ */
body .description {
  position: relative;
  margin: 20px 24px;
  padding: 28px 32px;
  background: var(--sg-card);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  box-shadow: var(--sg-shadow);
  display: block;
  overflow: hidden;
}

/* Barra verde a sinistra */
body .description::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--sg-green) 0%, var(--sg-gold) 100%);
  border-radius: var(--sg-radius) 0 0 var(--sg-radius);
}

/* Etichetta "Description" — override float/width inline originali */
body .description > span[data-trans="description"] {
  display: block;
  float: none !important;
  width: auto !important;
  text-align: left !important;
  font-family: 'DM Sans', 'Roboto', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--sg-green);
  margin-bottom: 14px;
}

/* Testo */
body .description p {
  font-size: 0.97rem;
  line-height: 1.78;
  color: var(--sg-text);
  margin: 0;
}
body .description p strong,
body .description p b {
  color: #fff;
}

/* Bottone NEXT */
body a .next-btn,
body .next-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', 'Roboto', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0a1a0d;
  background: linear-gradient(135deg, var(--sg-green) 0%, #27ae60 100%);
  border-radius: 20px;
  padding: 8px 20px;
  box-shadow: 0 2px 10px rgba(46,204,113,0.4);
  transition: box-shadow 0.2s, transform 0.15s;
}
body a .next-btn:hover,
body .next-btn:hover {
  box-shadow: 0 4px 18px rgba(46,204,113,0.55);
  transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════════
   WHERE TO BUY  .third
════════════════════════════════════════════════════════════ */
body .third {
  width: 100%;
  background: var(--sg-card2);
  border-top: 1px solid var(--sg-border);
  padding: 24px;
  box-sizing: border-box;
  max-height: none !important;
  border-radius: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Titolo sezione — override inline style originale */
body .third > span[data-trans="comparison"] {
  display: block;
  float: none !important;
  width: 100% !important;
  font-family: 'DM Sans', 'Roboto', sans-serif;
  font-size: 1.3rem !important;
  font-weight: 600;
  color: var(--sg-text);
  text-align: left !important;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sg-border) !important;
  background: transparent;
}
body .third > span[data-trans="comparison"] span {
  color: #fff;
  font-weight: 700;
}

/* ─── Tabella prezzi ─── */
body .pctable {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  table-layout: auto;
  margin: 0;
  border: none !important;
}

/* Thead */
body .pctable thead tr {
  background: linear-gradient(90deg, #41157F 0%, #5a1ea8 100%);
}
body .pctable thead th {
  padding: 12px 10px;
  font-family: 'DM Sans', 'Roboto', sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  text-align: center;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
}
body .pctable thead th.tblfirst_ {
  text-align: left;
  padding-left: 14px;
  min-width: 170px;
  background: rgba(0,0,0,0.25);
}
body .pctable thead th:not(.tblfirst_) {
  min-width: 88px;
}

/* Tbody */
body .pctable tbody tr {
  background: var(--sg-card);
  border-bottom: 1px solid var(--sg-border);
  transition: background 0.14s;
}
body .pctable tbody tr:nth-child(even) {
  background: var(--sg-card2);
}
body .pctable tbody tr:hover {
  background: rgba(46,204,113,0.09);
}
body .pctable tbody td {
  padding: 10px 8px;
  text-align: center;
  vertical-align: middle;
  border: 1px solid var(--sg-border);
  color: var(--sg-text);
  white-space: nowrap;
  background: transparent;
}
body .pctable tbody td:first-child {
  text-align: left;
  padding-left: 12px;
  min-width: 170px;
  background: rgba(0,0,0,0.18);
}

/* Seller */
body .seller_table {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
body .seller_table_name {
  font-family: 'DM Sans', 'Roboto', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--sg-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
body .seller_table_logo img {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 5px;
  background: rgba(255,255,255,0.07);
  padding: 2px;
}

/* Prezzi */
body .price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', 'Roboto', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: rgba(46,204,113,0.13);
  border: 1px solid var(--sg-border2);
  border-radius: 6px;
  padding: 5px 11px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, box-shadow 0.2s, transform 0.14s;
}
body .price:hover {
  background: rgba(46,204,113,0.3);
  box-shadow: 0 2px 10px rgba(46,204,113,0.35);
  transform: translateY(-1px);
  color: #fff;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  body .second { padding: 18px 14px 0 14px; gap: 16px; }
  body .strain_image { width: 42%; }
  body .description { margin: 16px 14px; padding: 22px 20px; }
  body .third { padding: 18px 14px; }
}

@media (max-width: 620px) {
  body .straintitle { min-height: 60px; padding: 0 10px; gap: 10px; }
  body .backbtn { width: 36px; height: 36px; }
  body .backbtn a { width: 34px; height: 34px; }
  body .backbtn i { font-size: 1.2rem; }
  body .sstrainname span { font-size: 1rem; }
  body .banklogo img { max-height: 34px; max-width: 80px; }
  body .bankname span { font-size: 0.75rem; padding: 3px 10px; }

  body .second { flex-direction: column; padding: 14px 10px 0 10px; gap: 14px; }
  body .strain_image { width: 100%; justify-content: center; }
  body .strain_image img { max-width: 300px; width: 90%; }
  body .straininfoo { width: 100%; padding: 16px 14px; }

  body .description { margin: 12px 10px; padding: 18px 14px; }
  body .description p { font-size: 0.92rem; }

  body .third { padding: 14px 8px; }
  body .pctable thead th,
  body .pctable tbody td { font-size: 0.76rem; padding: 7px 5px; }
  body .pctable thead th.tblfirst_,
  body .pctable tbody td:first-child { min-width: 120px; }
  body .pctable thead th:not(.tblfirst_) { min-width: 70px; }
  body .seller_table_name { max-width: 80px; font-size: 0.74rem; }
  body .seller_table_logo img { width: 24px; height: 24px; }
  body .price { font-size: 0.82rem; padding: 4px 8px; }
}