/* ============================================================
   DLED FACTORY v2 — Clean White + Orange Theme
   Fonts: DM Sans + Poppins + JetBrains Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --white:    #ffffff;
  --offwhite: #f7f8fc;
  --light:    #eef0f6;
  --border:   #e2e5ef;
  --text:     #1a1d2e;
  --muted:    #6b7280;
  --soft:     #9ca3af;
  --orange:   #ff6b00;
  --orange2:  #ff8c38;
  --orangeL:  #fff3ea;
  --blue:     #1e40af;
  --green:    #059669;
  --greenL:   #d1fae5;
  --red:      #dc2626;
  --redL:     #fee2e2;
  --shadow:   0 2px 12px rgba(0,0,0,0.07);
  --shadow-lg:0 8px 40px rgba(0,0,0,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
  background: var(--white);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font-family: 'DM Sans', sans-serif; }

/* ===== ANNOUNCE BAR ===== */
.d2-announce {
  background: var(--orange);
  color: #fff;
  text-align: center;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.d2-announce a { color: #fff; text-decoration: underline; }

/* ===== NAV ===== */
#d2-nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: 64px;
}
.d2-nav-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 20px; font-weight: 800;
  color: var(--text); letter-spacing: -0.5px;
}
.d2-nav-brand span { color: var(--orange); }
.d2-nav-links {
  display: flex; gap: 6px; align-items: center;
}
.d2-nav-links a {
  color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 6px 14px; border-radius: 8px;
  transition: all 0.18s;
}
.d2-nav-links a:hover, .d2-nav-links a.active {
  color: var(--orange); background: var(--orangeL);
}
.d2-nav-right { display: flex; align-items: center; gap: 10px; }
.d2-nav-cart {
  position: relative; font-size: 20px;
  color: var(--muted); cursor: pointer; transition: color 0.2s;
  padding: 6px;
}
.d2-nav-cart:hover { color: var(--orange); }
.d2-nav-cart-count {
  position: absolute; top: 0; right: 0;
  background: var(--orange); color: #fff;
  font-size: 9px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.d2-btn-wa {
  display: inline-flex; align-items: center; gap: 7px;
  background: #25d366; color: #fff;
  border: none; border-radius: 10px;
  padding: 9px 20px; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  text-decoration: none; white-space: nowrap;
}
.d2-btn-wa:hover { background: #1db954; color: #fff; transform: translateY(-1px); }
.d2-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; border: none; background: none;
}
.d2-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
}
.d2-mobile-nav {
  display: none; position: fixed; inset: 0;
  background: rgba(255,255,255,0.98);
  z-index: 9999; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
}
.d2-mobile-nav.open { display: flex; }
.d2-mobile-nav a {
  font-family: 'Poppins', sans-serif;
  font-size: 28px; font-weight: 700; color: var(--text);
  transition: color 0.2s;
}
.d2-mobile-nav a:hover { color: var(--orange); }
.d2-mobile-close {
  position: absolute; top: 20px; right: 24px;
  font-size: 28px; cursor: pointer; border: none;
  background: none; color: var(--muted);
}

/* ===== SECTION BASE ===== */
.d2-section {
  max-width: 1240px; margin: 0 auto; padding: 80px 48px;
}
.d2-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--orange);
  background: var(--orangeL); border-radius: 100px;
  padding: 4px 14px; margin-bottom: 14px;
}
.d2-h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.5px; color: var(--text);
  margin-bottom: 14px;
}
.d2-h2 span { color: var(--orange); }
.d2-desc {
  font-size: 16px; color: var(--muted);
  max-width: 520px; line-height: 1.75;
  margin-bottom: 48px;
}
.d2-bg-off { background: var(--offwhite); }
.d2-bg-dark { background: var(--text); }
.d2-bg-orange { background: var(--orange); }

/* ===== BUTTONS ===== */
.d2-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: #fff;
  border: none; border-radius: 10px;
  padding: 13px 28px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.d2-btn-primary:hover { background: var(--orange2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,0,0.3); color: #fff; }
.d2-btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  border: 2px solid var(--border); border-radius: 10px;
  padding: 12px 28px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.d2-btn-outline:hover { border-color: var(--orange); color: var(--orange); }

/* ===== TRUST BAR ===== */
.d2-trust {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.d2-trust-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5,1fr);
}
.d2-trust-item {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 20px;
  border-right: 1px solid var(--border);
}
.d2-trust-item:last-child { border-right: none; }
.d2-trust-icon { font-size: 24px; flex-shrink: 0; }
.d2-trust-title { font-size: 13px; font-weight: 700; color: var(--text); }
.d2-trust-sub { font-size: 11px; color: var(--muted); }

/* ===== PRODUCT CARDS ===== */
.d2-product-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.d2-product-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: all 0.25s; box-shadow: var(--shadow);
}
.d2-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange);
}
.d2-product-img {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: var(--offwhite);
}
.d2-product-img img { width:100%; height:100%; object-fit:cover; transition: transform 0.4s; }
.d2-product-card:hover .d2-product-img img { transform: scale(1.04); }
.d2-product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--orange); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 100px;
}
.d2-product-body { padding: 20px; }
.d2-product-body h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 15px; font-weight: 700; color: var(--text);
  margin-bottom: 5px; line-height: 1.4;
}
.d2-product-meta { font-size: 12px; color: var(--soft); margin-bottom: 12px; }
.d2-product-price {
  font-family: 'Poppins', sans-serif;
  font-size: 26px; font-weight: 800;
  color: var(--orange); margin-bottom: 16px;
}
.d2-product-price small { font-size: 13px; color: var(--muted); font-weight: 400; font-family: 'DM Sans', sans-serif; }
.d2-product-btns { display: flex; gap: 8px; }
.d2-pbtn-details {
  flex: 1; padding: 10px 8px; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--offwhite);
  color: var(--text); font-size: 13px; font-weight: 600;
  cursor: pointer; text-align: center; text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: all 0.2s;
}
.d2-pbtn-details:hover { border-color: var(--orange); color: var(--orange); }
.d2-pbtn-view {
  flex: 2; padding: 10px 8px; border-radius: 8px;
  background: var(--orange); color: #fff;
  border: none; font-size: 13px; font-weight: 700;
  cursor: pointer; text-align: center; text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: all 0.2s;
}
.d2-pbtn-view:hover { background: var(--orange2); color: #fff; }

/* ===== FEATURE CARDS ===== */
.d2-feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.d2-feature-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px 24px;
  transition: all 0.25s; box-shadow: var(--shadow);
}
.d2-feature-card:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.d2-feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--orangeL); display: flex; align-items: center;
  justify-content: center; font-size: 22px; margin-bottom: 16px;
}
.d2-feature-title { font-family:'Poppins',sans-serif; font-size:15px; font-weight:700; color:var(--text); margin-bottom:8px; }
.d2-feature-desc { font-size:13px; color:var(--muted); line-height:1.7; }

/* ===== STATS ===== */
.d2-stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.d2-stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px; padding: 28px 20px; text-align: center;
}
.d2-stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 52px; font-weight: 800;
  color: var(--orange); line-height: 1; display: block; margin-bottom: 6px;
}
.d2-stat-label { font-size: 12px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1.5px; }

/* ===== TESTIMONIAL CARDS ===== */
.d2-testi-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.d2-testi-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 26px 22px;
  box-shadow: var(--shadow); transition: all 0.25s;
}
.d2-testi-card:hover { border-color: var(--orange); box-shadow: var(--shadow-lg); }
.d2-testi-stars { color: #f59e0b; font-size: 15px; letter-spacing: 2px; margin-bottom: 12px; }
.d2-testi-text { font-size:14px; color:var(--muted); line-height:1.75; margin-bottom:18px; font-style:italic; }
.d2-testi-author { font-size:14px; font-weight:700; color:var(--text); }
.d2-testi-country { font-size:12px; color:var(--soft); margin-top:3px; }

/* ===== FORM ELEMENTS ===== */
.d2-form-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px;
  box-shadow: var(--shadow-lg);
}
.d2-form-title {
  font-family: 'Poppins', sans-serif;
  font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 22px;
}
.d2-fld { margin-bottom: 16px; }
.d2-fld label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--muted); letter-spacing: 0.5px;
  text-transform: uppercase; margin-bottom: 7px;
}
.d2-fld input, .d2-fld select, .d2-fld textarea {
  width: 100%; padding: 12px 16px;
  background: var(--offwhite); border: 1.5px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 14px;
  outline: none; transition: border-color 0.2s;
}
.d2-fld input:focus, .d2-fld select:focus, .d2-fld textarea:focus {
  border-color: var(--orange); background: var(--white);
}
.d2-fld input::placeholder, .d2-fld textarea::placeholder { color: var(--soft); }
.d2-fld select option { background: var(--white); }
.d2-fld textarea { resize: vertical; min-height: 90px; }
.d2-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.d2-btn-wa-submit {
  width: 100%; padding: 15px; background: #25d366; color: #fff;
  border: none; border-radius: 10px;
  font-size: 15px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all 0.2s; box-shadow: 0 4px 20px rgba(37,211,102,0.25);
}
.d2-btn-wa-submit:hover { background: #1db954; transform: translateY(-2px); }

/* ===== SCROLL PHOTO STRIP ===== */
.d2-photo-strip-wrap {
  width: 100%;
  overflow: hidden; /* prevent horizontal overflow causing page shift */
}
.d2-photo-strip {
  display: flex; gap: 16px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
  /* Fixed height prevents vertical layout shifts */
  height: 290px;
  scrollbar-width: thin; scrollbar-color: var(--orange) var(--border);
}
.d2-photo-strip::-webkit-scrollbar { height: 5px; }
.d2-photo-strip::-webkit-scrollbar-track { background: var(--border); border-radius: 10px; }
.d2-photo-strip::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 10px; }
.d2-photo-card {
  flex: 0 0 280px;
  height: 260px;
  scroll-snap-align: start;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); position: relative;
  box-shadow: var(--shadow); transition: transform 0.2s;
}
.d2-photo-card:hover { transform: scale(1.02); }
.d2-photo-card img {
  width:100%; height:100%; object-fit:cover; display:block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.d2-photo-label {
  position: absolute; bottom:0; left:0; right:0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff; font-size: 12px; font-weight: 600;
  padding: 22px 14px 10px; letter-spacing: 0.4px;
}

/* ===== POLICY PAGE ===== */
.d2-policy-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
  box-shadow: var(--shadow); margin-bottom: 0;
}
.d2-policy-card h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px; font-weight: 800; color: var(--text);
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 2px solid var(--orangeL);
  display: flex; align-items: center; gap: 10px;
}
.d2-policy-section { margin-bottom: 22px; }
.d2-policy-section h3 {
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--orange); margin-bottom: 10px;
}
.d2-policy-section p, .d2-policy-section li {
  font-size: 14px; color: var(--muted); line-height: 1.75;
}
.d2-policy-section ul { display: flex; flex-direction: column; gap: 7px; }
.d2-policy-section li { display: flex; gap: 8px; align-items: flex-start; }
.d2-policy-section li .ico { flex-shrink: 0; margin-top: 1px; }
.d2-pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.d2-pill {
  background: var(--offwhite); border: 1px solid var(--border);
  border-radius: 100px; padding: 6px 16px;
  font-size: 12px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.d2-pill.green { background: var(--greenL); border-color: #6ee7b7; color: var(--green); }
.d2-pill.red   { background: var(--redL);   border-color: #fca5a5; color: var(--red); }
.d2-pill.orange{ background: var(--orangeL);border-color: #fed7aa; color: var(--orange); }
.d2-alert {
  border-radius: 10px; padding: 16px 18px;
  display: flex; gap: 12px; align-items: flex-start; margin: 14px 0;
}
.d2-alert.green { background: var(--greenL); border: 1px solid #6ee7b7; }
.d2-alert.orange { background: var(--orangeL); border: 1px solid #fed7aa; }
.d2-alert.red   { background: var(--redL);   border: 1px solid #fca5a5; }
.d2-alert-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.d2-alert-text { font-size: 13px; color: var(--text); line-height: 1.6; }
.d2-alert-text strong { font-weight: 700; }

/* ===== SHIPPING METHOD ROW ===== */
.d2-ship-row {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--offwhite); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 12px;
  transition: border-color 0.2s;
}
.d2-ship-row:hover { border-color: var(--orange); }
.d2-ship-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--orangeL); display: flex; align-items: center;
  justify-content: center; font-size: 20px; flex-shrink: 0;
}
.d2-ship-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.d2-ship-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.d2-ship-badge {
  margin-left: auto; flex-shrink: 0;
  background: var(--orangeL); color: var(--orange);
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 100px; align-self: flex-start;
  white-space: nowrap;
}

/* ===== BREADCRUMB ===== */
.d2-breadcrumb {
  background: var(--offwhite); border-bottom: 1px solid var(--border);
  padding: 13px 48px; display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--soft);
}
.d2-breadcrumb a { color: var(--muted); transition: color 0.2s; }
.d2-breadcrumb a:hover { color: var(--orange); }
.d2-breadcrumb-sep { color: var(--border); }

/* ===== SINGLE PRODUCT ===== */
.d2-single-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start;
}
.d2-gallery-main {
  background: var(--offwhite); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; aspect-ratio: 4/3;
}
.d2-gallery-main img { width:100%; height:100%; object-fit:cover; display:block; }
.d2-gallery-thumbs { display:flex; gap:10px; margin-top:12px; flex-wrap:wrap; }
.d2-gallery-thumb {
  width: 72px; height: 72px; border-radius: 8px; overflow: hidden;
  border: 2px solid var(--border); cursor: pointer; transition: border-color 0.2s;
}
.d2-gallery-thumb:hover, .d2-gallery-thumb.active { border-color: var(--orange); }
.d2-gallery-thumb img { width:100%; height:100%; object-fit:cover; }
.d2-product-tags { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.d2-product-tag {
  background: var(--orangeL); color: var(--orange);
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 12px; border-radius: 100px; text-transform: uppercase;
}
.d2-single-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(26px,3vw,44px); font-weight: 800;
  color: var(--text); line-height: 1.15; margin-bottom: 14px;
}
.d2-single-excerpt { font-size:15px; color:var(--muted); line-height:1.75; margin-bottom:24px; }
.d2-price-box {
  background: var(--offwhite); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 24px; margin-bottom: 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.d2-price-big {
  font-family: 'Poppins', sans-serif;
  font-size: 48px; font-weight: 800; color: var(--orange); line-height: 1;
}
.d2-price-note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.d2-price-note strong { display:block; color: var(--green); font-weight: 700; }
.d2-action-col { display:flex; flex-direction:column; gap:10px; margin-bottom:24px; }
.d2-btn-inquire {
  width: 100%; padding: 16px; background: #25d366; color: #fff;
  border: none; border-radius: 10px; font-size: 15px; font-weight: 700;
  cursor: pointer; display:flex; align-items:center; justify-content:center; gap:10px;
  transition: all 0.2s; text-decoration: none;
}
.d2-btn-inquire:hover { background: #1db954; transform: translateY(-2px); color: #fff; }
.d2-btn-order {
  width: 100%; padding: 15px; background: transparent; color: var(--text);
  border: 2px solid var(--border); border-radius: 10px; font-size: 15px; font-weight: 600;
  cursor: pointer; display:flex; align-items:center; justify-content:center; gap:10px;
  transition: all 0.2s; text-decoration: none;
}
.d2-btn-order:hover { border-color: var(--orange); color: var(--orange); }
.d2-perks { display:flex; flex-direction:column; gap:8px; }
.d2-perk {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted);
}
.d2-perk-icon { font-size: 15px; }
/* Product tabs */
.d2-tabs { display:flex; gap:0; border-bottom: 2px solid var(--border); margin-bottom:32px; }
.d2-tab-btn {
  background: transparent; border: none; color: var(--muted);
  padding: 13px 24px; font-size: 14px; font-weight: 600;
  cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: all 0.2s;
}
.d2-tab-btn.active { color: var(--orange); border-bottom-color: var(--orange); }
.d2-tab-btn:hover { color: var(--text); }
.d2-tab-panel { display:none; }
.d2-tab-panel.active { display:block; }
.d2-desc-content { font-size:15px; color:var(--muted); line-height:1.8; }
.d2-desc-content h2, .d2-desc-content h3 {
  font-family:'Poppins',sans-serif; font-weight:700; color:var(--text);
  margin: 24px 0 10px;
}
.d2-desc-content ul { margin:10px 0 10px 18px; list-style:disc; }
.d2-desc-content li { margin-bottom:5px; }

/* ===== ORDER MODAL ===== */
.d2-modal-bg {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 99999;
  align-items: center; justify-content: center; padding: 20px;
}
.d2-modal-bg.open { display: flex; }
.d2-modal {
  background: var(--white); border-radius: 20px; padding: 36px 32px;
  max-width: 500px; width: 100%; position: relative;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.d2-modal-title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 5px;
}
.d2-modal-sub { font-size:14px; color:var(--muted); margin-bottom:22px; }
.d2-modal-close {
  position:absolute; top:18px; right:20px;
  font-size:22px; cursor:pointer; color:var(--soft);
  background:none; border:none; transition:color 0.2s;
}
.d2-modal-close:hover { color:var(--text); }

/* ===== COMPLIANCE SCROLL ===== */
.d2-cert-strip {
  display:flex; gap:16px;
  overflow-x:auto; overflow-y:hidden; padding-bottom:10px;
  scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch;
  scrollbar-width:thin; scrollbar-color:var(--orange) var(--border);
  height: 390px; /* fixed height prevents vertical shake */
}
.d2-cert-strip::-webkit-scrollbar { height:5px; }
.d2-cert-strip::-webkit-scrollbar-track { background:var(--border); border-radius:10px; }
.d2-cert-strip::-webkit-scrollbar-thumb { background:var(--orange); border-radius:10px; }
.d2-cert-card {
  flex-shrink:0; scroll-snap-align:start;
  width:300px; height:360px;
  border-radius:14px; overflow:hidden;
  border:1px solid var(--border); box-shadow:var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.d2-cert-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.d2-cert-card img { width:100%; height:100%; object-fit:cover; display:block; }

/* ===== WALLET ROWS ===== */
.d2-wallet-row {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  background: var(--offwhite); border:1px solid var(--border);
  border-radius:12px; padding:16px 18px; margin-bottom:12px;
}
.d2-wallet-name { font-size:14px; font-weight:700; color:var(--text); }
.d2-wallet-net { font-size:11px; color:var(--muted); font-family:'JetBrains Mono',monospace; }
.d2-wallet-addr {
  font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--muted);
  max-width:200px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.d2-copy-btn {
  background:var(--orangeL); border:1px solid #fed7aa; color:var(--orange);
  border-radius:8px; padding:6px 14px; font-size:12px; font-weight:700;
  cursor:pointer; transition:all 0.2s; white-space:nowrap;
}
.d2-copy-btn:hover { background:var(--orange); color:#fff; }

/* ===== FOOTER ===== */
.d2-footer { background: var(--text); }
.d2-footer-top {
  display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:48px;
  max-width:1240px; margin:0 auto; padding:64px 48px 48px;
}
.d2-footer-brand h3 {
  font-family:'Poppins',sans-serif; font-size:22px; font-weight:800;
  color:#fff; margin-bottom:12px;
}
.d2-footer-brand h3 span { color:var(--orange); }
.d2-footer-brand p { font-size:13px; color:rgba(255,255,255,0.5); line-height:1.7; max-width:260px; margin-bottom:18px; }
.d2-footer-contact { display:flex; flex-direction:column; gap:8px; }
.d2-footer-contact a {
  font-size:13px; color:rgba(255,255,255,0.55); text-decoration:none;
  display:flex; align-items:center; gap:8px; transition:color 0.2s;
}
.d2-footer-contact a:hover { color:var(--orange); }
.d2-footer-col h4 {
  font-size:10px; font-weight:700; letter-spacing:2px; text-transform:uppercase;
  color:rgba(255,255,255,0.35); margin-bottom:18px;
}
.d2-footer-col ul { display:flex; flex-direction:column; gap:10px; }
.d2-footer-col ul a {
  font-size:13px; color:rgba(255,255,255,0.55); transition:color 0.2s;
}
.d2-footer-col ul a:hover { color:var(--orange); }
.d2-footer-bottom {
  border-top:1px solid rgba(255,255,255,0.08);
  max-width:1240px; margin:0 auto; padding:20px 48px;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
}
.d2-footer-copy { font-size:12px; color:rgba(255,255,255,0.3); }
.d2-footer-links { display:flex; gap:20px; }
.d2-footer-links a { font-size:12px; color:rgba(255,255,255,0.3); transition:color 0.2s; }
.d2-footer-links a:hover { color:var(--orange); }

/* ===== FLOAT WA ===== */
.d2-float-wa {
  position:fixed; bottom:26px; right:26px; z-index:9000;
  background:#25d366; color:#fff; border-radius:50px;
  padding:13px 22px; font-size:14px; font-weight:700;
  text-decoration:none; display:flex; align-items:center; gap:9px;
  box-shadow:0 8px 30px rgba(37,211,102,0.4); transition:all 0.2s;
}
.d2-float-wa:hover { transform:translateY(-3px); color:#fff; box-shadow:0 12px 40px rgba(37,211,102,0.55); }

/* ===== MARQUEE ===== */
.d2-marquee-wrap { background:var(--orange); padding:11px 0; overflow:hidden; }
.d2-marquee-track { display:flex; white-space:nowrap; animation:d2marquee 28s linear infinite; }
@keyframes d2marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.d2-marquee-item {
  font-size:13px; font-weight:700; letter-spacing:1px; color:#fff;
  padding:0 28px; display:inline-flex; align-items:center; gap:12px;
}
.d2-marquee-dot { width:4px; height:4px; background:rgba(255,255,255,0.45); border-radius:50%; display:inline-block; }

/* ===== WOOCOMMERCE OVERRIDES ===== */
.woocommerce-notices-wrapper, .woocommerce-breadcrumb, .wc-block-breadcrumbs { display:none !important; }


/* ===== RESPONSIVE LAYOUT GRIDS ===== */
.d2-quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.d2-crypto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width:1024px) {
  .d2-quote-grid { grid-template-columns: 1fr; gap: 32px; }
  .d2-crypto-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== PREVENT ALL HORIZONTAL OVERFLOW ===== */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
* { max-width: 100%; }

/* ===== TABLET (max 1024px) ===== */
@media (max-width:1024px) {
  #d2-nav { padding:0 20px; }
  .d2-nav-links { display:none; }
  .d2-hamburger { display:flex; }
  .d2-section { padding:52px 20px; }
  .d2-product-grid { grid-template-columns:1fr; }
  .d2-feature-grid { grid-template-columns:1fr; }
  .d2-stats-grid { grid-template-columns:1fr 1fr; }
  .d2-testi-grid { grid-template-columns:1fr; }
  .d2-trust-inner { grid-template-columns:1fr; }
  .d2-trust-item { border-right:none; border-bottom:1px solid var(--border); }
  .d2-trust-item:last-child { border-bottom:none; }
  .d2-single-layout { grid-template-columns:1fr; gap:28px; }
  .d2-footer-top { grid-template-columns:1fr; padding:44px 20px 36px; gap:28px; }
  .d2-footer-bottom { padding:16px 20px; flex-direction:column; align-items:flex-start; gap:8px; }
  .d2-breadcrumb { padding:12px 20px; }
  .d2-form-row { grid-template-columns:1fr; }
  /* Float WA full width on mobile */
  .d2-float-wa { bottom:0; right:0; left:0; border-radius:0; justify-content:center; padding:14px 20px; font-size:15px; }
  /* Inline grids in page templates */
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns:1fr 1.3fr"],
  div[style*="grid-template-columns:1fr 1fr;"],
  div[style*="grid-template-columns:1fr 1.3fr;"] {
    grid-template-columns: 1fr !important;
  }
  /* Stats section inline */
  div[style*="grid-template-columns:1fr 1fr"][style*="gap:16px"] {
    grid-template-columns: 1fr 1fr !important;
  }
  /* Wallet rows */
  .d2-wallet-row { flex-direction:column; align-items:flex-start; gap:8px; }
  .d2-wallet-addr { max-width:100%; }
  /* Cert strip */
  .d2-cert-strip { height:320px; }
  .d2-cert-card { flex:0 0 220px; height:300px; }
  /* Photo strip */
  .d2-hscroll-card, .d2-about-hscroll-card { flex:0 0 230px; }
}

/* ===== MOBILE (max 640px) ===== */
@media (max-width:640px) {
  .d2-section { padding:44px 16px; }
  .d2-stats-grid { grid-template-columns:1fr 1fr; gap:12px; }
  .d2-stat-num { font-size:36px; }
  .d2-h2 { font-size:26px; }
  .d2-breadcrumb { padding:10px 16px; font-size:12px; }
  /* Compress policy cards on mobile */
  .d2-policy-card { padding:22px 18px; }
  .d2-policy-card h2 { font-size:17px; }
  .d2-ship-row { flex-wrap:wrap; gap:8px; }
  .d2-ship-badge { margin-left:0; }
  /* Nav brand smaller */
  .d2-nav-brand { font-size:17px; }
}


/* ═══════════════════════════════════════════════════════════════
   CURRENCY SWITCHER — pill button + dropdown
   Server-rendered via PHP, no JS required to open/close
   ═══════════════════════════════════════════════════════════════ */
.d2-hide-mobile {}
@media (max-width: 1024px) { .d2-hide-mobile { display: none !important; } }

/* Wrapper */
#dled-cur-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Pill button */
#dled-cur-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid #d4d8e8;
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 700;
  color: #1a1d2e;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  line-height: 1;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  user-select: none;
}
#dled-cur-btn:hover { border-color: #ff6b00; box-shadow: 0 0 0 3px rgba(255,107,0,.08); }
#dled-cur-btn svg { color: #9ca3af; flex-shrink: 0; transition: transform .2s; }
#dled-cur-btn.open svg { transform: rotate(180deg); }

/* Dropdown panel — position:fixed set by JS so it escapes all stacking contexts */
#dled-cur-dd {
  display: none;
  position: fixed;
  z-index: 2147483647;
  background: #fff;
  border: 1.5px solid #e2e5ef;
  border-radius: 14px;
  box-shadow: 0 16px 56px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.06);
  width: 240px;
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #e2e5ef transparent;
}
#dled-cur-dd::-webkit-scrollbar { width: 4px; }
#dled-cur-dd::-webkit-scrollbar-thumb { background: #e2e5ef; border-radius: 4px; }
#dled-cur-dd.open { display: block; animation: curIn .13s ease; }
@keyframes curIn {
  from { opacity:0; transform:translateY(-6px) scale(.98); }
  to   { opacity:1; transform:translateY(0)    scale(1);   }
}

/* Dropdown header */
.dled-dd-header {
  padding: 10px 16px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #9ca3af;
  border-bottom: 1px solid #f0f2f8;
  pointer-events: none;
  font-family: 'DM Sans', sans-serif;
}

/* Currency row — each is a form submit button */
.dled-cur-form { display: block; }
.dled-dd-row {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 11px 16px;
  gap: 10px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #f5f6fa;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background .1s;
  text-align: left;
}
.dled-cur-form:last-child .dled-dd-row { border-bottom: none; }
.dled-dd-row:hover { background: #f8f9ff; }
.dled-dd-row.is-active { background: #1a6cf6; }
.dled-dd-row.is-active .dled-dd-code,
.dled-dd-row.is-active .dled-dd-name { color: #fff; }

.dled-dd-code {
  font-size: 13px;
  font-weight: 800;
  color: #1a1d2e;
  width: 46px;
  flex-shrink: 0;
  letter-spacing: .3px;
}
.dled-dd-name {
  flex: 1;
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.3;
}
.dled-dd-tick {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  opacity: 0;
  flex-shrink: 0;
}
.dled-dd-row.is-active .dled-dd-tick { opacity: 1; }

@media (max-width: 640px) {
  #dled-cur-btn { padding: 7px 11px; font-size: 12px; }
  #dled-cur-dd  { width: 210px; }
}
