/*
Life of John Child — phone styling, v1.2.10.
v1.2.5 brought back colours, text, borders and padding only.
v1.2.6 added ONE layout group only, at the end of this file:
the homepage hero and tiles stacking, plus a fix so the
hero buttons stack full-width and fit the phone.
v1.2.7 fixes that group: on mobile the main style.css is
desktop-only, so grid-template-columns: 1fr on its own did
nothing — there was no display: grid or gap, so the tiles
were plain blocks touching each other with no space
between their borders, and the stacked hero buttons had
no gap between them. The rules at the end of this file
now set display: grid and gap as well.
v1.2.8 adds two things, at the end of this file: clear
space below the green hero (.loj-hero margin and
.loj-hero__note margin-top), so the text below the hero
shifts down; and the Sale and Latest sideways-scrolling
rows on mobile (.loj-sale / .loj-latest ul.products as a
flex row with overflow-x: auto, cards 78vw wide). There
is NO scroll-snap anywhere. theme.js is also back on
mobile in v1.2.8 (see functions.php) so the ‹ › arrows
scroll those rows. Everything else on phones stays
exactly as Storefront provides it.
Loaded only on screens up to 768px — see functions.php.
*/

/* ============ Colour tokens & base text ============ */
:root{
  --loj-red:#b3001b;
  --loj-red-dark:#8f0016;
  --loj-green:#1e3d2f;
  --loj-cream:#faf6ef;
  --loj-ink:#161616;
  --loj-grey:#6f6f6f;
  --loj-line:#e6e2da;
  --loj-footer:#e8e8e4;
  --loj-footer-text:#555550;
  --loj-footer-border:#c9c6bd;
}
body{color:var(--loj-ink);background:#fff;font-family:"Helvetica Neue",Arial,sans-serif;-webkit-font-smoothing:antialiased}
a{color:var(--loj-ink)}
a:hover{color:var(--loj-red-dark)}
h1,h2,h3{letter-spacing:-.01em;color:var(--loj-ink)}
h2.loj-section-title{font-weight:700;color:var(--loj-ink)}
.loj-section-sub{color:var(--loj-grey)}

/* ============ Buttons ============ */
.loj-btn{background:var(--loj-ink);color:#fff!important;padding:13px 26px;border-radius:999px;font-weight:600;text-decoration:none;border:1px solid var(--loj-ink)}
.loj-btn:hover{background:var(--loj-red);border-color:var(--loj-red);color:#fff!important}
.loj-btn--light{background:#fff;color:var(--loj-ink)!important;border-color:#fff}
.loj-btn--red{background:var(--loj-red);border-color:var(--loj-red)}

/* ============ Announcement strip ============ */
.loj-announcement{background:#000;color:#fff;font-size:13px;letter-spacing:.02em;padding:8px 16px;line-height:1.45}
.loj-announcement a{color:#fff;text-decoration:underline}

/* ============ Hero ============ */
.loj-hero{background:var(--loj-green);color:#fff}
.loj-hero__kicker{text-transform:uppercase;letter-spacing:.14em;font-size:13px;font-weight:700;color:#f3d9a4}
.loj-hero h1{color:#fff;line-height:1.05}
.loj-hero__discount{color:#ff5a5a;font-weight:800}
.loj-hero p{color:#eef2ec}
.loj-hero__note{font-size:13px;color:#cfd8cf}

/* ============ Tiles, feature, services, newsletter ============ */
.loj-tile{background:var(--loj-cream);border:1px solid var(--loj-line);border-radius:14px;padding:24px;text-decoration:none;color:var(--loj-ink)}
.loj-tile h3{color:var(--loj-ink)}
.loj-tile p{color:var(--loj-grey)}
.loj-tile span{font-weight:700;color:var(--loj-ink);text-decoration:underline;text-underline-offset:4px}
.loj-sale{background:var(--loj-cream);border-top:1px solid var(--loj-line);border-bottom:1px solid var(--loj-line)}
.loj-feature{background:var(--loj-green);color:#fff;border-radius:16px;padding:34px}
.loj-feature h2{color:#fff}
.loj-feature p{color:#e7ede7}
.loj-feature .loj-price{font-size:22px;font-weight:700;color:#fff}
.loj-story p{color:#333;line-height:1.7}
.loj-services{background:#fff;border-top:1px solid var(--loj-line);border-bottom:1px solid var(--loj-line)}
.loj-services strong{font-size:16px;color:var(--loj-ink)}
.loj-services p{color:var(--loj-grey);font-size:14px}
.loj-newsletter{background:var(--loj-cream);border:1px solid var(--loj-line);border-radius:16px;padding:30px}
.loj-newsletter input[type="email"]{padding:12px 16px;border:1px solid #cfcfcf;border-radius:999px;background:#fff;color:var(--loj-ink)}
.loj-newsletter button{background:var(--loj-red);color:#fff;border:0;border-radius:999px;padding:12px 24px;font-weight:700}
.loj-notice{background:#eaf6ec;border:1px solid #bfe0c4;padding:12px 16px;border-radius:10px;color:var(--loj-ink)}

/* ============ Product cards & prices ============ */
ul.products li.product{background:#fff;border:1px solid var(--loj-line);border-radius:14px;padding:14px}
ul.products li.product img{border-radius:10px}
ul.products li.product .woocommerce-loop-product__title{font-size:16px;line-height:1.35;color:var(--loj-ink)}
ul.products li.product .price{font-size:17px;color:var(--loj-ink)}
/* Sale price in RED, original price struck through in black */
.products .price del,
.product .summary .price del,
.single-product .price del{color:#111;opacity:1;text-decoration:line-through}
.products .price ins,
.product .summary .price ins,
.single-product .price ins,
ul.products li.product .price ins{background:none;color:var(--loj-red);font-weight:800;text-decoration:none}
.woocommerce span.onsale,
ul.products li.product .onsale{background:var(--loj-red);color:#fff;border:0;border-radius:999px;padding:4px 10px;font-weight:700;line-height:1.4}
.loj-out-of-stock{background:#111;color:#fff;border-radius:999px;padding:4px 10px;font-size:13px;font-weight:700}
ul.products li.product .button{background:var(--loj-ink);color:#fff;border-radius:999px;padding:11px 18px;font-weight:600}
ul.products li.product .button:hover{background:var(--loj-red)}
.single-product .cart .button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button{background:var(--loj-ink);color:#fff;border-radius:999px}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #place_order{background:var(--loj-red)}
.woocommerce-message{border-top-color:var(--loj-green)}

/* ============ Footer colours ============ */
.site-footer{background:var(--loj-footer);color:#333;border-top:3px solid var(--loj-ink)}
.site-footer .loj-footer h4,
.site-footer .loj-footer__col h4{font-size:15px;line-height:1.3;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--loj-ink);border-bottom:2px solid var(--loj-footer-border)}
.site-footer .loj-footer__list a,
.site-footer .loj-footer__col a{color:var(--loj-ink);text-decoration:none;line-height:1.8}
.site-footer .loj-footer__list a:hover,
.site-footer .loj-footer__list a:focus,
.site-footer .loj-footer__col a:hover{text-decoration:underline;text-underline-offset:3px;color:var(--loj-red-dark)}
.site-footer .loj-footer li.loj-footer__note,
.site-footer .loj-footer__list--notes > li{color:var(--loj-footer-text)!important;text-decoration:none!important}
.site-footer .loj-footer__contact li{color:#3d3d3a}
.loj-footer__etsy{font-size:13px;color:var(--loj-grey)}
.loj-footer__etsy a{color:var(--loj-grey);text-decoration:underline;text-underline-offset:3px}
.loj-footer__base{border-top:1px solid var(--loj-footer-border);font-size:13px;line-height:1.6;color:var(--loj-footer-text)}
.storefront-handheld-footer-bar ul li > a{background:#fff;color:var(--loj-ink)}

/* ============ v1.2.7: Hero & tiles stacking (layout group 1) ============
   The ONLY layout rules in this file, plus the hero button
   fix directly below. Hero, tiles, feature and services
   stack to a single column on phones. No header, navigation,
   carousel, shop grid, footer grid, site-content or
   overflow rules are added in this version.
   v1.2.7: each rule now sets display: grid and gap itself.
   In v1.2.6 these rules only set grid-template-columns: 1fr,
   which does nothing without display: grid — and on mobile
   the main style.css (which sets display: grid on desktop)
   is not loaded at all. So the tiles were plain blocks
   touching each other, with no space between their borders,
   and the hero text and image had no gap between them. */
.loj-hero__inner { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 24px 20px 32px; }
.loj-tiles { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 38px; padding: 0 20px; }
.loj-tile { padding: 20px; }
.loj-feature { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 24px; }
.loj-services__inner { display: grid; grid-template-columns: 1fr; gap: 18px; text-align: left; }

/* ============ v1.2.7: Hero buttons fit the phone ============
   The oval hero buttons looked too large side by side on
   mobile and did not fit right. On phones they now stack
   full-width, slightly smaller, centred text.
   v1.2.7: gap: 12px gives clear padding / space between
   the two stacked full-width buttons.
   v1.2.10: display: flex was missing on mobile — the main
   style.css (which sets it on desktop) is desktop-only,
   so flex-direction: column did nothing and the buttons
   stayed side by side. The rule below now sets
   display: flex and margin-top: 18px as well, so the
   two oval buttons stack one below the other, full-width,
   inside the green hero. */
.loj-hero__actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 18px; }
.loj-hero__actions .loj-btn{padding:11px 18px;font-size:14px;text-align:center;width:100%;box-sizing:border-box}

/* ============ v1.2.8: Space below the green hero ============
   The green hero image with the oval button needed the
   text below it shifting down — there was not enough
   space below the hero. Clear space below the hero
   itself, and a little space above its note line. */
.loj-hero { margin: 0 0 34px; }
.loj-hero__note { margin-top: 14px; }

/* ============ v1.2.8: Sale & Latest sideways rows ============
   On mobile the sale items were listed under one
   another, so the Christmas Sale left/right arrows did
   nothing. Sale and Latest are now sideways-scrolling
   rows on phones again: one wide card at a time, swipe
   or use the ‹ › arrows (theme.js is back on mobile in
   v1.2.8 and wires those buttons). NO scroll-snap. */
.loj-sale ul.products, .loj-latest ul.products { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 18px; padding: 6px 2px 14px; max-width: 100%; box-sizing: border-box; margin: 0; list-style: none; }
.loj-sale ul.products::before, .loj-sale ul.products::after, .loj-latest ul.products::before, .loj-latest ul.products::after { content: none; }
.loj-sale ul.products li.product, .loj-latest ul.products li.product { flex: 0 0 78vw; width: 78vw; max-width: 78vw; margin: 0; float: none; box-sizing: border-box; }
