/*
Theme Name: Elecsto
Theme URI: https://elecsto.com
Author: Elecsto
Description: A fast, light, premium WooCommerce theme for consumer electronics stores. Large product photography, spec chips on product cards, and a trust bar you edit from Appearance > Menus.
Version: 0.4.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elecsto
Tags: e-commerce, one-column, two-columns, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

/* ---------- Tokens ---------- */
:root {
	--ink: #111418;
	--muted: #5b6470;
	--line: #e5e8ec;
	--surface: #f4f5f7;
	--accent: #0057ff;
	--sale: #d6291f;
	--radius: 20px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--wrap: 1280px;
	--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .6em; }
h1, h2 { font-weight: 800; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: .5rem; left: .5rem; z-index: 100; width: auto; height: auto; clip: auto; background: #fff; padding: .6rem 1rem; border-radius: 8px; }
.site-main { padding-bottom: 4rem; }
.page-pad { padding-top: 2rem; }
.entry-content > * { max-width: 70ch; }
.entry-content > .alignwide, .entry-content > .alignfull, .woocommerce .entry-content > * { max-width: none; }

/* ---------- Buttons ---------- */
.btn, .button, button[type="submit"], input[type="submit"], .wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .8rem 1.4rem; border: 1px solid var(--ink); border-radius: 999px;
	background: var(--ink); color: #fff; font: 600 .95rem/1 var(--font); text-decoration: none; cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.btn:hover, .button:hover, button[type="submit"]:hover, input[type="submit"]:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost, .woocommerce ul.products li.product .button { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); }
.button.disabled, .button:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--surface); font-size: .85rem; color: var(--muted); }
.trustbar ul { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; list-style: none; margin: 0; padding: .55rem 1.25rem; }
.trustbar a { text-decoration: none; }
@media (max-width: 600px) { .trustbar ul { flex-wrap: nowrap; justify-content: flex-start; gap: 1.5rem; overflow-x: auto; white-space: nowrap; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.04em; text-decoration: none; }
.brand img { max-height: 36px; width: auto; }
.primary-nav { flex: 1; }
.primary-nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--accent); }
.header-search input[type="search"] { width: 220px; padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: inherit; font-size: .9rem; }
.header-search input[type="search"]:focus { background: #fff; border-color: var(--accent); outline: none; }
.header-tools { display: flex; align-items: center; gap: 1rem; }
.header-tools a { display: inline-flex; position: relative; padding: .35rem; }
.header-tools svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font: 700 .7rem/18px var(--font); text-align: center; }
.cart-count[data-count="0"] { display: none; }
.nav-toggle { display: none; background: none; border: 0; padding: .4rem; color: inherit; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.7; }

@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; order: 3; }
	.header-inner { flex-wrap: wrap; gap: .75rem 1rem; }
	.brand { margin-right: auto; }
	.primary-nav, .header-search { display: none; flex: 1 1 100%; }
	.site-header.is-open .primary-nav, .site-header.is-open .header-search { display: block; }
	.primary-nav ul { flex-direction: column; gap: .25rem; }
	.primary-nav a { display: block; padding: .5rem 0; }
	.header-search input[type="search"] { width: 100%; }
	.site-header.is-open .header-inner { padding-bottom: 1rem; }
}

/* ---------- Home ---------- */
.hero { padding: clamp(2rem, 6vw, 5rem) 0; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); letter-spacing: -0.04em; max-width: 12ch; }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 42ch; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-product { display: block; text-decoration: none; background: radial-gradient(120% 90% at 50% 0%, #fff 0%, var(--surface) 72%); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.5); padding: 2rem; text-align: center; transition: border-color .2s; }
.hero-product:hover { border-color: var(--ink); color: inherit; }
.hero-product img { transition: transform .5s var(--ease); }
.hero-product:hover img { transform: scale(1.03); }
.hero-product img { margin: 0 auto 1rem; max-height: 420px; width: auto; mix-blend-mode: multiply; }
.hero-product strong { display: block; font-size: 1.1rem; }
.hero-product span { color: var(--muted); }
.hero-product del { margin-right: .35rem; opacity: .7; }
.hero-product ins { text-decoration: none; color: var(--sale); font-weight: 700; }
@media (max-width: 800px) { .hero-inner { grid-template-columns: 1fr; gap: 2rem; } }

.section { padding: 2.5rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; font-size: .95rem; }

.cat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.cat-tile { display: block; text-align: center; text-decoration: none; font-weight: 600; }
.cat-tile .thumb { aspect-ratio: 1; background: var(--surface); border-radius: var(--radius); margin-bottom: .6rem; display: grid; place-items: center; overflow: hidden; }
.cat-tile img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 12%; transition: transform .25s; }
.cat-tile:hover img { transform: scale(1.05); }

/* ---------- Product grid ---------- */
ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2rem 1.25rem; list-style: none; margin: 0; padding: 0; clear: both; }
ul.products li.product { position: relative; display: flex; flex-direction: column; margin: 0; }
ul.products li.product > a:first-child { position: relative; display: block; text-decoration: none; }
/* Grey tile sits behind the image so white product photos blend into it (multiply). */
ul.products li.product > a:first-child::before { content: ""; position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 1; background: var(--surface); border-radius: var(--radius); }
ul.products li.product img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1; object-fit: contain; padding: 8%; mix-blend-mode: multiply; margin-bottom: .9rem; }
@media (min-width: 1000px) { ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.woocommerce-loop-product__title { font-size: 1rem; font-weight: 600; margin: 0 0 .35rem; letter-spacing: -0.01em; }
.spec-chips { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: .25rem 0 .6rem; padding: 0; }
.spec-chips li { font-size: .75rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .6rem; }
.price { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.price del { color: var(--muted); font-weight: 400; font-size: .9rem; margin-right: .35rem; }
.price ins { text-decoration: none; color: var(--sale); }
ul.products li.product .price { display: block; margin-bottom: .8rem; }
ul.products li.product .button { margin-top: auto; width: 100%; padding: .7rem 1rem; }
ul.products li.product .added_to_cart { display: block; text-align: center; margin-top: .5rem; font-size: .85rem; font-weight: 600; }
.onsale { position: absolute; top: .75rem; left: .75rem; z-index: 2; background: var(--sale); color: #fff; font: 700 .75rem/1 var(--font); padding: .4rem .7rem; border-radius: 999px; }
.star-rating { position: relative; width: 5.4em; height: 1em; overflow: hidden; line-height: 1; font-size: .85rem; margin-bottom: .35rem; }
.star-rating::before { content: "\2605\2605\2605\2605\2605"; color: #d5d9de; letter-spacing: .1em; }
.star-rating span { position: absolute; top: 0; left: 0; height: 0; padding-top: 1.5em; overflow: hidden; }
.star-rating span::before { content: "\2605\2605\2605\2605\2605"; position: absolute; top: 0; left: 0; color: #f5a623; letter-spacing: .1em; }

.woocommerce-breadcrumb { font-size: .85rem; color: var(--muted); margin: 1.25rem 0; }
.woocommerce-breadcrumb a { text-decoration: none; }
.woocommerce-products-header { margin: 1rem 0 1.5rem; }
.woocommerce-result-count { float: left; margin: 0 0 1.5rem; color: var(--muted); font-size: .9rem; }
.woocommerce-ordering { float: right; margin: 0 0 1.5rem; }
.woocommerce-pagination ul { display: flex; justify-content: center; gap: .4rem; list-style: none; padding: 0; margin: 3rem 0 0; }
.woocommerce-pagination a, .woocommerce-pagination span { display: block; min-width: 40px; padding: .5rem .8rem; text-align: center; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.woocommerce-pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Single product ---------- */
.single-product div.product { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.single-product div.product > .onsale { top: 1rem; left: 1rem; }
.woocommerce-product-gallery { position: relative; background: var(--surface); border-radius: calc(var(--radius) * 1.5); padding: 1.5rem; margin: 0; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery img { margin: 0 auto; mix-blend-mode: multiply; }
.woocommerce-product-gallery .flex-control-thumbs { display: flex; gap: .6rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.woocommerce-product-gallery .flex-control-thumbs li { width: 72px; }
.woocommerce-product-gallery .flex-control-thumbs img { border-radius: 10px; border: 1px solid transparent; cursor: pointer; opacity: .6; }
.woocommerce-product-gallery .flex-control-thumbs img.flex-active, .woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; border-color: var(--ink); }
.woocommerce-product-gallery__trigger { position: absolute; top: 1rem; right: 1rem; z-index: 2; font-size: 0; width: 36px; height: 36px; background: #fff; border-radius: 50%; }
.woocommerce-product-gallery__trigger::before { content: "\2922"; font-size: 1rem; display: grid; place-items: center; height: 100%; }
.summary .product_title { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.summary .price { font-size: 1.6rem; display: block; margin: .5rem 0 1rem; }
.summary .woocommerce-product-details__short-description { color: var(--muted); }
.summary form.cart { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.5rem 0; }
.summary form.cart .single_add_to_cart_button { flex: 1; min-width: 200px; padding: 1rem 1.5rem; }
.summary .variations { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.summary .variations td, .summary .variations th { padding: .4rem 0; text-align: left; }
.summary .variations select { padding: .6rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.product_meta { font-size: .85rem; color: var(--muted); display: grid; gap: .25rem; margin-top: 1.5rem; }
.summary-trust { list-style: none; margin: 1.5rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .5rem; font-size: .9rem; }
.summary-trust a { text-decoration: none; }
.summary-trust li::before { content: "\2713"; color: var(--accent); font-weight: 700; margin-right: .6rem; }
div.quantity input.qty { width: 4.5rem; padding: .9rem .5rem; text-align: center; border: 1px solid var(--line); border-radius: 999px; font: inherit; }
.woocommerce-tabs, .related.products, .upsells.products { grid-column: 1 / -1; margin-top: 2rem; }
.woocommerce-tabs ul.tabs { display: flex; gap: 2rem; list-style: none; margin: 0 0 1.5rem; padding: 0; border-bottom: 1px solid var(--line); }
.woocommerce-tabs ul.tabs a { display: block; padding: .8rem 0; text-decoration: none; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.woocommerce-tabs ul.tabs .active a { color: var(--ink); border-color: var(--ink); }
.woocommerce-tabs .panel > h2:first-child { display: none; }
.woocommerce-product-attributes { width: 100%; max-width: 640px; border-collapse: collapse; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td { text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.woocommerce-product-attributes th { color: var(--muted); width: 40%; }
.woocommerce-product-attributes p { margin: 0; }
@media (max-width: 800px) { .single-product div.product { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }

/* ---------- Notices, forms, tables (classic cart / checkout / account) ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; margin: 0 0 1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--surface); border-left: 4px solid var(--accent); display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.woocommerce-error { border-color: var(--sale); }
.woocommerce-message .button { order: 2; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], textarea, select { font: inherit; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: inherit; max-width: 100%; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; }
.form-row { margin: 0 0 1rem; }
.form-row label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.form-row input.input-text, .form-row textarea, .form-row select, .select2-container { width: 100%; }
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.form-row-wide { flex: 1 1 100%; }
.form-row-first, .form-row-last { flex: 1 1 calc(50% - .5rem); }
.shop_table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.shop_table th, .shop_table td { padding: 1rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.shop_table .product-thumbnail img { width: 72px; border-radius: 10px; background: var(--surface); }
.shop_table .product-remove a { text-decoration: none; font-size: 1.4rem; color: var(--muted); }
.cart_totals { max-width: 420px; margin-left: auto; }
.cart_totals h2 { font-size: 1.25rem; }
.wc-proceed-to-checkout .button { width: 100%; padding: 1rem; }
.cart .actions .coupon { display: inline-flex; gap: .5rem; }
.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 0 3rem; align-items: start; }
.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; }
.woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { grid-column: 2; }
.woocommerce-checkout #order_review { background: var(--surface); padding: 1.5rem; border-radius: var(--radius); }
.woocommerce-checkout #payment ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.woocommerce-checkout #payment .button { width: 100%; padding: 1rem; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; gap: 1.25rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.woocommerce-MyAccount-navigation a { display: block; padding: .6rem 0; text-decoration: none; color: var(--muted); }
.woocommerce-MyAccount-navigation .is-active a { color: var(--ink); font-weight: 600; }
@media (max-width: 800px) {
	.woocommerce-checkout form.checkout { grid-template-columns: minmax(0, 1fr); }
	.woocommerce-checkout #customer_details, .woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; }
	.cart_totals { max-width: none; }
}

/* ---------- Posts, pages, 404 ---------- */
.entry-title { margin-top: 1rem; }
.post-list article { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.not-found { text-align: center; padding: 5rem 0; }
.not-found .btn { margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); padding: 3rem 0 1.5rem; font-size: .95rem; color: var(--muted); }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-widgets .widget-title { color: var(--ink); font-size: 1rem; }
.footer-widgets ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-widgets a, .footer-bottom a { text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; }
.footer-bottom ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }

/* ---------- Cart and checkout (WooCommerce blocks) ---------- */
.steps { display: flex; justify-content: center; gap: 2rem; list-style: none; margin: 0 0 2rem; padding: 0; font-size: .9rem; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: .5rem; }
.steps li + li::before { content: ""; width: 2rem; height: 1px; background: var(--line); margin-right: 1.5rem; }
.steps-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); font-size: .8rem; font-weight: 700; }
.steps .is-current { color: var(--ink); font-weight: 600; }
.steps .is-current .steps-dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps .is-done .steps-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.is-focus-checkout .header-inner { justify-content: space-between; }
.secure-note { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--muted); margin-left: auto; }
.secure-note svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.back-link { font-size: .9rem; font-weight: 600; }
.wc-block-components-button:not(.is-link) { min-height: 52px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-family: var(--font); transition: background .2s, transform .15s; }
.wc-block-components-button:not(.is-link):hover { background: var(--accent); color: #fff; }
.wc-block-components-button:not(.is-link):active { transform: scale(.98); }
.wc-block-components-text-input input, .wc-block-components-select .wc-block-components-select__select, .wc-block-components-textarea { border-radius: 12px; font-size: 16px; }
.wc-block-components-sidebar-layout { align-items: flex-start; }
.wc-block-checkout__sidebar { position: sticky; top: 5rem; }
.wc-block-checkout__actions .summary-trust { margin-top: 1rem; padding-top: 1rem; }

/* Sticky Add to cart on phones, so the buy button is always one tap away. */
@media (max-width: 800px) {
	.single-product .summary form.cart:not(.variations_form) { position: sticky; bottom: 0; z-index: 40; margin: 0 -1.25rem; padding: .75rem 1.25rem; background: #fff; border-top: 1px solid var(--line); }
}

/* ---------- Performance ---------- */
/* Below-the-fold sections skip layout and paint until they are near the viewport. */
.section + .section, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 640px; }

/* ---------- Motion (transform/opacity only, never delays first paint) ---------- */
ul.products li.product img { transition: transform .4s var(--ease); }
ul.products li.product .button { transition: background .2s, color .2s, border-color .2s, transform .15s; }
.btn:active, .button:active { transform: scale(.97); }
.cat-tile img { transition: transform .4s var(--ease); }

@media (hover: hover) {
	ul.products li.product:hover img { transform: scale(1.05); }
	.woocommerce ul.products li.product .button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
	.cat-tile:hover img { transform: scale(1.06); }
}

/* Add to cart feedback: WooCommerce adds .loading, then .added. */
.button.loading { position: relative; color: transparent !important; pointer-events: none; }
.button.loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .6s linear infinite; }
.single_add_to_cart_button.loading::after { border-color: rgba(255, 255, 255, .3); border-top-color: #fff; }
.button.added::after { content: "\2713"; margin-left: .5rem; font-weight: 700; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
@keyframes rise-scale { from { transform: translateY(14px) scale(.97); } to { transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: no-preference) {
	/* One orchestrated moment: the home hero settles into place. */
	.hero-inner > div > * { animation: rise .7s var(--ease) backwards; }
	.hero-inner > div > :nth-child(2) { animation-delay: .08s; }
	.hero-inner > div > :nth-child(3) { animation-delay: .16s; }
	.hero-product { animation: rise-scale .9s var(--ease) .1s backwards; }
	.cart-count { animation: pop .35s var(--ease); }
	.site-header.is-open .primary-nav, .site-header.is-open .header-search { animation: drop .22s ease-out; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
