/*
  DreamyHeader26
  Luxury, calm header system.
  Prefix: dreamyheader26-
*/

:root {
  --dreamyheader26-border: rgba(0,0,0,0.06);
  --dreamyheader26-border2: rgba(0,0,0,0.10);
  --dreamyheader26-shadow: 0 30px 80px rgba(0,0,0,0.14);
  --dreamyheader26-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* Skip link */
.dreamyheader26-skip {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--dreamyheader26-border2);
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
  z-index: 99999;
}
.dreamyheader26-skip:focus {
  transform: translateY(0);
}

/* Header shell */
.dreamyheader26 {
  position: sticky;
  top: 0;
  z-index: 9990;
  background: transparent;
  border-bottom: 1px solid var(--dreamyheader26-border);
  isolation: isolate; /* keep blur behind content (prevents SVG/text softness) */
}

.dreamyheader26::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: -1;
}

.dreamyheader26-bar {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
}

.dreamyheader26-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

/* Burger */
.dreamyheader26-burger {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.dreamyheader26-burger:hover {
  background: rgba(0,0,0,0.03);
  border-color: var(--dreamyheader26-border);
}

.dreamyheader26-burgerLines {
  width: 18px;
  height: 12px;
  position: relative;
  display: block;
}
.dreamyheader26-burgerLines::before,
.dreamyheader26-burgerLines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--ink-primary, #050505);
  border-radius: 2px;
}
.dreamyheader26-burgerLines::before { top: 2px; }
.dreamyheader26-burgerLines::after  { bottom: 2px; }

/* Utility menu (top-left) */
.dreamyheader26-utility {
  display: none; /* enabled on desktop */
  min-width: 0;
}

.dreamyheader26-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dreamyheader26-menu--utility {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.dreamyheader26-menu--utility > li > a {
  font-family: var(--font-ui, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-secondary, #757575);
  display: inline-block;
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
}

.dreamyheader26-menu--utility > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--ink-primary, #050505);
  opacity: 0;
  transform: scaleX(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dreamyheader26-menu--utility > li > a:hover::after,
.dreamyheader26-menu--utility > li > a:focus-visible::after {
  opacity: 0.25;
  transform: scaleX(1);
}

/* Logo */
.dreamyheader26-logo {
  text-align: center;
  min-width: 0;
}

.dreamyheader26-logo a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

.dreamyheader26-logo img {
  height: 22px;
  width: auto;
}

.dreamyheader26-wordmark {
  font-family: var(--font-edit, "Playfair Display", Georgia, "Times New Roman", serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Actions */
.dreamyheader26-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.dreamyheader26-iconBtn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.dreamyheader26-iconBtn:hover {
  background: rgba(0,0,0,0.03);
  border-color: var(--dreamyheader26-border);
}

.dreamyheader26-icon {
  width: 19px;
  height: 19px;
  display: block;
}

.dreamyheader26-count {
  position: absolute;
  top: 7px;
  right: 7px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ink-primary, #050505);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.92);
}

.dreamyheader26-count.dreamyheader26-count--zero {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}

/* Primary menu row */
.dreamyheader26-primary {
  display: none; /* desktop only */
  border-top: 1px solid rgba(0,0,0,0.04);
}

.dreamyheader26-menu--primary {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.dreamyheader26-menu--primary > li {
  position: relative;
}

.dreamyheader26-menu--primary > li > a {
  font-family: var(--font-ui, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-secondary, #757575);
  display: inline-block;
  padding: 8px 2px;
  position: relative;
}

.dreamyheader26-menu--primary > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--ink-primary, #050505);
  opacity: 0;
  transform: scaleX(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dreamyheader26-menu--primary > li > a:hover::after,
.dreamyheader26-menu--primary > li > a:focus-visible::after {
  opacity: 0.25;
  transform: scaleX(1);
}

/* Dropdowns */
.dreamyheader26-menu--primary .sub-menu {
  list-style: none;
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--dreamyheader26-border);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.dreamyheader26-menu--primary li:focus-within > .sub-menu,
.dreamyheader26-menu--primary li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dreamyheader26-menu--primary .sub-menu li a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.82rem;
  color: var(--ink-primary, #050505);
  letter-spacing: 0.01em;
}

.dreamyheader26-menu--primary .sub-menu li a:hover,
.dreamyheader26-menu--primary .sub-menu li a:focus-visible {
  background: rgba(0,0,0,0.035);
}

/* Overlay */
.dreamyheader26-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9998;
}


.dreamyheader26-overlay[hidden]{display:none !important;}
/* Panels shared */
.dreamyheader26-drawer,
.dreamyheader26-cart {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 92vw);
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  box-shadow: var(--dreamyheader26-shadow);
  transform: translate3d(18px, 0, 0);
  opacity: 0;
  transition: transform 0.35s var(--dreamyheader26-ease), opacity 0.35s var(--dreamyheader26-ease);
}

.dreamyheader26-search {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
}

.dreamyheader26-searchPanel {
  width: min(780px, 100%);
  margin-top: 8vh;
  background: #fff;
  border: 1px solid var(--dreamyheader26-border);
  border-radius: 24px;
  box-shadow: var(--dreamyheader26-shadow);
  overflow: hidden;
}

/* Open state toggled by JS */
.dreamyheader26-panel--open,
.dreamyheader26-isOpen {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

/* Panel heads */
.dreamyheader26-drawerHead,
.dreamyheader26-cartHead,
.dreamyheader26-searchHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px;
  border-bottom: 1px solid var(--dreamyheader26-border);
}

.dreamyheader26-drawerTitle,
.dreamyheader26-cartTitle {
  font-family: var(--font-edit, "Playfair Display", Georgia, "Times New Roman", serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.dreamyheader26-searchLabel {
  font-family: var(--font-edit, "Playfair Display", Georgia, "Times New Roman", serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.dreamyheader26-close {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.dreamyheader26-close:hover {
  background: rgba(0,0,0,0.03);
  border-color: var(--dreamyheader26-border);
}

.dreamyheader26-close span {
  font-size: 20px;
  line-height: 1;
}

/* Drawer body */
.dreamyheader26-drawerBody {
  padding: 18px;
  overflow: auto;
  flex: 1;
}

.dreamyheader26-drawerMenu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dreamyheader26-drawerMenu a {
  display: block;
  padding: 12px 10px;
  border-radius: 14px;
  color: var(--ink-primary, #050505);
  font-size: 0.95rem;
}

.dreamyheader26-drawerMenu a:hover,
.dreamyheader26-drawerMenu a:focus-visible {
  background: rgba(0,0,0,0.035);
}

.dreamyheader26-drawerMenu .sub-menu {
  list-style: none;
  padding: 6px 0 10px 10px;
  margin: 0;
}

.dreamyheader26-divider {
  height: 1px;
  background: var(--dreamyheader26-border);
  margin: 18px 0;
}

/* Search box */
.dreamyheader26-searchBox {
  padding: 0 18px 12px;
}

.dreamyheader26-searchInput {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--dreamyheader26-border);
  background: #fff;
  outline: none;
}

.dreamyheader26-searchInput:focus {
  border-color: rgba(0,0,0,0.18);
}

.dreamyheader26-searchHint {
  font-size: 0.85rem;
  color: var(--ink-secondary, #757575);
  margin-top: 10px;
}

/* Results */
.dreamyheader26-results {
  padding: 10px 10px 16px;
}

.dreamyheader26-resultsGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.dreamyheader26-result {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 18px;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.dreamyheader26-result:hover,
.dreamyheader26-result:focus-visible {
  background: rgba(0,0,0,0.03);
  border-color: var(--dreamyheader26-border);
}

.dreamyheader26-resultStage {
  position: relative;
  width: 64px;
  height: 78px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.dreamyheader26-resultImg {
  width: 84%;
  height: auto;
  object-fit: contain;
  z-index: 2;
  transform: translateZ(0);
}

.dreamyheader26-resultShadow {
  position: absolute;
  bottom: 6px;
  width: 56%;
  height: 14px;
  background: var(--shadow-ground, radial-gradient(closest-side, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 100%));
  opacity: 0.35;
  filter: blur(5px);
}

.dreamyheader26-resultMeta {
  min-width: 0;
}

.dreamyheader26-resultTag {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #999;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dreamyheader26-resultTitle {
  margin: 0;
  font-family: var(--font-edit, "Playfair Display", Georgia, "Times New Roman", serif);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Compact meter (used in search results) */
.dreamyheader26-resultMeter {
  margin-top: 6px;
  width: 110px;
  max-width: 100%;
}

.dreamyheader26-meterLine {
  position: relative;
  width: 100%;
  height: 12px;
  display: flex;
  align-items: center;
}

.dreamyheader26-meterLine::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(0,0,0,0.14);
}

.dreamyheader26-meterMarker {
  width: 6px;
  height: 6px;
  background: var(--ink-primary, #050505);
  border-radius: 999px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.9);
}

.dreamyheader26-meter--1 .dreamyheader26-meterMarker { left: 0%; }
.dreamyheader26-meter--2 .dreamyheader26-meterMarker { left: 50%; }
.dreamyheader26-meter--3 .dreamyheader26-meterMarker { left: 100%; }

.dreamyheader26-resultPrice {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-primary, #050505);
  white-space: nowrap;
}

.dreamyheader26-resultEmpty {
  padding: 18px 10px;
  color: var(--ink-secondary, #757575);
  font-size: 0.95rem;
}

.dreamyheader26-resultFooter {
  padding: 12px 12px 0;
  display: flex;
  justify-content: flex-end;
}

.dreamyheader26-viewAll {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-bottom: 1px solid var(--ink-primary, #050505);
  padding-bottom: 4px;
}

/* Cart */
.dreamyheader26-cartBody {
  padding: 0 18px 18px;
  overflow: auto;
  flex: 1;
}

/* --- DreamyCart26: Free shipping progress (drawer) --- */
.dreamycart26-freeship{
  margin: 16px 0 18px;
  padding: 12px 12px 10px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  background: #fff;
}
.dreamycart26-freeshipRow{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.dreamycart26-freeshipLabel{
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  font-weight: 600;
}
.dreamycart26-freeshipValue{
  font-size: 12px;
  color: rgba(0,0,0,0.72);
  font-weight: 600;
  white-space: nowrap;
}
.dreamycart26-freeshipTrack{
  height: 6px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  overflow: hidden;
}
.dreamycart26-freeshipFill{
  display: block;
  height: 100%;
  width: 0;
  background: rgba(0,0,0,0.82);
  border-radius: 999px;
  transition: width 520ms cubic-bezier(0.23, 1, 0.32, 1);
}
.dreamycart26-freeshipNote{
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(0,0,0,0.60);
}

/* --- Mini cart styling (drawer) --- */
.dreamyheader26-cartBody .woocommerce-mini-cart{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dreamyheader26-cartBody .woocommerce-mini-cart-item{
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.dreamyheader26-cartBody .woocommerce-mini-cart-item:last-child{
  border-bottom: none;
}
.dreamyheader26-cartBody .woocommerce-mini-cart-item a{
  text-decoration: none;
}
.dreamyheader26-cartBody .woocommerce-mini-cart-item a img{
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 16px 26px rgba(0,0,0,0.12));
}
.dreamyheader26-cartBody .woocommerce-mini-cart-item .quantity{
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(0,0,0,0.62);
}
.dreamyheader26-cartBody .woocommerce-mini-cart-item .variation{
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(0,0,0,0.56);
}
.dreamyheader26-cartBody .woocommerce-mini-cart-item .remove{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  color: rgba(0,0,0,0.65);
}
.dreamyheader26-cartBody .woocommerce-mini-cart-item .remove:hover{
  border-color: rgba(0,0,0,0.22);
}

.dreamyheader26-cartFoot {
  padding: 16px 18px 20px;
  border-top: 1px solid var(--dreamyheader26-border);
  display: grid;
  gap: 10px;
}

.dreamyheader26-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  border: 1px solid var(--ink-primary, #050505);
}

.dreamyheader26-btn--primary {
  background: var(--ink-primary, #050505);
  color: #fff;
}

.dreamyheader26-btn--ghost {
  background: transparent;
  color: var(--ink-primary, #050505);
}

/* Lock scroll when panels open */
.dreamyheader26-lock {
  overflow: hidden;
}

/* Desktop rules */
@media (min-width: 980px) {
  .dreamyheader26-bar {
    padding: 14px 24px;
  }

  .dreamyheader26-burger { display: none; }
  .dreamyheader26-utility { display: block; }
  .dreamyheader26-primary { display: block; }

  .dreamyheader26-logo {
    text-align: left;
  }
}

/* Mobile refinement */
@media (max-width: 520px) {
  .dreamyheader26-actions { gap: 6px; }
  .dreamyheader26-iconBtn { width: 40px; height: 40px; }
}

/* Panel hidden safety (prevents invisible overlays blocking clicks) */
#dreamyheader26-drawer[hidden],
#dreamyheader26-cart[hidden],
#dreamyheader26-search[hidden]{
  display:none !important;
}
