/*
Theme Name: Surgentis Impex
Theme URI: https://surgentisimpex.com/
Author: Surgentis Impex
Author URI: https://surgentisimpex.com/
Description: Precision instrument B2B theme for Surgentis Impex Pvt. Ltd. (Sialkot, Pakistan / London, UK). Ships ten pre-built pages - home, product catalogue, Fig 74XN dossier, about, manufacturing, OEM, catalogues, RFQ, contact and B2B portal - with a server-rendered mega menu, quick-find command palette, RFQ basket stored in localStorage, procedural Three.js product viewers and server-side form handling (admin-post.php + wp_mail). Page content stays editable in the admin while markup fidelity can be locked to per-page theme partials.
Version: 1.1.6
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: surgentis-impex
Tags: business, b2b, manufacturing, medical, portfolio, custom-menu, custom-logo, featured-images, translation-ready
*/

/*
 * The visual system lives in assets/css/app.css (single source of truth).
 * This file carries the WordPress theme header and focused theme overrides.
 */

/* Live RFQ actions remain usable on narrow cards. */
.home .hero-grid { grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); }
.sg-hero-inventory { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; min-width:0; }
.sg-hero-instrument { display:flex; flex-direction:column; overflow:hidden; background:#fff; border:1px solid #dce5eb; border-radius:16px; box-shadow:0 8px 24px rgba(15,43,68,.06); }
.sg-hero-instrument img { display:block; width:100%; height:210px; object-fit:contain; padding:18px; box-sizing:border-box; }
.sg-hero-instrument span { padding:12px 16px; border-top:1px solid #e3e9ee; color:#102d47; font-size:13px; font-weight:700; line-height:1.4; }
.sg-hero-instrument:hover { border-color:#1597a5; }
@media(max-width:1000px) { .home .hero-grid { grid-template-columns:1fr; } }
@media(max-width:520px) { .sg-hero-inventory { gap:10px; } .sg-hero-instrument img { height:155px; padding:12px; } .sg-hero-instrument span { padding:10px; font-size:12px; } }
@media(max-width:1023px) {
  .g-12 > [class*="span-"] { grid-column:1 / -1; min-width:0; }
}
.logo img.custom-logo, .logo img.sg-brand-logo {
  display:block;
  width:180px;
  height:auto;
  max-width:100%;
  padding:0;
  background:transparent;
  border-radius:0;
  filter:brightness(0) invert(1);
  object-fit:contain;
  box-sizing:border-box;
}
.hdr-main .logo { padding-block:6px; }
@media (max-width:520px) {
  .hdr-main .logo img { width:136px; }
}
.pcard-foot { flex-wrap:wrap; gap:8px; }
.pcard-foot > .btn { flex:1 1 auto; justify-content:center; }
.pcard-media img { object-fit:contain; }

/* RFQ lines use small thumbnails, rather than full catalogue-sized images. */
#cartList > .pcard {
  display:grid;
  grid-template-columns:112px minmax(0,1fr);
  align-items:start;
}
#cartList .pcard-media {
  width:112px;
  height:140px;
  aspect-ratio:auto !important;
  border-bottom:0;
  background:#fff;
}
#cartList .pcard-media img {
  width:100%;
  height:100%;
  object-fit:contain;
  padding:32px 10px 10px;
}
#cartList .pcard-sku { font-size:10px; left:8px; top:8px; max-width:calc(100% - 16px); overflow-wrap:anywhere; }
#cartList .pcard-body { min-width:0; padding:16px; gap:10px; }
#cartList .pcard-title { font-size:16px; line-height:1.4; }
#cartList .pcard-meta { font-size:11px; }
#cartList .pcard-chips:empty { display:none; }
#cartList .field-row { gap:10px; }
#cartList .field { min-width:0; }
#cartList .input, #cartList .select { width:100%; min-width:0; }
@media (max-width:520px) {
  #cartList > .pcard { grid-template-columns:80px minmax(0,1fr); }
  #cartList .pcard-media { width:80px; height:112px; }
  #cartList .pcard-body { padding:12px; }
  #cartList .field-row { grid-template-columns:1fr; flex-direction:column; }
}
