/* === Dachi — brand palette + global tweaks === */

:root {
  --dachi-red:        #c1272d;
  --dachi-red-dark:   #9a1f23;
  --dachi-red-light:  #ef4444;
  --dachi-ink:        #1f1f1f;
  --dachi-muted:      #6b7280;
  --dachi-bg:         #ffffff;
  --dachi-bg-soft:    #fafafa;
  --dachi-border:     #e5e7eb;
}

/* Bootstrap colour overrides */
.btn-primary, .bg-primary { background-color: var(--dachi-red) !important; border-color: var(--dachi-red) !important; }
.btn-primary:hover, .btn-primary:focus { background-color: var(--dachi-red-dark) !important; border-color: var(--dachi-red-dark) !important; }
.btn-outline-primary { color: var(--dachi-red) !important; border-color: var(--dachi-red) !important; }
.btn-outline-primary:hover { background-color: var(--dachi-red) !important; color: #fff !important; }
.text-primary { color: var(--dachi-red) !important; }
.border-primary { border-color: var(--dachi-red) !important; }
a { color: var(--dachi-red); }
a:hover { color: var(--dachi-red-dark); }

body { font-family: "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--dachi-ink); background: var(--dachi-bg); }

/* Brand wordmark */
.dachi-brand { font-weight: 900; letter-spacing: .04em; font-size: 1.6rem; color: var(--dachi-red) !important; text-decoration: none; }
.dachi-brand .dot { color: var(--dachi-ink); }
.dachi-brand img { max-height: 44px; }

/* Top promo strip */
.promo-strip { padding: .55rem 0; font-size: .9rem; text-align: center; position: relative; }
.promo-strip a { color: inherit; text-decoration: underline; }

/* Top info bar */
.topbar-info { background: var(--dachi-ink); color: #f3f4f6; padding: .4rem 0; font-size: .82rem; }

/* =========================================================
   MAIN NAV — compact mega menu
   ========================================================= */
.mega-nav { box-shadow: 0 2px 6px rgba(0,0,0,.08); padding: 0; }
.mega-nav .container { padding-left: 1rem; padding-right: 1rem; }
.mega-nav .nav-link {
  font-weight: 500;
  padding: .9rem 1.05rem;
  color: rgba(255,255,255,.92);
  font-size: .95rem;
  position: relative;
}
.mega-nav .nav-link:hover,
.mega-nav .nav-link:focus,
.mega-nav .nav-link.show {
  background: rgba(0,0,0,.12);
  color: #fff;
}
.mega-nav .nav-link.dropdown-toggle::after {
  margin-left: .35rem;
  transition: transform .2s;
}
.mega-dropdown.show .nav-link.dropdown-toggle::after { transform: rotate(180deg); }

/* The dropdown panel — constrained width, not full screen */
.mega-panel {
  margin-top: 0 !important;
  border-radius: 0 0 .6rem .6rem;
  background: #fff;
  border: 1px solid var(--dachi-border) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.12) !important;
  overflow: hidden;
  /* default width — overridden by mp-narrow / mp-mid / mp-wide below */
  width: 520px;
  max-width: calc(100vw - 2rem);
  padding: 0 !important;
}
.mega-panel.mp-narrow { width: 320px; }
.mega-panel.mp-mid    { width: 520px; }
.mega-panel.mp-wide   { width: 680px; }

/* Inner grid — auto-fit columns, never more than 3 */
.mega-panel .mp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 1.1rem 1.1rem .8rem;
}
.mega-panel.mp-mid  .mp-grid { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
.mega-panel.mp-wide .mp-grid { grid-template-columns: 1fr 1fr 1fr; column-gap: 1.5rem; }

.mega-panel .mp-col { padding: .35rem 0 .9rem; }

/* Category heading — clickable, with arrow */
.mega-panel .mp-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--dachi-ink);
  padding: .35rem 0 .55rem;
  margin-bottom: .35rem;
  border-bottom: 1px solid var(--dachi-border);
  text-decoration: none;
  transition: color .15s;
}
.mega-panel .mp-heading i { font-size: .8rem; color: var(--dachi-red); opacity: 0; transition: opacity .15s, transform .15s; }
.mega-panel .mp-heading:hover { color: var(--dachi-red); }
.mega-panel .mp-heading:hover i { opacity: 1; transform: translateX(2px); }

/* Sub-links list */
.mega-panel .mp-list { list-style: none; margin: 0; padding: 0; }
.mega-panel .mp-list li { margin: 0; }
.mega-panel .mp-list a {
  display: block;
  padding: .35rem .5rem;
  margin: 0 -.5rem;
  font-size: .88rem;
  color: #374151;
  text-decoration: none;
  border-radius: .3rem;
  transition: background .12s, color .12s, padding-left .12s;
}
.mega-panel .mp-list a:hover {
  background: rgba(193,39,45,.06);
  color: var(--dachi-red);
  padding-left: .75rem;
}

/* Footer with "View all" link */
.mega-panel .mp-footer {
  background: var(--dachi-bg-soft);
  border-top: 1px solid var(--dachi-border);
  padding: .65rem 1.1rem;
}
.mega-panel .mp-viewall {
  font-size: .85rem;
  font-weight: 600;
  color: var(--dachi-red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.mega-panel .mp-viewall:hover { color: var(--dachi-red-dark); }
.mega-panel .mp-viewall i { transition: transform .15s; }
.mega-panel .mp-viewall:hover i { transform: translateX(3px); }

/* Open on hover (desktop only), keep click for mobile */
@media (min-width: 992px) {
  .mega-dropdown:hover > .dropdown-menu { display: block; }
  .mega-dropdown { position: relative; }
}

/* Mobile collapse — let it stack naturally */
@media (max-width: 991.98px) {
  .mega-panel { width: 100% !important; max-width: 100% !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; }
  .mega-panel .mp-grid { grid-template-columns: 1fr !important; padding: .75rem; }
  .mega-panel .mp-footer { padding: .6rem .75rem; }
  .mega-nav .nav-link { padding: .65rem .9rem; }
}

/* =========================================================
   HERO + carousel
   ========================================================= */
.hero-banner { min-height: 380px; display: flex; align-items: center; padding: 3rem 1rem; }
.hero-banner h1 { font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.hero-banner p.lead { max-width: 620px; }
.hero-banner .btn-lg { padding: .65rem 1.6rem; font-weight: 600; }
.carousel-control-prev, .carousel-control-next { width: 4%; }
.carousel-indicators [data-bs-target] { background-color: #fff; }

/* Cards */
.card { transition: transform .15s, box-shadow .15s; border-color: var(--dachi-border); }
.card:hover { transform: translateY(-3px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.12) !important; }

/* =========================================================
   HOME PAGE sections
   ========================================================= */
.usp-strip { background: #fff; border: 1px solid var(--dachi-border); border-radius: .75rem; box-shadow: 0 4px 12px rgba(0,0,0,.04); overflow: hidden; }
.usp-item { padding: 1.25rem 1rem; display: flex; align-items: center; justify-content: center; gap: .9rem; border-right: 1px solid var(--dachi-border); }
.usp-item:last-child { border-right: 0; }
.usp-item i { font-size: 1.8rem; color: var(--dachi-red); flex-shrink: 0; }
.usp-item div { text-align: left; line-height: 1.2; }
.usp-item strong { display: block; font-size: .95rem; color: var(--dachi-ink); }
.usp-item span { font-size: .78rem; color: var(--dachi-muted); }
@media (max-width: 767.98px) {
  .usp-item { border-right: 0; border-bottom: 1px solid var(--dachi-border); padding: 1rem .75rem; }
  .usp-item:nth-last-child(-n+2) { border-bottom: 0; }
  .usp-item:nth-child(odd) { border-right: 1px solid var(--dachi-border); }
}

.category-tile { transition: transform .2s, box-shadow .2s, border-color .2s; border: 1px solid transparent !important; }
.category-tile:hover { transform: translateY(-4px); box-shadow: 0 .8rem 1.5rem rgba(193,39,45,.18) !important; border-color: var(--dachi-red) !important; }
.category-tile .cat-icon { width: 64px; height: 64px; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: rgba(193,39,45,.08); border-radius: 50%; font-size: 1.8rem; color: var(--dachi-red); transition: background .2s, color .2s; }
.category-tile:hover .cat-icon { background: var(--dachi-red); color: #fff; }

.product-card { transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 .8rem 1.5rem rgba(0,0,0,.10) !important; }
.product-img { height: 180px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: .375rem .375rem 0 0; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }

.why-section { background: linear-gradient(180deg,#fafafa 0%,#f1f5f9 100%); border: 1px solid var(--dachi-border); }
.why-item { text-align: center; padding: 1rem .5rem; }
.why-icon { width: 76px; height: 76px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 16px; font-size: 2rem; color: var(--dachi-red); box-shadow: 0 6px 16px rgba(193,39,45,.12); }

.stats-strip { background: linear-gradient(135deg, var(--dachi-red) 0%, #7a1518 110%); box-shadow: 0 .8rem 1.6rem rgba(193,39,45,.25); }
.stat-item { padding: 1rem .5rem; border-right: 1px solid rgba(255,255,255,.18); }
.stat-item:last-child { border-right: 0; }
.stat-num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.1; }
.stat-label { font-size: .85rem; opacity: .85; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 767.98px) {
  .stat-item:nth-child(even) { border-right: 0; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.18); margin-bottom: .5rem; padding-bottom: 1.2rem; }
}

.cta-section { background: #fff; border: 1px solid var(--dachi-border); box-shadow: 0 6px 16px rgba(0,0,0,.05); }
.cta-graphic { height: 100%; min-height: 240px; background: linear-gradient(135deg, var(--dachi-red) 0%, #1f1f1f 110%); display: flex; align-items: center; justify-content: center; font-size: 7rem; color: rgba(255,255,255,.85); }

h2.fw-bold { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

/* =========================================================
   Static pages (about/terms/privacy)
   ========================================================= */
.doc-page { max-width: 860px; margin: 0 auto; }
.doc-page h1 { color: var(--dachi-red); font-weight: 800; margin-bottom: 1rem; }
.doc-page h2 { margin-top: 2rem; font-weight: 700; color: var(--dachi-ink); border-left: 4px solid var(--dachi-red); padding-left: .6rem; font-size: 1.3rem; }
.doc-page p, .doc-page li { line-height: 1.7; color: #374151; }

/* =========================================================
   FOOTER
   ========================================================= */
.newsletter-band { background: linear-gradient(135deg, var(--dachi-red) 0%, #7a1518 100%); border-top: 1px solid rgba(255,255,255,.05); }
.newsletter-band .form-control { border: 0; border-radius: .5rem; }

footer.site-footer { background: #111111; color: #d1d5db; margin-top: 0; }
footer.site-footer h5, footer.site-footer h6, footer.site-footer .footer-heading {
  color: #ffffff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em;
  font-weight: 700; margin-bottom: 1rem; padding-bottom: .6rem;
  border-bottom: 2px solid rgba(193,39,45,.6); display: inline-block;
}

.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: #9ca3af; text-decoration: none; transition: color .15s, padding-left .15s; display: inline-block; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-links a:hover::before { content: "› "; color: var(--dachi-red); margin-left: -8px; }

.social-links { display: flex; gap: .5rem; }
.social-links a { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); color: #fff !important; border-radius: 50%; text-decoration: none; transition: background .2s, transform .2s; font-size: 1rem; }
.social-links a:hover { background: var(--dachi-red); transform: translateY(-2px); }

.trust-row { border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); margin-top: 1rem; color: #d1d5db; font-size: .85rem; }
.trust-row i { font-size: 1.1rem; margin-right: .35rem; }

.footer-bottom { background: #0a0a0a; border-top: 1px solid rgba(255,255,255,.04); }
.pay-badge { background: rgba(255,255,255,.08); color: #e5e7eb; font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: .25rem .6rem; border-radius: .25rem; border: 1px solid rgba(255,255,255,.06); }
