/* Extend the existing Nicole palette and geometry. */
.nicole-nav-dropdown { position:relative; font:inherit; color:inherit; }
.nicole-nav-dropdown > summary { cursor:pointer; list-style:none; font:inherit; font-weight:600; }
.nicole-nav-dropdown > summary::-webkit-details-marker { display:none; }
.nicole-nav-dropdown > summary::after { content:' ▾'; display:inline-block; margin-left:6px; font-size:11px; transition:transform 0.25s ease; }
.nicole-nav-dropdown[open] > summary::after { content:' ▾'; transform:rotate(180deg); }
.nicole-nav-dropdown-list { position:absolute; top:100%; left:0; z-index:1200; min-width:250px; max-width:calc(100vw - 40px); max-height:65vh; overflow-y:auto; padding:12px; background:#FDFCF8; color:#363C2E; border-radius:16px; box-shadow:0 12px 40px #26290a26; }
.nicole-nav-dropdown-list a { display:block; padding:10px 12px; min-height:44px; text-decoration:none; color:inherit; font-size:14px; line-height:1.5; }
.nicole-nav-dropdown-list a:hover { background:#F1ECE5; border-radius:8px; }
.header-nav-links > .nicole-nav-dropdown { font-size:13px; }
.header-nav-links > a, .header-nav-links > details > summary { white-space:nowrap; }
.catalog-header > div > a, .brand-link-group { flex-shrink:0; }
.header-nav-links > .nicole-nav-dropdown:last-child .nicole-nav-dropdown-list { left:auto; right:0; }
.sidebar-nav > .nicole-nav-dropdown { padding:10px 6px; }
.sidebar-nav > .nicole-nav-dropdown .nicole-nav-dropdown-list { position:static; max-height:240px; min-width:0; padding:0; box-shadow:none; background:transparent; }
.sidebar-nav { max-height:62vh; overflow-y:auto; }
.nicole-mobile-navigation { display:none; }
.nicole-mobile-navigation > summary { min-height:50px; display:flex; align-items:center; padding:8px 16px; }
.nicole-mobile-navigation .nicole-nav-dropdown-list { left:auto; right:0; }
/* Whole product remains visible at every breakpoint, including on hover. */
.product-media-wrap.media-contain img,
.product-card:hover .product-media-wrap.media-contain img { object-fit:contain !important; transform:none !important; min-width:0 !important; min-height:0 !important; }
/* Product Modal & Overlays: Ultra-high z-index to overlay header with dark frosted glass */
.product-detail-modal-overlay,
.quick-modal-overlay,
.legal-modal {
  z-index: 99999 !important;
}

body.has-modal-open .nicole-subpage-header {
  pointer-events: none;
  user-select: none;
}

/* Product Detail Modal: 100% Edge-to-Edge Image Presentation (Zero Wasted Space) */
.product-detail-layout {
  align-items: stretch !important;
}

.product-detail-media-pane {
  min-width: 0;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #F8F6F1;
  border-radius: 22px !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.product-detail-media-pane .product-detail-hero-img {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: none !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  border-radius: 22px !important;
}

@media (max-width: 768px) {
  .product-detail-media-pane {
    height: 320px !important;
    min-height: 280px !important;
    max-height: 45vh !important;
    padding: 0 !important;
    border-radius: 16px !important;
  }
  .product-detail-media-pane .product-detail-hero-img {
    height: 100% !important;
    border-radius: 16px !important;
  }
}
.nicole-management-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin:20px 0; }
.nicole-edit-card { padding:20px; border-radius:16px; background:var(--bg-input,#F5F3EC); min-width:0; }
.nicole-edit-card img { width:100%; height:190px; object-fit:contain; background:#FDFCF8; border-radius:12px; display:block; margin-bottom:16px; }
.nicole-edit-card label, .nicole-management-field { display:block; margin:12px 0; font-size:15px; }
.nicole-edit-card input:not([type=file]), .nicole-edit-card textarea, .nicole-management-field input, .nicole-management-field textarea { display:block; width:100%; min-height:48px; padding:12px 16px; font:inherit; box-sizing:border-box; }
.nicole-edit-card textarea, .nicole-management-field textarea { resize:vertical; min-height:90px; }
.nicole-actions { display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin:16px 0; }
.nicole-category-row { display:flex; align-items:center; gap:12px; margin:10px 0; }
.nicole-category-row input { flex:1; min-width:0; min-height:48px; padding:12px; font:inherit; }
.nicole-category-row button { min-height:48px; }
.nicole-blog-actions { position:sticky; top:0; z-index:4; display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:16px 0; background:var(--bg-card,#FDFCF8); }
.nicole-blog-actions p { flex-basis:100%; margin:0; font-size:15px; line-height:1.5; }
#blogArticleModal .admin-modal-box { scroll-padding-top:155px; }
.order-header .header-nav-links { display:flex; align-items:center; gap:16px; margin:0 20px; }
.order-header .header-nav-link { font-size:13px; font-weight:600; color:inherit; text-decoration:none; white-space:nowrap; }
.order-header .order-brand-link { flex-shrink:0; }
.order-header .header-nav-right { margin-left:auto; }
.nicole-status { min-height:24px; font-size:15px; line-height:1.5; }
@media(max-width:1250px) { .order-header .header-nav-links { display:none; } .order-header .nicole-mobile-navigation { display:block; } }
@media(max-width:1100px) { .header-nav-links { gap:12px !important; } .header-nav-links > a { font-size:12px; } }
@media(max-width:900px) { .nicole-mobile-navigation { display:block; } .header-nav-links { display:none !important; } }
@media(max-width:900px) {
  header:has(> .nicole-mobile-navigation) { flex-wrap:wrap; gap:12px; padding:12px 16px; }
  .catalog-header > .brand-link-group { flex:1; }
  .catalog-header > .nicole-mobile-navigation { order:2; }
  .catalog-header > div { order:3; width:100%; justify-content:space-between; }
  .catalog-header .header-order-decor-btn { min-height:50px; }
  .nicole-mobile-navigation { margin-left:auto; }
  .nicole-mobile-navigation .nicole-nav-dropdown .nicole-nav-dropdown-list { position:static; box-shadow:none; max-height:250px; }
  .nicole-mobile-navigation .nicole-nav-dropdown > summary { min-height:48px; padding:10px 12px; }
}
@media(max-width:640px) {
  .nicole-management-grid { grid-template-columns:1fr; }
  .nicole-actions > button, .nicole-actions > a { min-height:50px; flex:1 1 100%; justify-content:center; }
  .nicole-category-row { flex-wrap:wrap; }
  .nicole-blog-actions button { min-height:50px; }
}
@media(prefers-reduced-motion:reduce) { .nicole-nav-dropdown * { scroll-behavior:auto !important; transition:none !important; } }


/* ==========================================================================
   UNIFIED MASTER SUBPAGE HEADER (All subpages: catalog, order, about, etc.)
   ========================================================================== */
:root {
  --header-height: 74px;
}

.nicole-subpage-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(253, 252, 248, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(232, 191, 181, 0.35);
  box-shadow: 0 4px 24px rgba(38, 41, 10, 0.05);
  z-index: 500;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  box-sizing: border-box;
}

/* 1. Left Column: Brand Logo */
.header-col-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.header-brand-link {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  transition: opacity 0.25s ease;
}

.header-brand-link:hover {
  opacity: 0.85;
}

.header-brand-script {
  font-family: 'Pinyon Script', cursive;
  font-size: 38px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-main);
  line-height: 1;
}

.header-brand-sub {
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-blush-deep, #7D433A);
  line-height: 1;
  white-space: nowrap;
}

/* 2. Center Column: Navigation (Strictly Centered in Header) */
.header-col-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  white-space: nowrap;
}

.nav-item-link {
  font-family: var(--font-display, var(--font-sans, sans-serif));
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 9999px;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.nav-item-link:hover {
  color: var(--accent-terracotta, #8F6443);
  background: rgba(143, 100, 67, 0.06);
}

.nav-item-link.active {
  color: var(--accent-terracotta, #8F6443);
  font-weight: 700;
}

/* Dropdown Container */
.nav-dropdown {
  position: relative;
  font: inherit;
  color: inherit;
}

.nav-dropdown-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display, var(--font-sans, sans-serif));
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 9999px;
  transition: all 0.2s ease;
  user-select: none;
  line-height: 1.2;
}

.nav-dropdown-summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown-summary:hover,
.nav-dropdown[open] > .nav-dropdown-summary {
  color: var(--accent-terracotta, #8F6443);
  background: rgba(143, 100, 67, 0.06);
}

.nav-dropdown-chevron {
  flex-shrink: 0;
  color: var(--accent-terracotta, #8F6443);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown[open] > .nav-dropdown-summary .nav-dropdown-chevron {
  transform: rotate(180deg);
}

/* Premium Floating Dropdown Menu Card */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px) scale(0.97);
  min-width: 250px;
  max-width: calc(100vw - 32px);
  max-height: 70vh;
  overflow-y: auto;
  background: #FFFFFF !important;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 20px;
  padding: 12px 10px;
  border: 1px solid rgba(232, 191, 181, 0.45);
  box-shadow: 0 20px 50px rgba(38, 41, 10, 0.16), 0 4px 12px rgba(38, 41, 10, 0.04);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown-menu-right {
  left: auto;
  right: 0;
  transform: translateY(-6px) scale(0.97);
}

.nav-dropdown[open] > .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.nav-dropdown[open] > .nav-dropdown-menu-right {
  transform: translateY(0) scale(1);
}

.nav-dropdown-menu::-webkit-scrollbar {
  width: 4px;
}
.nav-dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}
.nav-dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(143, 100, 67, 0.25);
  border-radius: 9999px;
}

.nav-dropdown-link {
  font-family: var(--font-display, var(--font-sans, sans-serif));
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1.3;
}

.nav-dropdown-link:hover {
  background: rgba(143, 100, 67, 0.08);
  color: var(--accent-terracotta, #8F6443);
  transform: translateX(3px);
}

.nav-dropdown-link-featured {
  font-weight: 700;
  color: var(--accent-terracotta, #8F6443);
  background: rgba(143, 100, 67, 0.07);
}

.nav-dropdown-link-featured:hover {
  background: var(--accent-terracotta, #8F6443);
  color: #FFFFFF;
}

.nav-dropdown-link-featured:hover .nav-dropdown-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.nav-dropdown-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(143, 100, 67, 0.12);
  color: var(--accent-terracotta, #8F6443);
  transition: all 0.2s ease;
}

.nav-dropdown-divider {
  height: 1px;
  background: rgba(38, 41, 10, 0.08);
  margin: 4px 6px;
}

/* 3. Right Column: Phone & CTA */
.header-col-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-width: 0;
}

.header-phone-text {
  font-family: var(--font-sans, sans-serif);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header-phone-text:hover {
  color: var(--accent-terracotta, #8F6443);
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 9999px;
  background: var(--accent-terracotta, #8F6443);
  color: #FFFFFF;
  font-family: var(--font-sans, sans-serif);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(143, 100, 67, 0.25);
  min-height: 38px;
}

.header-cta-btn:hover {
  background: var(--accent-olive, #363C2E);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(38, 41, 10, 0.22);
}

/* Compact desktop styles (1024px to 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
  .nicole-subpage-header {
    padding: 0 20px;
  }
  .header-col-center {
    gap: 14px;
  }
  .nav-item-link,
  .nav-dropdown-summary {
    font-size: 13px;
    padding: 6px 8px;
  }
  .header-brand-script {
    font-size: 34px;
  }
  .header-phone-text {
    font-size: 13px;
  }
  .header-cta-btn {
    padding: 7px 14px;
    font-size: 12px;
  }
}

/* 4. Mobile Bar (Hidden on Desktop) */
.header-mobile-bar {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

/* Mobile Responsive Breakpoint (<= 1024px) */
@media (max-width: 1024px) {
  .nicole-subpage-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 16px !important;
    height: 64px !important;
  }

  .header-col-left,
  .header-col-center,
  .header-col-right {
    display: none !important;
  }

  .header-mobile-bar {
    display: flex !important;
  }

  .header-brand-script {
    font-size: 32px;
  }

  .header-brand-sub {
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  /* Mobile Drawer */
  .header-mobile-drawer {
    position: relative;
  }

  .header-mobile-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 16px;
    height: 44px;
    min-height: 44px;
    border-radius: 9999px;
    background: #FFFFFF;
    border: 1px solid rgba(232, 191, 181, 0.5) !important;
    box-shadow: 0 4px 16px rgba(38, 41, 10, 0.08);
    font-family: var(--font-sans, sans-serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    user-select: none;
  }

  .header-mobile-burger::-webkit-details-marker {
    display: none;
  }

  .burger-chevron {
    color: var(--accent-terracotta, #8F6443);
    transition: transform 0.25s ease;
  }

  .header-mobile-drawer[open] > .header-mobile-burger .burger-chevron {
    transform: rotate(180deg);
  }

  .header-mobile-menu-card {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: calc(100vw - 32px);
    max-width: 360px;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    background: #FFFFFF !important;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-radius: 22px;
    padding: 18px 16px;
    border: 1px solid rgba(232, 191, 181, 0.45);
    box-shadow: 0 20px 50px rgba(38, 41, 10, 0.22);
    z-index: 1300;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-menu-link {
    font-family: var(--font-display, var(--font-sans, sans-serif));
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 10px;
    min-height: 48px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
  }

  .mobile-menu-link:hover {
    background: rgba(143, 100, 67, 0.08);
    color: var(--accent-terracotta, #8F6443);
  }

  .mobile-catalog-group {
    background: rgba(143, 100, 67, 0.06);
    border-radius: 14px;
    overflow: hidden;
  }

  .mobile-catalog-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    min-height: 48px;
    font-family: var(--font-display, var(--font-sans, sans-serif));
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-terracotta, #8F6443);
    cursor: pointer;
    list-style: none;
  }

  .mobile-catalog-summary::-webkit-details-marker {
    display: none;
  }

  .mobile-chevron {
    color: var(--accent-terracotta, #8F6443);
    transition: transform 0.25s ease;
  }

  .mobile-catalog-group[open] > .mobile-catalog-summary .mobile-chevron {
    transform: rotate(180deg);
  }

  .mobile-sublinks {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 8px 10px 8px;
  }

  .mobile-sublink {
    font-family: var(--font-display, var(--font-sans, sans-serif));
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    padding: 9px 12px;
    border-radius: 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
  }

  .mobile-sublink:hover {
    background: rgba(253, 252, 248, 0.95);
    color: var(--accent-terracotta, #8F6443);
  }

  .mobile-sublink-bold {
    font-weight: 700;
    color: var(--accent-terracotta, #8F6443);
  }

  .mobile-menu-footer {
    border-top: 1px solid rgba(38, 41, 10, 0.08);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mobile-menu-phone {
    font-family: var(--font-sans, sans-serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    text-align: center;
  }

  .mobile-menu-hours {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
  }

  .mobile-menu-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 9999px;
    background: var(--accent-terracotta, #8F6443);
    color: #FFFFFF;
    font-family: var(--font-sans, sans-serif);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(143, 100, 67, 0.25);
  }
}
