/*
Theme Name: HFmidia Store
Theme URI: https://hfmidia-store.com/
Author: HFmidia
Description: A responsive B2B WooCommerce theme for HFmidia automotive multimedia displays.
Version: 1.0.0
Requires at least: 6.9
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: hfmidia-store
*/

:root {
    --hf-orange: #ff6a00;
    --hf-orange-dark: #d94d00;
    --hf-ink: #111318;
    --hf-navy: #18212d;
    --hf-muted: #667085;
    --hf-line: #e7e9ee;
    --hf-soft: #f5f6f8;
    --hf-white: #ffffff;
    --hf-success: #0b8f55;
    --hf-radius: 14px;
    --hf-shadow: 0 14px 35px rgba(19, 30, 45, .09);
    --hf-container: min(1220px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--hf-ink);
    background: var(--hf-white);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.62;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.hf-container { width: var(--hf-container); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; clip: rect(1px, 1px, 1px, 1px); overflow: hidden; }

.hf-demo-ribbon {
    padding: 7px 20px;
    color: #fff;
    background: #9a3412;
    text-align: center;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
}
.hf-topbar { color: #e8edf4; background: var(--hf-navy); font-size: .8rem; }
.hf-topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hf-proof-list { display: flex; flex-wrap: wrap; gap: 24px; }
.hf-proof-list span::before { content: "✓"; margin-right: 7px; color: #ffb377; font-weight: 900; }
.hf-main-header { position: relative; z-index: 20; border-bottom: 1px solid var(--hf-line); background: rgba(255,255,255,.98); }
.hf-header-row { min-height: 84px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; }
.hf-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 900; letter-spacing: -.04em; }
.hf-brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: var(--hf-orange); border-radius: 10px 4px 10px 4px; box-shadow: 5px 5px 0 #ffe0c9; }
.hf-brand em { color: var(--hf-orange); font-style: normal; }
.hf-nav ul { display: flex; justify-content: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.hf-nav a { position: relative; display: block; padding: 30px 0 27px; color: #283242; font-size: .92rem; font-weight: 700; }
.hf-nav a::after { content: ""; position: absolute; right: 0; bottom: 20px; left: 0; height: 2px; background: var(--hf-orange); transform: scaleX(0); transition: transform .2s ease; }
.hf-nav a:hover::after, .hf-nav .current-menu-item a::after { transform: scaleX(1); }
.hf-header-actions { display: flex; align-items: center; gap: 10px; }
.hf-action { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--hf-line); border-radius: 10px; font-size: .85rem; font-weight: 800; }
.hf-action:hover { color: var(--hf-orange); border-color: #ffc69d; }
.hf-cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 8px; padding: 0 5px; color: #fff; background: var(--hf-orange); border-radius: 999px; font-size: .68rem; }

.hf-hero { overflow: hidden; background: linear-gradient(120deg, #f3f5f8 0%, #fff 62%, #fff3e9 100%); border-bottom: 1px solid var(--hf-line); }
.hf-hero-grid { min-height: 570px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 52px; padding-block: 62px; }
.hf-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 15px; color: var(--hf-orange-dark); font-size: .78rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.hf-kicker::before { content: ""; width: 28px; height: 3px; background: var(--hf-orange); }
.hf-hero h1 { max-width: 760px; margin: 0 0 22px; font-size: clamp(2.45rem, 5vw, 4.75rem); line-height: .98; letter-spacing: -.06em; }
.hf-hero h1 span { color: var(--hf-orange); }
.hf-hero p { max-width: 650px; margin: 0 0 30px; color: #515c6d; font-size: 1.12rem; }
.hf-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hf-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .wp-element-button {
    display: inline-flex !important; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px !important; border: 1px solid var(--hf-orange) !important; border-radius: 8px !important; color: #fff !important; background: var(--hf-orange) !important; font-size: .9rem !important; font-weight: 850 !important; transition: transform .2s ease, background .2s ease !important;
}
.hf-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .wp-element-button:hover { background: var(--hf-orange-dark) !important; transform: translateY(-1px); }
.hf-button-secondary { color: var(--hf-ink) !important; background: #fff !important; border-color: #cbd1da !important; }
.hf-hero-product { position: relative; min-height: 420px; display: grid; place-items: center; }
.hf-hero-product::before { content: ""; position: absolute; width: 390px; height: 390px; border: 46px solid rgba(255,106,0,.12); border-radius: 50%; }
.hf-hero-product img { position: relative; z-index: 2; width: min(520px, 100%); filter: drop-shadow(0 28px 25px rgba(10,20,30,.16)); }
.hf-hero-chip { position: absolute; z-index: 3; right: 0; bottom: 30px; padding: 14px 18px; color: #fff; background: var(--hf-navy); border-radius: 10px; box-shadow: var(--hf-shadow); font-size: .82rem; font-weight: 800; }

.hf-statbar { margin-top: -1px; color: #fff; background: var(--hf-ink); }
.hf-stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.hf-stat { padding: 23px 26px; border-right: 1px solid rgba(255,255,255,.12); }
.hf-stat:last-child { border-right: 0; }
.hf-stat strong { display: block; color: #ff9b54; font-size: 1.2rem; line-height: 1.2; }
.hf-stat span { color: #c9d1dc; font-size: .78rem; }

.hf-section { padding-block: 76px; }
.hf-section-soft { background: var(--hf-soft); }
.hf-section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.hf-section-head h2 { margin: 0; font-size: clamp(1.9rem, 3vw, 2.8rem); line-height: 1.08; letter-spacing: -.045em; }
.hf-section-head p { max-width: 580px; margin: 0; color: var(--hf-muted); }
.hf-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hf-category-card { position: relative; min-height: 190px; overflow: hidden; padding: 28px; color: #fff; background: linear-gradient(145deg, var(--hf-navy), #0c1118); border-radius: var(--hf-radius); box-shadow: var(--hf-shadow); }
.hf-category-card::after { content: ""; position: absolute; right: -25px; bottom: -45px; width: 150px; height: 150px; border: 30px solid rgba(255,106,0,.18); border-radius: 50%; }
.hf-category-card small { color: #ffb57f; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hf-category-card h3 { max-width: 220px; margin: 18px 0 8px; font-size: 1.55rem; line-height: 1.08; }
.hf-category-card span { color: #b9c3cf; font-size: .86rem; }
.hf-category-card:hover { background: linear-gradient(145deg, #283647, #0c1118); }

.hf-company-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 56px; align-items: center; }
.hf-company-visual { position: relative; min-height: 390px; display: grid; place-items: center; overflow: hidden; background: #eef1f5; border-radius: 18px; }
.hf-company-visual img { width: 100%; height: 100%; object-fit: cover; }
.hf-company-label { position: absolute; right: 22px; bottom: 22px; left: 22px; padding: 18px 20px; color: #fff; background: rgba(17,19,24,.9); border-left: 4px solid var(--hf-orange); border-radius: 6px; }
.hf-company-copy h2 { margin: 0 0 20px; font-size: clamp(2rem, 3vw, 3.2rem); line-height: 1.02; letter-spacing: -.05em; }
.hf-company-copy p { color: var(--hf-muted); }
.hf-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 25px 0 30px; padding: 0; list-style: none; }
.hf-checks li { padding: 12px 14px; background: var(--hf-soft); border-left: 3px solid var(--hf-orange); border-radius: 5px; font-size: .88rem; font-weight: 750; }

.hf-content-wrap { width: var(--hf-container); min-height: 55vh; margin-inline: auto; padding-block: 58px 80px; }
.hf-page-header { margin-bottom: 34px; padding-bottom: 22px; border-bottom: 1px solid var(--hf-line); }
.hf-page-header h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.05em; }
.hf-entry-content { max-width: 900px; }
.hf-entry-content h2, .hf-entry-content h3 { line-height: 1.2; letter-spacing: -.025em; }
.hf-entry-content h2 { margin-top: 2rem; }
.hf-legal-draft, .hf-product-notice { margin: 0 0 24px; padding: 16px 18px; color: #7c2d12; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; }

.woocommerce .products ul, .woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { position: relative; width: auto !important; margin: 0 !important; padding: 0 0 22px; overflow: hidden; background: #fff; border: 1px solid var(--hf-line); border-radius: 12px; box-shadow: 0 8px 24px rgba(15,24,36,.05); transition: transform .2s ease, box-shadow .2s ease; }
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--hf-shadow); }
.woocommerce ul.products li.product a img { aspect-ratio: 1; margin: 0 0 18px !important; object-fit: cover; background: #fff; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 4.8em; padding: 0 18px !important; color: var(--hf-ink); font-size: 1rem !important; line-height: 1.38; }
.woocommerce ul.products li.product .price { padding: 0 18px; color: var(--hf-orange-dark) !important; font-size: 1.05rem !important; font-weight: 900 !important; }
.woocommerce ul.products li.product .button { margin: 10px 18px 0 !important; }
.hfms-demo-badge { position: absolute; z-index: 4; top: 12px; left: 12px; padding: 5px 9px; color: #fff; background: #9a3412; border-radius: 5px; font-size: .68rem; font-weight: 900; letter-spacing: .08em; }
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto !important; float: none !important; }
.woocommerce div.product .product_title { font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.1; letter-spacing: -.04em; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--hf-orange-dark) !important; font-size: 1.65rem !important; font-weight: 900; }
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; }

.hf-footer { color: #d8dee7; background: var(--hf-navy); }
.hf-footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 50px; padding-block: 54px; }
.hf-footer h3, .hf-footer h4 { margin-top: 0; color: #fff; }
.hf-footer p, .hf-footer li { color: #aeb8c5; font-size: .9rem; }
.hf-footer ul { margin: 0; padding: 0; list-style: none; }
.hf-footer li { margin-bottom: 8px; }
.hf-footer a:hover { color: #ff9b54; }
.hf-footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); color: #8f9aaa; font-size: .78rem; }

@media (max-width: 980px) {
    .hf-header-row { grid-template-columns: auto auto; justify-content: space-between; }
    .hf-nav { grid-column: 1 / -1; order: 3; overflow-x: auto; border-top: 1px solid var(--hf-line); }
    .hf-nav ul { justify-content: flex-start; min-width: max-content; }
    .hf-nav a { padding-block: 16px; }
    .hf-nav a::after { bottom: 9px; }
    .hf-hero-grid, .hf-company-grid { grid-template-columns: 1fr; }
    .hf-hero-grid { padding-top: 48px; }
    .hf-hero-product { min-height: 330px; }
    .hf-categories, .woocommerce .products ul, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
    .hf-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
    :root { --hf-container: min(100% - 28px, 1220px); }
    .hf-topbar-inner { padding-block: 8px; }
    .hf-proof-list { gap: 6px 14px; }
    .hf-topbar-note { display: none; }
    .hf-header-row { min-height: 72px; gap: 14px; }
    .hf-brand { font-size: 1.25rem; }
    .hf-brand-mark { width: 36px; height: 36px; }
    .hf-action:first-child { display: none; }
    .hf-hero-grid { min-height: auto; gap: 10px; padding-block: 42px 34px; }
    .hf-hero h1 { font-size: 2.65rem; }
    .hf-hero-product::before { width: 280px; height: 280px; border-width: 34px; }
    .hf-hero-chip { right: 8px; bottom: 10px; }
    .hf-stats { grid-template-columns: 1fr 1fr; }
    .hf-stat:nth-child(2) { border-right: 0; }
    .hf-stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
    .hf-section { padding-block: 52px; }
    .hf-section-head { display: block; }
    .hf-section-head p { margin-top: 14px; }
    .hf-categories, .woocommerce .products ul, .woocommerce ul.products, .hf-checks, .hf-footer-grid, .woocommerce div.product { grid-template-columns: 1fr; }
    .hf-company-visual { min-height: 300px; }
    .hf-footer-grid { gap: 24px; }
}

