/* DONBONG FINAL PASS — additive layer, source structure preserved */

:root {
  --db-orange: #ff5a00;
  --db-orange-2: #ff7a18;
  --db-dark: #050307;
  --db-panel: rgba(7, 5, 12, .86);
  --db-line: rgba(255,255,255,.14);
}

/* Global link / button readability */
a, button {
  -webkit-tap-highlight-color: transparent;
}

.btn,
.btn-primary,
.btn-secondary,
.nav-pill,
.topbar-btn,
button {
  text-shadow: none !important;
}

.btn-primary,
a.btn-primary,
button.btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, #ff3d00, #ff7a18) !important;
  border-color: rgba(255,122,48,.92) !important;
  box-shadow: 0 16px 42px rgba(255,90,0,.32), inset 0 1px 0 rgba(255,255,255,.18) !important;
}

.btn-secondary,
a.btn-secondary,
button.btn-secondary {
  color: #fff !important;
  background: rgba(15, 8, 20, .62) !important;
  border-color: rgba(255,90,0,.72) !important;
}

/* Header logo fix */
.nav-logo::after,
.db-home-polish .nav-logo::after {
  content: none !important;
  display: none !important;
}

.nav-logo,
.logo,
.brand,
.topbar-logo {
  min-width: 150px;
}

.nav-logo img,
.logo img,
.brand img {
  object-fit: contain !important;
  max-height: 54px;
}

/* HOME final hero pass */
body.db-final-home .hero {
  isolation: isolate;
  overflow: hidden;
}

body.db-final-home .hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(62vw, 900px);
  z-index: 6;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,3,7,.94), rgba(5,3,7,.76) 48%, rgba(5,3,7,.16) 82%, transparent),
    radial-gradient(circle at 18% 42%, rgba(0,0,0,.56), transparent 58%);
}

body.db-final-home .hero-copy,
body.db-final-home .hero-content,
body.db-final-home .hero-left {
  position: relative;
  z-index: 35 !important;
}

body.db-final-home .hero h1,
body.db-final-home .hero-title,
body.db-final-home .hero-name,
body.db-final-home .hero-tagline {
  text-shadow:
    0 20px 60px rgba(0,0,0,.78),
    0 6px 24px rgba(0,0,0,.72) !important;
}

body.db-final-home .hero p,
body.db-final-home .hero-sub {
  color: rgba(255,255,255,.88) !important;
  text-shadow: 0 12px 34px rgba(0,0,0,.78) !important;
}

/* Existing abstract/bong visual becomes background atmosphere */
body.db-final-home .hero-visual,
body.db-final-home .hero-art,
body.db-final-home .hero-media {
  opacity: .46 !important;
  filter: saturate(1.05) contrast(.95) brightness(.82);
  transform: translateX(6%) scale(.985);
  pointer-events: none;
}

/* Large brandmark behind figure */
.db-final-brandmark {
  position: absolute;
  right: -14vw;
  top: 7vh;
  width: min(78vw, 1120px);
  height: min(70vw, 920px);
  z-index: 4;
  opacity: .18;
  pointer-events: none;
  filter: blur(4px) drop-shadow(0 0 52px rgba(255,90,0,.20));
  transform: rotate(-4deg);
}

.db-final-brandmark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Girl + smoke hero overlay */
.db-final-girl {
  position: absolute;
  right: clamp(18px, 7.4vw, 132px);
  bottom: -4vh;
  width: min(39vw, 590px);
  min-width: 390px;
  z-index: 28;
  pointer-events: none;
  opacity: 1;
  animation: dbFinalGirlIn .72s cubic-bezier(.22,1,0,1) both;
}

.db-final-girl::before,
.db-final-girl::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  mix-blend-mode: screen;
}

.db-final-girl::before {
  left: -16%;
  top: 18%;
  width: 82%;
  height: 36%;
  background: radial-gradient(circle, rgba(232,242,255,.28), rgba(160,170,190,.12) 46%, transparent 72%);
  filter: blur(22px);
  opacity: .86;
  animation: dbFinalSmoke 8.5s ease-in-out infinite alternate;
}

.db-final-girl::after {
  left: 7%;
  top: 34%;
  width: 48%;
  height: 18%;
  background: radial-gradient(circle, rgba(255,255,255,.24), rgba(120,135,160,.12) 42%, transparent 70%);
  filter: blur(15px);
  opacity: .72;
  animation: dbFinalSmoke 6.8s ease-in-out infinite alternate-reverse;
}

.db-final-girl img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 36px 76px rgba(0,0,0,.78))
    saturate(1.05)
    contrast(1.04);
}

@keyframes dbFinalGirlIn {
  from { opacity: 0; transform: translate3d(34px,18px,0) scale(.975); }
  to { opacity: 1; transform: none; }
}

@keyframes dbFinalSmoke {
  from { transform: translate3d(-5%, 2%, 0) scale(.96); opacity: .44; }
  to { transform: translate3d(10%, -8%, 0) scale(1.18); opacity: .9; }
}

/* Shop final pass */
body.db-final-shop .topbar,
body.db-final-shop header {
  background: rgba(3,3,8,.92) !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
  backdrop-filter: blur(22px) saturate(170%) !important;
}

body.db-final-shop .cat-strip,
body.db-final-shop .filter-bar,
body.db-final-shop .filters {
  backdrop-filter: blur(22px) saturate(160%) !important;
}

body.db-final-shop .product-card,
body.db-final-shop .prod-card,
body.db-final-shop .card-product,
body.db-final-shop [class*="product-card"],
body.db-final-shop [class*="prod-card"] {
  cursor: pointer;
}

body.db-final-shop .product-card img,
body.db-final-shop .prod-card img,
body.db-final-shop .card-product img,
body.db-final-shop [class*="product-card"] img {
  object-fit: cover;
}

/* Product detail modal */
.db-product-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(18px) saturate(150%);
}

.db-product-modal.open {
  display: flex;
}

.db-product-dialog {
  width: min(1040px, 100%);
  max-height: min(88vh, 920px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(300px, .9fr) 1.1fr;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.15);
  background:
    radial-gradient(circle at 78% 0%, rgba(255,90,0,.12), transparent 34%),
    rgba(8,8,16,.96);
  box-shadow: 0 44px 140px rgba(0,0,0,.66);
  color: #fff;
}

.db-product-media {
  min-height: 440px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,90,0,.18), transparent 38%),
    rgba(255,255,255,.045);
  overflow: hidden;
}

.db-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.db-product-info {
  padding: clamp(22px, 3vw, 38px);
  overflow-y: auto;
}

.db-product-close {
  float: right;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
}

.db-product-kicker {
  color: var(--db-orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.db-product-title {
  font-size: clamp(30px, 4vw, 56px);
  line-height: .92;
  font-weight: 1000;
  letter-spacing: -.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.db-product-desc {
  color: rgba(255,255,255,.68);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 18px;
}

.db-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 22px;
}

.db-product-chip {
  border: 1px solid rgba(255,90,0,.34);
  color: var(--db-orange);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.db-product-chip.in {
  color: #49e98b;
  border-color: rgba(73,233,139,.34);
}

.db-product-chip.pre {
  color: #ffbd59;
  border-color: rgba(255,189,89,.42);
}

.db-product-price {
  font-size: 28px;
  font-weight: 1000;
  margin: 18px 0;
}

.db-product-form {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.db-product-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.db-product-form input,
.db-product-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 13px 14px;
  outline: none;
}

.db-product-form textarea {
  min-height: 90px;
  resize: vertical;
}

.db-product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.db-product-order,
.db-product-secondary {
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 1000;
  border: 1px solid rgba(255,255,255,.16);
  cursor: pointer;
}

.db-product-order {
  color: #fff;
  background: linear-gradient(135deg, #ff3d00, #ff7a18);
  border-color: rgba(255,90,0,.78);
}

.db-product-order.pre {
  color: #211000;
  background: linear-gradient(135deg, #ffc45c, #ff8d24);
}

.db-product-secondary {
  background: rgba(255,255,255,.06);
  color: #fff;
}

/* Contact page */
.db-contact-page {
  min-height: 100svh;
  color: #fff;
  background:
    radial-gradient(circle at 70% 18%, rgba(255,90,0,.18), transparent 34%),
    radial-gradient(circle at 20% 80%, rgba(120,60,255,.12), transparent 36%),
    #050307;
  padding: 96px clamp(18px, 6vw, 90px);
  font-family: 'DM Sans', system-ui, sans-serif;
}

.db-contact-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 5vw, 76px);
  background: rgba(5,3,7,.68);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(22px);
  z-index: 20;
}

.db-contact-logo {
  font-size: 24px;
  font-weight: 1000;
  letter-spacing: -.04em;
}

.db-contact-logo span {
  color: #ff5a00;
}

.db-contact-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  margin-left: 18px;
}

.db-contact-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 80px;
}

.db-contact-kicker {
  color: #ff5a00;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 1000;
  margin-bottom: 14px;
}

.db-contact-title {
  font-size: clamp(54px, 8vw, 118px);
  line-height: .86;
  font-weight: 1000;
  letter-spacing: -.07em;
  text-transform: uppercase;
}

.db-contact-text {
  max-width: 680px;
  color: rgba(255,255,255,.74);
  font-size: 20px;
  line-height: 1.55;
  margin: 24px 0 36px;
}

.db-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin-top: 36px;
}

.db-contact-card {
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 26px;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(20px);
  padding: 26px;
}

.db-contact-card b {
  display: block;
  color: #ff5a00;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 12px;
}

.db-contact-card a,
.db-contact-card p {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 980px) {
  .db-final-girl {
    right: -4vw;
    width: 52vw;
    min-width: 340px;
    opacity: .75;
  }

  .db-final-brandmark {
    opacity: .11;
  }

  .db-product-dialog {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .db-product-media {
    min-height: 300px;
  }

  .db-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .db-final-girl,
  .db-final-brandmark {
    display: none;
  }

  body.db-final-home .hero::before {
    width: 100%;
    background: linear-gradient(180deg, rgba(5,3,7,.9), rgba(5,3,7,.58), rgba(5,3,7,.9));
  }

  .db-product-form-row {
    grid-template-columns: 1fr;
  }
}


/* === DONBONG HOTFIX: SAFE HERO/SHOP/LIBRARY === */

/* Hide legacy golden bong/right-side product render after girl overlay appears */
.db-hide-legacy-hero-img,
.db-hide-legacy-hero-img img {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.db-final-home .db-final-girl {
  z-index: 44 !important;
  right: clamp(28px, 6.4vw, 118px) !important;
  bottom: -3vh !important;
  width: min(36vw, 550px) !important;
  min-width: 370px !important;
}

body.db-final-home .db-final-girl img {
  filter:
    drop-shadow(0 38px 82px rgba(0,0,0,.82))
    saturate(1.04)
    contrast(1.05) !important;
}

body.db-final-home .db-final-girl::before {
  opacity: .95 !important;
}

body.db-final-home .hero::before {
  z-index: 8 !important;
  width: min(60vw, 900px) !important;
}

/* Keep shop/library dark even if source script fails */
body.db-final-shop,
body.db-final-library {
  background: #050307 !important;
  color: #fff !important;
}

/* Product cards remain visible and clickable */
body.db-final-shop .product-card,
body.db-final-shop .prod-card,
body.db-final-shop .card-product,
body.db-final-shop .db-live-product-card,
body.db-final-shop [class*="product-card"],
body.db-final-shop [class*="prod-card"] {
  cursor: pointer;
}

/* Detail modal safety */
.db-product-modal {
  font-family: 'DM Sans', system-ui, sans-serif;
}

@media (max-width: 900px) {
  body.db-final-home .db-final-girl {
    right: -6vw !important;
    width: 56vw !important;
    min-width: 320px !important;
    opacity: .72 !important;
  }
}

@media (max-width: 720px) {
  body.db-final-home .db-final-girl {
    display: none !important;
  }
}

/* === /DONBONG HOTFIX === */


/* === DONBONG CART PASS: PRODUCT DETAIL + CHECKOUT === */

.db-final-hide-el {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.db-final-home .db-final-girl {
  z-index: 48 !important;
  right: clamp(34px, 7vw, 124px) !important;
  bottom: 2vh !important;
  width: min(34vw, 520px) !important;
  min-width: 360px !important;
}

body.db-final-home .db-final-girl::before {
  top: 10% !important;
  left: -18% !important;
  width: 90% !important;
  height: 40% !important;
  opacity: .98 !important;
}

body.db-final-home .db-final-girl::after {
  top: 27% !important;
  opacity: .8 !important;
}

body.db-final-home .hero-visual,
body.db-final-home .hero-art,
body.db-final-home .hero-media {
  opacity: .38 !important;
  filter: saturate(1.02) contrast(.92) brightness(.76) blur(.3px) !important;
}

body.db-final-home .db-final-brandmark {
  opacity: .13 !important;
}

/* Shop simplification without breaking source layout */
body.db-final-shop .db-shop-extra-hidden {
  display: none !important;
}

.db-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 7px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff5a00;
  color: #fff;
  font-size: 11px;
  font-weight: 1000;
  line-height: 1;
}

.db-toast {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 7000;
  max-width: 360px;
  padding: 14px 18px;
  border: 1px solid rgba(255,90,0,.4);
  border-radius: 16px;
  background: rgba(8,8,14,.94);
  color: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: .28s ease;
}

.db-toast.show {
  transform: none;
  opacity: 1;
}

.db-product-dialog {
  grid-template-columns: minmax(300px, .86fr) 1.14fr !important;
}

.db-product-info {
  padding-bottom: 30px !important;
}

.db-product-form {
  display: none !important;
}

.db-product-actions {
  margin: 18px 0 22px !important;
}

.db-product-recs {
  margin-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px;
}

.db-rec-title {
  color: rgba(255,255,255,.92);
  font-size: 15px;
  font-weight: 1000;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.db-rec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.db-rec-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
}

.db-rec-card img {
  width: 100%;
  height: 98px;
  object-fit: cover;
  background: rgba(255,255,255,.05);
}

.db-rec-body {
  padding: 10px;
}

.db-rec-name {
  min-height: 36px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.db-rec-price {
  margin-top: 6px;
  color: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 800;
}

.db-rec-add {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(255,90,0,.46);
  border-radius: 999px;
  background: rgba(255,90,0,.12);
  color: #ff7a18;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 1000;
  cursor: pointer;
}

.db-cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 6100;
  display: none;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(14px);
}

.db-cart-backdrop.open {
  display: block;
}

.db-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 6200;
  width: min(480px, 100vw);
  height: 100svh;
  transform: translateX(105%);
  transition: transform .36s cubic-bezier(.22,1,0,1);
  border-left: 1px solid rgba(255,255,255,.13);
  background:
    radial-gradient(circle at 90% 0%, rgba(255,90,0,.16), transparent 34%),
    rgba(7,7,14,.97);
  color: #fff;
  box-shadow: -30px 0 90px rgba(0,0,0,.55);
  display: flex;
  flex-direction: column;
}

.db-cart-drawer.open {
  transform: none;
}

.db-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.db-cart-head h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 1000;
}

.db-cart-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
}

.db-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
}

.db-cart-empty {
  color: rgba(255,255,255,.56);
  padding: 28px 4px;
}

.db-cart-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.db-cart-item img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
}

.db-cart-name {
  font-weight: 1000;
  line-height: 1.15;
}

.db-cart-meta {
  margin-top: 6px;
  color: rgba(255,255,255,.56);
  font-size: 12px;
}

.db-cart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.db-cart-controls button {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
}

.db-cart-remove {
  width: auto !important;
  padding: 0 10px;
  color: #ffbd59 !important;
}

.db-cart-foot {
  padding: 18px 22px 22px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.db-cart-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 18px;
  font-weight: 1000;
  margin-bottom: 14px;
}

.db-checkout-form {
  display: grid;
  gap: 9px;
}

.db-checkout-form input,
.db-checkout-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 12px 13px;
  outline: none;
}

.db-checkout-form textarea {
  min-height: 76px;
  resize: vertical;
}

.db-checkout-submit {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff3d00, #ff7a18);
  color: #fff;
  padding: 14px 18px;
  font-weight: 1000;
  cursor: pointer;
}

@media (max-width: 900px) {
  body.db-final-home .db-final-girl {
    right: -7vw !important;
    bottom: 1vh !important;
    width: 54vw !important;
    min-width: 310px !important;
    opacity: .74 !important;
  }

  .db-rec-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 720px) {
  .db-rec-grid {
    grid-template-columns: 1fr;
  }
}

/* === /DONBONG CART PASS === */
