/* Kitchor Child: Danipress. Extends the Kitchor design system; does not replace it.
   Tokens come from the Elementor kit (--e-global-*), with the same fallbacks the plugin uses. */
:root {
	--dp-gold: var(--e-global-color-primary, #DAA14C);
	--dp-ink: var(--e-global-color-secondary, #30373E);
	--dp-dark: var(--e-global-color-dark, #202020);
	--dp-text: var(--e-global-color-text, #535353);
	--dp-muted: #6B6B6B;
	--dp-border: var(--e-global-color-border, #E5E5E5);
	--dp-soft: #F7F4EF;
	--dp-section: clamp(48px, 8vw, 96px);
	--dp-wrap: 1290px;
}

/* ---------- Storefront template ---------- */
.dp-storefront { width: 100%; }
.dp-storefront__article > * { max-width: var(--dp-wrap); margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
.dp-storefront__article > .alignfull,
.dp-storefront__article > .dp-bleed { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding-left: 0; padding-right: 0; }
.dp-storefront-page .site-content > .col-full,
.dp-storefront-page #content > .container { max-width: none; padding-left: 0; padding-right: 0; }

.dp-section { padding-top: var(--dp-section); padding-bottom: 0; }
.dp-section:last-child { padding-bottom: var(--dp-section); }
.dp-section__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.dp-section__head h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); color: var(--dp-dark); }
.dp-section__head p { margin: 6px 0 0; color: var(--dp-muted); max-width: 60ch; }
.dp-link-all { font-weight: 600; color: var(--dp-ink); text-decoration: underline; text-decoration-color: var(--dp-gold); text-underline-offset: 4px; white-space: nowrap; }
.dp-eyebrow { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; color: var(--dp-ink); margin: 0 0 12px; }
.dp-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--dp-gold); }

/* ---------- Hero ---------- */
.dp-hero { background: linear-gradient(120deg, var(--dp-soft) 0%, #fff 70%); }
.dp-hero__inner { max-width: var(--dp-wrap); margin: 0 auto; padding: clamp(56px, 9vw, 120px) 16px; display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; }
.dp-hero h1 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.05; letter-spacing: -.01em; color: var(--dp-dark); margin: 0 0 18px; }
.dp-hero__lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--dp-text); max-width: 52ch; margin: 0 0 28px; }
.dp-hero__media img { width: 100%; height: auto; border-radius: 16px; display: block; }
.dp-hero__media:empty { display: none; }
.dp-hero__inner:has(.dp-hero__media:empty) { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.dp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dp-actions a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.dp-actions .dp-primary { background: var(--dp-ink); color: #fff; }
.dp-actions .dp-primary:hover { background: var(--dp-dark); color: #fff; }
.dp-actions .dp-secondary { border: 1.5px solid var(--dp-ink); color: var(--dp-ink); }
.dp-actions .dp-secondary:hover { border-color: var(--dp-gold); color: var(--dp-dark); }
.dp-actions a:focus-visible { outline: 3px solid var(--dp-gold); outline-offset: 3px; }

@media (max-width: 860px) {
	.dp-hero__inner { grid-template-columns: 1fr; }
	.dp-hero__media { order: -1; }
}

/* ---------- Content pages (guides, policies) ---------- */
.dp-prose { max-width: 760px; margin: 0 auto; }
.dp-prose h2 { margin-top: 1.8em; }
.dp-prose table { width: 100%; border-collapse: collapse; }
.dp-prose th, .dp-prose td { border-bottom: 1px solid var(--dp-border); padding: 10px 8px; text-align: left; }
.dp-guide-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.dp-guide-grid li a { display: block; height: 100%; padding: 20px; border: 1px solid var(--dp-border); border-radius: 10px; color: var(--dp-dark); text-decoration: none; font-weight: 600; transition: border-color .2s ease; }
.dp-guide-grid li a:hover { border-color: var(--dp-gold); }
.dp-guide-grid li span { display: block; margin-top: 6px; font-weight: 400; font-size: 14px; color: var(--dp-muted); }

/* ---------- WooCommerce product cards: consistent photo boxes for mixed-source images ---------- */
.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img { aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 16px; line-height: 1.35; }
.single-product div.product .woocommerce-product-gallery__image img { background: #fff; }

/* Hero entrance: subtle, and off for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
	.dp-hero__copy > * { animation: dp-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
	.dp-hero__copy > *:nth-child(2) { animation-delay: .06s; }
	.dp-hero__copy > *:nth-child(3) { animation-delay: .12s; }
	.dp-hero__copy > *:nth-child(4) { animation-delay: .18s; }
}
@keyframes dp-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Storefront pages carry their own hero and H1: hide Kitchor's breadcrumb banner there. */
.dp-storefront-page .breadcrumb-wrap { display: none; }

/* No reviews yet: Kitchor still draws five hollow stars. Hide the empty rating box only;
   real ratings (non-empty .star-rating) keep showing. */
.count-review:has(.star-rating:empty) { display: none; }

/* Logo: Kitchor's demo SVG carried a 185x36 size; the store logos are 3x PNGs, so pin the display height. */
img.hfe-site-logo-img[src*="danipress-logo"] { height: 36px; width: auto; max-width: 100%; }

/* Page-title banner (Kitchor breadcrumb template 110): replace the kitchen photo with the brand charcoal,
   and trim the 180px padding so products start higher on the page. */
.breadcrumb-wrap .elementor-element-1912824:not(.elementor-motion-effects-element-type-background) {
	background-image: linear-gradient(120deg, #30373E 0%, #202020 100%) !important;
	border-bottom: 3px solid var(--dp-gold);
	padding-top: clamp(48px, 6vw, 96px) !important;
	padding-bottom: clamp(48px, 6vw, 96px) !important;
}
.breadcrumb-wrap .elementor-element-1912824 > .elementor-background-overlay { opacity: 0 !important; }
