/*
Theme Name:  Dubler Deals
Theme URI:   https://dublerdeals.com
Author:      Dubler Deals
Description: Your Double Discount Destination — Elementor-compatible retail theme. Built on Hello Elementor base for full Elementor Pro/Free compatibility. Drag-and-drop editable via Elementor.
Version:     2.0.0
Requires at least: 6.0
Tested up to: 6.9.4
Requires PHP: 8.0
Template:    hello-elementor
License:     GNU General Public License v2 or later
Text Domain: dubler-deals
Tags:        elementor, e-commerce, affiliate, amazon, retail, deals
*/

/* =====================================================
   DUBLER DEALS — BRAND DESIGN TOKENS
   Navy    #1B3A6B  primary
   Teal    #3A8C8C  secondary
   Gold    #D4A837  CTA / highlight
   ===================================================== */
:root {
  --dd-navy:         #1B3A6B;
  --dd-navy-dark:    #122957;
  --dd-navy-light:   #254e8e;
  --dd-teal:         #3A8C8C;
  --dd-teal-light:   #5BBFBF;
  --dd-teal-pale:    #e0f5f5;
  --dd-gold:         #D4A837;
  --dd-gold-light:   #E8C05A;
  --dd-gold-dark:    #b08a20;
  --dd-white:        #FFFFFF;
  --dd-bg-light:     #F4F8FB;
  --dd-bg-card:      #FFFFFF;
  --dd-text-dark:    #111827;
  --dd-text-body:    #374151;  /* body text — dark for white card backgrounds */
  --dd-text-muted:   #6B7280;
  --dd-border:       #E5E7EB;
  --dd-shadow-sm:    0 1px 3px rgba(27,58,107,0.08);
  --dd-shadow-md:    0 4px 16px rgba(27,58,107,0.12);
  --dd-shadow-lg:    0 10px 40px rgba(27,58,107,0.16);
  --dd-radius-sm:    6px;
  --dd-radius-md:    10px;
  --dd-radius-lg:    16px;
  --dd-radius-xl:    24px;
  --dd-transition:   all 0.2s ease;

  /* Elementor Global Color Variables — mirrors Elementor's Global Colors panel */
  --e-global-color-primary:    #1B3A6B;
  --e-global-color-secondary:  #3A8C8C;
  --e-global-color-accent:     #D4A837;
  --e-global-color-text:       #374151;
  --e-global-color-background: #F4F8FB;

  /* Elementor Global Font Variables */
  --e-global-typography-primary-font-family:   'Montserrat';
  --e-global-typography-primary-font-weight:   700;
  --e-global-typography-secondary-font-family: 'Open Sans';
  --e-global-typography-secondary-font-weight: 400;
  --e-global-typography-text-font-family:      'Open Sans';
  --e-global-typography-accent-font-family:    'Montserrat';
  --e-global-typography-accent-font-weight:    600;
}

/* =====================================================
   BASE RESET
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dd-text-body);
  background: var(--dd-bg-light);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--dd-navy); text-decoration: none; transition: var(--dd-transition); }
a:hover { color: var(--dd-teal); }

/* =====================================================
   ELEMENTOR CANVAS / FULL-WIDTH OVERRIDE
   Removes Hello Elementor's default page padding so
   Elementor sections stretch edge-to-edge
   ===================================================== */
.elementor-page .site-content,
.elementor-page #content,
.elementor-template-canvas .site-content { padding: 0 !important; margin: 0 !important; }

/* Remove default Hello Elementor page padding */
.page-content, .post-content,
.elementor-page-content { padding: 0 !important; }

/* Elementor inner section full width */
.elementor-section.elementor-section-stretched { width: 100% !important; left: 0 !important; }

/* =====================================================
   HEADER — works with Elementor Header template
   AND with the fallback PHP header
   ===================================================== */
.site-header {
  background: var(--dd-navy);
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 16px rgba(27,58,107,0.25);
}
.top-bar {
  background: var(--dd-teal);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  padding: 6px 16px;
  letter-spacing: .04em;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: 1280px;
  margin: 0 auto;
  gap: 16px;
}
.site-logo img { height: 54px; width: auto; }
.header-search {
  flex: 1;
  max-width: 420px;
}
.search-form {
  display: flex;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: var(--dd-radius-md);
  overflow: hidden;
}
.search-form input {
  flex: 1;
  background: none;
  border: none;
  padding: 7px 12px;
  color: #fff;
  font-size: 13px;
  outline: none;
}
.search-form input::placeholder { color: rgba(255,255,255,.5); }
.search-form button {
  background: var(--dd-gold);
  border: none;
  padding: 0 14px;
  color: var(--dd-navy-dark);
  font-weight: 700;
  cursor: pointer;
}
.main-nav { background: rgba(255,255,255,.06); border-top: 1px solid rgba(255,255,255,.1); }
.main-nav ul { display: flex; list-style: none; padding: 0 24px; max-width: 1280px; margin: 0 auto; }
.main-nav ul li a {
  display: block;
  color: rgba(255,255,255,.85);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: .03em;
  transition: var(--dd-transition);
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a { color: var(--dd-gold); }

/* =====================================================
   ELEMENTOR WIDGET OVERRIDES
   These classes target Elementor's rendered output so
   widgets pick up the Dubler Deals brand automatically
   ===================================================== */

/* Headings inside Elementor widgets */
.elementor-widget-heading .elementor-heading-title { line-height: 1.25; }

/* Buttons — map Elementor button styles to brand colors */
.elementor-button.elementor-button-primary,
.elementor-widget-button .elementor-button[data-settings*="primary"] {
  background: var(--dd-gold) !important;
  color: var(--dd-navy-dark) !important;
  border-color: var(--dd-gold) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  border-radius: var(--dd-radius-md) !important;
  transition: var(--dd-transition) !important;
}
.elementor-button.elementor-button-primary:hover {
  background: var(--dd-gold-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,168,55,0.35) !important;
}
.elementor-button.elementor-button-secondary,
.elementor-widget-button .elementor-button[data-settings*="secondary"] {
  background: var(--dd-navy) !important;
  color: #fff !important;
  border-color: var(--dd-navy) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  border-radius: var(--dd-radius-md) !important;
}
.elementor-button.elementor-button-secondary:hover {
  background: var(--dd-navy-dark) !important;
  transform: translateY(-2px);
}

/* Dividers */
.elementor-divider-separator { border-color: var(--dd-teal) !important; }

/* Icon boxes */
.elementor-icon-box-title { color: var(--dd-navy); font-family: 'Montserrat', sans-serif; }
.elementor-icon { color: var(--dd-teal) !important; }

/* Image boxes */
.elementor-image-box-title { color: var(--dd-navy); }

/* =====================================================
   DUBLER DEALS CUSTOM ELEMENTOR CLASSES
   Apply these as Custom CSS Classes in the Elementor
   Advanced tab → CSS Classes field
   ===================================================== */

/* dd-section-navy — full navy background section */
.dd-section-navy {
  background: var(--dd-navy) !important;
  color: #fff;
}
.dd-section-navy h1, .dd-section-navy h2,
.dd-section-navy h3, .dd-section-navy h4 { color: #fff !important; }

/* dd-section-teal */
.dd-section-teal { background: var(--dd-teal) !important; color: #fff; }

/* dd-section-gold */
.dd-section-gold { background: var(--dd-gold) !important; color: var(--dd-navy-dark); }
.dd-section-gold h1, .dd-section-gold h2,
.dd-section-gold h3 { color: var(--dd-navy-dark) !important; }

/* dd-section-light */
.dd-section-light { background: var(--dd-bg-light) !important; }

/* dd-hero-gradient — the homepage hero gradient */
.dd-hero-gradient {
  background: linear-gradient(135deg, var(--dd-navy-dark) 0%, var(--dd-navy) 45%, #1d4a8a 70%, #1B6B7B 100%) !important;
  position: relative;
}
.dd-hero-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
.dd-hero-gradient .elementor-container { position: relative; z-index: 1; }

/* dd-card — white card with border and hover lift */
.dd-card {
  background: #fff;
  border: 1px solid var(--dd-border);
  border-radius: var(--dd-radius-lg);
  transition: var(--dd-transition);
  overflow: hidden;
}
.dd-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--dd-shadow-lg);
  border-color: var(--dd-teal-light);
}

/* dd-card-navy */
.dd-card-navy {
  background: var(--dd-navy);
  border-radius: var(--dd-radius-lg);
  color: #fff;
  overflow: hidden;
}

/* dd-badge — pill label */
.dd-badge {
  display: inline-block;
  background: var(--dd-teal-pale);
  color: var(--dd-teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}
.dd-badge-gold {
  background: rgba(212,168,55,.15);
  color: var(--dd-gold-light);
  border: 1px solid var(--dd-gold);
}
.dd-badge-navy {
  background: rgba(27,58,107,.12);
  color: var(--dd-navy);
}

/* dd-btn-gold */
.dd-btn-gold {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 12px 28px !important;
  background: var(--dd-gold) !important;
  color: var(--dd-navy-dark) !important;
  border: 2px solid var(--dd-gold) !important;
  border-radius: var(--dd-radius-md) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  transition: var(--dd-transition) !important;
  cursor: pointer;
  text-decoration: none;
}
.dd-btn-gold:hover {
  background: var(--dd-gold-dark) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,168,55,0.35);
}

/* dd-btn-navy */
.dd-btn-navy {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 12px 28px !important;
  background: var(--dd-navy) !important;
  color: #fff !important;
  border: 2px solid var(--dd-navy) !important;
  border-radius: var(--dd-radius-md) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  transition: var(--dd-transition) !important;
}
.dd-btn-navy:hover {
  background: var(--dd-navy-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--dd-shadow-md);
}

/* dd-btn-amazon */
.dd-btn-amazon {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 12px 24px !important;
  background: linear-gradient(135deg, #FF9900 0%, #FF6600 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--dd-radius-md) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  transition: var(--dd-transition) !important;
}
.dd-btn-amazon:hover {
  background: linear-gradient(135deg, #e58800 0%, #e05500 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,153,0,0.4);
}

/* dd-btn-outline-white — for use on dark backgrounds */
.dd-btn-outline-white {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 12px 28px !important;
  background: transparent !important;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,.5) !important;
  border-radius: var(--dd-radius-md) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  transition: var(--dd-transition) !important;
}
.dd-btn-outline-white:hover {
  background: rgba(255,255,255,.12) !important;
  border-color: #fff !important;
}

/* dd-stat — hero stat box */
.dd-stat-value {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--dd-gold);
  line-height: 1;
}
.dd-stat-label {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: 4px;
}
.dd-stat-divider { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; margin-top: 24px; }

/* dd-countdown — the gold promo countdown section */
.dd-countdown { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dd-countdown-unit {
  background: rgba(18,41,87,.12);
  border-radius: var(--dd-radius-md);
  padding: 10px 14px;
  text-align: center;
  min-width: 60px;
}
.dd-countdown-val {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--dd-navy-dark);
  font-family: 'Montserrat', sans-serif;
  line-height: 1;
}
.dd-countdown-lbl { font-size: 10px; color: var(--dd-navy); text-transform: uppercase; letter-spacing: .06em; }
.dd-countdown-sep { font-size: 24px; font-weight: 800; color: var(--dd-navy-dark); }

/* dd-product-card — affiliate product card */
.dd-product-card {
  background: #fff;
  border: 1px solid var(--dd-border);
  border-radius: var(--dd-radius-lg);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.dd-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--dd-shadow-lg);
  border-color: var(--dd-teal-light);
}
.dd-product-thumb {
  aspect-ratio: 1/1;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.dd-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform .3s ease;
}
.dd-product-card:hover .dd-product-thumb img { transform: scale(1.06); }
.dd-product-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.dd-product-cat { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--dd-teal); font-weight: 700; margin-bottom: 4px; }
.dd-product-title { font-size: 13px; font-weight: 600; color: var(--dd-text-dark); font-family: 'Montserrat', sans-serif; line-height: 1.4; margin-bottom: 6px; }
.dd-product-stars { color: var(--dd-gold); font-size: 12px; margin-bottom: 8px; }
.dd-product-price { font-size: 20px; font-weight: 800; color: var(--dd-navy); font-family: 'Montserrat', sans-serif; }
.dd-product-was { font-size: 12px; color: var(--dd-text-muted); text-decoration: line-through; margin-left: 6px; }
.dd-product-save { font-size: 11px; font-weight: 700; color: #E53E3E; background: #FFF5F5; padding: 2px 5px; border-radius: 3px; }
.dd-product-cta { margin-top: auto; padding-top: 10px; }
.dd-amz-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  background: linear-gradient(to bottom, #f0c14b, #daa520);
  border: 1px solid #a88734;
  border-radius: var(--dd-radius-sm);
  color: #111;
  font-weight: 700;
  font-size: 12px;
  font-family: 'Montserrat', sans-serif;
  transition: var(--dd-transition);
  cursor: pointer;
  text-decoration: none;
}
.dd-amz-btn:hover {
  background: linear-gradient(to bottom, #e8b93a, #c8941a);
  color: #111;
  box-shadow: 0 2px 8px rgba(218,165,32,.4);
}

/* dd-badge-deal / new / hot / sale */
.dd-badge-deal  { background: var(--dd-gold); color: var(--dd-navy-dark); }
.dd-badge-new   { background: var(--dd-teal); color: #fff; }
.dd-badge-hot   { background: #E53E3E; color: #fff; }
.dd-badge-sale  { background: var(--dd-navy); color: #fff; }
.dd-product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: var(--dd-radius-sm);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* dd-how-card — How It Works step card */
.dd-how-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--dd-bg-light);
  border-radius: var(--dd-radius-lg);
  border: 1px solid var(--dd-border);
  transition: var(--dd-transition);
}
.dd-how-card:hover { box-shadow: var(--dd-shadow-md); transform: translateY(-2px); }
.dd-how-icon { font-size: 40px; margin-bottom: 12px; display: block; }
.dd-how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dd-teal);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}
.dd-how-title { font-size: 16px; font-weight: 700; color: var(--dd-navy); margin-bottom: 8px; font-family: 'Montserrat', sans-serif; }
.dd-how-desc { font-size: 13px; color: var(--dd-text-muted); line-height: 1.6; }

/* dd-trust-bar */
.dd-trust-bar { background: #fff; border-top: 1px solid var(--dd-border); border-bottom: 1px solid var(--dd-border); }
.dd-trust-item { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--dd-text-body); }
.dd-trust-icon { font-size: 16px; }

/* dd-media-card */
.dd-media-card {
  background: #fff;
  border-radius: var(--dd-radius-lg);
  border: 1px solid var(--dd-border);
  overflow: hidden;
  transition: var(--dd-transition);
}
.dd-media-card:hover { box-shadow: var(--dd-shadow-md); transform: translateY(-2px); }
.dd-media-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--dd-navy-dark), var(--dd-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.dd-media-type {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(27,58,107,.85);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: var(--dd-radius-sm);
  text-transform: uppercase;
  letter-spacing: .05em;
  backdrop-filter: blur(4px);
}

/* dd-newsletter — newsletter section */
.dd-newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.dd-newsletter-form input {
  flex: 1;
  min-width: 200px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: var(--dd-radius-md);
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: var(--dd-transition);
}
.dd-newsletter-form input::placeholder { color: rgba(255,255,255,.45); }
.dd-newsletter-form input:focus { border-color: var(--dd-gold); background: rgba(255,255,255,.14); }

/* dd-cat-strip */
.dd-cat-strip { background: #fff; border-bottom: 1px solid var(--dd-border); padding: 8px 16px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.dd-cat-strip::-webkit-scrollbar { display: none; }
.dd-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dd-text-body);
  border: 1.5px solid var(--dd-border);
  transition: var(--dd-transition);
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  text-decoration: none;
}
.dd-cat-pill:hover, .dd-cat-pill.active {
  background: var(--dd-navy);
  color: #fff;
  border-color: var(--dd-navy);
}

/* dd-affiliate-disclaimer */
.dd-affiliate-disclaimer {
  background: rgba(0,0,0,.25);
  text-align: center;
  padding: 10px 24px;
  font-size: 11px;
  color: rgba(255,255,255,.4);
  line-height: 1.5;
}

/* =====================================================
   ELEMENTOR COLUMN GAP OVERRIDE
   ===================================================== */
.elementor-column-gap-default > .elementor-row > .elementor-column > .elementor-element-populated { padding: 10px; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
  .header-search { display: none; }
  .dd-newsletter-form { flex-direction: column; }
  .dd-countdown { justify-content: center; }
  .dd-stat-divider { flex-wrap: wrap; gap: 16px; }
}
@media (max-width: 480px) {
  .header-inner { padding: 8px 16px; }
}

/* =====================================================
   PRINT / ACCESSIBILITY
   ===================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* =====================================================
   TEXT COLOR — SCOPED CORRECTLY
   White text ONLY on navy-background pages (product detail,
   about, etc). Homepage product cards keep dark text because
   they sit on white card backgrounds.
   ===================================================== */

/* Product detail page — whole page is navy, everything white */
body.single-dd_product,
body.single-dd_product p,
body.single-dd_product li,
body.single-dd_product td,
body.single-dd_product label,
body.single-dd_product span:not([class*="badge"]):not([class*="prime"]):not([class*="save"]):not([class*="price-save"]) {
    color: #FFFFFF;
}

/* Archive/category pages — navy background */
body.post-type-archive-dd_product,
body.post-type-archive-dd_product p,
body.post-type-archive-dd_product li {
    color: #FFFFFF;
}

/* Static pages with navy background (About, Privacy, etc.) */
body.page:not(.home) .entry-content,
body.page:not(.home) .entry-content p,
body.page:not(.home) .entry-content li {
    color: #FFFFFF;
}

/* ── HOMEPAGE CARD TEXT — always dark (white card background) ── */
body.home .dd-product-card,
body.home .dd-product-card p,
body.home .dd-product-card span,
body.home .dd-product-card div,
body.home .dd-product-title,
body.home .dd-product-cat,
body.home .dd-product-price,
body.home .dd-product-was,
body.home .dd-product-stars,
.dd-product-card .dd-product-title,
.dd-product-card .dd-product-cat,
.dd-product-card .dd-product-price,
.dd-product-card .dd-product-was {
    color: var(--dd-text-dark) !important;
}

/* Stars always gold */
.dd-product-card .dd-product-stars,
.dd-product-stars { color: var(--dd-gold) !important; }

/* Save badge always red */
.dd-product-card .dd-product-save,
.dd-product-save { color: #E53E3E !important; }

/* Category label always teal */
.dd-product-card .dd-product-cat { color: var(--dd-teal) !important; }

/* Price always navy */
.dd-product-card .dd-product-price { color: var(--dd-navy) !important; }

/* Amazon buy button text always dark */
.dd-amz-btn,
.dd-btn-gold { color: var(--dd-navy-dark) !important; }

/* Form inputs always dark text */
input, select, textarea { color: var(--dd-text-dark); }

/* =====================================================
   SINGLE PRODUCT PAGE — COLOR FIXES
   Overrides Hello Elementor parent theme dark defaults
   that show up on the navy background
   ===================================================== */

/* Breadcrumb */
.breadcrumb,
.breadcrumb a,
.breadcrumb span {
    color: rgba(255,255,255,0.75) !important;
}
.breadcrumb a:hover { color: var(--dd-gold) !important; }

/* Product title h1 */
.single-dd_product h1,
.single-dd_product .entry-title,
body.single-dd_product h1 {
    color: #FFFFFF !important;
}

/* Category pill on product page */
.single-dd_product .product-cat,
.single-dd_product .dd-product-cat {
    color: var(--dd-teal-light) !important;
}

/* Star rating & review count */
.single-dd_product .product-rating,
.single-dd_product .product-rating span,
.single-dd_product .rating-count {
    color: rgba(255,255,255,0.75) !important;
}
.single-dd_product .stars,
.single-dd_product .dd-product-stars { color: var(--dd-gold) !important; }

/* Pricing box */
.single-dd_product .price-current,
.single-dd_product .dd-product-price {
    color: var(--dd-navy) !important; /* inside white box — keep dark */
}
.single-dd_product .price-was,
.single-dd_product .dd-product-was {
    color: var(--dd-text-muted) !important;
}

/* Feature bullets */
.single-dd_product ul li,
.single-dd_product .entry-content li {
    color: #FFFFFF !important;
}
.single-dd_product ul li svg,
.single-dd_product ul li span[style*="teal"] {
    color: var(--dd-teal-light) !important;
}

/* "You will be redirected" text */
.single-dd_product p[style*="font-size:.75rem"],
.single-dd_product p[style*="text-align:center"] {
    color: rgba(255,255,255,0.55) !important;
}

/* Disclosure box */
.single-dd_product [style*="teal-pale"],
.single-dd_product [style*="E0F5F5"] {
    color: #0C4A6E !important; /* keep readable on pale teal bg */
}

/* Sidebar widget titles */
.sidebar-widget .widget-title,
.sidebar-widget h3 {
    color: #FFFFFF !important;
    border-bottom-color: var(--dd-teal) !important;
}

/* Sidebar product links — "More Deals" */
.sidebar-widget a {
    color: rgba(255,255,255,0.85) !important;
}
.sidebar-widget a:hover { color: var(--dd-gold) !important; }

/* Sidebar product titles in More Deals */
.sidebar-widget div[style*="font-weight:600"] {
    color: #FFFFFF !important;
}

/* Sidebar category links */
.sidebar-widget a[style*="color:var(--dd-text-body)"] {
    color: rgba(255,255,255,0.80) !important;
}

/* Sidebar category count */
.sidebar-widget span[style*="text-muted"] {
    color: rgba(255,255,255,0.45) !important;
}

/* Hello Elementor parent overrides — these are the root cause */
body.single-dd_product .entry-content,
body.single-dd_product .entry-content p,
body.single-dd_product .entry-content h1,
body.single-dd_product .entry-content h2,
body.single-dd_product .entry-content h3 {
    color: #FFFFFF !important;
}

/* Critical error fallback text */
body.single-dd_product > div:last-child,
#page-content > p {
    color: #FFFFFF !important;
}

/* =====================================================
   NFD BLUEHOST LAZY LOADER OVERRIDE
   Prevents the Bluehost/Newfold image-lazy-loader.min.js
   from whiting out product card images.
   The script sets images to opacity:0 then fades them in —
   we force opacity:1 at all states on our product cards.
   ===================================================== */
.dd-product-card img,
.dd-product-thumb img,
.dd-product-card img.lazyload,
.dd-product-card img.lazyloading,
.dd-product-card img.lazyloaded,
.dd-product-card img[data-src],
.dd-product-card img[data-lazy-src],
.dd-product-thumb img.lazyload,
.dd-product-thumb img.lazyloading,
.dd-product-thumb img.lazyloaded {
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
    filter: none !important;
}

/* The NFD lazy loader wraps images in a span.nfd-lazy-wrapper
   and sets the img opacity to 0 — target that too */
.dd-product-card .nfd-lazy-wrapper img,
.dd-product-thumb .nfd-lazy-wrapper img,
span.nfd-lazy-wrapper img {
    opacity: 1 !important;
}
