/* ============================================================
   Maple Biotech — WordPress Theme Additional Page Styles
   ============================================================ */

/* ── Page Hero (sub-pages) ───────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h,80px) + 4rem) 0 4rem;
  background: linear-gradient(135deg, var(--primary,#0d2b52) 0%, var(--primary-mid,#1a4a7a) 100%);
  text-align: center;
  color: #fff;
}
.page-hero .pre-title { color: #f0c040; }
.page-hero h1 { color: #fff; font-size: clamp(2rem,5vw,3.2rem); margin-bottom: .75rem; }
.page-hero p  { color: rgba(255,255,255,.75); max-width: 580px; margin: 0 auto; }

/* ── Product Grid ───────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 1.5rem;
}
.product-card {
  background: #fff;
  border: 1.5px solid var(--border,#e2e8f0);
  border-radius: var(--radius,12px);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.product-card-img { height: 200px; overflow: hidden; background: var(--off-white,#f8fafc); }
.product-card-img img { width:100%; height:100%; object-fit:cover; }
.product-card-body { padding: 1.25rem; display:flex; flex-direction:column; flex:1; }
.product-card-category { font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; margin-bottom:.375rem; }
.product-card-brand { font-size:1.125rem; font-weight:700; color:var(--text,#1a1a2e); margin-bottom:.25rem; }
.product-card-generic { font-size:.8125rem; color:var(--text-light,#64748b); margin-bottom:.625rem; }
.product-card-tagline { font-size:.875rem; color:var(--text-mid,#334155); line-height:1.5; flex:1; }
.product-card-functions { display:flex; flex-wrap:wrap; gap:.375rem; margin-top:.75rem; }
.fn-tag { padding:.2rem .625rem; background:var(--off-white,#f8fafc); border:1px solid var(--border,#e2e8f0); border-radius:99px; font-size:.72rem; font-weight:600; color:var(--text-mid,#334155); }
.fn-tag--light { background:rgba(255,255,255,.15); border-color:rgba(255,255,255,.3); color:#fff; }

/* ── Product Hero ───────────────────────────────────────── */
.product-hero { color:#fff; padding:calc(var(--nav-h,80px) + 2rem) 0 3rem; }
.product-hero-inner { display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:center; }
@media(max-width:768px){ .product-hero-inner{ grid-template-columns:1fr; } }
.product-breadcrumb { display:flex; gap:.5rem; align-items:center; font-size:.8125rem; color:rgba(255,255,255,.65); margin-bottom:1rem; flex-wrap:wrap; }
.product-breadcrumb a { color:rgba(255,255,255,.65); }
.product-breadcrumb i { font-size:.625rem; opacity:.5; }
.product-cat-badge { display:inline-block; padding:.25rem .875rem; background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.3); border-radius:99px; font-size:.75rem; font-weight:600; margin-bottom:.875rem; }
.product-hero-title { font-family:'Playfair Display',serif; font-size:clamp(2rem,5vw,3rem); color:#fff; margin-bottom:.5rem; }
.product-hero-generic { font-size:1.0625rem; color:rgba(255,255,255,.75); margin-bottom:.75rem; }
.product-hero-tagline { font-size:1rem; color:rgba(255,255,255,.8); line-height:1.7; margin-bottom:1.25rem; }
.product-functions { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:1.5rem; }
.product-hero-actions { display:flex; gap:1rem; flex-wrap:wrap; }
.product-hero-gif { width:100%; border-radius:var(--radius,12px); max-height:380px; object-fit:cover; }

/* ── Product Detail Grid ────────────────────────────────── */
.product-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:3rem; }
@media(max-width:768px){ .product-detail-grid{ grid-template-columns:1fr; } }
.product-gallery .gallery-main img { width:100%; border-radius:var(--radius,12px); max-height:380px; object-fit:cover; }
.gallery-thumbs { display:flex; gap:.5rem; margin-top:.75rem; flex-wrap:wrap; }
.gallery-thumbs img { width:72px; height:60px; object-fit:cover; border-radius:var(--radius-sm,6px); cursor:pointer; opacity:.65; transition:opacity .15s; border:2px solid transparent; }
.gallery-thumbs img:hover, .gallery-thumbs img.active { opacity:1; border-color:var(--primary,#0d2b52); }

/* ── Applications Grid ──────────────────────────────────── */
.apps-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:1.25rem; }
.app-card { background:#fff; border:1.5px solid var(--border,#e2e8f0); border-radius:var(--radius,12px); padding:1.5rem; text-align:center; }
.app-icon { font-size:1.75rem; color:var(--primary,#0d2b52); margin-bottom:.75rem; }
.app-title { font-weight:700; margin-bottom:.5rem; }
.app-desc { font-size:.875rem; color:var(--text-light,#64748b); line-height:1.5; }

/* ── Related Products ───────────────────────────────────── */
.related-products { padding: 3rem 0; background: var(--off-white,#f8fafc); }
.related-products h3 { text-align:center; margin-bottom:2rem; font-family:'Playfair Display',serif; font-size:1.75rem; }
.related-products .products-grid { max-width:900px; margin:0 auto; }

/* ── Contact page styles ────────────────────────────────── */
.full-map { height:300px; border-radius:var(--radius,12px); overflow:hidden; box-shadow:var(--shadow); margin-top:1.5rem; }
.full-map iframe { width:100%; height:100%; border:0; }
.whatsapp-cta { display:inline-flex; align-items:center; gap:.625rem; background:#25D366; color:#fff; padding:.875rem 1.75rem; border-radius:var(--radius-sm,6px); font-weight:600; font-size:1rem; transition:all .2s; text-decoration:none; }
.whatsapp-cta:hover { background:#1eb855; transform:translateY(-2px); }

/* ── Blog styles (in case page-styles.css is needed) ────── */
.blog-section { background: var(--off-white,#f8fafc); }
.post-hero { padding:calc(var(--nav-h,80px) + 3.5rem) 0 3.5rem; color:#fff; position:relative; overflow:hidden; background:linear-gradient(135deg,var(--primary,#0d2b52) 0%,var(--primary-mid,#1a4a7a) 100%); }
.post-hero::before { content:''; position:absolute; inset:0; background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); pointer-events:none; }
.post-hero-bg { display:none; }
.post-hero-inner { position:relative; z-index:1; max-width:760px; }
.post-breadcrumb { display:flex; align-items:center; gap:.5rem; font-size:.8125rem; color:rgba(255,255,255,.65); margin-bottom:1.25rem; flex-wrap:wrap; }
.post-breadcrumb a { color:rgba(255,255,255,.65); }
.post-breadcrumb i { font-size:.625rem; opacity:.5; }
.post-hero h1 { color:#fff; font-size:clamp(1.875rem,4vw,2.875rem); line-height:1.18; margin-bottom:1.125rem; }
.post-hero-meta { display:flex; align-items:center; gap:1.25rem; flex-wrap:wrap; font-size:.875rem; color:rgba(255,255,255,.75); }
.post-hero-meta span { display:flex; align-items:center; gap:.375rem; }
.article-layout { display:grid; grid-template-columns:1fr 300px; gap:3rem; align-items:start; padding:3rem 0 5rem; }
@media(max-width:900px){ .article-layout{ grid-template-columns:1fr; } }
.article-body { max-width:760px; }
.article-cover { border-radius:var(--radius,12px); overflow:hidden; margin-bottom:2rem; box-shadow:var(--shadow); }
.article-cover img { width:100%; max-height:420px; object-fit:cover; }
.article-content { font-size:1.0625rem; color:var(--text-mid,#334155); line-height:1.85; }
.article-content h2 { font-size:1.5rem; color:var(--text,#1a1a2e); margin:2rem 0 .875rem; font-family:'Playfair Display',serif; }
.article-content h3 { font-size:1.2rem; margin:1.5rem 0 .625rem; font-weight:700; }
.article-content p { margin-bottom:1.25rem; }
.article-content ul,.article-content ol { padding-left:1.5rem; margin-bottom:1.25rem; }
.article-content li { margin-bottom:.5rem; }
.article-content strong { color:var(--text,#1a1a2e); font-weight:600; }
.article-content table { width:100%; border-collapse:collapse; margin:1.5rem 0; font-size:.9375rem; }
.article-content th { background:var(--off-white,#f8fafc); padding:.75rem; text-align:left; border-bottom:2px solid var(--border,#e2e8f0); font-weight:600; }
.article-content td { padding:.75rem; border-bottom:1px solid var(--border,#e2e8f0); }
.article-tags { display:flex; flex-wrap:wrap; gap:.5rem; margin:2rem 0; }
.article-tag { padding:.3rem .875rem; border-radius:99px; background:var(--off-white,#f8fafc); border:1.5px solid var(--border,#e2e8f0); font-size:.78rem; font-weight:600; color:var(--text-mid,#334155); }
.article-share { display:flex; align-items:center; gap:1rem; flex-wrap:wrap; padding:1.25rem; background:var(--off-white,#f8fafc); border-radius:var(--radius,12px); margin:2rem 0; }
.article-share span { font-size:.875rem; font-weight:600; color:var(--text-mid,#334155); }
.share-btn { display:inline-flex; align-items:center; gap:.5rem; padding:.5rem 1rem; border-radius:var(--radius-sm,6px); font-size:.8125rem; font-weight:600; color:#fff; transition:all .15s; }
.share-btn:hover { opacity:.9; transform:translateY(-1px); }
.share-linkedin { background:#0077B5; }
.share-whatsapp { background:#25D366; }
.share-email    { background:var(--primary,#0d2b52); }
.article-sidebar { position:sticky; top:calc(var(--nav-h,80px) + 1.5rem); }
.sidebar-card { background:#fff; border-radius:var(--radius,12px); border:1.5px solid var(--border,#e2e8f0); padding:1.5rem; margin-bottom:1.25rem; }
.sidebar-card h4 { font-size:.8125rem; text-transform:uppercase; letter-spacing:.08em; color:var(--text-light,#64748b); margin-bottom:1rem; }
.sidebar-related-item { display:flex; gap:.875rem; padding:.75rem 0; border-bottom:1px solid var(--border,#e2e8f0); text-decoration:none; color:inherit; transition:all .15s; }
.sidebar-related-item:last-child { border-bottom:none; }
.sidebar-related-item:hover { opacity:.8; }
.sidebar-related-img { width:64px; height:52px; flex-shrink:0; border-radius:var(--radius-sm,6px); overflow:hidden; }
.sidebar-related-img img { width:100%; height:100%; object-fit:cover; }
.sidebar-related-title { font-size:.875rem; font-weight:600; line-height:1.35; color:var(--text,#1a1a2e); }
.sidebar-related-meta { font-size:.75rem; color:var(--text-light,#64748b); margin-top:.25rem; }
.sidebar-nl-form input { width:100%; padding:.6875rem .875rem; margin-bottom:.625rem; border:1.5px solid var(--border,#e2e8f0); border-radius:var(--radius-sm,6px); font-size:.875rem; }
