/* ==========================================================================
   Abundance Books — Modern Child Theme
   Brand: navy #012582 · blue #03a9f4 · gold #e2c016
   Fonts: Playfair Display (headings) · DM Sans (body)
   ========================================================================== */

:root {
	--ab-navy: #012582;
	--ab-navy-dark: #001a5e;
	--ab-blue: #03a9f4;
	--ab-blue-dark: #0288c7;
	--ab-gold: #e2c016;
	--ab-gold-dark: #c9ab10;
	--ab-ink: #1a2233;
	--ab-paper: #fbfaf7;
	--ab-white: #ffffff;
	--ab-gray: #5b6472;
	--ab-line: #e6e2d9;
	--ab-serif: 'Playfair Display', Georgia, serif;
	--ab-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body,
button,
input,
select,
textarea {
	font-family: var(--ab-sans);
	color: var(--ab-ink);
	background-color: var(--ab-white);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ab-serif);
	font-weight: 700;
	line-height: 1.15;
	color: var(--ab-navy);
}

/* ---------- Layout container ---------- */
.ab-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- Buttons ---------- */
.ab-btn {
	display: inline-block;
	padding: 14px 30px;
	border-radius: 6px;
	font-family: var(--ab-sans);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	line-height: 1.2;
}
.ab-btn:hover { transform: translateY(-1px); text-decoration: none; }
.ab-btn-gold { background: var(--ab-gold); color: #221a02; box-shadow: 0 4px 14px rgba(226,192,22,0.35); }
.ab-btn-gold:hover { background: var(--ab-gold-dark); color: #221a02; }
.ab-btn-navy { background: var(--ab-navy); color: var(--ab-white); box-shadow: 0 4px 14px rgba(1,37,130,0.25); }
.ab-btn-navy:hover { background: var(--ab-navy-dark); color: var(--ab-white); }
.ab-btn-ghost { background: transparent; color: var(--ab-white); border: 1.5px solid rgba(255,255,255,0.75); }
.ab-btn-ghost:hover { background: rgba(255,255,255,0.12); color: var(--ab-white); }

/* ---------- Eyebrow + section heads ---------- */
.ab-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 12px;
	font-weight: 700;
	color: var(--ab-gold-dark);
	margin-bottom: 10px;
}
.ab-eyebrow-light { color: var(--ab-gold); }
.ab-section-title {
	font-size: clamp(28px, 4vw, 40px);
	margin: 0;
}
.ab-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 32px;
}
.ab-section-head .ab-eyebrow { margin-bottom: 4px; }
.ab-section-link {
	color: var(--ab-navy);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	border-bottom: 2px solid var(--ab-gold);
	padding-bottom: 2px;
}
.ab-section-link:hover { color: var(--ab-blue-dark); text-decoration: none; }

/* ---------- HERO ---------- */
.ab-hero {
	position: relative;
	color: var(--ab-white);
	background-size: cover;
	background-position: center 30%;
	overflow: hidden;
	padding: 110px 0 120px;
}
.ab-hero-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	position: relative;
	z-index: 2;
}
.ab-hero-copy { max-width: 620px; }
.ab-hero-kicker {
	text-transform: uppercase;
	letter-spacing: 0.22em;
	font-size: 13px;
	font-weight: 700;
	color: var(--ab-gold);
	margin-bottom: 16px;
}
.ab-hero-title {
	font-family: var(--ab-serif);
	font-size: clamp(38px, 6vw, 64px);
	font-weight: 800;
	line-height: 1.06;
	color: var(--ab-white);
	margin: 0 0 22px;
}
.ab-hero-title em { font-style: italic; color: var(--ab-gold); }
.ab-hero-sub {
	font-size: 18px;
	line-height: 1.65;
	color: rgba(255,255,255,0.92);
	max-width: 520px;
	margin: 0 0 32px;
}
.ab-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.ab-hero-art { position: relative; width: 260px; height: 260px; flex: 0 0 260px; }
.ab-hero-circle {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, rgba(226,192,22,0.35), rgba(3,169,244,0.15) 60%, transparent 75%);
	border: 1px solid rgba(255,255,255,0.25);
}
.ab-hero-book {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 130px;
	height: 160px;
	transform: translate(-50%, -50%);
	filter: drop-shadow(0 18px 30px rgba(0,0,0,0.35));
}

/* ---------- Category strip ---------- */
.ab-strip { background: var(--ab-white); padding: 34px 0; border-bottom: 1px solid var(--ab-line); }
.ab-strip-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 14px;
}
.ab-strip-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	justify-content: center;
	align-items: center;
	padding: 18px 10px;
	background: var(--ab-paper);
	border: 1px solid var(--ab-line);
	border-radius: 8px;
	text-align: center;
	text-decoration: none;
	color: var(--ab-navy);
	transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.ab-strip-item:hover { border-color: var(--ab-gold); background: #fffdf5; transform: translateY(-2px); text-decoration: none; color: var(--ab-navy); }
.ab-strip-name { font-weight: 700; font-size: 14px; }
.ab-strip-arrow { color: var(--ab-gold-dark); font-size: 18px; line-height: 1; }

/* ---------- Featured products ---------- */
.ab-featured { padding: 72px 0; background: var(--ab-white); }
.ab-products-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}
.ab-product-card {
	background: var(--ab-paper);
	border: 1px solid var(--ab-line);
	border-radius: 10px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.ab-product-card:hover { box-shadow: 0 12px 30px rgba(1,37,130,0.10); transform: translateY(-3px); }
.ab-product-img {
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 6px;
	background: #f0ede5;
	margin-bottom: 14px;
}
.ab-product-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}
.ab-product-nothumb {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--ab-gray);
	font-family: var(--ab-serif);
	font-size: 15px;
}
.ab-product-title {
	font-size: 16px;
	margin: 0 0 8px;
	line-height: 1.3;
}
.ab-product-title a { color: var(--ab-navy); text-decoration: none; }
.ab-product-title a:hover { color: var(--ab-blue-dark); }
.ab-product-price {
	font-weight: 700;
	color: var(--ab-navy);
	font-size: 15px;
	margin: 0 0 14px;
}
.ab-product-price .woocommerce-Price-currencySymbol { font-size: 0.85em; }
.ab-product-add {
	display: inline-block;
	margin-top: auto;
	text-align: center;
	padding: 10px 14px;
	background: var(--ab-navy);
	color: var(--ab-white);
	border-radius: 6px;
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
	transition: background 0.2s ease;
}
.ab-product-add:hover { background: var(--ab-blue); color: var(--ab-white); text-decoration: none; }

/* ---------- News ---------- */
.ab-news { padding: 72px 0; background: var(--ab-paper); border-top: 1px solid var(--ab-line); }
.ab-news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.ab-news-card {
	background: var(--ab-white);
	border: 1px solid var(--ab-line);
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease;
}
.ab-news-card:hover { box-shadow: 0 12px 30px rgba(1,37,130,0.08); }
.ab-news-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #f0ede5; }
.ab-news-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-news-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.ab-news-date { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ab-gold-dark); margin-bottom: 8px; }
.ab-news-title { font-size: 19px; margin: 0 0 10px; line-height: 1.3; }
.ab-news-title a { color: var(--ab-navy); text-decoration: none; }
.ab-news-title a:hover { color: var(--ab-blue-dark); }
.ab-news-excerpt { color: var(--ab-gray); font-size: 14px; line-height: 1.6; margin: 0 0 16px; flex: 1; }
.ab-news-more { color: var(--ab-navy); font-weight: 700; font-size: 14px; text-decoration: none; }
.ab-news-more:hover { color: var(--ab-blue-dark); text-decoration: none; }

/* ---------- About / mission ---------- */
.ab-about { padding: 76px 0; background: var(--ab-white); }
.ab-about-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 48px;
	align-items: start;
}
.ab-about-text { font-size: 16px; line-height: 1.7; color: var(--ab-ink); margin: 0 0 16px; }
.ab-about-copy .ab-btn { margin-top: 8px; }
.ab-about-card {
	background: var(--ab-paper);
	border: 1px solid var(--ab-line);
	border-left: 4px solid var(--ab-gold);
	border-radius: 10px;
	padding: 32px;
}
.ab-about-card h3 { font-size: 24px; margin: 0 0 12px; }
.ab-about-card p { color: var(--ab-gray); line-height: 1.7; font-size: 15px; margin: 0 0 22px; }

/* ---------- Wholesale banner ---------- */
.ab-wholesale {
	background: linear-gradient(115deg, var(--ab-navy) 0%, var(--ab-navy-dark) 55%, #013aa8 100%);
	color: var(--ab-white);
	padding: 64px 0;
}
.ab-wholesale-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}
.ab-wholesale-title { color: var(--ab-white); font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 12px; }
.ab-wholesale-text { color: rgba(255,255,255,0.85); font-size: 16px; margin: 0; }
.ab-wholesale-cta { flex-shrink: 0; }

/* ---------- Header (Astra overrides) ---------- */
/* Single navy bar, logo left, nav right, cart button right */
.site-header,
#ast-desktop-header {
	background: var(--ab-navy);
	border-bottom: 3px solid var(--ab-gold);
}
.site-header .ast-above-header-wrap .ast-above-header-bar {
	background: var(--ab-navy);
	border-bottom: none;
}

/* Force a clean 2-column flex layout: logo left, nav right */
#ast-desktop-header .ast-builder-grid-row,
.ast-above-header-bar .ast-builder-grid-row {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
}
/* Hide the middle/left-center empty sections */
#ast-desktop-header .site-header-above-section-left-center,
#ast-desktop-header .site-header-above-section-center-left,
#ast-desktop-header .site-header-above-section-right {
	display: none !important;
}
/* Logo block on the left */
#ast-desktop-header .site-header-above-section-left {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}
/* Menu on the right */
#ast-desktop-header .site-header-above-section-center {
	flex: 1 1 auto;
	display: flex;
	justify-content: flex-end;
	margin-left: auto;
}
#ast-desktop-header .main-header-bar-navigation {
	display: flex;
}
#ast-desktop-header .main-navigation {
	display: flex;
	align-items: center;
}
#ast-desktop-header .main-header-menu {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
}

/* Logo only — the script logo already reads "Abundance Books" */
.site-branding {
	display: flex;
	align-items: center;
}
.site-branding .site-logo-img {
	margin-bottom: 0;
}
.site-branding .custom-logo {
	max-width: 180px;
	height: auto;
	display: block;
}
/* Hide duplicated wordmark text next to the logo */
#ast-desktop-header .site-branding .site-title,
#ast-desktop-header .site-branding .site-description,
#ast-desktop-header .site-branding .ast-site-title-wrap {
	display: none !important;
}

/* Main nav */
.main-header-menu .menu-link {
	color: var(--ab-white);
	font-family: var(--ab-sans);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.01em;
	padding: 10px 14px;
}
.main-header-menu > li > a.menu-link {
	color: var(--ab-white);
}
.main-header-menu > li > a.menu-link:hover,
.main-header-menu > li.current-menu-item > a.menu-link,
.main-header-menu > li.current-menu-ancestor > a.menu-link {
	color: var(--ab-gold);
}
.main-header-menu > li.menu-item-has-children > a.menu-link::after {
	display: none;
}

/* Beat Astra's generated rules (.ast-builder-menu-1 .menu-item > .menu-link wins
   over the child theme on specificity — dark slate on navy is unreadable) */
.ast-builder-menu-1 .menu-item > .menu-link,
.ast-builder-menu-1 .menu-item > .menu-link:visited {
	color: var(--ab-white) !important;
}
.ast-builder-menu-1 .menu-item:hover > .menu-link,
.ast-builder-menu-1 .menu-item.current-menu-item > .menu-link,
.ast-builder-menu-1 .menu-item.current-menu-ancestor > .menu-link {
	color: var(--ab-gold) !important;
}
.ast-builder-menu-1 .menu-item > .menu-link:hover {
	color: var(--ab-gold) !important;
}

/* Dropdown */
.main-header-menu .sub-menu {
	background: var(--ab-white);
	border-radius: 0 0 8px 8px;
	border-top: 3px solid var(--ab-gold);
	box-shadow: 0 14px 30px rgba(0,0,0,0.18);
	padding: 8px 0;
	min-width: 210px;
}
.main-header-menu .sub-menu .menu-link {
	color: var(--ab-ink);
	font-size: 14px;
	padding: 9px 18px;
}
.main-header-menu .sub-menu .menu-link:hover {
	color: var(--ab-navy);
	background: #f4f1ea;
}
.main-header-menu .sub-menu .menu-item.current-menu-item > a.menu-link {
	color: var(--ab-blue-dark);
}

/* Cart button (last menu item) */
.main-header-menu .ab-cart-btn > a.menu-link,
.ast-header-break-point .main-header-menu .ab-cart-btn > a.menu-link {
	background: var(--ab-gold);
	color: #221a02;
	border-radius: 6px;
	font-weight: 700;
	padding: 10px 20px;
	margin-left: 8px;
	transition: background 0.2s ease;
}
.main-header-menu .ab-cart-btn > a.menu-link:hover {
	background: var(--ab-gold-dark);
	color: #221a02;
}
.main-header-menu .ab-cart-btn.current-menu-item > a.menu-link {
	color: #221a02;
}

/* Mobile menu */
.ast-header-break-point .main-header-menu .menu-link { color: var(--ab-white); }
.ast-mobile-popup-drawer .main-header-menu .menu-link { color: var(--ab-ink); }
.ast-mobile-popup-drawer .main-header-menu .sub-menu .menu-link { color: var(--ab-ink); }
.ast-mobile-popup-drawer .main-header-menu .ab-cart-btn > a.menu-link {
	background: var(--ab-gold);
	color: #221a02;
	display: inline-block;
	border-radius: 6px;
}
.ast-mobile-popup-drawer .main-header-menu .menu-item-has-children .menu-link { color: var(--ab-ink); }
.ast-mobile-header-wrap .menu-toggle,
.ast-mobile-header-wrap .ast-mobile-menu-trigger {
	color: var(--ab-white);
	background: transparent;
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--ab-navy-dark);
	color: rgba(255,255,255,0.85);
}
.site-footer .widget-title,
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4 {
	color: var(--ab-white);
}
.site-footer a {
	color: rgba(255,255,255,0.85);
}
.site-footer a:hover { color: var(--ab-gold); }
.abundance-credit { font-weight: 700; color: var(--ab-white); }

/* ---------- WooCommerce ---------- */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h3 {
	font-family: var(--ab-serif);
	color: var(--ab-navy);
}
.woocommerce ul.products li.product .price {
	color: var(--ab-navy);
	font-weight: 700;
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	background: var(--ab-navy);
	color: var(--ab-white);
	border-radius: 6px;
	font-weight: 700;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: var(--ab-blue);
	color: var(--ab-white);
}
.woocommerce .star-rating span { color: var(--ab-gold); }
.woocommerce div.product .product_title { font-size: 34px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--ab-gold); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--ab-gold-dark); }
.woocommerce-cart table.cart td.actions .coupon .input-text { border-color: var(--ab-line); border-radius: 6px; }

/* ---------- Page content ---------- */
.single-post .entry-title,
.page .entry-title {
	font-family: var(--ab-serif);
	color: var(--ab-navy);
}
.entry-content a { color: var(--ab-blue-dark); }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--ab-navy); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.ab-strip-grid { grid-template-columns: repeat(3, 1fr); }
	.ab-products-grid { grid-template-columns: repeat(3, 1fr); }
	.ab-hero-art { display: none; }
	.ab-hero { padding: 80px 0; }
	.ab-about-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
	.ab-products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.ab-news-grid { grid-template-columns: 1fr; }
	.ab-strip-grid { grid-template-columns: repeat(2, 1fr); }
	.ab-hero-title { font-size: 36px; }
	.ab-section-head { flex-direction: column; align-items: flex-start; }
	.ab-wholesale-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
	.ab-products-grid { grid-template-columns: 1fr; }
	.ab-hero-cta { flex-direction: column; }
	.ab-btn { width: 100%; text-align: center; }
}
