/* Dekorationshuset - Mini-cart i headern */
:root{
  --mc-bg: #fffefb;
  --mc-shadow: 0 12px 24px rgba(0,0,0,.08);
  --mc-border: #e7dccd;
  --text-main: #3a2f27;
  --accent-btn: #b89a79;
  --accent-btn-hover: #a88b6d;
}

.dh-minicart{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  position: absolute;
  top: 18px;
  left: 22px;
  margin-left: 0;
  z-index: 20;
}
.dh-minicart-loading,
.dh-minicart-empty{
  display: none;
}

.dh-minicart .btn{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  white-space: nowrap;
}

.dh-minicart-btn{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .8rem;
  border-radius: 999px;
  background: linear-gradient(#f9f6f0,#eee4d9);
  border: 1px solid var(--mc-border);
  color: var(--text-main);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  min-height: 38px;
}

.dh-badge{
  display: none;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 .3rem;
  line-height: 1.25rem;
  font-size: .8rem;
  border-radius: 999px;
  background: var(--accent-btn);
  color: #fff;
  justify-content: center;
  align-items: center;
}

.dh-minicart-panel{
  position: absolute;
  top: calc(100% + .6rem);
  left: 0;
  right: auto;
  width: min(360px, calc(100vw - 44px));
  background: var(--mc-bg);
  border: 1px solid var(--mc-border);
  border-radius: 12px;
  box-shadow: var(--mc-shadow);
  display: none;
  z-index: 1000;
}

.dh-minicart-panel.open{ display: block; }

.dh-panel-inner{ padding: .8rem; }
.dh-items{ display: flex; flex-direction: column; gap: .6rem; max-height: 50vh; overflow:auto; }
.dh-row{ display: grid; grid-template-columns: 56px 1fr auto; gap: .6rem; align-items: center; }
.dh-row img{ width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background:#f2ede4; }
.dh-name{ font-size: .95rem; color: var(--text-main); }
.dh-right{ font-weight: 600; }
.dh-empty{ color:#7a6f63; padding: .6rem; }

.dh-summary{
  margin-top: .6rem;
  border-top: 1px solid var(--mc-border);
  padding-top: .65rem;
  display: grid;
  grid-template-columns: minmax(92px, 1fr) auto;
  align-items: center;
  gap: .55rem .75rem;
}
.dh-sum{
  font-weight: 600;
  line-height: 1.2;
  min-width: 0;
}
.dh-actions{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .45rem;
  max-width: 205px;
}
.dh-primary-actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .38rem;
}

.btn{
  display: inline-block;
  background: var(--accent-btn);
  color: #fff;
  border: none;
  padding: .48rem .82rem;
  border-radius: 30px;
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .02s ease-in;
  box-shadow: 0 4px 0 rgba(0,0,0,0.08);
}
.btn:hover{ background: var(--accent-btn-hover); }
.btn.ghost{ background: transparent; color: var(--text-main); border:1px solid var(--mc-border); box-shadow:none; }
.btn.danger{ color:#7b1f1f; border-color:#e0c4b9; background:#fffaf7; }

.dh-minicart .dh-actions .btn{
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 32px !important;
  padding: .38rem .72rem !important;
  font-size: .84rem !important;
  line-height: 1 !important;
  white-space: nowrap;
}
.dh-minicart .dh-clear-cart{
  min-width: 154px;
}

@media (max-width: 768px) {
  .dh-minicart {
    position: static;
    margin: 0.2rem 0.25rem 1rem;
  }

  .dh-minicart-panel {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(340px, calc(100vw - 24px));
  }
}

/* === DH MINICART TOP RIGHT 2026-07-29 === */
.site-header .dh-minicart,
.dh-minicart {
  position: absolute !important;
  top: 76px !important;
  right: 28px !important;
  left: auto !important;
  z-index: 72 !important;
  margin: 0 !important;
}

.dh-minicart-btn {
  min-height: 36px !important;
  padding: 7px 13px !important;
  border: 1px solid rgba(63, 56, 45, 0.72) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.34) !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #625642 !important;
  font-family: 'Crimson Text', Georgia, serif !important;
}

.dh-minicart-btn:hover {
  background: rgba(255, 255, 255, 0.55) !important;
  color: #3f382d !important;
}

.dh-badge {
  background: #b7a486 !important;
  color: #fff !important;
  font-family: Arial, sans-serif !important;
}

.dh-minicart-panel {
  left: auto !important;
  right: 0 !important;
  top: calc(100% + .5rem) !important;
}

@media (max-width: 768px) {
  .site-header .dh-minicart,
  .dh-minicart {
    position: fixed !important;
    top: auto !important;
    right: 12px !important;
    bottom: 58px !important;
    left: auto !important;
  }
}
/* === END DH MINICART TOP RIGHT === */
/* === DH MINICART REBALANCE 2026-07-29 === */
.site-header .dh-minicart,
.dh-minicart {
  position: absolute !important;
  top: 70px !important;
  right: 28px !important;
  left: auto !important;
  z-index: 72 !important;
  margin: 0 !important;
}

.dh-minicart-btn {
  min-height: 34px !important;
  height: 34px !important;
  padding: 6px 13px !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(143, 127, 102, 0.52) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.34) !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #625642 !important;
}

.dh-minicart-btn:hover {
  background: rgba(255, 255, 255, 0.55) !important;
  color: #3f382d !important;
  border-color: rgba(143, 127, 102, 0.7) !important;
}

.dh-minicart-panel {
  left: auto !important;
  right: 0 !important;
  top: calc(100% + .55rem) !important;
}
/* === END DH MINICART REBALANCE === */
/* === DH STARTPAGE COMPACT CART 2026-07-29 === */
.dh-startpage .dh-minicart {
  top: 72px !important;
  right: auto !important;
  left: 694px !important;
  margin: 0 !important;
}

.dh-startpage .dh-minicart-btn {
  height: 34px !important;
  min-height: 34px !important;
  padding: 6px 13px !important;
  border: 1px solid rgba(143, 127, 102, 0.52) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.34) !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #625642 !important;
}

.dh-startpage .dh-minicart-panel {
  left: auto !important;
  right: 0 !important;
}
/* === END DH STARTPAGE COMPACT CART === */
/* === DH SOFT CART BUTTON 2026-07-29 === */
.dh-startpage .dh-minicart {
  top: 72px !important;
  left: 570px !important;
  right: auto !important;
}

.dh-startpage .dh-minicart-btn {
  height: 34px !important;
  min-height: 34px !important;
  padding: 6px 13px !important;
  border: 1px solid rgba(143, 127, 102, 0.50) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.42) !important;
  background-image: none !important;
  box-shadow: none !important;
  color: rgba(114, 99, 75, 0.58) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  opacity: 0.78 !important;
}

.dh-startpage .dh-minicart-btn:hover {
  background: rgba(255, 255, 255, 0.54) !important;
  border-color: rgba(143, 127, 102, 0.62) !important;
  color: rgba(98, 86, 66, 0.72) !important;
}

.dh-startpage .dh-badge {
  background: rgba(183, 164, 134, 0.82) !important;
  color: rgba(255, 255, 255, 0.94) !important;
}
/* === END DH SOFT CART BUTTON === */
/* === DH STARTPAGE CART TEXT PREVIEW MATCH 2026-07-29 === */
.dh-startpage .dh-minicart-btn {
  font-size: 13px !important;
  color: rgba(114, 99, 75, 0.52) !important;
  opacity: 0.72 !important;
}
/* === END DH STARTPAGE CART TEXT PREVIEW MATCH === */
/* === DH MINICART OVERLAY FIX 2026-07-30 === */
body:not(.dh-startpage) .site-header {
  z-index: 3000 !important;
}

body:not(.dh-startpage) .site-header .dh-minicart,
body:not(.dh-startpage) .dh-minicart {
  z-index: 3200 !important;
}

body:not(.dh-startpage) .dh-minicart-panel {
  z-index: 3300 !important;
  background: var(--mc-bg) !important;
}
/* === END DH MINICART OVERLAY FIX === */
/* === DH MINICART SUMMARY LAYOUT 2026-07-30 === */
.dh-minicart .dh-summary {
  display: block !important;
  margin-top: .68rem !important;
  padding-top: .74rem !important;
}

.dh-minicart .dh-sum {
  display: block !important;
  width: 100% !important;
  margin: 0 0 .64rem !important;
  text-align: left !important;
  color: #8f7f66 !important;
  font-family: 'Crimson Text', Georgia, serif !important;
  font-size: 1.16rem !important;
  font-weight: 600 !important;
  line-height: 1.08 !important;
}

.dh-minicart .dh-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: .38rem !important;
  width: 100% !important;
  max-width: none !important;
}

.dh-minicart .dh-primary-actions {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  gap: .38rem !important;
  order: 2 !important;
}

.dh-minicart .dh-clear-cart {
  order: 1 !important;
  min-width: 128px !important;
}

.dh-minicart .dh-actions .btn {
  min-height: 31px !important;
  padding: .34rem .58rem !important;
  font-family: Arial, sans-serif !important;
  font-size: .78rem !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

.dh-minicart .dh-primary-actions .btn:last-child {
  margin-left: .02rem !important;
}

@media (max-width: 430px) {
  .dh-minicart .dh-actions {
    flex-wrap: wrap !important;
  }

  .dh-minicart .dh-clear-cart {
    min-width: 100% !important;
  }
}
/* === END DH MINICART SUMMARY LAYOUT === */
/* === DH MINICART CHECKOUT GAP 2026-07-30 === */
.dh-minicart .dh-actions {
  justify-content: flex-start !important;
}

.dh-minicart .dh-primary-actions {
  display: contents !important;
}

.dh-minicart .dh-clear-cart {
  order: 1 !important;
}

.dh-minicart .dh-primary-actions .btn.ghost {
  order: 2 !important;
}

.dh-minicart .dh-primary-actions .btn:not(.ghost) {
  order: 3 !important;
  margin-left: auto !important;
}
/* === END DH MINICART CHECKOUT GAP === */
/* === DH MINICART SUM AMOUNT ALIGN 2026-07-30 === */
.dh-minicart .dh-sum {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-items: baseline !important;
  column-gap: .75rem !important;
}

.dh-minicart .dh-sum span {
  justify-self: start !important;
}

.dh-minicart .dh-sum strong {
  justify-self: end !important;
  min-width: 86px !important;
  text-align: right !important;
  font: inherit !important;
}
/* === END DH MINICART SUM AMOUNT ALIGN === */
/* === DH MINICART MOBILE FIRST PASS 2026-08-01 === */
@media (max-width: 760px) {
  .site-header .dh-minicart,
  .dh-minicart,
  .dh-startpage .dh-minicart {
    position: absolute !important;
    top: 72px !important;
    right: 22px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 91 !important;
  }

  .dh-minicart-panel {
    width: min(340px, calc(100vw - 28px)) !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
  }
}

@media (max-width: 420px) {
  .site-header .dh-minicart,
  .dh-minicart,
  .dh-startpage .dh-minicart {
    right: 16px !important;
  }
}
/* === END DH MINICART MOBILE FIRST PASS === */
/* === DH MINICART MOBILE BELOW TITLE 2026-08-01 === */
@media (max-width: 760px) {
  .site-header .dh-minicart,
  .dh-minicart,
  .dh-startpage .dh-minicart {
    top: 96px !important;
    right: 22px !important;
    left: auto !important;
  }
}

@media (max-width: 420px) {
  .site-header .dh-minicart,
  .dh-minicart,
  .dh-startpage .dh-minicart {
    top: 94px !important;
    right: 18px !important;
  }
}
/* === END DH MINICART MOBILE BELOW TITLE === */
/* === DH MINICART MOBILE TOP PAIR 2026-08-01 === */
@media (max-width: 760px) {
  .site-header .dh-minicart,
  .dh-minicart,
  .dh-startpage .dh-minicart {
    top: 26px !important;
    right: 22px !important;
    left: auto !important;
    bottom: auto !important;
  }
}

@media (max-width: 420px) {
  .site-header .dh-minicart,
  .dh-minicart,
  .dh-startpage .dh-minicart {
    top: 24px !important;
    right: 16px !important;
  }
}
/* === END DH MINICART MOBILE TOP PAIR === */