/*
 Theme Name:   Storefront Alrico 2.0
 Description:  Alrico 2.0 - Storefront child theme based on the 2026 design draft. Replaces Storefront Alrico child (same WooCommerce/Ultimate Member template overrides).
 Author:       Jens Nilsson
 Template:     storefront
 Version:      2.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  storefront-alrico2
*/

:root {
	--a2-blue: #07399d;
	--a2-blue2: #0757c8;
	--a2-light: #eef7ff;
	--a2-ink: #102d61;
	--a2-muted: #6b7a90;
	--a2-line: #e0e5ed;
	--a2-green: #0b9942;
	--a2-orange: #d9822b;
	--a2-gutter: 4%;
}

body { color: var(--a2-ink); background: #fff; }
a { color: var(--a2-blue2); }

/* ---------- Top bar ---------- */
.a2-top { background: var(--a2-blue); color: #fff; font-size: 13px; font-weight: 700; }
.a2-top-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px var(--a2-gutter); }
.a2-usps { display: flex; gap: 40px; flex-wrap: wrap; }
.a2-usps small { display: block; font-weight: 400; opacity: .85; }
.a2-top a { color: #fff; text-decoration: none; }

/* Primary menu (alrico_nav_menu, items added by alrico-base: account, cart, staff menu) */
.a2-topmenu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.a2-topmenu li { position: relative; }
.a2-topmenu ul ul { display: none; position: absolute; right: 0; top: 100%; z-index: 999; min-width: 220px; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.15); border-radius: 8px; padding: 6px 0; flex-direction: column; gap: 0; }
.a2-topmenu ul ul a { color: var(--a2-ink); display: block; padding: 7px 14px; font-weight: 600; }
.a2-topmenu ul ul a:hover { background: var(--a2-light); }
.a2-topmenu li:hover > ul, .a2-topmenu li:focus-within > ul { display: flex; }

/* ---------- Header ---------- */
.a2-header { display: grid; grid-template-columns: 220px 1fr auto; gap: 24px; align-items: center; padding: 12px var(--a2-gutter) 0; }
.a2-logo img { width: 190px; height: auto; display: block; }
.a2-search .dgwt-wcas-search-wrapp { max-width: none; }
.a2-search form { margin: 0; }
.a2-actions { display: flex; gap: 26px; font-size: 13px; font-weight: 700; }
.a2-actions a { color: var(--a2-ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.a2-actions svg { width: 28px; height: 28px; fill: var(--a2-blue); flex: none; }
.a2-actions small { display: block; font-weight: 400; color: var(--a2-muted); }
.a2-nav { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 6px 30px; padding: 12px 0 14px; font-weight: 800; }
.a2-nav a { color: var(--a2-ink); text-decoration: none; }
.a2-nav a:hover { color: var(--a2-blue2); }
.site-header { border-bottom: 1px solid #eee; padding: 0; margin: 0; background: #fff; }

/* ---------- Front page ---------- */
.a2-front .site-content > .col-full, .a2-front #content > .col-full { max-width: none; padding: 0; margin: 0; }
.a2-hero { display: block; }
.a2-hero img { width: 100%; height: auto; display: block; max-height: 520px; object-fit: cover; }
.a2-cats { position: relative; margin: 16px var(--a2-gutter); }
.a2-cats img { width: 100%; height: auto; display: block; border-radius: 12px; }
.a2-cats-links { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: .8%; }
.a2-cats-links a { display: block; border-radius: 10px; }
.a2-cats-links a:hover, .a2-cats-links a:focus { box-shadow: inset 0 0 0 3px rgba(7,57,157,.6); }
.a2-cats-links span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.a2-benefits { background: var(--a2-light); display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 18px 6%; text-align: center; font-weight: 800; }
.a2-benefits small { display: block; font-weight: 400; }
.a2-section { padding: 28px var(--a2-gutter); }
.a2-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.a2-section-head h2 { font-size: 30px; font-weight: 800; color: var(--a2-blue); margin: 0 0 16px; }
.a2-section-head a { font-weight: 700; }
.a2-login-cta { background: var(--a2-light); border-radius: 14px; padding: 28px; text-align: center; }
.a2-login-cta h2 { color: var(--a2-blue); margin-bottom: 8px; }
.a2-btn, .a2-login-cta .button { display: inline-block; background: var(--a2-blue); color: #fff !important; padding: 12px 26px; border-radius: 28px; font-weight: 800; text-decoration: none; margin: 6px; }
.a2-btn.alt { background: #fff; color: var(--a2-blue) !important; box-shadow: inset 0 0 0 2px var(--a2-blue); }

/* ---------- Product cards (shop loop and front page) ---------- */
ul.products li.product { border: 1px solid var(--a2-line); border-radius: 12px; padding: 12px; background: #fff; text-align: left; }
ul.products li.product img { border-radius: 8px; background: #f7f9fc; }
ul.products li.product .woocommerce-loop-product__title { font-size: 15px; font-weight: 700; color: var(--a2-ink); padding: 0; margin: 8px 0 4px; }
.a2-loop-meta { font-size: 12px; color: var(--a2-muted); margin: 0 0 4px; }
.a2-loop-meta .sep { margin: 0 6px; }
ul.products li.product .stock { font-size: 12px; font-weight: 700; margin: 0 0 6px; }
ul.products li.product .stock::before { content: "\25CF"; margin-right: 5px; }
ul.products li.product .stock.in-stock { color: var(--a2-green); }
ul.products li.product .stock.out-of-stock { color: var(--a2-orange); }
ul.products li.product .price { font-size: 20px; font-weight: 900; color: var(--a2-ink); }
ul.products li.product form.cart { display: inline-flex; align-items: center; gap: 6px; margin: 0 8px 0 0; font-size: 13px; }
ul.products li.product .quantity .qty { width: 4em; border-radius: 6px; }
ul.products li.product .button { background: var(--a2-blue2); color: #fff; border-radius: 7px; font-weight: 800; text-transform: uppercase; font-size: 13px; }
ul.products li.product .button:hover { background: var(--a2-blue); color: #fff; }

/* ---------- Footer ---------- */
.a2-footer { background: #082f86; color: #fff; }
.a2-footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 25px; padding: 35px 5%; }
.a2-footer h3 { color: #fff; font-size: 17px; }
.a2-footer p, .a2-footer li { color: #dce7ff; line-height: 1.6; }
.a2-footer ul { list-style: none; margin: 0; }
.a2-footer a { color: #dce7ff; }
.a2-footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 12px 5%; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.a2-header { grid-template-columns: 170px 1fr; }
	.a2-actions { grid-column: 2; justify-content: flex-end; }
	.a2-search { grid-column: 1 / 3; grid-row: 2; }
	.a2-nav { grid-column: 1 / 3; }
	.a2-benefits { grid-template-columns: repeat(2, 1fr); }
	.a2-footer-inner { grid-template-columns: 1fr 1fr; }
	.a2-usps span:nth-child(n+3) { display: none; }
}
@media (max-width: 650px) {
	:root { --a2-gutter: 16px; }
	.a2-top-inner { flex-direction: column; align-items: flex-start; }
	.a2-usps { gap: 14px; }
	.a2-usps small { display: none; }
	.a2-logo img { width: 140px; }
	.a2-actions { gap: 14px; }
	.a2-actions .label { display: none; }
	.a2-nav { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; }
	.a2-cats { overflow-x: auto; }
	.a2-cats-inner { position: relative; min-width: 760px; }
	.a2-section-head h2 { font-size: 23px; }
	.a2-footer-inner { grid-template-columns: 1fr; }
}
