/* Strunga Bag in Box Orders v1.6.0
   ============================================================
   v1.6.0 — poze produse + admin stoc/vizibilitate.
   v1.5.2 — lizibilitate + inline produs:
   - Titlul produsului si pretul pe acelasi rand (inline)
   - Fonturi mai mari + spacing mai aerisit pentru citire usoara
   - Contrast imbunatatit (text #111 mai intens, fara gri spalat)
   - Cardurile produselor mai inalte, mai usor de scanat
   ============================================================ */

.strunga-bib-container,
.strunga-bib-container * {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  box-sizing: border-box;
}

.strunga-bib-container {
  max-width: 920px;
  margin: 0 auto;
  color: #111;
  line-height: 1.5;
  padding: 10px;
  font-size: 15px;
}

/* -------------------- HEADER -------------------- */
.strunga-bib-header { text-align: center; margin-bottom: 28px; padding: 10px 0; }
.strunga-bib-logo   { max-width: 120px; height: auto; margin: 0 auto 12px; display: block; }
.strunga-bib-header h2 {
  font-size: 30px;
  margin: 0 0 8px;
  color: #111;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1.2;
}
.strunga-bib-title-line {
  width: 64px; height: 3px;
  background: #e63946;
  margin: 8px auto 16px;
  border-radius: 2px;
}
.strunga-bib-intro {
  color: #555;
  font-size: 15px;
  margin: 0;
  font-weight: 400;
  line-height: 1.6;
}

/* -------------------- FORM CONTAINER -------------------- */
.strunga-bib-form {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.02);
  padding: 30px 34px;
}

.strunga-bib-section { padding: 16px 0 22px; }
.strunga-bib-section + .strunga-bib-section { border-top: 1px solid #f0f0f2; }
.strunga-bib-section h3 {
  font-size: 14px;
  margin: 0 0 18px;
  color: #111;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 2px solid #e63946;
  display: inline-block;
}

/* -------------------- DATE CLIENT (compact, citeț) -------------------- */
.strunga-bib-client .strunga-bib-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin-bottom: 10px;
}
.strunga-bib-client label,
.strunga-bib-client label.strunga-bib-full {
  display: flex;
  flex-direction: column;
  margin: 0;
  line-height: 1.2;
}
.strunga-bib-client label > span {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  margin: 0 0 6px 4px;
  letter-spacing: .3px;
}
.strunga-bib-client label > span em {
  color: #e63946;
  font-style: normal;
  font-weight: 700;
  margin-left: 3px;
}
.strunga-bib-client input[type="text"],
.strunga-bib-client input[type="tel"],
.strunga-bib-client input[type="email"],
.strunga-bib-client textarea {
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.4;
  height: auto;
}
.strunga-bib-client textarea { min-height: 56px; line-height: 1.5; }
.strunga-bib-full { margin-top: 12px; display: flex; flex-direction: column; }

@media (max-width: 640px) {
  .strunga-bib-form { padding: 20px; }
  .strunga-bib-client .strunga-bib-grid-2 { grid-template-columns: 1fr; gap: 10px; }
  .strunga-bib-header h2 { font-size: 22px; letter-spacing: 3px; }
}

/* -------------------- INPUT-URI (stil Strunga) -------------------- */
.strunga-bib-form input[type="text"],
.strunga-bib-form input[type="tel"],
.strunga-bib-form input[type="email"],
.strunga-bib-form input[type="number"],
.strunga-bib-form select,
.strunga-bib-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f5f5f7;
  color: #111;
  transition: background .15s, border-color .15s, box-shadow .15s;
  font-family: inherit;
  outline: none;
  font-weight: 500;
}
.strunga-bib-form input::placeholder,
.strunga-bib-form textarea::placeholder { color: #a0a0a6; font-weight: 400; }
.strunga-bib-form input:focus,
.strunga-bib-form select:focus,
.strunga-bib-form textarea:focus {
  background: #fff;
  border-color: #e63946;
  box-shadow: 0 0 0 3px rgba(230,57,70,0.10);
}
/* v1.5.6 — dropdown judet/localitate: aspect Strunga + sageata custom */
.strunga-bib-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23111' d='M1.41 0L6 4.59 10.59 0 12 1.41 6 7.41 0 1.41z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 11px;
  padding-right: 40px;
  cursor: pointer;
}
.strunga-bib-form select:disabled {
  background-color: #eceaea;
  color: #888;
  cursor: not-allowed;
  opacity: 0.75;
}

/* -------------------- GRUPURI PRODUSE -------------------- */
.strunga-bib-group { margin-bottom: 24px; }
.strunga-bib-group:last-child { margin-bottom: 0; }
.strunga-bib-group-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.strunga-bib-group-title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  letter-spacing: .5px;
}

/* -------------------- BADGES SEC / DEMISEC -------------------- */
.strunga-bib-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 30px;
  line-height: 1;
}
.strunga-bib-badge-sec {
  background: #111;
  color: #fff;
}
.strunga-bib-badge-demisec {
  background: #e63946;
  color: #fff;
}

/* -------------------- PRODUCT CARDS -------------------- */
.strunga-bib-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.strunga-bib-product {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px 16px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  overflow: hidden;
}
.strunga-bib-product:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
.strunga-bib-product--sec { border-top: 3px solid #111; }
.strunga-bib-product--demisec { border-top: 3px solid #e63946; }

/* v1.6.0 — poza produs 1:1 in stanga (layout orizontal, compact) */
.strunga-bib-product--hasimg {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 10px;
  align-items: center;
}
.strunga-bib-product-image {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 72px;
  height: 72px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5f7;
  align-self: center;
  flex-shrink: 0;
}
.strunga-bib-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.strunga-bib-product--hasimg:hover .strunga-bib-product-image img {
  transform: scale(1.05);
}
.strunga-bib-product--hasimg .strunga-bib-product-info {
  grid-column: 2;
  grid-row: 1;
  min-height: auto;
}
.strunga-bib-product--hasimg .strunga-bib-qty {
  grid-column: 2;
  grid-row: 2;
  justify-content: flex-start;
}

/* nume + pret INLINE, pe acelasi rand, fara nimic care sa se suprapuna */
.strunga-bib-product-info {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-height: 32px;
}
.strunga-bib-product-name {
  font-size: 16px;
  color: #111;
  line-height: 1.35;
  font-weight: 600;
  flex: 1 1 auto;
  min-width: 0;
}
.strunga-bib-price {
  color: #e63946;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .3px;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* cantitate */
.strunga-bib-qty {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.strunga-bib-qty button {
  width: 36px; height: 36px; padding: 0;
  border: 1px solid #e5e5e5;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
  color: #111;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s, color .15s;
  line-height: 1;
}
.strunga-bib-qty button:hover {
  background: #e63946;
  color: #fff;
  border-color: #e63946;
}
.strunga-bib-qty input[type="number"] {
  width: 58px;
  text-align: center;
  padding: 8px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  background: #f5f5f7 !important;
  border-radius: 8px !important;
  -moz-appearance: textfield;
}
.strunga-bib-qty input::-webkit-inner-spin-button,
.strunga-bib-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* -------------------- SUMAR -------------------- */
.strunga-bib-summary {
  background: #fafafa;
  border-radius: 12px;
  padding: 22px 26px;
  margin-top: 12px;
  border: 1px solid #ececec;
}
.strunga-bib-summary h3 { margin-bottom: 14px; }
.strunga-bib-summary-table {
  width: 100%;
  font-size: 15px;
  border-collapse: collapse;
  line-height: 1.6;
}
.strunga-bib-summary-table td { padding: 6px 0; color: #333; }
.strunga-bib-summary-table td:last-child { text-align: right; color: #111; font-weight: 600; }
.strunga-bib-summary-table td small { color: #888; font-size: 12px; display: block; line-height: 1.3; font-weight: 400; }
.strunga-bib-summary-table tr.strunga-bib-total td {
  border-top: 1px solid #dedede;
  padding-top: 14px;
  font-size: 18px;
  color: #111;
}
.strunga-bib-summary-table tr.strunga-bib-total td:last-child {
  color: #e63946;
  font-size: 22px;
  font-weight: 700;
}

/* -------------------- SUBMIT -------------------- */
.strunga-bib-submit { text-align: center; padding-top: 22px; }
.strunga-bib-btn {
  background: #e63946;
  color: #fff;
  border: 0;
  padding: 16px 46px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 30px;
  cursor: pointer;
  transition: background .2s, transform .05s, box-shadow .2s;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(230,57,70,0.22);
}
.strunga-bib-btn:hover { background: #c82333; box-shadow: 0 6px 16px rgba(230,57,70,0.32); }
.strunga-bib-btn:active { transform: translateY(1px); }
.strunga-bib-btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.strunga-bib-note { color: #777; font-size: 13px; margin: 14px 0 0; line-height: 1.55; }

/* -------------------- MESAJE -------------------- */
.strunga-bib-message {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
}
.strunga-bib-message.success { background: #eaf6ee; color: #2a6b3a; border: 1px solid #b7e0c4; }
.strunga-bib-message.error   { background: #fdecee; color: #c82333; border: 1px solid #f5b7bb; }

/* -------------------- v1.5.7 PLATA: card vs transfer -------------------- */
.strunga-bib-payment-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .strunga-bib-payment-options { grid-template-columns: 1fr; }
}
.strunga-bib-payopt {
  display: block;
  position: relative;
  padding: 18px 20px 18px 52px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.strunga-bib-payopt:hover {
  border-color: #d0d0d4;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.strunga-bib-payopt input[type="radio"] {
  position: absolute;
  left: 18px;
  top: 22px;
  width: 20px;
  height: 20px;
  accent-color: #e63946;
  cursor: pointer;
}
.strunga-bib-payopt-label {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  letter-spacing: .3px;
  display: block;
  margin-bottom: 4px;
}
.strunga-bib-payopt-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.45;
  display: block;
}
.strunga-bib-payopt.is-selected {
  border-color: #e63946;
  box-shadow: 0 0 0 3px rgba(230,57,70,0.10);
  background: #fff;
}
.strunga-bib-payopt--card.is-selected    { border-top: 3px solid #e63946; }
.strunga-bib-payopt--transfer.is-selected { border-top: 3px solid #111; }

/* note contextuale sub butonul submit */
.strunga-bib-payment-note {
  color: #777;
  font-size: 13px;
  margin: 12px 0 0;
  line-height: 1.55;
}
.strunga-bib-payment-note strong { color: #111; font-weight: 600; }

/* -------------------- v1.5.7 TRANSFER SUCCESS (IBAN card + WA) -------------------- */
.strunga-bib-transfer-success h3 {
  font-size: 18px;
  font-weight: 700;
  color: #2a6b3a;
  margin: 0 0 8px;
  letter-spacing: .3px;
}
.strunga-bib-transfer-success p { margin: 4px 0 10px; color: #333; font-weight: 500; }
.strunga-bib-iban-card {
  display: grid;
  gap: 8px 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background: #fff;
  border: 1px dashed #b7e0c4;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 10px 0 14px;
}
.strunga-bib-iban-card > div { display: flex; flex-direction: column; }
.strunga-bib-iban-card span {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #777;
  font-weight: 600;
  margin-bottom: 4px;
}
.strunga-bib-iban-card strong {
  font-size: 15px;
  color: #111;
  font-weight: 700;
  font-family: 'SF Mono', Menlo, Consolas, 'Courier New', monospace;
  letter-spacing: .3px;
  word-break: break-all;
}
.strunga-bib-transfer-note {
  color: #555;
  font-size: 14px !important;
  margin: 8px 0 14px !important;
  font-weight: 400 !important;
  line-height: 1.6;
}
.strunga-bib-btn-wa {
  display: inline-block;
  background: #25d366 !important;
  color: #fff !important;
  text-decoration: none !important;
  padding: 14px 32px !important;
  font-size: 13px !important;
  letter-spacing: 2px !important;
  box-shadow: 0 4px 12px rgba(37,211,102,0.30) !important;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 30px;
  margin-top: 4px;
}
.strunga-bib-btn-wa:hover {
  background: #1ebc5a !important;
  box-shadow: 0 6px 16px rgba(37,211,102,0.40) !important;
  text-decoration: none !important;
}
