/* dealmania.me on Electro (yellow). Loaded after Electro's stylesheets. */

:root {
	--dmx-yellow: #fed700;
	--dmx-yellow-dark: #e7c400;
	--dmx-ink: #333e48;
	--dmx-muted: #6b7280;
	--dmx-line: #e6e6e6;
	--dmx-soft: #f5f5f5;
	--dmx-sale: #df3737;

	/* Colours and sizes the existing block-built pages (made under the old theme) refer to. */
	--wp--preset--color--base: #ffffff;
	--wp--preset--color--contrast: #333e48;
	--wp--preset--color--primary: #333e48;
	--wp--preset--color--secondary: #fed700;
	--wp--preset--color--tertiary: #e7c400;
	--wp--preset--color--header-background: #f5f5f5;
	--wp--preset--color--header-foreground: #333e48;
	--wp--preset--color--header-titles: #333e48;
	--wp--preset--color--secondary-background: #f5f5f5;
	--wp--preset--color--secondary-foreground: #333e48;
	--wp--preset--spacing--10: clamp(0.44rem, calc(0.36rem + 0.37vw), 0.63rem);
	--wp--preset--spacing--20: clamp(0.75rem, calc(0.68rem + 0.37vw), 0.94rem);
	--wp--preset--spacing--30: clamp(1.25rem, calc(1.13rem + 0.61vw), 1.56rem);
	--wp--preset--spacing--40: clamp(1.88rem, calc(1.75rem + 0.61vw), 2.19rem);
	--wp--preset--spacing--50: clamp(2.19rem, calc(1.82rem + 1.83vw), 3.13rem);
	--wp--preset--spacing--70: clamp(3.75rem, calc(3.26rem + 2.44vw), 5rem);
	--wp--preset--spacing--80: clamp(4.38rem, calc(3.64rem + 3.66vw), 6.25rem);
}
.has-base-color { color: #fff !important; }
.has-base-background-color { background-color: #fff !important; }
.has-contrast-color, .has-primary-color, .has-header-titles-color { color: var(--dmx-ink) !important; }
.has-contrast-background-color, .has-primary-background-color { background-color: var(--dmx-ink) !important; }
.has-secondary-color { color: var(--dmx-yellow-dark) !important; }
.has-secondary-background-color, .has-tertiary-background-color { background-color: var(--dmx-yellow) !important; color: var(--dmx-ink); }
.has-secondary-background-background-color, .has-header-background-background-color { background-color: var(--dmx-soft) !important; }
.has-x-small-font-size { font-size: .875rem !important; }
.has-small-font-size { font-size: 1rem !important; }
.has-medium-font-size { font-size: 1.5rem !important; }
.has-large-font-size { font-size: 1.75rem !important; }
.has-x-large-font-size { font-size: 2rem !important; }
.has-huge-font-size { font-size: 3rem !important; }
.is-style-nfd-theme-darker, .is-style-nfd-theme-dark { color: #fff; }
.is-style-nfd-theme-darker a:not(.wp-element-button), .is-style-nfd-theme-dark a:not(.wp-element-button) { color: var(--dmx-yellow); }

/* Under a classic theme WordPress wraps each group's children in an extra div, which breaks the grids and
   rows the pages were built with. Let the children sit directly in the group again. */
.wp-block-group > .wp-block-group__inner-container { display: contents; }

/* Buttons made in the block editor look like Electro's. */
.wp-element-button, .wp-block-button__link {
	background: var(--dmx-yellow); color: var(--dmx-ink); border: 0; border-radius: 1.5rem;
	padding: .6rem 1.5rem; font-weight: 700; text-decoration: none; display: inline-block; line-height: 1.5;
}
.wp-element-button:hover, .wp-block-button__link:hover { background: var(--dmx-ink); color: #fff; }
.is-style-outline .wp-block-button__link { background: transparent; border: 2px solid var(--dmx-ink); }

/* ---------- Product page: the plugin's spec cards and store buttons in Electro colours ---------- */
.single-product .dm-specs { margin: 1rem 0 1.25rem; }
.single-product .dm-use { background: #fff6c2; color: var(--dmx-ink); }
.single-product .dm-spec { border-color: var(--dmx-line); border-radius: 8px; }
.single-product .dm-spec .dm-icon { color: var(--dmx-ink); }
.single-product .dm-spec dt { color: var(--dmx-muted); }
.dmx-more-stores { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.dmx-more-stores .dm-store {
	display: block; text-align: center; background: #fff; color: var(--dmx-ink); border: 2px solid var(--dmx-ink);
	border-radius: 1.5rem; padding: .55rem 1rem; font-weight: 700; font-size: .95rem; text-decoration: none;
}
.dmx-more-stores .dm-store:hover { background: var(--dmx-ink); color: #fff; }

/* ---------- Home ---------- */
.dmx-home { padding-bottom: 2rem; }
.dmx-home > section { margin: 0 0 2.5rem; }

.dmx-hero { position: relative; background: var(--dmx-soft); border-radius: 12px; overflow: hidden; margin-top: 1rem !important; }
.dmx-hero-track { position: relative; min-height: 380px; }
.dmx-slide {
	position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem;
	padding: 2.5rem 3.5rem; opacity: 0; visibility: hidden; transition: opacity .5s ease;
}
.dmx-slide.is-active { position: relative; opacity: 1; visibility: visible; }
.dmx-slide-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--dmx-muted); margin: 0 0 .4rem; }
.dmx-slide-title { font-size: clamp(1.6rem, 2.6vw, 2.6rem); line-height: 1.15; font-weight: 700; margin: 0 0 1rem; }
.dmx-slide-title a { color: var(--dmx-ink); }
.dmx-slide-price { font-size: 1.6rem; font-weight: 700; color: var(--dmx-ink); margin: 0 0 1.3rem; }
.dmx-slide-price del { font-size: 1rem; color: var(--dmx-muted); font-weight: 400; margin-right: .4rem; }
.dmx-slide-price ins { text-decoration: none; }
.dmx-off { display: inline-block; background: var(--dmx-sale); color: #fff; font-size: .8rem; font-weight: 700; border-radius: 1rem; padding: .15rem .6rem; vertical-align: middle; }
.dmx-btn { display: inline-block; background: var(--dmx-yellow); color: var(--dmx-ink); font-weight: 700; border-radius: 1.5rem; padding: .7rem 2rem; text-decoration: none; }
.dmx-btn:hover { background: var(--dmx-ink); color: #fff; }
.dmx-slide-img { display: flex; justify-content: center; }
.dmx-slide-img img { max-height: 320px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.dmx-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.dmx-dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: #cfcfcf; cursor: pointer; }
.dmx-dot.is-active { background: var(--dmx-yellow-dark); width: 28px; border-radius: 6px; }

.dmx-banners { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.dmx-banner {
	display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 140px; padding: 18px 20px;
	background: var(--dmx-soft); border-radius: 10px; color: var(--dmx-ink); text-decoration: none; overflow: hidden;
	transition: box-shadow .2s ease;
}
.dmx-banner:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .08); color: var(--dmx-ink); }
.dmx-banner-text { display: flex; flex-direction: column; gap: 4px; }
.dmx-banner-title { font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.dmx-banner-count { font-size: .85rem; color: var(--dmx-muted); }
.dmx-banner-cta { font-size: .85rem; font-weight: 700; margin-top: 6px; }
.dmx-banner-img { width: 110px; height: 110px; object-fit: contain; mix-blend-mode: multiply; flex: none; }

.dmx-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--dmx-line); margin-bottom: 1.5rem; }
.dmx-section-head h2 { font-size: 1.4rem; margin: 0; padding-bottom: .7rem; border-bottom: 2px solid var(--dmx-yellow); margin-bottom: -1px; }
.dmx-see-all { font-size: .9rem; font-weight: 700; padding-bottom: .7rem; color: var(--dmx-ink); }
.dmx-tab-head { justify-content: flex-start; flex-wrap: wrap; }
.dmx-tab, .dmx-tab:hover, .dmx-tab:focus { background: none !important; box-shadow: none; border-radius: 0; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 0 0 .7rem; margin-right: 1.8rem; font-size: 1.1rem; font-weight: 400; color: var(--dmx-muted); cursor: pointer; }
.dmx-tab.is-active { color: var(--dmx-ink); font-weight: 700; border-bottom-color: var(--dmx-yellow); }
.dmx-tab-panel { display: none; }
.dmx-tab-panel.is-active { display: block; }
.dmx-tab-more { text-align: right; font-weight: 700; margin: .5rem 0 0; }

.dmx-home-content { margin-top: 1rem; }
.dmx-home-content > * { max-width: 100%; }

.dmx-site-footer { background: var(--dmx-soft); padding: 2rem 0 1.5rem; font-size: .9rem; color: var(--dmx-muted); text-align: center; }
.dmx-site-footer a { color: var(--dmx-ink); font-weight: 600; }
.dmx-site-footer p { margin: 0 auto .6rem; max-width: 820px; }
.dmx-site-footer .wp-block-group, .dmx-site-footer .wp-block-columns { background: transparent !important; padding: 0 !important; margin: 0 !important; }

/* Site logo (wide "dealmania." wordmark). */
.masthead .header-logo-area .custom-logo-link img, .masthead .header-site-branding img.custom-logo,
.masthead .header-logo img.custom-logo { height: 46px; width: auto; max-width: 260px; }
.masthead .header-logo-area { min-width: 0; }
.handheld-header .header-logo img.custom-logo, .mobile-header-v1 .header-logo img.custom-logo, .mobile-header-v2 .header-logo img.custom-logo { height: 34px; width: auto; max-width: 200px; }

@media (max-width: 767px) {
	.dmx-hero-track { min-height: 0; }
	.dmx-slide { grid-template-columns: 1fr; padding: 1.5rem 1.25rem 2.5rem; gap: 1rem; text-align: center; }
	.dmx-slide-img { order: -1; }
	.dmx-slide-img img { max-height: 200px; }
	.dmx-banner { min-height: 110px; }
	.dmx-banner-img { width: 80px; height: 80px; }
}
