/* ════════════════════════════════════════════════════════════
   STRAIN PAGE  —  strain.css
════════════════════════════════════════════════════════════ */

/* ── Barra superiore ── */
.straintitle {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  min-height: 80px;
  background: rgba(1, 20, 28, 0.97);
  border-bottom: 2px solid rgba(46, 204, 113, 0.25);
  box-shadow: 0 4px 24px rgba(0,0,0,0.45);
  padding: 0 20px;
  box-sizing: border-box;
  gap: 12px;
}

.backbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}
.backbtn:hover {
  background: rgba(46, 204, 113, 0.15);
  transform: scale(1.08);
}
.backbtn i {
  font-size: 2.2rem !important;
  color: #2ecc71 !important;
  font-weight: normal !important;
}
.backbtn svg {
    width: 2.2rem !important;
    height: 2.2rem !important;
}
.backbtn svg .fa-primary {
    fill: #2ecc71 !important;
    opacity: 1 !important;
}
.backbtn svg .fa-secondary {
    fill: #2ecc71 !important;
    opacity: 0.4 !important;
}
.S_TITLE {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex: 1;
  gap: 16px;
  min-width: 0;
}

.sstrainname {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 1.9rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: auto;
  flex-shrink: 1;
}
.sstrainname::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 32px;
  background: rgba(46, 204, 113, 0.35);
  margin-left: 18px;
  flex-shrink: 0;
}

.banklogo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: auto;
}
.banklogo img {
  max-height: 44px;
  max-width: 90px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.5));
}

.bankname {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(46, 204, 113, 0.9);
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: auto;
}

/* ════════════════════════════════════════════════════════════
   SEZIONE PRINCIPALE  .second
════════════════════════════════════════════════════════════ */
.second {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 28px;
  box-sizing: border-box;
  background: rgb(28, 42, 36);
}

/* ── Immagine ── */
.strain_image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 20, 28, 0.65);
  border-radius: 16px;
  border: 1px solid rgba(46, 204, 113, 0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
  padding: 20px;
  box-sizing: border-box;
  min-height: 320px;
  width: 100%;
}
.strain_image img {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
  display: block;
  margin: auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

/* ── Box info ── */
.straininfoo {
  width: 100%;
  background: rgba(1, 20, 28, 0.75);
  border: 1px solid rgba(46, 204, 113, 0.2);
  border-radius: 16px;
  padding: 24px 28px;
  box-sizing: border-box;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.straininfoo h1 {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #2ecc71 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  border-bottom: 1px solid rgba(46, 204, 113, 0.25) !important;
  padding-bottom: 12px !important;
  margin-bottom: 14px !important;
  text-align: left !important;
  float: none !important;
  width: auto !important;
}

.straininfoo p {
  color: rgba(210, 235, 220, 0.88);
  font-size: 0.93rem;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.4;
}
.straininfoo p:last-of-type {
  border-bottom: none;
}
.straininfoo p span[data-trans] {
  color: rgba(46, 204, 113, 0.85);
  font-weight: 600;
  flex-shrink: 0;
}

/* ── Flavors ── */
.straininfoo > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(46, 204, 113, 0.18);
}
.straininfoo > div img {
  width: 48px !important;
  height: 48px !important;
  max-height: 48px !important;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.28);
  padding: 7px;
  box-sizing: border-box;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  float: none !important;
}
.straininfoo > div img:hover {
  transform: scale(1.15);
  background: rgba(46, 204, 113, 0.22);
  box-shadow: 0 0 12px rgba(46, 204, 113, 0.35);
}

/* ── Descrizione (larghezza piena) ── */
.description {
  grid-column: 1 / -1;
  background: rgba(1, 20, 28, 0.75);
  border: 1px solid rgba(46, 204, 113, 0.18);
  border-radius: 16px;
  padding: 32px 36px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  color: white;
}
.description > span[data-trans] {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #2ecc71 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  border-bottom: 1px solid rgba(46,204,113,0.25) !important;
  padding-bottom: 12px !important;
  text-align: left !important;
  float: none !important;
  width: auto !important;
  display: block !important;
}
.description p {
  color: rgba(210, 235, 220, 0.85);
  font-size: 0.96rem;
  line-height: 1.75;
  margin: 0;
}

/* ── Next button ── */
.next-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border-radius: 50px;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: #0a1a0e;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(46,204,113,0.35);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
  margin: 0 28px 24px 0;
}
.next-btn:hover {
  box-shadow: 0 6px 24px rgba(46,204,113,0.55);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .second {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }
  .strain_image {
    min-height: 220px;
    padding: 14px;
  }
  .strain_image img { max-height: 280px; }
  .straininfoo { padding: 18px 20px; }
  .description { padding: 20px 18px; grid-column: 1; }
}

@media (max-width: 600px) {
  .straintitle { min-height: 64px; padding: 0 12px; gap: 8px; }
  .backbtn { width: 40px; height: 40px; }
  .backbtn i { font-size: 1.6rem !important; }
  .S_TITLE { gap: 10px; flex-wrap: nowrap; }
  .sstrainname { font-size: 1.25rem; }
  .sstrainname::after { height: 22px; margin-left: 10px; }
  .banklogo img { max-height: 30px; max-width: 55px; }
  .bankname { font-size: 0.95rem; }
}
/* ════════════════════════════════════════════════════════════
   TABELLA PREZZI  .third
════════════════════════════════════════════════════════════ */
.third {
  background: rgb(28, 42, 36);
  padding: 20px;
  box-sizing: border-box;
}

.third > span {
  color: #fff !important;
  border-bottom-color: rgba(46, 204, 113, 0.3) !important;
}

/* ── Wrapper DataTables ── */
.dt-container {
  background: transparent;
}

/* ── Header ── */
#pct thead tr {
  background: linear-gradient(135deg, #1a0a3a, #2d1060) !important;
}
#pct thead th {
  border-bottom: 2px solid rgba(46, 204, 113, 0.3) !important;
  border-right: 1px solid rgba(255,255,255,0.06) !important;
  padding: 12px 8px !important;
  font-size: 0.78rem;
  letter-spacing: 0.3px;
  color: rgba(220,200,255,0.9) !important;
}

#pct thead th:first-child {
  color: #fff !important;
  font-size: 1rem !important;
}

/* ── Corpo tabella ── */
#pct tbody tr {
  background: rgba(1, 20, 28, 0.6) !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
  transition: background 0.15s ease;
}
#pct tbody tr:nth-child(even) {
  background: rgba(10, 30, 40, 0.8) !important;
}
#pct tbody tr:hover {
  background: rgba(46, 204, 113, 0.07) !important;
}
#pct tbody td {
  border-right: 1px solid rgba(255,255,255,0.04) !important;
  border-bottom: none !important;
  padding: 8px 6px !important;
  vertical-align: middle;
}

/* ── Colonna seller (fissa) ── */
.dtfc-fixed-left,
.DTFC_Cloned td,
.DTFC_Cloned th {
  background: rgba(5, 18, 28, 0.98) !important;
}

/* ── Seller info ── */
.seller_table {
  flex-direction: row ;
  align-items: center ;
  gap: 10px;
  justify-content: space-between;
  padding: 4px 0;
}
.seller_table_name {
  font-size: 0.82rem ;
  color: rgba(220, 240, 228, 0.95);
  font-weight: 600;
  text-align: center;
}
.seller_table_logo img {
  width: 36px ;
  height: 36px ;
  object-fit: cover;
  border-radius: 8px ;
  border: 1px solid rgba(46, 204, 113, 0.2);
}

/* ── Prezzi ── */
.price {
  display: block;
  text-align: center;
  border-radius: 6px !important;
  background: rgba(46, 204, 113, 0.18);
  border: 1px solid rgba(46, 204, 113, 0.35);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 5px 4px;
  transition: background 0.15s ease, transform 0.1s ease;
}
.price:hover {
  background: rgba(46, 204, 113, 0.4) !important;
  color: #fff !important;
  transform: scale(1.04);
}
.price div {
  white-space: nowrap;
}

/* ── Trattino disponibilità assente ── */
#pct tbody td > div[style*="font-size: 2rem"] {
  font-size: 1rem !important;
  color: rgba(255,255,255,0.2) !important;
  font-weight: 400 !important;
}

/* ── Scroll DataTables ── */
.dt-scroll-head,
.dt-scroll-body {
  background: transparent !important;
}
