/*
Theme Name:   The Peddler
Description:  Astra child theme for The Peddler Store.
Template:     astra
Version:      1.0.0
Text Domain:  peddler
*/

/* ---------- Tokens ---------- */
:root {
	--pd-red: #c8281e;
	--pd-red-dark: #9e1f17;
	--pd-char: #1b1714;
	--pd-char-2: #2a211c;
	--pd-ink: #2e2823;
	--pd-muted: #6b625a;
	--pd-cream: #f6f1ea;
	--pd-sand: #e6dccf;
	--pd-ember: #f0604f; /* logo red, lifted for small text on dark */
	--pd-radius: 6px;
	--pd-display: 'Oswald', 'Arial Narrow', sans-serif;
	--pd-body: 'Inter', system-ui, sans-serif;
}

body {
	font-family: var(--pd-body);
	color: var(--pd-ink);
	background: var(--pd-cream);
}

h1, h2, h3, h4, h5, h6,
.entry-content :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--pd-display);
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--pd-char);
}

/* ---------- Header ---------- */
.site-header .ast-primary-header-bar,
.site-header .ast-above-header-bar,
.ast-mobile-header-wrap .ast-primary-header-bar {
	background: var(--pd-cream);
	border-bottom: 1px solid var(--pd-sand);
}

/* The logo file has a white background; multiply lets the cream show through. */
.site-header .custom-logo-link img {
	mix-blend-mode: multiply;
}

.main-header-menu .menu-link {
	font-family: var(--pd-display);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pd-char);
}

.main-header-menu .menu-item:hover > .menu-link,
.main-header-menu .current-menu-item > .menu-link {
	color: var(--pd-red);
}

/* ---------- Buttons (blocks + WooCommerce) ---------- */
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .button,
.woocommerce-page a.button {
	font-family: var(--pd-display);
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border-radius: var(--pd-radius);
	background: var(--pd-red);
	color: #fff;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .button:hover {
	background: var(--pd-red-dark);
	color: #fff;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 2px solid currentColor;
	color: inherit;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: #fff;
	border-color: #fff;
	color: var(--pd-char);
}

/* ---------- Homepage ---------- */
.pd-home {
	margin: 0;
}

.pd-home > * {
	margin-block: 0;
}

.pd-eyebrow {
	font-family: var(--pd-display);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--pd-red);
	margin-bottom: 12px;
}

/* Hero */
.pd-hero.wp-block-cover {
	min-height: min(82vh, 760px);
	padding: 96px 24px;
}

.pd-hero .wp-block-cover__inner-container {
	max-width: 1120px;
	width: 100%;
	margin: 0 auto;
}

.pd-hero .pd-eyebrow {
	color: var(--pd-sand);
}

.pd-hero h1 {
	color: #fff;
	font-size: clamp(48px, 8vw, 104px);
	line-height: 0.95;
	letter-spacing: 0.03em;
	margin: 0 0 20px;
	max-width: 12ch;
}

.pd-hero .pd-lede {
	color: rgba(255, 255, 255, .88);
	font-size: clamp(17px, 1.6vw, 20px);
	line-height: 1.55;
	max-width: 34em;
	margin: 0 0 32px;
}

.pd-hero .wp-block-button__link {
	padding: 16px 32px;
	font-size: 16px;
}

.pd-hero .is-style-outline .wp-block-button__link {
	color: #fff;
}

/* Section scaffolding */
.pd-section {
	padding: clamp(64px, 9vw, 112px) 24px;
}

.pd-section > .wp-block-group__inner-container,
.pd-section.is-layout-constrained > * {
	max-width: 1120px;
	margin-left: auto;
	margin-right: auto;
}

.pd-section-head {
	text-align: center;
	margin-bottom: 48px;
}

.pd-section-head h2 {
	font-size: clamp(34px, 4.4vw, 52px);
	margin: 0 0 12px;
}

.pd-section-head p:not(.pd-eyebrow) {
	color: var(--pd-muted);
	font-size: 18px;
	max-width: 36em;
	margin: 0 auto;
}

/* Product cards */
.pd-cards.wp-block-columns {
	gap: 32px;
	margin: 0;
}

.pd-card {
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(27, 23, 20, .06), 0 12px 32px rgba(27, 23, 20, .08);
	display: flex;
	flex-direction: column;
}

.pd-card .wp-block-image {
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.pd-card .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.pd-card:hover .wp-block-image img {
	transform: scale(1.03);
}

.pd-card-body {
	padding: 32px 32px 36px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.pd-card-body h3 {
	font-size: 30px;
	margin: 0 0 12px;
}

.pd-card-body p:not(.pd-eyebrow) {
	color: var(--pd-muted);
	font-size: 17px;
	line-height: 1.6;
	margin: 0 0 28px;
}

.pd-card-body .wp-block-buttons {
	margin-top: auto;
}

.pd-price {
	font-family: var(--pd-display);
	font-size: 15px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pd-red);
}

/* How it works (dark band) */
.pd-dark {
	background: var(--pd-char) radial-gradient(ellipse at 50% 0%, rgba(200, 40, 30, .16), transparent 60%);
	color: rgba(255, 255, 255, .8);
}

.pd-dark h2,
.pd-dark h3 {
	color: #fff;
}

.pd-dark .pd-section-head p:not(.pd-eyebrow) {
	color: rgba(255, 255, 255, .7);
}

.pd-dark .pd-eyebrow {
	color: var(--pd-ember);
}

.pd-steps.wp-block-columns {
	gap: 24px;
	margin: 0;
}

.pd-step {
	border: 1px solid rgba(246, 241, 234, .1);
	border-top: 3px solid var(--pd-red);
	border-radius: var(--pd-radius);
	padding: 32px 28px;
	background: var(--pd-char-2);
}

.pd-step-num {
	font-family: var(--pd-display);
	font-size: 56px;
	font-weight: 600;
	line-height: 1;
	color: var(--pd-ember);
	margin: 0 0 16px;
}

.pd-step h3 {
	font-size: 22px;
	margin: 0 0 10px;
}

.pd-step p:not(.pd-step-num) {
	font-size: 16px;
	line-height: 1.6;
	margin: 0;
}

.pd-dark .pd-center {
	margin-top: 48px;
	justify-content: center;
}

/* Visit band */
.pd-visit {
	text-align: center;
}

.pd-visit h2 {
	font-size: clamp(30px, 3.6vw, 44px);
	margin: 0 0 16px;
}

.pd-visit p {
	font-size: 18px;
	margin: 0 0 6px;
}

.pd-visit a {
	color: var(--pd-red);
	text-decoration: none;
	font-weight: 600;
}

.pd-visit a:hover {
	text-decoration: underline;
}

/* ---------- Footer ---------- */
.site-footer,
.site-footer .site-below-footer-wrap,
.site-footer .site-primary-footer-wrap {
	background: var(--pd-char);
	color: rgba(255, 255, 255, .65);
	border: 0;
}

.site-footer a {
	color: #fff;
}

/* ---------- Small screens ---------- */
@media (max-width: 781px) {
	.pd-hero.wp-block-cover {
		min-height: 560px;
		padding: 72px 16px;
	}

	.pd-section {
		padding-left: 16px;
		padding-right: 16px;
	}

	.pd-card-body {
		padding: 24px 22px 28px;
	}

	.pd-hero .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.pd-hero .wp-block-button__link {
		width: 100%;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pd-card .wp-block-image img {
		transition: none;
	}
}

/* ---------- Astra overrides ---------- */

/* Astra pads top-level groups; the homepage wrapper handles its own spacing. */
.entry-content > .pd-home {
	padding: 0;
	margin: 0;
}

.ast-page-builder-template .site-content > .ast-container,
.ast-page-builder-template .entry-content[data-ast-blocks-layout] > .pd-home {
	max-width: none;
	padding: 0;
}

body .entry-content .pd-home .pd-hero.wp-block-cover p.pd-eyebrow {
	color: var(--pd-sand);
}

body .entry-content .pd-home .pd-hero.wp-block-cover p.pd-lede {
	color: rgba(255, 255, 255, .88);
}

.entry-content .pd-home .pd-hero .wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link {
	color: #fff;
	border-color: rgba(255, 255, 255, .7);
}

.entry-content .pd-home .pd-hero .wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: #fff;
	color: var(--pd-char);
	border-color: #fff;
}

.entry-content .pd-dark p {
	color: rgba(255, 255, 255, .78);
}

.entry-content .pd-dark p.pd-eyebrow,
.entry-content .pd-dark p.pd-step-num {
	color: var(--pd-ember);
}

/* Equal-height card images: the img sits inside a link. */
.pd-card .wp-block-image a {
	display: block;
	height: 100%;
}

.site-footer .ast-footer-copyright.site-footer-focus-item,
.site-footer .ast-footer-copyright p {
	color: rgba(255, 255, 255, .65);
}

/* Flow layout adds a top margin between blocks; cards set their own rhythm. */
.entry-content .pd-step > *,
.entry-content .pd-card-body > * {
	margin-block-start: 0;
}

.entry-content .pd-step p.pd-step-num {
	margin-bottom: 14px;
}

.entry-content .pd-card-body p.pd-price {
	margin-bottom: 8px;
}

/* External "Our Restaurant" link in the menu */
.main-header-menu .menu-item.pd-ext > .menu-link::after,
.ast-mobile-popup-content .menu-item.pd-ext > .menu-link::after {
	content: " \2197";
}

.ast-desktop .main-header-menu .menu-item.pd-ext > .menu-link {
	color: var(--pd-red);
}

.site-footer .ast-footer-copyright a {
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid var(--pd-red);
}

.site-footer .ast-footer-copyright a:hover {
	color: var(--pd-ember);
}

.entry-content .pd-card-body p.pd-price {
	color: var(--pd-red);
}

/* ---------- Shop, product & cart ---------- */
.woocommerce-message,
.woocommerce-info,
.wc-block-components-notice-banner.is-success {
	border-color: var(--pd-red);
	border-radius: var(--pd-radius);
	background: #fff;
}

.single-product .product_title {
	font-size: clamp(30px, 3.4vw, 44px);
	line-height: 1.05;
	margin-bottom: 12px;
}

.single-product .summary .price {
	font-size: 24px;
	color: var(--pd-char);
}

.single-product .woocommerce-product-details__short-description {
	font-size: 17px;
	line-height: 1.6;
	color: var(--pd-muted);
	margin-bottom: 24px;
}

.wc-block-components-product-button__button,
.wp-block-woocommerce-cart-cross-sells-block .wp-block-button__link {
	white-space: nowrap;
	letter-spacing: 0.08em;
}

/* Header cart icon */
.ast-site-header-cart .ast-cart-menu-wrap .count,
.ast-site-header-cart .ast-addon-cart-wrap .count,
.astra-icon.astra-icon-bag + .count,
.ast-header-woo-cart .ast-cart-menu-wrap .count {
	background: var(--pd-red);
	color: #fff;
}

.ast-header-woo-cart .ast-site-header-cart .ast-woo-header-cart-info-wrap,
.ast-header-woo-cart .ast-site-header-cart svg {
	color: var(--pd-char);
	fill: var(--pd-char);
}

.wc-block-cart .cross-sells-product .wc-block-components-product-button__button {
	white-space: nowrap;
	letter-spacing: 0.08em;
	padding-left: 20px;
	padding-right: 20px;
	font-size: 15px;
}

/* ---------- Slide-in cart panel ---------- */
.astra-cart-drawer .astra-cart-drawer-title {
	font-family: var(--pd-display);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pd-char);
}

.astra-cart-drawer .woocommerce-mini-cart-item a:not(.remove) {
	font-weight: 600;
	color: var(--pd-char);
}

.astra-cart-drawer .woocommerce-mini-cart__total {
	font-size: 18px;
}

/* Checkout is the main action; View cart is secondary. */
.woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons a.button:not(.checkout):not(.ast-continue-shopping) {
	background: transparent;
	color: var(--pd-red);
	border: 2px solid var(--pd-red);
}

.woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons a.button:not(.checkout):not(.ast-continue-shopping):hover {
	background: var(--pd-red);
	color: #fff;
}
