/* =====================================================================
   Modern UI set: header five (floating glass), footer five (aurora),
   product details three, aurora hero. Loaded after colorful.css.
   ===================================================================== */

/* ---------- header five (base copied from header three, then restyled) ---------- */
.hdr5-bar {
  --bg-color: var(--bg-white);
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: saturate(160%) blur(8px);
}
.hdr5-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}
.hdr5-logo, .hdr5-logo a { height: auto; line-height: 1; }
.hdr5-logo a img { max-height: 40px; }
.hdr5-menu { flex: 1 1 auto; justify-content: center; gap: 28px; height: 76px; line-height: 76px; }
.hdr5-menu > li .nav-link { font-size: 15px; position: relative; }
.hdr5-menu > li > .nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 22px;
  height: 2px;
  border-radius: 2px;
  background: rgba(var(--primary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.hdr5-menu > li > .nav-link.active::after,
.hdr5-menu > li > .nav-link:hover::after { transform: scaleX(1); }
.hdr5-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hdr5-account .nav-menu { height: auto; line-height: 1; }
.hdr5-account .btn-1 { height: 40px; margin-left: 8px; }
.hdr5-account .drop-menu { left: auto; right: 0; }
.hdr5-bar.sticky .hdr5-inner { height: 64px; }
.hdr5-bar.sticky .hdr5-menu { height: 64px; line-height: 64px; }
.hdr5-inner { height: 64px; gap: 12px; }
.hdr5 { display: contents; }
.hdr5-bar {
  position: sticky; top: 12px; z-index: 99;
  width: min(1240px, calc(100% - 24px)); margin: 12px auto 0;
  border: 1.5px solid rgba(var(--cf-1-rgb),.28); border-radius: 999px;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 18px 40px -22px rgba(var(--cf-1-rgb),.5), 0 0 0 4px rgba(var(--cf-2-rgb),.07);
}
body[data-theme="dark"] .hdr5-bar { background: rgba(20,16,38,.86); border-color: rgba(var(--cf-1b-rgb),.4); }
.hdr5-logo img { height: 34px; width: auto; max-height: none; }
.hdr5-account .btn-1, .hdr5 .btn-1 { white-space: nowrap; }
.hdr5-bar .container { max-width: none; padding: 0 22px; }
.hdr5-inner { height: 66px; }
.hdr5-menu { height: 66px; line-height: 66px; }
.hdr5-menu > li > .nav-link::after { bottom: 14px; background: linear-gradient(90deg, var(--cf-1), var(--cf-2)); }
.hdr5-account .btn-1 { border-radius: 999px; }
@media (max-width: 991.98px) { .hdr5-inner { height: 58px; gap: 12px; } .hdr5-bar { top: 8px; } }

/* ---------- footer five (aurora) ---------- */
.ftr5 {
  --ftr-bg: #0f0c1d;
  --ftr-ink: #e9e7f3;
  --ftr-muted: #a49fbd;
  --ftr-line: rgba(255, 255, 255, .09);
  background: var(--ftr-bg);
  color: var(--ftr-muted);
  font-size: 15px;
  padding-top: 40px;
}
.ftr5-nl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(var(--primary-color), .35), rgba(var(--primary-color), .08));
  border: 1px solid rgba(var(--primary-color), .35);
  margin-bottom: 48px;
}
.ftr5-nl__title { color: #fff; font-weight: 700; margin-bottom: 4px; }
.ftr5-nl__form { display: flex; gap: 8px; flex: 0 1 460px; }
.ftr5-nl__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--ftr-line);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  outline: none;
}
.ftr5-nl__input::placeholder { color: var(--ftr-muted); }
.ftr5-nl__form .btn-1 { height: 48px; white-space: nowrap; }
.ftr5 .footer-logo img { max-height: 44px; }
.ftr5-about { line-height: 1.7; margin-bottom: 18px; }
.ftr5-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.ftr5-contact i { color: rgba(var(--primary-color)); width: 16px; margin-top: 4px; }
.ftr5-contact a { color: var(--ftr-ink); }
.ftr5-heading { color: #fff; font-weight: 600; font-size: 15px; margin-bottom: 18px; }
.ftr5-links li { margin-bottom: 10px; }
.ftr5-links a { color: var(--ftr-muted); transition: color .2s, padding-left .2s; }
.ftr5-links a:hover { color: #fff; padding-left: 4px; }
.ftr5-social { display: flex; flex-wrap: wrap; gap: 10px; }
.ftr5-social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--ftr-line);
  color: var(--ftr-ink);
  transition: all .2s;
}
.ftr5-social a:hover { background: rgba(var(--primary-color)); border-color: transparent; color: #fff; }
.ftr5-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--ftr-line);
  margin-top: 40px;
  padding: 20px 0;
  font-size: 14px;
}
.ftr5-bottom .payment-method img { max-height: 40px; }
.ftr5-bottom { padding-bottom: 100px; }
.ftr5 {
  --ftr-bg: var(--cf-dark); position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(600px 340px at 0% 0%, rgba(var(--cf-1-rgb),.55), transparent 65%),
    radial-gradient(560px 340px at 100% 8%, rgba(var(--cf-2-rgb),.42), transparent 65%),
    radial-gradient(640px 360px at 55% 110%, rgba(var(--cf-4-rgb),.38), transparent 65%),
    var(--cf-dark);
}
.ftr5-nl { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(14px); border-radius: 24px; }
.ftr5-heading { background: linear-gradient(90deg, #fff, #d9ccff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ftr5-links a:hover { color: #fff; padding-left: 4px; }
@media (max-width: 768px) { .ftr5-bottom { padding-bottom: 100px; } }

/* demo menu items must stay on one line */
.nav-menu > li > .nav-link, .nav-menu .cs-btn { white-space: nowrap; }

/* ---------- product details three ---------- */
.pd3-hero {
  padding: 34px 0 70px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--cf-1), var(--cf-2) 60%, var(--cf-3));
}
.pd3-hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; background: rgba(255,255,255,.14); }
.pd3-crumbs { margin: 0 0 14px; --bs-breadcrumb-divider-color: rgba(255,255,255,.6); }
.pd3-crumbs a, .pd3-crumbs .breadcrumb-item.active { color: rgba(255,255,255,.85); text-decoration: none; }
.pd3-hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; position: relative; z-index: 1; }
.pd3-title { font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; margin: 0; color: #fff; -webkit-text-fill-color: #fff; background: none; }
.pd3-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.pd3-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(8px); }
.pd3-body { margin-top: -44px; position: relative; z-index: 2; padding-bottom: 40px; }
.pd3-media { border-radius: 26px; overflow: hidden; padding: 4px; background: linear-gradient(135deg, var(--cf-1), var(--cf-2), var(--cf-3)); box-shadow: 0 30px 60px -30px rgba(var(--cf-1-rgb),.6); }
.pd3-media img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 22px; display: block; }
.pd3-tabs { margin-top: 28px; background: var(--bg-white, #fff); border: 1px solid rgba(var(--cf-1-rgb),.16); border-radius: 22px; padding: 10px 24px 24px; }
.pd3-tabnav { gap: 6px; border-bottom: 1px solid rgba(var(--cf-1-rgb),.14); margin-bottom: 18px; }
.pd3-tabnav .nav-link { border: 0; background: none; padding: 14px 16px; font-weight: 700; color: var(--text-secondary, #5e5a72); position: relative; }
.pd3-tabnav .nav-link.active { color: var(--cf-1); }
.pd3-tabnav .nav-link.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--cf-1), var(--cf-2)); }
.pd3-steps { padding-left: 20px; display: grid; gap: 10px; }
.pd3-buy { position: sticky; top: 96px; }
.pd3-buy__panel {
  border-radius: 24px; padding: 26px; border: 1.5px solid transparent;
  background: linear-gradient(var(--bg-white, #fff), var(--bg-white, #fff)) padding-box, linear-gradient(135deg, var(--cf-1), var(--cf-2), var(--cf-3)) border-box;
  box-shadow: 0 30px 60px -32px rgba(var(--cf-2-rgb),.5);
}
.pd3-buy__panel .heading2 { display: none; }

/* ---------- aurora hero ---------- */
.m1-aurora {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; color: #fff;
  padding: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  background: var(--cf-dark);
}
.m1-aurora__blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .75; animation: aurora 14s ease-in-out infinite alternate; }
.m1-aurora__blob--1 { width: 420px; height: 420px; left: -80px; top: -120px; background: var(--cf-1); }
.m1-aurora__blob--2 { width: 380px; height: 380px; right: -60px; top: 10%; background: var(--cf-2); animation-delay: -4s; }
.m1-aurora__blob--3 { width: 360px; height: 360px; left: 35%; bottom: -160px; background: var(--cf-4); animation-delay: -8s; }
@keyframes aurora { to { transform: translate(40px, 30px) scale(1.15); } }
.m1-aurora__eyebrow { display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); margin-bottom: 18px; }
.m1-aurora h1 { font: 800 clamp(34px, 5vw, 62px)/1.05 var(--m1-font-h, inherit); margin: 0 0 16px; color: #fff; -webkit-text-fill-color: #fff; background: none; }
.m1-aurora h1 em { font-style: normal; background: linear-gradient(90deg, var(--cf-3b), var(--cf-2b), #c4a1ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.m1-aurora p { color: rgba(255,255,255,.82); font-size: 17px; max-width: 520px; margin: 0 0 26px; }
.m1-aurora__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.m1 .m1-aurora__btn { padding: 14px 28px; border-radius: 999px; font-weight: 700; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; transition: .22s; }
.m1 .m1-aurora__btn--solid { background: #fff; color: var(--cf-1); }
.m1 .m1-aurora__btn--ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.m1 .m1-aurora__btn:hover { transform: translateY(-3px); }
.m1-aurora__stats { display: flex; gap: 34px; flex-wrap: wrap; }
.m1-aurora__stats strong { display: block; font: 800 28px var(--m1-font-h, inherit); }
.m1-aurora__stats span { font-size: 13px; opacity: .75; }
.m1-aurora__frame { border-radius: 28px; padding: 6px; background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.08)); backdrop-filter: blur(10px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); transform: rotate(2deg); transition: .4s; }
.m1-aurora__frame:hover { transform: rotate(0) scale(1.02); }
.m1-aurora__frame img { width: 100%; border-radius: 22px; display: block; }
@media (max-width: 900px) { .m1-aurora { grid-template-columns: 1fr; } .m1-aurora__frame { transform: none; } }

/* demo dropdown: readable on every header style (header `.active` rules turn text white) */
.custom-dropdown .drop-menu .nav-link { color: var(--text-color, #1f1f2e); white-space: nowrap; }
.custom-dropdown .drop-menu .nav-link:hover { color: var(--cf-1); }
.custom-dropdown .drop-menu .nav-link.demo-current { color: var(--cf-1) !important; font-weight: 700; background: rgba(var(--cf-1-rgb),.08); }
