/* ==========================================================
   Dimed Healthcare - Main Stylesheet
   Corporate medical equipment website
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* --- Design Tokens --- */
:root {
  --primary-dark: #0A2647;
  --primary: #1A5DAB;
  --primary-light: #2B7BD4;
  --accent: #7EC8E3;
  --white: #FFFFFF;
  --light-bg: #F8FAFE;
  --border: #E8EDF2;
  --text: #1e293b;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --whatsapp: #25D366;
  --shadow: 0 2px 8px rgba(10,38,71,0.08);
  --shadow-lg: 0 8px 30px rgba(10,38,71,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 80px;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Poppins', system-ui, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--text); line-height: 1.6; background: var(--white); overflow-x: hidden; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; height: auto; }
svg:not([width]) { width: 1em; height: 1em; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 600; line-height: 1.3; color: var(--primary-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }
p { margin-bottom: 1rem; }

/* --- Layout --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-light { background: var(--light-bg); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-title { margin-bottom: 16px; }
.section-subtitle { color: var(--text-light); font-size: 1.1rem; }
.section-badge { display: inline-block; background: var(--accent); color: var(--primary-dark); font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 6px 16px; border-radius: 20px; margin-bottom: 16px; }
.section-cta { text-align: center; margin-top: 48px; }

/* ===================== HEADER ===================== */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; height: var(--header-h); display: flex; align-items: center; background: var(--primary-dark); box-shadow: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 100%; margin: 0; padding: 0 24px; }
.site-logo { margin-right: 32px; flex-shrink: 0; }
.site-logo img { height: 58px; width: auto; }
.custom-logo { height: 58px; width: auto; }
.custom-logo-link { display: flex; align-items: center; }
.site-logo-text { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--white); }
.site-logo img, .custom-logo { filter: brightness(0) invert(1); }

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav > ul { display: flex; gap: 4px; }
.main-nav a { display: block; padding: 10px 16px; font-size: 0.95rem; font-weight: 500; color: rgba(255,255,255,0.85); border-radius: var(--radius-sm); transition: color .3s, background .3s; }
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,0.1); }

/* Dropdown */
.menu-item-has-children { position: relative; }
.menu-item-has-children > .sub-menu { position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s ease; }
.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children.focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a { color: var(--text) !important; padding: 10px 20px; font-size: 0.9rem; }
.sub-menu a:hover { background: var(--light-bg) !important; color: var(--primary) !important; }

/* Header CTA */
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-wa { display: flex; align-items: center; gap: 6px; background: var(--whatsapp); color: var(--white) !important; padding: 8px 16px !important; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.85rem; }
.header-wa:hover { background: #20bd5a !important; }
.header-wa svg { width: 18px; height: 18px; fill: currentColor; }

/* Mobile toggle */
.mobile-toggle { display: none; width: 32px; height: 32px; flex-direction: column; justify-content: center; gap: 5px; }
.mobile-toggle span { display: block; height: 2px; background: var(--primary-dark); border-radius: 2px; transition: all .3s; }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--primary-dark); z-index: 999; padding: calc(var(--header-h) + 20px) 24px 24px; overflow-y: auto; opacity: 0; visibility: hidden; transition: all .3s; }
.mobile-nav.active { opacity: 1; visibility: visible; }
.mobile-nav a { display: block; padding: 14px 0; font-size: 1.2rem; color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.1); }

/* ===================== HERO ===================== */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); padding-top: var(--header-h); overflow: hidden; }
.hero-overlay { position: absolute; inset: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,160L48,170.7C96,181,192,203,288,192C384,181,480,139,576,138.7C672,139,768,181,864,197.3C960,213,1056,203,1152,181.3C1248,160,1344,128,1392,112L1440,96L1440,320L0,320Z"/></svg>') no-repeat bottom center; background-size: cover; }
.hero-content { position: relative; text-align: center; max-width: 800px; margin: 0 auto; padding: 60px 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero-title { color: var(--white); margin-bottom: 24px; font-weight: 700; }
.hero-subtitle { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 640px; margin: 0 auto 40px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Stats bar */
.hero-stats { position: relative; padding: 0 24px 40px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; background: rgba(255,255,255,0.1); backdrop-filter: blur(12px); border-radius: var(--radius); padding: 32px; border: 1px solid rgba(255,255,255,0.15); }
.stat-item { text-align: center; }
.stat-number { display: block; font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; color: var(--white); }
.stat-label { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* ===================== BUTTONS ===================== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem; transition: all .3s; cursor: pointer; }
.btn-primary { background: var(--white); color: var(--primary-dark); }
.btn-primary:hover { background: var(--light-bg); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-secondary { background: var(--primary); color: var(--white); }
.btn-secondary:hover { background: var(--primary-light); transform: translateY(-2px); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: #20bd5a; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37,211,102,0.4); }

/* ===================== PRODUCTS ===================== */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { display: flex; flex-direction: column; padding: 32px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); transition: all .3s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.product-icon { width: 56px; height: 56px; margin-bottom: 20px; color: var(--primary); }
.product-icon svg { width: 100%; height: 100%; }
.product-image { height: 180px; margin: -32px -32px 20px -32px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); display: flex; align-items: center; justify-content: center; }
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform .3s; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-image-lg { background: linear-gradient(135deg, #1a1a2e, #16213e); position: relative; }
.product-image-chronos { background: linear-gradient(135deg, #2d1b4e, #1a1a2e); position: relative; display: flex; align-items: center; justify-content: center; }
.product-brand-badge { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; color: rgba(255,255,255,0.15); position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); letter-spacing: 4px; }
.product-brand-text { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: rgba(255,255,255,0.6); letter-spacing: 3px; text-align: center; line-height: 1.4; text-transform: uppercase; }
.product-card h3 { margin-bottom: 8px; color: var(--primary-dark); }
.product-card p { color: var(--text-light); font-size: 0.95rem; flex: 1; }
.product-link { color: var(--primary); font-weight: 600; font-size: 0.9rem; margin-top: 16px; }
.product-card:hover .product-link { color: var(--primary-light); }

/* ===================== BRAND SECTIONS ===================== */
.brand-section { margin-bottom: 56px; }
.brand-section:last-child { margin-bottom: 0; }
.brand-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--border); }
.brand-section-logo { height: 60px; width: auto; max-width: 280px; object-fit: contain; }
.brand-section-link { font-size: 0.9rem; font-weight: 600; color: var(--primary); transition: color .2s; }
.brand-section-link:hover { color: var(--primary-light); }

/* ===================== SOFTWARE ===================== */
.software-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.software-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 20px; text-align: center; transition: all .3s; }
.software-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); cursor: pointer; }
a.software-card { text-decoration: none; color: inherit; }
.software-abbr { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.software-card h3 { font-size: 0.95rem; margin-bottom: 8px; }
.software-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; margin-bottom: 0; }

/* ===================== SERVICES ===================== */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card { padding: 32px 24px; background: var(--light-bg); border-radius: var(--radius); text-align: center; transition: all .3s; }
.service-card:hover { background: var(--white); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-icon { width: 48px; height: 48px; margin: 0 auto 20px; color: var(--primary); }
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0; }

/* ===================== NEWS ===================== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .3s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-image { height: 200px; overflow: hidden; background: var(--light-bg); }
.news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-card:hover .news-image img { transform: scale(1.05); }
.news-image-placeholder { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.news-body { padding: 24px; }
.news-date { font-size: 0.8rem; color: var(--text-lighter); text-transform: uppercase; letter-spacing: 1px; }
.news-title { margin: 8px 0 12px; }
.news-title a { transition: color .3s; }
.news-title a:hover { color: var(--primary); }
.news-excerpt { font-size: 0.9rem; color: var(--text-light); }
.news-link { font-weight: 600; font-size: 0.9rem; color: var(--primary); }
.news-empty { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: var(--text-light); }

/* ===================== CTA BLOCK ===================== */
.section-cta-block { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 80px 0; text-align: center; }
.cta-title { color: var(--white); max-width: 700px; margin: 0 auto 16px; }
.cta-subtitle { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 32px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.section-cta-block .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.5); }
.section-cta-block .btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.8); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 60px; }
.footer-brand p { font-size: 0.9rem; margin: 16px 0; line-height: 1.7; }
.footer-logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--white); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); transition: background .3s; }
.footer-social a:hover { background: var(--primary); }
.footer-social svg { width: 18px; height: 18px; fill: var(--white); }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col a { display: block; padding: 6px 0; font-size: 0.9rem; transition: color .3s; }
.footer-col a:hover { color: var(--accent); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 0.9rem; }
.footer-contact-item svg { width: 18px; height: 18px; fill: var(--accent); flex-shrink: 0; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* ===================== WHATSAPP FLOAT ===================== */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; background: var(--whatsapp); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(37,211,102,0.4); z-index: 900; opacity: 0; transform: scale(0.8); transition: all .3s; }
.whatsapp-float.visible { opacity: 1; transform: scale(1); }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,211,102,0.5); }

/* ===================== ANIMATIONS ===================== */
/* fade-in only activates when JS adds 'js' class to html element */
html.js .fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .fade-in.visible { opacity: 1; transform: translateY(0); }
/* Without JS, everything is visible by default */

/* ===================== PAGES ===================== */
.page-header { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: calc(var(--header-h) + 60px) 0 60px; text-align: center; }
.page-header h1 { color: var(--white); }
.page-header p { color: rgba(255,255,255,0.8); }
.brand-logo-header { height: 90px; width: auto; max-width: 360px; margin: 0 auto 12px; display: block; object-fit: contain; }
.title-icon { height: 1.4em; width: auto; display: inline-block; vertical-align: middle; margin-right: 10px; }
.page-header.has-logo { background: var(--white); border-bottom: 1px solid var(--border); }
.page-header.has-logo h1 { display: none; }
.brand-subtitle { display: block; font-size: 1.05rem; margin-top: 8px; }
.page-header .brand-subtitle { color: rgba(255,255,255,0.8); }
.page-header.has-logo p { color: var(--text-light); }
.page-header.has-logo .brand-subtitle { color: var(--text-light); }
.page-content { padding: 60px 0; }
.page-content .container { max-width: 800px; }
.single-post .page-content img { border-radius: var(--radius); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .main-nav, .header-cta { display: none; }
  .mobile-toggle { display: flex; }
  .mobile-nav { display: block; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .software-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 24px; }
  .stat-number { font-size: 1.4rem; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .software-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
}

/* ===================== SINGLE PRODUCT ===================== */
.page-header-badge { display: inline-block; background: var(--accent); color: var(--primary-dark); font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 6px 16px; border-radius: 20px; margin-bottom: 12px; }
.product-back { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 500; color: var(--primary); margin-bottom: 24px; transition: all .2s; }
.product-back:hover { color: var(--primary-light); gap: 8px; }
.product-single { padding: 60px 0; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 60px; align-items: start; }
.product-hero-image { background: var(--light-bg); border-radius: var(--radius); overflow: hidden; padding: 24px; display: flex; align-items: center; justify-content: center; }
.product-hero-image img { max-height: 500px; width: auto; max-width: 100%; object-fit: contain; }
.product-info h2 { font-size: 1.4rem; margin: 32px 0 12px; color: var(--primary-dark); }
.product-info h3 { font-size: 1.15rem; margin: 24px 0 8px; color: var(--primary); }
.product-info p { color: var(--text-light); }
.product-info ul { margin: 8px 0 16px 20px; list-style: disc; }
.product-info ul li { color: var(--text-light); margin-bottom: 6px; font-size: 0.95rem; }
.product-info table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.9rem; }
.product-info table th { background: var(--primary-dark); color: var(--white); padding: 10px 14px; text-align: left; font-weight: 600; }
.product-info table td { padding: 8px 14px; border-bottom: 1px solid var(--border); }
.product-info table tr:nth-child(even) { background: var(--light-bg); }
.product-info table tr:hover { background: #e8f0fe; }
.product-info .compat-check { color: var(--primary); font-weight: 700; text-align: center; }
.product-cta { background: var(--light-bg); border-radius: var(--radius); padding: 40px; text-align: center; margin-bottom: 60px; }
.product-cta h3 { margin-bottom: 8px; }
.product-cta p { color: var(--text-light); margin-bottom: 24px; }
.product-cta .cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.related-products { margin-bottom: 40px; }
@media (max-width: 768px) {
  .product-layout { grid-template-columns: 1fr; }
}

/* ===================== ARCHIVE PRODUCT ===================== */
.archive-intro { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.archive-intro p { color: var(--text-light); font-size: 1.1rem; }
.archive-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.archive-container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* Sidebar */
.archive-sidebar { position: sticky; top: calc(var(--header-h) + 24px); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 0; }
.sidebar-section { margin-bottom: 0; }
.sidebar-title { font-family: var(--font-heading); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-lighter); padding: 0 16px 10px; }
.sidebar-nav { list-style: none; }
.sidebar-nav li { margin: 0; }
.sidebar-nav a { display: flex; align-items: center; gap: 8px; padding: 9px 16px; font-size: 0.85rem; font-weight: 500; color: var(--text); transition: all .2s; border-left: 3px solid transparent; }
.sidebar-nav a:hover { background: var(--light-bg); color: var(--primary); border-left-color: var(--accent); }
.sidebar-nav a.active { background: linear-gradient(90deg, rgba(26,93,171,0.08), transparent); color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.sidebar-nav a .filter-count { margin-left: auto; font-size: 0.7rem; font-weight: 600; background: var(--light-bg); padding: 2px 7px; border-radius: 10px; color: var(--text-lighter); min-width: 24px; text-align: center; }
.sidebar-nav a.active .filter-count { background: rgba(26,93,171,0.12); color: var(--primary); }
.sidebar-nav .sub-item a { padding-left: 28px; font-size: 0.82rem; font-weight: 400; }
.sidebar-divider { height: 1px; background: var(--border); margin: 12px 16px; }
.sidebar-back { display: flex; align-items: center; gap: 6px; padding: 9px 16px; font-size: 0.82rem; font-weight: 500; color: var(--primary); transition: all .2s; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.sidebar-back:hover { background: var(--light-bg); }
.sidebar-back svg { width: 14px; height: 14px; }

/* Product cards v2 - LG style */
.archive-main .products-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 24px; }
.product-card-v2 { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: all .3s; }
.product-card-v2:hover { box-shadow: var(--shadow-lg); border-color: var(--accent); transform: translateY(-2px); }
.product-card-v2-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.pv2-image { height: 200px; background: var(--light-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 16px; }
.pv2-image img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; transition: transform .3s; }
.product-card-v2:hover .pv2-image img { transform: scale(1.05); }
.pv2-body { padding: 20px 20px 12px; flex: 1; }
.pv2-body h3 { font-size: 0.95rem; margin-bottom: 12px; color: var(--primary-dark); line-height: 1.4; }
.pv2-specs { list-style: none; margin: 0; padding: 0; }
.pv2-specs li { font-size: 0.8rem; color: var(--text-light); padding: 3px 0; border-bottom: 1px solid var(--light-bg); line-height: 1.5; }
.pv2-specs li:last-child { border-bottom: none; }
.pv2-excerpt { font-size: 0.85rem; color: var(--text-light); margin: 0; }
.pv2-actions { display: flex; gap: 0; border-top: 1px solid var(--border); }
.pv2-actions a { flex: 1; text-align: center; padding: 12px 8px; font-size: 0.8rem; font-weight: 600; transition: all .2s; text-decoration: none; }
.pv2-btn-details { color: var(--primary); background: var(--white); border-right: 1px solid var(--border); }
.pv2-btn-details:hover { background: var(--light-bg); }
.pv2-btn-quote { color: var(--white); background: var(--whatsapp); }
.pv2-btn-quote:hover { background: #20bd5a; }

/* Old filter chips - keep for fallback */
.archive-filters { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.archive-filter { padding: 8px 20px; border-radius: 20px; font-size: 0.9rem; font-weight: 500; border: 1px solid var(--border); color: var(--text-light); transition: all .3s; cursor: pointer; }
.archive-filter:hover, .archive-filter.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

@media (max-width: 1024px) {
  .archive-main .products-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .archive-main .products-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
  .archive-layout { grid-template-columns: 1fr; gap: 20px; }
  .archive-sidebar { position: static; border: none; padding: 0; background: none; }
  .sidebar-section { margin-bottom: 0; }
  .sidebar-title { display: none; }
  .sidebar-nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .sidebar-nav a { padding: 8px 14px; border-radius: 20px; border: 1px solid var(--border); border-left: none; font-size: 0.82rem; }
  .sidebar-nav a:hover { border-color: var(--primary); }
  .sidebar-nav a.active { border-color: var(--primary); background: var(--primary); color: var(--white); border-left: none; }
  .sidebar-nav a.active .filter-count { background: rgba(255,255,255,0.2); color: var(--white); }
  .sidebar-nav .sub-item a { padding-left: 14px; }
  .sidebar-divider { display: none; }
  .sidebar-back { border: 1px solid var(--border); border-radius: 20px; padding: 8px 14px; margin-bottom: 0; border-bottom: none; }
  .archive-main .product-card { flex-direction: column; }
  .archive-main .product-card .product-image { width: 100%; min-width: auto; min-height: 140px; border-radius: var(--radius) var(--radius) 0 0; }
}

/* ===================== CONTACT PAGE ===================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: 1.5rem; margin-bottom: 12px; }
.contact-info > p { color: var(--text-light); margin-bottom: 32px; }
.contact-info-items { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item { display: flex; align-items: center; gap: 14px; }
.contact-info-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--light-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--primary); }
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-item strong { display: block; font-size: 0.85rem; color: var(--text); }
.contact-info-item span, .contact-info-item a { font-size: 0.9rem; color: var(--text-light); }
.contact-form-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.9rem; transition: border-color .2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,93,171,0.1); }
.form-group textarea { resize: vertical; }
.form-success { text-align: center; padding: 48px 24px; }
.form-success h3 { margin: 16px 0 8px; }
.form-success p { color: var(--text-light); }
.form-error { background: #fef2f2; color: #b91c1c; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.9rem; border: 1px solid #fecaca; }
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===================== ABOUT PAGE ===================== */
.about-section { padding: 40px 0; }
.about-logo-row { text-align: center; margin-bottom: 20px; }
.about-logo { height: 70px; width: auto; max-width: 250px; object-fit: contain; }
.about-section h2 { text-align: center; margin-bottom: 16px; }
.about-section p { color: var(--text-light); line-height: 1.8; }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.about-highlight-item { background: var(--light-bg); border-radius: var(--radius-sm); padding: 16px 20px; }
.about-highlight-item strong { display: block; font-size: 0.82rem; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.about-highlight-item span { font-size: 0.9rem; color: var(--text); }
.about-divider { border: none; border-top: 1px solid var(--border); margin: 0; }
.about-cta { background: var(--light-bg); border-radius: var(--radius); padding: 40px; text-align: center; margin-top: 48px; }
.about-cta h3 { margin-bottom: 20px; }
.about-cta .cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) { .about-highlights { grid-template-columns: 1fr; } }

/* ===================== SINGLE POST ===================== */
.post-meta-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; justify-content: center; }
.post-date { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.post-category-badge { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; background: var(--accent); color: var(--primary-dark); padding: 4px 12px; border-radius: 12px; }
.single-post { padding: 48px 0 60px; }
.post-hero-image { margin-bottom: 40px; border-radius: var(--radius); overflow: hidden; }
.post-hero-image img { width: 100%; height: auto; display: block; }
.post-content { font-size: 1.05rem; line-height: 1.8; color: var(--text); }
.post-content p { margin-bottom: 1.5rem; }
.post-content h2 { font-size: 1.5rem; margin: 2rem 0 1rem; }
.post-content h3 { font-size: 1.2rem; margin: 1.5rem 0 0.75rem; color: var(--primary); }
.post-content ul, .post-content ol { margin: 0.5rem 0 1.5rem 1.5rem; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 0.5rem; line-height: 1.7; }
.post-content strong { color: var(--primary-dark); }
.post-content a { color: var(--primary); text-decoration: underline; }
.post-content a:hover { color: var(--primary-light); }
.post-cta { background: var(--light-bg); border-radius: var(--radius); padding: 40px; text-align: center; margin: 48px 0; }
.post-cta h3 { margin-bottom: 8px; }
.post-cta p { color: var(--text-light); margin-bottom: 20px; }
.post-cta .cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.related-posts { margin-top: 48px; }
.related-posts > h3 { font-size: 1.3rem; margin-bottom: 24px; }

/* ===================== WP DEFAULTS ===================== */
.wp-block-image { margin: 1.5em 0; }
.wp-block-image img { border-radius: var(--radius); }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }
