/* BSH (Bosch + Siemens) shared product description styles for PrestaShop
   Loaded via PS theme header.tpl — one file for both brands.
   Brand-specific colors via wrapper class: .supplier_bosch / .supplier_siemens
*/

/* ── Base ── */
.bsh-description { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #1a1a1a; line-height: 1.55; font-size: 14px; }

/* ── Section Titles ── */
.bsh-section-title { font-size: 15px; font-weight: 600; color: #1a1a1a; padding: 0 0 8px; margin-bottom: 14px; border-bottom: 2px solid #262626; text-transform: uppercase; letter-spacing: .5px; }

/* ── Quick Specs Bar ── */
.bsh-quickspecs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; border: 1px solid #e0e0e0; border-radius: 2px; overflow: hidden; margin-bottom: 24px; }
.bsh-qs-item { padding: 12px 14px; text-align: center; border-right: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0; }
.bsh-qs-item:last-child { border-right: none; }
.bsh-qs-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #777; margin-bottom: 4px; }
.bsh-qs-value { font-size: 16px; font-weight: 700; color: #262626; }

/* ── Tags ── */
.bsh-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.bsh-tag { display: inline-block; padding: 5px 12px; font-size: 12px; font-weight: 600; line-height: 1.3; border: 1.5px solid #007BC0; border-radius: 20px; color: #007BC0; letter-spacing: .3px; }
.bsh-tag-series { color: #fff; background: #E30613; border-color: #E30613; }
.supplier_siemens .bsh-tag { border-color: #009999; color: #009999; }
.supplier_siemens .bsh-tag-series { background: #009999; border-color: #009999; }

/* ── Feature Cards ── */
.bsh-features { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 14px; }
.bsh-feature-card { display: flex; align-items: stretch; border: 1px solid #e8e8e8; border-radius: 3px; overflow: hidden; background: #fff; cursor: pointer; transition: box-shadow .2s, border-color .2s; }
.bsh-feature-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); border-color: #ccc; }
.bsh-hidden { display: none; }

.bsh-fc-img { flex: 0 0 40%; max-width: 40%; background: #f0f0f0; position: relative; display: flex; align-items: center; justify-content: center; min-height: 160px; overflow: hidden; }
.bsh-fc-img img { width: 100%; height: 100%; object-fit: cover; }
.bsh-fc-gallery-badge { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 10px; }

.bsh-fc-body { flex: 1; padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; }
.bsh-fc-body h3 { font-size: 15px; font-weight: 700; margin: 0 0 8px; color: #262626; }
.bsh-fc-body p { font-size: 13px; line-height: 1.6; color: #555; margin: 0; }
.bsh-fc-cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 12px; font-weight: 700; color: #007BC0; }
.supplier_siemens .bsh-fc-cta { color: #009999; }

/* ── Show More Button ── */
.bsh-show-more { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 28px; padding: 7px 18px; background: transparent; border: 1.5px solid #262626; color: #262626; font-size: 12px; font-weight: 700; cursor: pointer; letter-spacing: .6px; text-transform: uppercase; border-radius: 2px; }
.bsh-show-more:hover { background: #262626; color: #fff; }

/* ── Installation Diagrams ── */
.bsh-diagrams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.bsh-diagram { border: 1px solid #e0e0e0; border-radius: 2px; overflow: hidden; cursor: pointer; transition: box-shadow .2s; }
.bsh-diagram:hover { box-shadow: 0 3px 12px rgba(0,0,0,.1); }
.bsh-diagram img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #f5f7fa; display: block; }
.bsh-diag-hidden { display: none; }
.bsh-diag-more-wrap { text-align: left; margin-top: 4px; margin-bottom: 28px; }
.bsh-diag-more-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border: 1px solid #ccc; border-radius: 14px; background: #fff; color: #555; font-size: 11px; cursor: pointer; }
.bsh-diag-more-btn:hover { border-color: #007BC0; color: #007BC0; }
.supplier_siemens .bsh-diag-more-btn:hover { border-color: #009999; color: #009999; }

/* ── Tech Specs ── */
.bsh-specs-section { margin-bottom: 20px; }
.bsh-specs { display: flex; flex-direction: column; gap: 10px; }
.bsh-specs-cat { margin-bottom: 2px; }
.bsh-specs-cat-title { font-size: 12px; font-weight: 600; color: #007BC0; text-transform: uppercase; letter-spacing: .5px; padding: 5px 0; border-bottom: 1px solid #007BC0; margin-bottom: 0; }
.supplier_siemens .bsh-specs-cat-title { color: #009999; border-bottom-color: #009999; }
.bsh-specs-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.bsh-specs-tbl tr:nth-child(even) { background: #f8f9fb; }
.bsh-specs-tbl td { padding: 6px 10px; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.bsh-specs-tbl td:first-child { color: #555; width: 50%; }
.bsh-specs-tbl td:last-child { font-weight: 500; color: #1a1a1a; }
.bsh-specs-hidden { display: none; }
.bsh-specs-more-wrap { text-align: center; margin-top: 14px; }
.bsh-specs-more-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 18px; border: 1px solid #ccc; border-radius: 20px; background: #fff; color: #333; font-size: 12px; cursor: pointer; }
.bsh-specs-more-btn:hover { border-color: #007BC0; color: #007BC0; }
.supplier_siemens .bsh-specs-more-btn:hover { border-color: #009999; color: #009999; }

/* ── Zoom Overlay ── */
.bsh-zoom-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.85); z-index: 99999; cursor: pointer; justify-content: center; align-items: center; }
.bsh-zoom-overlay.open { display: flex; }
.bsh-zoom-overlay img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px; cursor: default; }
.bsh-zoom-close { position: absolute; top: 16px; right: 20px; width: 40px; height: 40px; background: transparent; border: none; cursor: pointer; color: #fff; font-size: 28px; z-index: 10; }
.bsh-zoom-close:hover { color: #ccc; }

/* ── Responsive ── */
@media(max-width:768px) {
  .bsh-quickspecs { grid-template-columns: repeat(2, 1fr); }
  .bsh-qs-item:nth-child(even) { border-right: none; }
  .bsh-feature-card { flex-direction: column; }
  .bsh-fc-img { flex: none; max-width: 100%; min-height: 180px; }
  .bsh-diagrams { grid-template-columns: repeat(2, 1fr); }
}
