/*
Theme Name: Just Handles Lightweight
Theme URI: https://justhandles.com.au/
Author: Just Handles
Description: Lightweight WooCommerce theme for Just Handles. Native WordPress editing, no Elementor dependency.
Version: 1.3.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: just-handles-lightweight
*/

:root {
    --jh-navy: #14283f;
    --jh-navy-2: #203f5f;
    --jh-blue: #2e6fa3;
    --jh-orange: #df7a28;
    --jh-cream: #f5f2eb;
    --jh-paper: #ffffff;
    --jh-text: #1e2933;
    --jh-muted: #687681;
    --jh-border: #dfe5e8;
    --jh-success: #2f7d4a;
    --jh-shadow: 0 12px 32px rgba(20, 40, 63, 0.09);
    --jh-radius: 14px;
    --jh-width: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: #fff;
    color: var(--jh-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}
a { color: var(--jh-blue); text-decoration: none; }
a:hover, a:focus { color: var(--jh-orange); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

.jh-container {
    width: min(calc(100% - 32px), var(--jh-width));
    margin-inline: auto;
}

.jh-skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 99999;
    background: #fff;
    color: #111;
    padding: 10px 14px;
    border-radius: 6px;
}
.jh-skip-link:focus { left: 8px; }

/* Header */
.jh-topbar {
    background: var(--jh-navy);
    color: #fff;
    font-size: 14px;
}
.jh-topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.jh-topbar a { color: #fff; }
.jh-topbar a:hover { color: #ffd7b2; }

.jh-header-main {
    background: #fff;
    border-bottom: 1px solid var(--jh-border);
}
.jh-header-main-inner {
    display: grid;
    grid-template-columns: minmax(190px, 280px) minmax(280px, 1fr) auto;
    gap: 28px;
    align-items: center;
    min-height: 96px;
}
.jh-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--jh-navy); }
.jh-brand:hover { color: var(--jh-navy); }
.jh-brand .custom-logo { max-height: 68px; width: auto; }
.jh-brand-text { display: flex; flex-direction: column; line-height: 1; }
.jh-brand-title { font-size: clamp(25px, 3vw, 38px); font-weight: 800; letter-spacing: -1px; }
.jh-brand-title span { color: var(--jh-orange); }
.jh-brand-subtitle { margin-top: 6px; font-size: 12px; color: var(--jh-muted); text-transform: uppercase; letter-spacing: .08em; }

.jh-search .search-form { display: flex; width: 100%; }
.jh-search label { flex: 1; }
.jh-search .search-field {
    width: 100%;
    min-height: 48px;
    border: 1px solid #ccd6dd;
    border-right: 0;
    border-radius: 10px 0 0 10px;
    padding: 0 16px;
    background: #f8fafb;
}
.jh-search .search-submit {
    min-width: 94px;
    border: 0;
    border-radius: 0 10px 10px 0;
    background: var(--jh-orange);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.jh-header-actions { display: flex; align-items: center; gap: 12px; }
.jh-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--jh-border);
    border-radius: 10px;
    color: var(--jh-navy);
    font-weight: 700;
    background: #fff;
}
.jh-action-link:hover { border-color: var(--jh-orange); }
.jh-cart-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    margin-left: 7px;
    border-radius: 999px;
    background: var(--jh-orange);
    color: #fff;
    font-size: 12px;
}

.jh-nav-wrap { background: var(--jh-navy-2); }
.jh-nav-inner { position: relative; display: flex; align-items: center; min-height: 50px; }
.jh-menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #fff;
    padding: 12px 0;
    font-weight: 800;
    cursor: pointer;
}
.jh-primary-nav { width: 100%; }
.jh-primary-nav ul { list-style: none; margin: 0; padding: 0; }
.jh-primary-nav > ul, .jh-primary-nav .menu { display: flex; align-items: stretch; flex-wrap: wrap; }
.jh-primary-nav li { position: relative; }
.jh-primary-nav > ul > li > a, .jh-primary-nav .menu > li > a {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0 17px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}
.jh-primary-nav > ul > li:hover > a, .jh-primary-nav .menu > li:hover > a { background: rgba(255,255,255,.08); color: #fff; }
.jh-primary-nav .sub-menu, .jh-primary-nav .children {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 240px;
    padding: 8px 0;
    background: #fff;
    border: 1px solid var(--jh-border);
    border-radius: 0 0 10px 10px;
    box-shadow: var(--jh-shadow);
}
.jh-primary-nav li:hover > .sub-menu, .jh-primary-nav li:hover > .children,
.jh-primary-nav li:focus-within > .sub-menu, .jh-primary-nav li:focus-within > .children { display: block; }
.jh-primary-nav .sub-menu a, .jh-primary-nav .children a {
    display: block;
    padding: 10px 16px;
    color: var(--jh-text);
    font-size: 14px;
}
.jh-primary-nav .sub-menu a:hover, .jh-primary-nav .children a:hover { background: #f5f7f8; color: var(--jh-orange); }

/* Main */
.site-main { min-height: 52vh; }
.jh-content-shell { padding: 42px 0 64px; }
.entry-header { margin-bottom: 24px; }
.entry-title { margin: 0; color: var(--jh-navy); font-size: clamp(30px, 4vw, 48px); line-height: 1.15; }
.entry-content > * { max-width: var(--jh-width); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: 1380px; }
.entry-content > .alignfull { max-width: none; }

/* Homepage blocks inserted by setup */
.jh-home-hero {
    position: relative;
    overflow: hidden;
    margin: 0 !important;
    max-width: none !important;
    padding: clamp(52px, 8vw, 96px) 20px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 24%, rgba(223,122,40,.38), transparent 25%),
        linear-gradient(120deg, #14283f 0%, #21496e 62%, #2e6fa3 100%);
}
.jh-home-hero .wp-block-group__inner-container,
.jh-home-hero > * { position: relative; z-index: 1; }
.jh-home-hero h1 { max-width: 820px; margin: 0 0 18px; color: #fff; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -2px; }
.jh-home-hero p { max-width: 720px; margin: 0 0 28px; color: #eef7ff; font-size: clamp(17px, 2vw, 21px); }
.jh-home-hero .wp-block-button__link { border-radius: 10px; padding: 13px 22px; font-weight: 800; }
.jh-home-hero .is-style-fill .wp-block-button__link { background: var(--jh-orange); }
.jh-home-hero .is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.75); }

.jh-home-section { padding: 46px 0; }
.jh-home-section.is-alt { background: #f6f8f9; }
.jh-section-heading { margin-bottom: 22px; text-align: center; }
.jh-section-heading h2 { margin: 0 0 8px; color: var(--jh-navy); font-size: clamp(28px, 4vw, 42px); }
.jh-section-heading p { margin: 0; color: var(--jh-muted); }

.jh-trust-strip {
    margin: 0 !important;
    max-width: none !important;
    padding: 24px 20px;
    background: var(--jh-cream);
    border-top: 1px solid #e6dfd2;
    border-bottom: 1px solid #e6dfd2;
}
.jh-trust-strip .wp-block-columns { max-width: var(--jh-width); margin: 0 auto; gap: 18px; }
.jh-trust-strip .wp-block-column { text-align: center; }
.jh-trust-strip strong { display: block; color: var(--jh-navy); }
.jh-trust-strip p { margin: 3px 0 0; color: var(--jh-muted); font-size: 14px; }

/* WooCommerce */
.woocommerce .woocommerce-breadcrumb { margin: 0 0 20px; color: var(--jh-muted); }
.woocommerce-products-header__title.page-title,
.woocommerce div.product .product_title { color: var(--jh-navy); }

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 18px;
    margin: 0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }

.woocommerce ul.products li.product {
    position: relative;
    display: flex;
    flex-direction: column;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 12px 12px 14px;
    border: 1px solid var(--jh-border);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(20,40,63,.045);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.woocommerce ul.products li.product:hover {
    transform: translateY(-2px);
    border-color: #cad6dc;
    box-shadow: 0 10px 25px rgba(20,40,63,.08);
}
.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}
.woocommerce ul.products li.product a img {
    display: block;
    width: 100%;
    height: 205px;
    margin: 0 0 11px;
    object-fit: contain;
    object-position: center;
    border-radius: 9px;
    background: #fff;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    display: -webkit-box;
    min-height: 64px;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: var(--jh-text);
    font-size: 15px;
    line-height: 1.4;
}
.woocommerce ul.products li.product .price {
    min-height: 26px;
    margin: 7px 0 0;
    color: var(--jh-navy);
    font-size: 14px;
    font-weight: 800;
}
.woocommerce ul.products li.product .button {
    align-self: flex-start;
    margin-top: 12px;
    padding: 10px 15px;
    font-size: 14px;
}
.woocommerce span.onsale {
    top: -7px;
    right: -7px;
    left: auto;
    z-index: 4;
    min-height: auto;
    min-width: auto;
    padding: 5px 8px;
    line-height: 1.2;
    border-radius: 7px;
    background: var(--jh-orange);
    font-size: 12px;
}

/* Category cards are deliberately shorter than product cards. */
.jh-category-section .woocommerce ul.products {
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 18px;
}
.jh-category-section .woocommerce ul.products li.product-category {
    padding: 10px 10px 12px;
    min-height: 0;
}
.jh-category-section .woocommerce ul.products li.product-category a {
    display: block;
}
.jh-category-section .woocommerce ul.products li.product-category img,
.jh-category-section .jh-category-image {
    width: 100%;
    height: 155px;
    margin: 0 0 8px;
    object-fit: contain;
    object-position: center;
    border-radius: 9px;
    background: #fff;
}
.jh-category-image-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 155px;
    margin-bottom: 8px;
    border-radius: 9px;
    background: linear-gradient(135deg, #eef3f6, #f9fbfc);
    color: #7890a2;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -.04em;
}
.jh-category-section .woocommerce-loop-category__title {
    min-height: 0 !important;
    margin: 0 !important;
    color: var(--jh-navy) !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
}
.jh-category-section .woocommerce-loop-category__title mark.count {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #eef3f6;
    color: var(--jh-muted);
    font-size: 11px;
    font-weight: 700;
}

.jh-popular-section,
.jh-sale-section { overflow: hidden; }
.jh-section-action {
    justify-content: center;
    margin-top: 24px;
}
.jh-section-action .wp-block-button__link {
    border-color: var(--jh-navy);
    color: var(--jh-navy);
    border-radius: 9px;
    font-weight: 800;
}
.jh-section-action .wp-block-button__link:hover {
    background: var(--jh-navy);
    color: #fff;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: var(--jh-navy);
    color: #fff;
    border-radius: 9px;
    font-weight: 700;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover { background: var(--jh-orange); color: #fff; }
.woocommerce .quantity .qty { min-height: 42px; }
.woocommerce div.product div.images img { border-radius: var(--jh-radius); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 8px 8px 0 0; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--jh-blue); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--jh-blue); }

/* Footer */
.jh-footer { margin-top: 70px; background: var(--jh-navy); color: #dce7ef; }
.jh-footer-main { padding: 52px 0 36px; }
.jh-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 56px; }
.jh-footer h2, .jh-footer h3 { color: #fff; margin-top: 0; }
.jh-footer p { color: #c5d3dc; }
.jh-footer ul { list-style: none; margin: 0; padding: 0; }
.jh-footer li { margin: 8px 0; }
.jh-footer a { color: #dce7ef; }
.jh-footer a:hover { color: #ffb36e; }
.jh-footer-bottom { border-top: 1px solid rgba(255,255,255,.13); padding: 19px 0; font-size: 13px; color: #b8c7d2; }
.jh-footer-bottom-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }

/* Forms */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="number"], textarea, select {
    max-width: 100%;
    border: 1px solid #cbd5dc;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
}

/* Pagination */
.nav-links, .woocommerce nav.woocommerce-pagination ul { display: flex; gap: 6px; flex-wrap: wrap; }
.page-numbers, .woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid var(--jh-border);
    border-radius: 7px;
}

@media (max-width: 980px) {
    .jh-header-main-inner { grid-template-columns: 1fr auto; gap: 16px; min-height: 84px; }
    .jh-search { grid-column: 1 / -1; order: 3; padding-bottom: 16px; }
    .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .jh-category-section .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .woocommerce ul.products li.product a img { height: 190px; }
    .jh-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .jh-topbar-inner { justify-content: center; text-align: center; }
    .jh-topbar-meta { display: none; }
    .jh-header-main-inner { grid-template-columns: 1fr auto; }
    .jh-brand-subtitle { display: none; }
    .jh-action-account { display: none; }
    .jh-menu-toggle { display: block; }
    .jh-primary-nav { display: none; position: absolute; top: 100%; left: -16px; right: -16px; z-index: 9999; background: var(--jh-navy-2); padding: 8px 16px 16px; }
    .jh-primary-nav.is-open { display: block; }
    .jh-primary-nav > ul, .jh-primary-nav .menu { display: block; }
    .jh-primary-nav > ul > li > a, .jh-primary-nav .menu > li > a { min-height: 44px; padding: 0 10px; }
    .jh-primary-nav .sub-menu, .jh-primary-nav .children { position: static; display: block; min-width: 0; padding: 0 0 5px 14px; border: 0; box-shadow: none; background: rgba(0,0,0,.08); }
    .jh-primary-nav .sub-menu a, .jh-primary-nav .children a { color: #fff; }
    .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
    .jh-category-section .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
    .woocommerce ul.products li.product a img { height: 175px; }
    .jh-category-section .woocommerce ul.products li.product-category img, .jh-category-section .jh-category-image, .jh-category-image-fallback { height: 135px; }
    .jh-footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .jh-footer-bottom-inner { display: block; text-align: center; }
}

@media (max-width: 460px) {
    .jh-container { width: min(calc(100% - 22px), var(--jh-width)); }
    .jh-brand-title { font-size: 24px; }
    .jh-search .search-submit { min-width: 72px; }
    .woocommerce ul.products { grid-template-columns: 1fr 1fr; gap: 10px; }
    .woocommerce ul.products li.product { padding: 9px; }
    .woocommerce ul.products li.product a img { height: 150px; }
    .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px; }
}


/* =========================================================
   v1.2 retail density, sale presentation & checkout polish
   ========================================================= */

/* A shorter, more retail-focused hero with a real product deal on the right. */
.jh-home-hero.jh-home-hero-retail {
    padding: clamp(34px, 5vw, 58px) 20px;
}
.jh-home-hero-retail .jh-hero-columns {
    width: min(100%, var(--jh-width));
    margin: 0 auto;
    gap: clamp(28px, 5vw, 64px);
}
.jh-home-hero-retail h1 {
    max-width: 720px;
    margin-bottom: 14px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.02;
}
.jh-home-hero-retail p {
    max-width: 680px;
    margin-bottom: 20px;
    font-size: clamp(16px, 1.65vw, 19px);
}
.jh-hero-kicker {
    margin-bottom: 10px !important;
    color: #ffbb80 !important;
    font-size: 12px !important;
    font-weight: 900;
    letter-spacing: .14em;
}
.jh-hero-actions { gap: 10px; }
.jh-home-hero-retail .wp-block-button__link { padding: 11px 18px; }

.jh-hero-deal {
    position: relative;
    display: grid;
    grid-template-columns: 112px 1fr;
    grid-template-areas:
        "image eyebrow"
        "image title"
        "image price"
        "image countdown"
        "image cta";
    gap: 3px 16px;
    min-height: 190px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 16px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 44px rgba(7,22,38,.22);
    color: var(--jh-text);
    transition: transform .18s ease, box-shadow .18s ease;
}
.jh-hero-deal:hover { transform: translateY(-2px); color: var(--jh-text); box-shadow: 0 22px 50px rgba(7,22,38,.28); }
.jh-deal-eyebrow { grid-area: eyebrow; align-self: end; color: var(--jh-orange); font-size: 11px; font-weight: 900; letter-spacing: .11em; }
.jh-deal-discount {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 6px 9px;
    border-radius: 8px;
    background: #cf3f2e;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 5px 14px rgba(207,63,46,.25);
}
.jh-deal-image { grid-area: image; display: grid; place-items: center; align-self: stretch; border-radius: 11px; background: #f7f9fa; overflow: hidden; }
.jh-deal-image img { width: 100%; height: 150px; object-fit: contain; margin: 0; }
.jh-deal-title { grid-area: title; align-self: center; padding-right: 54px; color: var(--jh-navy); font-size: 15px; line-height: 1.3; }
.jh-deal-price { grid-area: price; color: var(--jh-navy); font-size: 18px; font-weight: 900; }
.jh-deal-price del { color: #788691; font-size: 12px; font-weight: 600; opacity: 1; }
.jh-deal-price ins { color: #cf3f2e; text-decoration: none; font-size: 21px; }
.jh-deal-cta { grid-area: cta; align-self: end; color: var(--jh-orange); font-size: 13px; font-weight: 900; }
.jh-hero-deal-empty { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 170px; }
.jh-hero-deal-empty strong { color: var(--jh-navy); font-size: 20px; }

/* Pull the store content up and reduce unused vertical space. */
.jh-home-section { padding: 34px 0; }
.jh-section-heading { margin-bottom: 18px; }
.jh-section-heading-compact h2 { margin-bottom: 3px; font-size: clamp(27px, 3.5vw, 38px); }
.jh-section-heading-compact p { font-size: 14px; }

/* Category navigation is now a compact retail strip rather than tall cards. */
.jh-category-section .woocommerce ul.products {
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: 12px;
}
.jh-category-section .woocommerce ul.products li.product-category { padding: 9px; }
.jh-category-section .woocommerce ul.products li.product-category img,
.jh-category-section .jh-category-image,
.jh-category-image-fallback { height: 112px; margin-bottom: 7px; }
.jh-category-section .woocommerce-loop-category__title { font-size: 13px !important; }
.jh-category-section .woocommerce-loop-category__title mark.count { font-size: 10px; padding: 0 5px; }

/* Trust signals sit after the products instead of interrupting shopping flow. */
.jh-trust-strip-bottom { margin-top: 6px !important; border-top: 0; padding: 20px; }
.jh-trust-strip-bottom + * { margin-top: 0; }
.home .jh-footer { margin-top: 0; }

/* Stronger sale presentation everywhere WooCommerce prints a price. */
.woocommerce .price del,
.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
    color: #7c8992;
    opacity: 1;
    font-size: .78em;
    font-weight: 600;
}
.woocommerce .price ins,
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
    color: #cf3f2e;
    text-decoration: none;
    font-weight: 900;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--jh-navy);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
}
.woocommerce ul.products li.product .price ins { font-size: 17px; }
.woocommerce ul.products li.product.sale .price { color: #cf3f2e; }

.woocommerce span.onsale.jh-discount-badge,
.woocommerce span.onsale {
    top: 9px;
    right: 9px;
    left: auto;
    min-height: 0;
    min-width: 0;
    padding: 7px 9px;
    border-radius: 8px;
    background: #cf3f2e;
    color: #fff;
    line-height: 1;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 5px 14px rgba(207,63,46,.23);
}

/* Sale cards get an orange action instead of a generic dark Buy Now button. */
.woocommerce ul.products li.product.sale .button,
.woocommerce ul.products li.product.sale a.button {
    background: var(--jh-orange);
    color: #fff;
    box-shadow: 0 5px 14px rgba(223,122,40,.18);
}
.woocommerce ul.products li.product.sale .button:hover,
.woocommerce ul.products li.product.sale a.button:hover { background: #c96518; color: #fff; }

/* Single-product action and genuine urgency panel. */
.single-product div.product .summary .cart .single_add_to_cart_button {
    min-height: 50px;
    padding-inline: 24px;
    background: var(--jh-orange);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 7px 18px rgba(223,122,40,.22);
}
.single-product div.product .summary .cart .single_add_to_cart_button:hover { background: #c96518; }
.jh-sale-detail-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 12px 0 18px;
    padding: 12px 14px;
    border: 1px solid #f1c6a2;
    border-radius: 10px;
    background: #fff7ef;
}
.jh-sale-saving { color: #b63a29; font-size: 15px; }
.jh-sale-countdown { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 7px; }
.jh-countdown-label { color: var(--jh-muted); font-size: 12px; font-weight: 700; }
.jh-countdown-time { color: var(--jh-navy); font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 900; letter-spacing: .02em; }
.jh-hero-countdown { grid-area: countdown; align-self: center; }
.jh-hero-countdown .jh-countdown-label { color: #6c7b86; }

/* Classic WooCommerce checkout: clean two-card layout. Cart styles are untouched. */
body.woocommerce-checkout .jh-content-shell { padding-top: 28px; }
body.woocommerce-checkout .entry-title,
body.woocommerce-checkout .woocommerce > h2:first-child { margin-bottom: 22px; }
body.woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(340px, .8fr);
    grid-template-rows: auto auto;
    gap: 0 28px;
    align-items: start;
}
body.woocommerce-checkout form.checkout > .col2-set {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: auto;
    padding: 24px;
    border: 1px solid var(--jh-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20,40,63,.055);
}
body.woocommerce-checkout form.checkout #order_review_heading {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 20px 22px 10px;
    border: 1px solid var(--jh-border);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    background: #fff;
    color: var(--jh-navy);
    font-size: 22px;
}
body.woocommerce-checkout form.checkout #order_review {
    grid-column: 2;
    grid-row: 2;
    position: sticky;
    top: 18px;
    padding: 8px 22px 22px;
    border: 1px solid var(--jh-border);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20,40,63,.055);
}
body.woocommerce-checkout .col2-set .col-1,
body.woocommerce-checkout .col2-set .col-2 { float: none; width: 100%; }
body.woocommerce-checkout .col2-set .col-2 { margin-top: 24px; }
body.woocommerce-checkout .woocommerce-billing-fields > h3,
body.woocommerce-checkout .woocommerce-shipping-fields > h3,
body.woocommerce-checkout .woocommerce-additional-fields > h3 { margin: 0 0 18px; color: var(--jh-navy); font-size: 22px; }
body.woocommerce-checkout .form-row { margin-bottom: 13px; }
body.woocommerce-checkout .form-row label { margin-bottom: 4px; color: #334453; font-size: 13px; font-weight: 800; }
body.woocommerce-checkout .form-row input.input-text,
body.woocommerce-checkout .form-row textarea,
body.woocommerce-checkout .select2-container .select2-selection--single {
    min-height: 46px;
    border-color: #d4dde2;
    border-radius: 8px;
    background: #fbfcfd;
}
body.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered { line-height: 44px; }
body.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow { height: 44px; }
body.woocommerce-checkout #payment { border-radius: 10px; background: #f5f7f8; }
body.woocommerce-checkout #payment div.payment_box { background: #fff; }
body.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #fff; }
body.woocommerce-checkout #place_order {
    width: 100%;
    min-height: 52px;
    margin-top: 8px;
    background: var(--jh-orange);
    font-size: 16px;
    font-weight: 900;
}
body.woocommerce-checkout #place_order:hover { background: #c96518; }
body.woocommerce-checkout .woocommerce-checkout-review-order-table { border: 0; }
body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td { padding: 11px 5px; }
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info { border-radius: 9px; }

/* WooCommerce Checkout Block fallback styling. */
body.woocommerce-checkout .wc-block-checkout { max-width: var(--jh-width); }
body.woocommerce-checkout .wc-block-components-sidebar-layout { gap: 28px; }
body.woocommerce-checkout .wc-block-components-main,
body.woocommerce-checkout .wc-block-components-sidebar {
    border: 1px solid var(--jh-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20,40,63,.055);
}
body.woocommerce-checkout .wc-block-components-main { padding: 24px !important; }
body.woocommerce-checkout .wc-block-components-sidebar { padding: 20px !important; }
body.woocommerce-checkout .wc-block-components-checkout-place-order-button { background: var(--jh-orange); color: #fff; border: 0; border-radius: 9px; font-weight: 900; }

@media (max-width: 980px) {
    .jh-category-section .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0,1fr)); }
    body.woocommerce-checkout form.checkout { grid-template-columns: 1fr; gap: 20px; }
    body.woocommerce-checkout form.checkout > .col2-set,
    body.woocommerce-checkout form.checkout #order_review_heading,
    body.woocommerce-checkout form.checkout #order_review { grid-column: 1; grid-row: auto; }
    body.woocommerce-checkout form.checkout #order_review { position: static; }
}

@media (max-width: 760px) {
    .jh-home-hero-retail .jh-hero-columns { display: block; }
    .jh-home-hero-retail .jh-hero-columns > .wp-block-column + .wp-block-column { margin-top: 26px; }
    .jh-hero-deal { max-width: 540px; }
    .jh-category-section .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .jh-category-section .woocommerce ul.products li.product-category img,
    .jh-category-section .jh-category-image,
    .jh-category-image-fallback { height: 125px; }
}

@media (max-width: 460px) {
    .jh-home-hero.jh-home-hero-retail { padding: 30px 12px; }
    .jh-home-hero-retail h1 { font-size: 38px; letter-spacing: -1px; }
    .jh-hero-deal { grid-template-columns: 88px 1fr; min-height: 160px; padding: 12px; gap: 3px 11px; }
    .jh-deal-image img { height: 120px; }
    .jh-deal-title { padding-right: 0; font-size: 13px; }
    .jh-category-section .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0,1fr)); }
}


/* v1.3.0 — Australia Post shipping reassurance and rebuilt delivery guide. */
.jh-product-shipping-note {
    display: grid;
    grid-template-columns: 34px minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    padding: 11px 13px;
    border: 1px solid #d9e2e8;
    border-radius: 10px;
    background: #f8fafb;
    color: var(--jh-navy);
}
.jh-product-shipping-note .jh-shipping-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--jh-navy);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;
}
.jh-product-shipping-note strong { display: block; font-size: 13px; }
.jh-product-shipping-note small { display: block; margin-top: 2px; color: var(--jh-muted); font-size: 11px; line-height: 1.35; }
.jh-product-shipping-note a { color: var(--jh-orange); font-size: 12px; font-weight: 900; white-space: nowrap; }
.jh-checkout-shipping-note {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 0 14px;
    padding: 11px 13px;
    border: 1px solid #d8e3ea;
    border-radius: 9px;
    background: #f8fafb;
}
.jh-checkout-shipping-note strong { color: var(--jh-navy); font-size: 13px; }
.jh-checkout-shipping-note span { color: var(--jh-muted); font-size: 11px; line-height: 1.4; }

.jh-shipping-hero {
    margin-top: 20px !important;
    margin-bottom: 22px !important;
    padding: clamp(24px,4vw,42px);
    border-radius: 16px;
    background: linear-gradient(120deg,#173653 0%,#285f8e 100%);
    color: #fff;
}
.jh-shipping-hero h2 { margin: 2px 0 10px; color: #fff; font-size: clamp(28px,4vw,44px); }
.jh-shipping-hero p { max-width: 820px; margin-left: 0; color: #eef5fa; font-size: 16px; line-height: 1.7; }
.jh-shipping-kicker { margin-bottom: 4px !important; color: #ffc38d !important; font-size: 12px !important; font-weight: 900; letter-spacing: .12em; }
.jh-shipping-service-grid,
.jh-shipping-steps,
.jh-shipping-info-grid { gap: 16px; margin-top: 16px !important; margin-bottom: 20px !important; }
.jh-shipping-service-card,
.jh-shipping-step {
    height: 100%;
    padding: 22px;
    border: 1px solid var(--jh-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(20,40,63,.05);
}
.jh-shipping-service-card.is-express { border-top: 4px solid var(--jh-orange); }
.jh-shipping-service-card h3,
.jh-shipping-step h3,
.jh-shipping-info-grid h3 { margin-top: 3px; margin-bottom: 8px; color: var(--jh-navy); }
.jh-shipping-service-tag { display: inline-block; margin: 0 0 4px !important; color: var(--jh-orange); font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.jh-shipping-small { color: var(--jh-muted); font-size: 12px; line-height: 1.5; }
.jh-shipping-callout {
    margin: 18px auto 28px !important;
    padding: 15px 18px;
    border-left: 4px solid var(--jh-orange);
    border-radius: 0 10px 10px 0;
    background: #fff7ef;
}
.jh-shipping-callout p { margin: 0; }
.jh-shipping-section-title { margin-top: 30px !important; margin-bottom: 4px !important; color: var(--jh-navy); }
.jh-step-number {
    display: grid;
    width: 32px;
    height: 32px;
    margin: 0 0 10px !important;
    place-items: center;
    border-radius: 50%;
    background: var(--jh-orange);
    color: #fff;
    font-weight: 900;
}
.jh-shipping-info-grid > .wp-block-column {
    padding: 20px 22px;
    border-top: 1px solid var(--jh-border);
}
.jh-shipping-info-grid p { color: #4f6070; line-height: 1.65; }
.jh-shipping-actions { margin: 26px 0 8px !important; }
.jh-shipping-actions .wp-block-button__link { font-weight: 900; }

/* Countdown is a prominent promotion element, but only appears for a real configured end date. */
.jh-sale-detail-panel .jh-sale-countdown {
    padding: 7px 10px;
    border-radius: 8px;
    background: #fff;
    box-shadow: inset 0 0 0 1px #f0d4bc;
}
.jh-sale-detail-panel .jh-countdown-time { color: #b63a29; font-size: 15px; }

@media (max-width: 620px) {
    .jh-product-shipping-note { grid-template-columns: 34px 1fr; }
    .jh-product-shipping-note a { grid-column: 2; }
    .jh-shipping-hero { border-radius: 12px; }
    .jh-shipping-service-grid,
    .jh-shipping-steps,
    .jh-shipping-info-grid { display: block; }
    .jh-shipping-service-grid > .wp-block-column,
    .jh-shipping-steps > .wp-block-column,
    .jh-shipping-info-grid > .wp-block-column { margin-bottom: 12px; }
}
