/*
 * DecoGnomes — guard rules.
 * Older custom CSS (Customizer "Additional CSS" or design plugins) can recolour
 * the theme's dark sections. These rules use an ID-level selector (:not(#dg))
 * plus !important so the hero, Christmas sections and footer always stay readable.
 */

/* Page and header backgrounds */
html body:not(#dg) { background-color: var(--dg-white) !important; color: var(--dg-ink) !important; }
html body:not(#dg) .site-header,
html body:not(#dg) .main-navigation { background-color: var(--dg-white) !important; }
@media (max-width: 960px) {
	html body:not(#dg) .main-navigation { background-color: var(--dg-white) !important; }
}

/* Gloock has one weight: stop fake bold */
html body:not(#dg) h1, html body:not(#dg) h2, html body:not(#dg) h3,
html body:not(#dg) .page-title, html body:not(#dg) .entry-title,
html body:not(#dg) .collection-title, html body:not(#dg) .site-title,
html body:not(#dg) .product_title { font-family: var(--dg-display) !important; font-weight: 400 !important; }
html body:not(#dg) .woocommerce-loop-product__title { font-family: var(--dg-body) !important; font-weight: 500 !important; }
html body:not(#dg) h1, html body:not(#dg) h2, html body:not(#dg) h3 { color: var(--dg-ink); }

/* Announcement bar */
html body:not(#dg) .announcement-bar { background-color: var(--dg-red) !important; }
html body:not(#dg) .announcement-bar p,
html body:not(#dg) .announcement-bar a { color: #fff !important; }

/* Hero */
html body:not(#dg) .hero { background-color: var(--dg-green) !important; }
html body:not(#dg) .hero .hero-title { color: #fff !important; }
html body:not(#dg) .hero .hero-text { color: rgba(255, 255, 255, .88) !important; opacity: 1 !important; }
html body:not(#dg) .hero .kicker { color: #D9B983 !important; }
html body:not(#dg) .hero .button-light { background: #fff !important; border-color: #fff !important; color: var(--dg-ink) !important; }
html body:not(#dg) .hero .button-outline-light { background: transparent !important; border-color: rgba(255, 255, 255, .7) !important; color: #fff !important; }
html body:not(#dg) .hero .button-outline-light:hover { background: #fff !important; color: var(--dg-ink) !important; }

/* Collection cards */
html body:not(#dg) .collection { color: #fff !important; background-color: var(--dg-green) !important; }
html body:not(#dg) .collection--christmas { background-color: var(--dg-red) !important; }
html body:not(#dg) .collection .collection-title,
html body:not(#dg) .collection .collection-text,
html body:not(#dg) .collection .collection-cta { color: #fff !important; }
html body:not(#dg) .collection .collection-count { color: #E7C08A !important; }

/* Christmas band */
html body:not(#dg) .band--christmas { background-color: var(--dg-red) !important; color: #fff !important; }
html body:not(#dg) .band--christmas h2,
html body:not(#dg) .band--christmas .woocommerce-loop-product__title,
html body:not(#dg) .band--christmas .price,
html body:not(#dg) .band--christmas .price .amount { color: #fff !important; }
html body:not(#dg) .band--christmas .section-intro { color: rgba(255, 255, 255, .82) !important; }
html body:not(#dg) .band--christmas .dg-card-cat { color: rgba(255, 255, 255, .7) !important; }
html body:not(#dg) .band--christmas .price ins,
html body:not(#dg) .band--christmas .price ins .amount { color: #F2C9A0 !important; }
html body:not(#dg) .band--christmas .section-head .button-light { background: #fff !important; border-color: #fff !important; color: var(--dg-red) !important; }
html body:not(#dg) .band--christmas li.product .button { background: transparent !important; color: #fff !important; border-color: rgba(255, 255, 255, .7) !important; }
html body:not(#dg) .band--christmas li.product .button:hover { background: #fff !important; color: var(--dg-red) !important; }

/* Garden band */
html body:not(#dg) .band--garden { background-color: var(--dg-mist) !important; }

/* Footer */
html body:not(#dg) .site-footer { background-color: var(--dg-green-dark) !important; color: rgba(255, 255, 255, .82) !important; }
html body:not(#dg) .site-footer p,
html body:not(#dg) .site-footer li,
html body:not(#dg) .site-footer a { color: rgba(255, 255, 255, .82) !important; }
html body:not(#dg) .site-footer .site-title { color: #fff !important; }
html body:not(#dg) .site-footer .footer-heading { color: var(--dg-gold) !important; }

/* Main area and product cards */
html body:not(#dg) .site-main,
html body:not(#dg) .site-main > .section:not(.band) { background-color: transparent !important; }
html body:not(#dg) ul.products li.product {
	background: transparent !important; border: 0 !important; border-radius: 0 !important;
	padding: 0 !important; box-shadow: none !important; text-align: left !important; color: var(--dg-ink) !important;
}
html body:not(#dg) ul.products li.product:hover { transform: none !important; box-shadow: none !important; }
html body:not(#dg) ul.products li.product .button {
	background: transparent !important; color: var(--dg-ink) !important; border: 1px solid var(--dg-ink) !important;
	border-radius: var(--dg-radius) !important; box-shadow: none !important;
}
html body:not(#dg) ul.products li.product .button:hover { background: var(--dg-green) !important; border-color: var(--dg-green) !important; color: #fff !important; }
html body:not(#dg) ul.products li.product .price { color: var(--dg-ink) !important; }
html body:not(#dg) ul.products li.product .price ins,
html body:not(#dg) ul.products li.product .price ins .amount { color: var(--dg-red) !important; }
html body:not(#dg) .band--christmas ul.products li.product { color: #fff !important; }
html body:not(#dg) .band--christmas ul.products li.product .button { background: transparent !important; color: #fff !important; border-color: rgba(255, 255, 255, .7) !important; }
html body:not(#dg) .band--christmas ul.products li.product .button:hover { background: #fff !important; color: var(--dg-red) !important; }
html body:not(#dg) .band--christmas ul.products li.product .price,
html body:not(#dg) .band--christmas ul.products li.product .price .amount { color: #fff !important; }
html body:not(#dg) .band--christmas ul.products li.product .price ins,
html body:not(#dg) .band--christmas ul.products li.product .price ins .amount { color: #F2C9A0 !important; }
