/*
Theme Name: HoyuMeter Theme
Theme URI: https://hoyumeter.com
Author: HoyuMeter
Description: Custom lightweight theme for HoyuMeter - Professional Test & Measurement Equipment
Version: 1.0
Text Domain: hoyumeter
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --hm-primary: #1E3A5F;
    --hm-dark: #132B47;
    --hm-accent: #D4854A;
    --hm-accent-hover: #C0733C;
    --hm-text: #333D4D;
    --hm-text-light: #6B7A8D;
    --hm-bg-gray: #F4F5F7;
    --hm-border: #DDE1E6;
    --hm-white: #FFFFFF;
    --hm-radius: 8px;
    --hm-max-width: 1200px;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--hm-text);
    line-height: 1.6;
    background: #F4F5F7;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--hm-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--hm-accent-hover); }

/* === LAYER 1: TOP TRUST BAR === */
.hm-topbar {
    background: #0F1E30;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hm-topbar-inner {
    max-width: var(--hm-max-width);
    margin: 0 auto;
    padding: 6px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hm-topbar-left,
.hm-topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.hm-topbar-item {
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    text-decoration: none !important;
}
a.hm-topbar-item:hover {
    color: var(--hm-accent) !important;
}
.hm-topbar-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}
.hm-topbar-whatsapp svg {
    opacity: 1;
}

/* === HEADER WRAPPER (sticky all 3 layers) === */
.hm-header-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* === LAYER 2: MAIN HEADER === */
.hm-site-header {
    background: var(--hm-primary);
}
.hm-header-inner {
    max-width: var(--hm-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.hm-logo {
    flex-shrink: 0;
    overflow: hidden;
    max-height: 70px;
}
.hm-logo a {
    color: var(--hm-white) !important;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hm-logo a img.hm-logo-img,
.hm-logo-img {
    height: 52px !important;
    max-height: 52px !important;
    width: auto !important;
    max-width: 120px !important;
    display: block;
    object-fit: contain;
}
.hm-logo-text {
    color: var(--hm-white);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.5px;
}
.hm-logo-text strong {
    font-weight: 700;
}
.hm-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}
.hm-header-actions a {
    color: rgba(255,255,255,0.88) !important;
    font-size: 14px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
}
.hm-header-actions a:hover {
    color: var(--hm-accent) !important;
}
/* === HEADER SEARCH === */
.hm-header-search {
    flex: 1;
    max-width: 480px;
    margin: 0 30px;
}
.hm-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}
.hm-search-input {
    flex: 1;
    border: none;
    border-radius: 20px;
    padding: 9px 42px 9px 16px;
    font-size: 13px;
    outline: none;
    color: var(--hm-text);
    background: var(--hm-white);
    height: 38px;
    box-sizing: border-box;
}
.hm-search-input::placeholder {
    color: #999;
    font-size: 13px;
}
.hm-search-input:focus {
    box-shadow: 0 0 0 3px rgba(212,133,74,0.25);
}
.hm-search-submit {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--hm-accent);
    border: none;
    color: var(--hm-white);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.hm-search-submit:hover {
    background: var(--hm-accent-hover);
}

.hm-header-cart {
    position: relative;
    display: flex;
    align-items: center;
}
.hm-cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--hm-accent);
    color: var(--hm-white);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* === LAYER 3: CATEGORY NAVIGATION === */
.hm-catnav {
    background: var(--hm-dark);
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.hm-catnav-inner {
    max-width: var(--hm-max-width);
    margin: 0 auto;
    padding: 0 20px;
}
.hm-catnav-list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.hm-catnav-list li a {
    color: rgba(255,255,255,0.85) !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    padding: 10px 14px;
    display: block;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.hm-catnav-list li a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--hm-accent) !important;
}

/* === Hide old USP bar (now in topbar) === */
.hm-usp-bar { display: none !important; }

/* === HERO === */
.hm-hero {
    background: linear-gradient(135deg, var(--hm-dark) 0%, var(--hm-primary) 60%, #2C5A82 100%);
    padding: 70px 20px 60px;
    width: 100%;
}
.hm-hero-inner {
    max-width: var(--hm-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}
.hm-hero-text {
    flex: 1 1 55%;
    min-width: 0;
}
.hm-hero-image {
    flex: 1 1 40%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hm-hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
}
.hm-hero-tagline {
    color: var(--hm-accent);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 12px;
}
.hm-hero h1 {
    color: var(--hm-white);
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.25;
    letter-spacing: -0.5px;
}
.hm-hero-sub {
    color: #B0BFCF;
    font-size: 15px;
    margin: 0 0 28px;
    line-height: 1.7;
}
.hm-hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.hm-hero-trust {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}
.hm-hero-trust span {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 500;
}

/* === BUTTONS === */
.hm-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.25s ease;
    cursor: pointer;
    line-height: 1.4;
}
.hm-btn-primary {
    background: var(--hm-accent);
    color: var(--hm-white) !important;
    border: 2px solid var(--hm-accent);
}
.hm-btn-primary:hover {
    background: var(--hm-accent-hover);
    border-color: var(--hm-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212,133,74,0.30);
}
.hm-btn-outline {
    background: transparent;
    color: var(--hm-white) !important;
    border: 2px solid rgba(255,255,255,0.5);
}
.hm-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--hm-white);
    color: var(--hm-white) !important;
}
.hm-btn-dark {
    background: var(--hm-primary);
    color: var(--hm-white) !important;
    border: 2px solid var(--hm-primary);
}
.hm-btn-dark:hover {
    background: var(--hm-dark);
    border-color: var(--hm-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19,43,71,0.3);
}
.hm-btn-white {
    background: var(--hm-white);
    color: var(--hm-accent) !important;
    border: 2px solid var(--hm-white);
    font-weight: 700;
}
.hm-btn-white:hover {
    background: transparent;
    color: var(--hm-white) !important;
    border-color: var(--hm-white);
}

/* === SECTIONS === */
.hm-section {
    padding: 60px 20px;
    max-width: var(--hm-max-width);
    margin: 0 auto;
}
.hm-section-full {
    padding: 60px 20px;
    width: 100%;
}
.hm-section-gray {
    background: var(--hm-bg-gray);
}
.hm-section-constrained {
    max-width: var(--hm-max-width);
    margin: 0 auto;
}
.hm-section-title {
    color: var(--hm-primary);
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 8px;
}
.hm-section-subtitle {
    text-align: center;
    color: var(--hm-text-light);
    font-size: 15px;
    margin: 0 0 36px;
    line-height: 1.5;
}
.hm-center { text-align: center; }

/* === BRANDS GRID === */
.hm-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    padding: 10px 0;
}
.hm-brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    padding: 20px 16px;
    border: 2px solid var(--hm-border);
    border-radius: var(--hm-radius);
    transition: all 0.25s ease;
    background: var(--hm-white);
    min-height: 100px;
}
.hm-brand-item:hover {
    border-color: var(--hm-accent);
    box-shadow: 0 4px 16px rgba(212,133,74,0.12);
    transform: translateY(-3px);
}
.hm-brand-logo {
    max-height: 40px;
    max-width: 120px;
    object-fit: contain;
    margin-bottom: 8px;
}
.hm-brand-name {
    color: var(--hm-primary);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
}
.hm-brand-count {
    color: var(--hm-text-light);
    font-size: 11px;
    margin-top: 4px;
}

/* === CATEGORY CARDS === */
.hm-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.hm-cat-card {
    background: var(--hm-white);
    border: 1px solid var(--hm-border);
    border-radius: 12px;
    padding: 32px 24px 28px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
}
.hm-cat-card:hover {
    border-color: var(--hm-accent);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}
.hm-cat-card a {
    text-decoration: none !important;
    display: block;
}
.hm-cat-svg {
    color: var(--hm-accent);
    margin-bottom: 16px;
}
.hm-cat-card:hover .hm-cat-svg {
    color: var(--hm-primary);
}
.hm-cat-card h3 {
    color: var(--hm-primary);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}
.hm-cat-card p {
    color: var(--hm-text-light);
    font-size: 14px;
    margin: 0 0 12px;
    line-height: 1.5;
}
.hm-cat-arrow {
    color: var(--hm-accent);
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.hm-cat-card:hover .hm-cat-arrow {
    opacity: 1;
}

/* === CTA === */
.hm-cta {
    background: linear-gradient(135deg, #D4854A, #B86A36);
    padding: 70px 20px;
    text-align: center;
    width: 100%;
}
.hm-cta-inner {
    max-width: 700px;
    margin: 0 auto;
}
.hm-cta h2 {
    color: var(--hm-white);
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 16px;
}
.hm-cta p {
    color: rgba(255,255,255,0.92);
    font-size: 16px;
    margin: 0 0 28px;
    line-height: 1.7;
}
.hm-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* === SITE FOOTER === */
.hm-site-footer {
    background: var(--hm-dark);
    color: rgba(255,255,255,0.8);
    padding: 50px 20px 30px;
    width: 100%;
}
.hm-footer-inner {
    max-width: var(--hm-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.hm-footer-col h4 {
    color: var(--hm-white);
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hm-footer-col p {
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 12px;
    color: rgba(255,255,255,0.65);
}
.hm-footer-col a {
    color: rgba(255,255,255,0.65) !important;
    font-size: 13px;
    text-decoration: none !important;
    display: block;
    padding: 4px 0;
    transition: color 0.2s;
}
.hm-footer-col a:hover {
    color: var(--hm-accent) !important;
}
.hm-footer-bottom {
    max-width: var(--hm-max-width);
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}

/* === WOOCOMMERCE PRODUCT CARDS === */
.woocommerce ul.products li.product {
    background: var(--hm-white);
    border: 1px solid var(--hm-border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.woocommerce ul.products li.product:hover {
    border-color: var(--hm-accent);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--hm-primary) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}
.woocommerce ul.products li.product .price {
    color: var(--hm-accent) !important;
    font-weight: 700 !important;
}
.woocommerce ul.products li.product img {
    border-radius: 8px;
}
.woocommerce ul.products li.product .button {
    background: var(--hm-primary) !important;
    color: var(--hm-white) !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    border: none !important;
}
.woocommerce ul.products li.product .button:hover {
    background: var(--hm-accent) !important;
}

/* === GLOBAL BUTTONS === */
.wp-element-button,
button.single_add_to_cart_button,
.woocommerce .button,
input[type="submit"] {
    background-color: var(--hm-accent) !important;
    color: var(--hm-white) !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
    padding: 12px 24px !important;
    cursor: pointer;
}
.wp-element-button:hover,
button.single_add_to_cart_button:hover,
.woocommerce .button:hover,
input[type="submit"]:hover {
    background-color: var(--hm-accent-hover) !important;
}

/* === SINGLE PRODUCT PAGE === */
/* -- Breadcrumb -- */
.woocommerce-breadcrumb {
    font-size: 13px;
    color: var(--hm-text-light);
    padding: 12px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--hm-border);
}
.woocommerce-breadcrumb a {
    color: var(--hm-accent);
    text-decoration: none;
}
.woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

/* -- Product Layout (gallery left, summary right) -- */
.single-product div.product {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding-top: 12px;
}
.single-product div.product div.images {
    flex: 0 0 48%;
    max-width: 48%;
}
.single-product div.product div.summary {
    flex: 0 0 48%;
    max-width: 48%;
}

/* -- Product Gallery Images -- */
.single-product div.product div.images img {
    border-radius: 8px;
    border: 1px solid var(--hm-border);
}
.single-product div.product div.images .flex-control-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    list-style: none;
    padding: 0;
}
.single-product div.product div.images .flex-control-thumbs li {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 6px;
    border: 2px solid var(--hm-border);
    cursor: pointer;
    transition: border-color 0.2s;
}
.single-product div.product div.images .flex-control-thumbs li:hover,
.single-product div.product div.images .flex-control-thumbs li .flex-active {
    border-color: var(--hm-accent);
}
.single-product div.product div.images .flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    border-radius: 0;
}

/* -- Product Title -- */
.single-product .product_title {
    color: var(--hm-primary) !important;
    font-weight: 700 !important;
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 8px;
}

/* -- SKU -- */
.single-product .product_meta {
    font-size: 13px;
    color: var(--hm-text-light);
    margin-bottom: 12px;
}
.single-product .product_meta .sku_wrapper {
    display: block;
    margin-bottom: 4px;
}
.single-product .product_meta .sku {
    font-weight: 600;
    color: var(--hm-text);
}

/* -- Price -- */
.single-product .price {
    color: var(--hm-accent) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin: 8px 0;
    display: block;
}
.single-product .price del {
    font-size: 18px;
    color: var(--hm-text-light) !important;
    font-weight: 400;
}
.single-product .price ins {
    text-decoration: none;
}

/* -- Short Description -- */
.single-product .woocommerce-product-details__short-description {
    font-size: 13px;
    line-height: 1.6;
    color: var(--hm-text);
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--hm-border);
}

/* -- Quantity + Add to Cart Row -- */
.single-product form.cart {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.single-product form.cart .quantity {
    display: flex;
    align-items: center;
}
.single-product form.cart .quantity input[type="number"] {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid var(--hm-border);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    appearance: textfield;
    -moz-appearance: textfield;
}
.single-product form.cart .quantity input[type="number"]::-webkit-inner-spin-button,
.single-product form.cart .quantity input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}
.single-product form.cart button.single_add_to_cart_button {
    background: var(--hm-accent) !important;
    color: var(--hm-white) !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 8px 28px !important;
    cursor: pointer;
    transition: background 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 40px;
}
.single-product form.cart button.single_add_to_cart_button:hover {
    background: var(--hm-accent-hover) !important;
}

/* -- Wishlist / Compare links under add to cart -- */
.single-product .yith-wcwl-add-to-wishlist,
.single-product .compare-button {
    margin-top: 8px;
}

/* -- Product Tabs (Description / Reviews) -- */
.single-product .woocommerce-tabs {
    width: 100%;
    margin-top: 20px;
    clear: both;
}
.single-product .woocommerce-tabs ul.tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 -1px 0;
    border-bottom: 2px solid var(--hm-border);
}
.single-product .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
}
.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
    content: none !important;
}
.single-product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--hm-text-light);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    background: none !important;
}
.single-product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--hm-primary);
}
.single-product .woocommerce-tabs ul.tabs li.active a {
    color: var(--hm-accent);
    border-bottom: 2px solid var(--hm-accent);
}
.single-product .woocommerce-tabs .panel {
    padding: 14px 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--hm-text);
}
/* Hide duplicate tab title inside panel (WooCommerce auto-generates it) */
.single-product .woocommerce-tabs .panel > h2:first-child {
    display: none !important;
}

/* -- Specs Table inside Description -- */
.single-product .woocommerce-tabs .panel table,
.single-product .woocommerce-Tabs-panel table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}
.single-product .woocommerce-tabs .panel table th,
.single-product .woocommerce-tabs .panel table td,
.single-product .woocommerce-Tabs-panel table th,
.single-product .woocommerce-Tabs-panel table td {
    padding: 10px 16px;
    border: 1px solid var(--hm-border);
    text-align: left;
}
.single-product .woocommerce-tabs .panel table th,
.single-product .woocommerce-Tabs-panel table th {
    background: var(--hm-bg-gray);
    font-weight: 600;
    color: var(--hm-primary);
    width: 35%;
}
.single-product .woocommerce-tabs .panel table tr:nth-child(even),
.single-product .woocommerce-Tabs-panel table tr:nth-child(even) {
    background: var(--hm-bg-gray);
}

/* -- Attributes Table (WooCommerce additional info) -- */
.single-product table.shop_attributes {
    width: 100%;
    border-collapse: collapse;
}
.single-product table.shop_attributes th {
    background: var(--hm-bg-gray);
    font-weight: 600;
    color: var(--hm-primary);
    padding: 10px 16px;
    border: 1px solid var(--hm-border);
    text-align: left;
    width: 35%;
}
.single-product table.shop_attributes td {
    padding: 10px 16px;
    border: 1px solid var(--hm-border);
}

/* -- Contact Form (CF7) in Product Page -- */
.single-product .summary .wpcf7 {
    background: var(--hm-bg-gray);
    border: 1px solid var(--hm-border);
    border-radius: 6px;
    padding: 10px 12px;
    margin: 6px 0;
}
/* Kill all p margins inside CF7 */
.single-product .summary .wpcf7 p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4;
}
/* Kill <br> between label and input (CF7 auto-inserts these) */
.single-product .summary .wpcf7 .field p br {
    display: none !important;
}
/* Inquiry card container */
.single-product .summary .inquiry-card {
    padding: 0;
}
/* Title */
.single-product .summary .inquiry-card .inquiry-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px 0;
    padding: 0;
    color: var(--hm-primary);
}
/* Grid layout: 2 columns */
.single-product .summary .inquiry-card .inquiry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
}
/* Full-width field (Message) */
.single-product .summary .inquiry-card .field--full {
    grid-column: 1 / -1;
}
/* Each field block */
.single-product .summary .inquiry-card .field {
    margin: 0;
    padding: 0;
}
/* Labels */
.single-product .summary .wpcf7 label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--hm-primary);
    margin-bottom: 2px;
    line-height: 1.3;
}
/* CF7 span wrapper */
.single-product .summary .wpcf7 .wpcf7-form-control-wrap {
    display: block;
}
/* Inputs */
.single-product .summary .wpcf7 input[type="text"],
.single-product .summary .wpcf7 input[type="email"],
.single-product .summary .wpcf7 input[type="tel"],
.single-product .summary .wpcf7 input[type="number"],
.single-product .summary .wpcf7 textarea,
.single-product .summary .wpcf7 select {
    width: 100%;
    padding: 4px 8px;
    border: 1px solid var(--hm-border);
    border-radius: 4px;
    font-size: 12px;
    background: var(--hm-white);
    transition: border-color 0.2s;
    font-family: inherit;
    height: 28px;
    box-sizing: border-box;
    margin: 0;
}
.single-product .summary .wpcf7 input:focus,
.single-product .summary .wpcf7 textarea:focus,
.single-product .summary .wpcf7 select:focus {
    border-color: var(--hm-accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(212,133,74,0.15);
}
.single-product .summary .wpcf7 textarea {
    min-height: 50px;
    height: auto;
    resize: vertical;
}
/* Actions row */
.single-product .summary .inquiry-card .actions {
    margin-top: 8px;
}
/* Submit button */
.single-product .summary .wpcf7 input[type="submit"] {
    background: var(--hm-accent) !important;
    color: var(--hm-white) !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 700;
    font-size: 12px;
    padding: 0 16px !important;
    cursor: pointer;
    transition: background 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: auto;
    height: 28px;
    line-height: 28px !important;
    box-sizing: border-box;
    display: inline-block;
    vertical-align: middle;
}
.single-product .summary .wpcf7 input[type="submit"]:hover {
    background: var(--hm-accent-hover) !important;
}

/* -- Cart + WhatsApp Row -- */
.single-product .summary .hm-cart-wa-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}
.single-product .summary .hm-cart-wa-row form.cart {
    margin: 0 !important;
    padding: 0;
}
/* -- WhatsApp Button (custom, no plugin) -- */
.hm-wa-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #25D366;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 0 28px;
    height: 40px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.25s ease;
    box-sizing: border-box;
    flex-shrink: 0;
    white-space: nowrap;
}
.hm-wa-btn:hover {
    background: #1da851;
    color: #fff !important;
}
.hm-wa-btn svg {
    flex-shrink: 0;
}

/* -- Related Products -- */
.single-product .related.products {
    width: 100%;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--hm-border);
    clear: both;
}
.single-product .related.products > h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--hm-primary);
    margin-bottom: 16px;
}
.single-product .related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.single-product .related.products ul.products::before,
.single-product .related.products ul.products::after {
    display: none !important;
    content: none !important;
}
.single-product .related.products ul.products li.product {
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    padding: 12px;
    transition: box-shadow 0.2s, transform 0.2s;
    background: var(--hm-white);
    text-align: center;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}
.single-product .related.products ul.products li.product:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.single-product .related.products ul.products li.product a img {
    border-radius: 6px;
    margin-bottom: 8px;
    width: 100%;
    height: auto;
}
.single-product .related.products ul.products li.product .woocommerce-loop-product__title {
    font-size: 12px !important;
    font-weight: 600;
    color: var(--hm-text);
    margin-bottom: 4px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.single-product .related.products ul.products li.product .price {
    font-size: 14px !important;
    color: var(--hm-accent) !important;
    font-weight: 700 !important;
    margin: 4px 0;
}
.single-product .related.products ul.products li.product .button,
.single-product .related.products ul.products li.product a.add_to_cart_button {
    display: inline-block;
    background: var(--hm-accent) !important;
    color: var(--hm-white) !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 700;
    padding: 0 20px !important;
    height: 36px;
    line-height: 36px !important;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
    box-sizing: border-box;
}
.single-product .related.products ul.products li.product .button:hover,
.single-product .related.products ul.products li.product a.add_to_cart_button:hover {
    background: var(--hm-accent-hover) !important;
}
/* Button row wrapper inside related products */
.single-product .related.products ul.products li.product .hm-related-btn-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}
.single-product .related.products ul.products li.product .hm-related-btn-row .button,
.single-product .related.products ul.products li.product .hm-related-btn-row a.add_to_cart_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    padding: 0 10px !important;
    font-size: 11px !important;
}
/* Small WhatsApp button for related products */
.hm-wa-btn.hm-wa-btn-sm {
    padding: 0 10px;
    height: 36px;
    font-size: 11px;
    flex: 1 1 auto;
    min-width: 0;
}

/* -- Product meta (categories, tags) -- */
.single-product .posted_in,
.single-product .tagged_as {
    font-size: 13px;
    color: var(--hm-text-light);
    margin-bottom: 4px;
}
.single-product .posted_in a,
.single-product .tagged_as a {
    color: var(--hm-accent);
}

/* -- Description content styling -- */
.single-product .woocommerce-tabs .panel h3,
.single-product .woocommerce-tabs .panel h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--hm-primary);
    margin: 14px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--hm-border);
}
.single-product .woocommerce-tabs .panel ul {
    padding-left: 18px;
    margin: 6px 0;
}
.single-product .woocommerce-tabs .panel ul li {
    margin-bottom: 3px;
    line-height: 1.6;
    position: relative;
    padding-left: 4px;
    font-size: 13px;
}
.single-product .woocommerce-tabs .panel p {
    margin-bottom: 8px;
    font-size: 13px;
}
.single-product .woocommerce-tabs .panel strong {
    color: var(--hm-primary);
}

/* -- Responsive single product -- */
@media (max-width: 960px) {
    .single-product .related.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 768px) {
    .single-product div.product {
        flex-direction: column;
        gap: 14px;
    }
    .single-product div.product div.images,
    .single-product div.product div.summary {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .single-product .price {
        font-size: 20px !important;
    }
    .single-product .product_title {
        font-size: 18px;
    }
    .single-product .related.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* === MAIN CONTENT AREA === */
.hm-site-main {
    min-height: 60vh;
}
.hm-content-wrap {
    max-width: var(--hm-max-width);
    margin: 0 auto;
    padding: 40px 20px;
}

/* === WHATSAPP FLOAT (if plugin) === */
/* WhatsApp buttons handled by plugin CSS */

/* === RESPONSIVE === */
@media (max-width: 960px) {
    .hm-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .hm-main-nav { gap: 16px; }
}
@media (max-width: 768px) {
    .hm-hero-inner { flex-direction: column; gap: 24px; }
    .hm-hero-text { flex: 1 1 100%; text-align: center; }
    .hm-hero-image { flex: 1 1 100%; }
    .hm-hero-image img { max-width: 80%; }
    .hm-hero-buttons { justify-content: center; }
    .hm-hero-trust { justify-content: center; }
    .hm-hero h1 { font-size: 26px; }
    .hm-hero { padding: 50px 20px 40px; }
    .hm-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .hm-section-title { font-size: 22px; }
    .hm-brands-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
    .hm-usp-inner { gap: 16px; }
    .hm-usp-item { font-size: 11px; }
    .hm-header-inner { height: 56px; }
    .hm-main-nav { display: none; }
    .hm-footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 480px) {
    .hm-cat-grid { grid-template-columns: 1fr; }
    .hm-hero h1 { font-size: 22px; }
    .hm-brands-grid { grid-template-columns: repeat(2, 1fr); }
    .hm-usp-inner { gap: 8px 16px; }
}
