/*
Theme Name: Meridian Energies
Theme URI: https://www.meridianenergies.ca/
Author: Meridian Energies
Description: Custom WooCommerce theme for Meridian Energies. The design lives in assets/css/site.css and assets/js/site.js (unchanged from the design artifact); this file only adds WordPress/WooCommerce fixes on top.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.2
Text Domain: meridian-energies
*/

/* ---------- WordPress ---------- */
.skip-link:focus{position:fixed;left:12px;top:12px;width:auto;height:auto;clip:auto;z-index:100;background:var(--surface);color:var(--ink);padding:10px 14px;border-radius:8px}
/* Keep the sticky header below the admin bar when logged in. */
.admin-bar .nav{top:32px}
@media (max-width:782px){.admin-bar .nav{top:46px}}
@media (max-width:600px){.admin-bar .nav{top:0}}
/* Current menu item (WordPress adds aria-current to the link). */
#menu .current-menu-item>a{color:var(--ink)}
/* Generic pages (not imported from the design). */
.me-page .entry-content>*+*{margin-top:1em}
.me-page .entry-content{max-width:760px}
.me-woo .me-page .entry-content{max-width:none}
/* "Add to cart" button while the request is running. */
[data-add][aria-busy="true"]{opacity:.6;pointer-events:none}

/* ---------- WooCommerce ----------
   body.me-woo prefix = enough specificity to beat WooCommerce's own
   stylesheet (e.g. its purple .button.alt). */
.woocommerce-notices-wrapper:empty{display:none}
body.me-woo .woocommerce-message,body.me-woo .woocommerce-info,body.me-woo .woocommerce-error{border-top-color:var(--gold);background:var(--surface);color:var(--ink)}
body.me-woo .woocommerce-message::before,body.me-woo .woocommerce-info::before{color:var(--gold)}

/* Buttons: match the design's solid gold button */
body.me-woo a.button,body.me-woo button.button,body.me-woo input.button,
body.me-woo a.button.alt,body.me-woo button.button.alt,body.me-woo input.button.alt,
body.me-woo .wc-block-components-button:not(.is-link),
body.me-woo .wp-block-button__link{background:linear-gradient(180deg,var(--gold),color-mix(in srgb,var(--gold) 80%,#b06a10));color:var(--ink);border:0;border-radius:999px;font-family:var(--f-body);font-weight:600;padding:.85em 1.5em;box-shadow:0 8px 22px -12px color-mix(in srgb,var(--gold) 70%,transparent)}
body.me-woo a.button:hover,body.me-woo button.button:hover,body.me-woo button.button.alt:hover,body.me-woo a.button.alt:hover,
body.me-woo .wc-block-components-button:not(.is-link):hover{background:var(--gold);color:var(--ink);filter:brightness(1.04)}
body.me-woo button.button.alt.disabled,body.me-woo button.button.alt:disabled{background:var(--line);color:var(--ink-2);box-shadow:none}

/* Prices: the design's .price is the big display price on the coaching
   page; inside WooCommerce keep prices at text size. */
body.me-woo .price,body.me-woo .wc-block-components-product-price,body.me-woo .wc-block-grid__product-price{font-family:var(--f-body);font-size:1rem;font-weight:500;letter-spacing:0;line-height:1.4;color:var(--ink)}
body.me-woo div.product p.price,body.me-woo div.product span.price{font-size:1.4rem;color:var(--ink)}
body.me-woo .amount{color:inherit}

/* Single product */
body.me-woo .shop-wrap{padding-block:clamp(32px,5vw,56px) clamp(64px,8vw,110px)}
body.me-woo h1.product_title{font-family:var(--f-display);font-size:clamp(32px,4vw,48px);line-height:1.05;margin-bottom:.4em}
body.me-woo div.product div.images{max-width:440px}
body.me-woo div.product div.images img{border-radius:18px;background:var(--surface)}
body.me-woo div.product .woocommerce-tabs{clear:both;max-width:760px;padding-top:2em}
body.me-woo div.product .woocommerce-tabs ul.tabs li{background:var(--surface);border-color:var(--line)}
body.me-woo div.product .woocommerce-tabs ul.tabs li.active{background:var(--bg)}
body.me-woo div.product .woocommerce-tabs .panel h3{font-family:var(--f-display);font-size:1.25rem;margin:1.2em 0 .4em}
body.me-woo div.product .woocommerce-tabs .panel ul{padding-left:1.2em;list-style:disc}
body.me-woo .quantity .qty{border:1px solid var(--line);border-radius:999px;padding:.6em .4em;background:var(--surface);color:var(--ink)}
body.me-woo .product_meta{color:var(--ink-2);font-size:.9rem}
body.me-woo .related.products{clear:both;padding-top:2em}

/* Product grids (shop, related, cart "New in store") */
body.me-woo ul.products li.product img,body.me-woo .wc-block-grid__product-image img{border-radius:14px;background:var(--surface)}
body.me-woo ul.products li.product .woocommerce-loop-product__title,body.me-woo .wc-block-grid__product-title{font-family:var(--f-body);font-size:1rem;font-weight:600;color:var(--ink)}
body.me-woo .wc-block-grid__product-link{text-decoration:none;color:var(--ink)}

/* Cart & checkout blocks */
body.me-woo .wc-block-cart,body.me-woo .wc-block-checkout{font-family:var(--f-body);color:var(--ink)}
body.me-woo .wc-block-cart h2,body.me-woo .wc-block-checkout h2,body.me-woo .wc-block-cart__empty-cart__title{font-family:var(--f-display)}
body.me-woo .wc-block-components-totals-wrapper,body.me-woo .wc-block-components-sidebar{border-color:var(--line)}
body.me-woo .wc-block-components-text-input input,body.me-woo .wc-block-components-select select,body.me-woo .wc-blocks-components-select__select{border-color:var(--line);border-radius:10px;background:var(--surface);color:var(--ink)}

/* Meridian video player (replaces the card on click). */
.vid-player{display:block;width:100%;aspect-ratio:16/10;border-radius:14px;background:#000;object-fit:contain}

/* Store "Coming soon": one card since gift cards were removed. */
.gift-grid.single{grid-template-columns:minmax(0,1fr);max-width:760px}

/* Form honeypot (filled only by bots). */
.hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
