/* =========================================================
   SANDRA MARS — NAVIGATION
   Desktop + Mobile navigation
   ========================================================= */

/* =========================
   Base
   ========================= */

.sm-site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255, 252, 248, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 190, 150, 0.18);
}

.sm-site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.sm-site-branding {
  display: flex;
  align-items: center;
  min-width: 0;
}

.sm-site-branding a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.sm-site-branding img {
  display: block;
  max-height: 52px;
  width: auto;
}

.sm-site-branding .site-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
  color: #2b1d1d;
}

/* =========================
   Desktop menu
   ========================= */

.sm-primary-nav {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.sm-primary-nav .menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}

.sm-primary-nav .menu > li {
  position: relative;
  margin: 0;
}

.sm-primary-nav .menu > li > a {
  text-decoration: none;
  color: #4d3a3a;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  transition: color 0.25s ease;
}

.sm-primary-nav .menu > li > a:hover,
.sm-primary-nav .menu > li.current-menu-item > a,
.sm-primary-nav .menu > li.current-menu-ancestor > a {
  color: #8e5f77;
}

/* Dropdown */
.sm-primary-nav .menu > li.menu-item-has-children > a::after {
  content: "▾";
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.72rem;
  transform: translateY(-1px);
  color: #8e5f77;
}

.sm-primary-nav .sub-menu {
  list-style: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 250px;
  margin: 0;
  padding: 0.85rem 0;
  background: rgba(255, 251, 247, 0.98);
  border: 1px solid rgba(212, 190, 150, 0.28);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(57, 39, 39, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s ease;
  z-index: 99;
}

.sm-primary-nav .menu > li:hover > .sub-menu,
.sm-primary-nav .menu > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sm-primary-nav .sub-menu li {
  margin: 0;
}

.sm-primary-nav .sub-menu a {
  display: block;
  padding: 0.72rem 1.05rem;
  text-decoration: none;
  color: #5f4b4b;
  font-size: 0.92rem;
  line-height: 1.3;
  transition: background 0.2s ease, color 0.2s ease;
}

.sm-primary-nav .sub-menu a:hover {
  background: rgba(201, 156, 182, 0.09);
  color: #8e5f77;
}

/* =========================
   Header actions
   ========================= */

.sm-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  min-width: 0;
}

.sm-header-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sm-header-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(212, 190, 150, 0.38);
  background: rgba(255, 255, 255, 0.78);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8e5f77;
  text-decoration: none;
  position: relative;
  transition: all 0.25s ease;
}

.sm-header-icon:hover {
  border-color: rgba(201, 156, 182, 0.45);
  background: rgba(255, 255, 255, 0.96);
  color: #7f5168;
  transform: translateY(-1px);
}

.sm-header-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.sm-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #8e5f77;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 6px 14px rgba(142, 95, 119, 0.28);
}

.sm-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #8e5f77 0%, #a86e8c 100%);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(142, 95, 119, 0.18);
  transition: all 0.25s ease;
}

.sm-header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(142, 95, 119, 0.24);
  color: #fff;
}

.sm-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(212, 190, 150, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #8e5f77;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.sm-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.96);
}

.sm-menu-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

/* =========================
   Mobile drawer
   ========================= */

.sm-mobile-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(92vw, 380px);
  height: 100vh;
  background: linear-gradient(180deg, #fffdfa 0%, #fbf5f1 100%);
  box-shadow: -24px 0 48px rgba(49, 33, 33, 0.12);
  z-index: 10001;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sm-mobile-panel.is-open {
  right: 0;
}

.sm-mobile-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(212, 190, 150, 0.18);
}

.sm-mobile-panel__brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  color: #2b1d1d;
}

.sm-mobile-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(212, 190, 150, 0.38);
  border-radius: 999px;
  background: #fff;
  color: #8e5f77;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sm-mobile-close svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.sm-mobile-nav {
  padding: 1rem 1.25rem 1.25rem;
}

.sm-mobile-nav .menu,
.sm-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sm-mobile-nav > ul > li,
.sm-mobile-nav .menu > li {
  border-bottom: 1px solid rgba(212, 190, 150, 0.14);
}

.sm-mobile-nav li {
  margin: 0;
}

.sm-mobile-nav a {
  text-decoration: none;
  color: #3f2f2f;
  font-size: 1rem;
  line-height: 1.35;
}

.sm-mobile-nav .menu-item-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 0;
}

.sm-mobile-nav .sub-menu-toggle {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(212, 190, 150, 0.28);
  border-radius: 999px;
  background: #fff;
  color: #8e5f77;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 34px;
}

.sm-mobile-nav .sub-menu-toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.22s ease;
}

.sm-mobile-nav li.is-open > .menu-item-link-row .sub-menu-toggle svg {
  transform: rotate(180deg);
}

.sm-mobile-nav .sub-menu {
  display: none;
  padding: 0 0 0.75rem 0.75rem;
}

.sm-mobile-nav li.is-open > .sub-menu {
  display: block;
}

.sm-mobile-nav .sub-menu a {
  display: block;
  padding: 0.55rem 0;
  color: #6a5555;
  font-size: 0.95rem;
}

.sm-mobile-extra {
  padding: 1.25rem;
  margin-top: auto;
  border-top: 1px solid rgba(212, 190, 150, 0.18);
}

.sm-mobile-quicklinks {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sm-mobile-quicklinks a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #4d3a3a;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(212, 190, 150, 0.22);
  border-radius: 16px;
  padding: 0.9rem 1rem;
}

.sm-mobile-quicklinks svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex: 0 0 17px;
}

.sm-mobile-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #8e5f77 0%, #a86e8c 100%);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

/* Overlay */
.sm-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 22, 22, 0.26);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 10000;
}

.sm-mobile-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1180px) {
  .sm-site-header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 1.2rem;
  }

  .sm-primary-nav .menu {
    gap: 1.1rem;
  }

  .sm-primary-nav .menu > li > a {
    font-size: 0.9rem;
  }

  .sm-header-cta {
    padding: 0.82rem 1.2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 991px) {
  .sm-primary-nav,
  .sm-header-cta {
    display: none;
  }

  .sm-menu-toggle {
    display: inline-flex;
  }

  .sm-site-header__inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    min-height: 78px;
  }

  .sm-site-branding {
    align-self: center;
  }

  .sm-site-branding a {
    display: inline-flex;
    align-items: center;
  }

  .sm-site-branding img {
    max-height: 42px;
    width: auto;
  }

  .sm-header-actions {
    justify-content: flex-end;
    align-items: center;
    gap: 0.55rem;
  }

  .sm-header-icons {
    align-items: center;
    gap: 0.45rem;
  }

  .sm-header-icon,
  .sm-menu-toggle {
    width: 40px;
    height: 40px;
  }

  .sm-header-icon svg,
  .sm-menu-toggle svg {
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 767px) {
  .sm-site-header__inner {
    padding: 0.7rem 0.9rem;
    min-height: 72px;
  }

  .sm-site-branding img {
    max-height: 38px;
  }

  .sm-site-branding .site-title {
    font-size: 1.55rem;
  }

  .sm-header-actions {
    gap: 0.45rem;
  }

  .sm-header-icons {
    gap: 0.4rem;
  }

  .sm-header-icon,
  .sm-menu-toggle {
    width: 38px;
    height: 38px;
  }

  .sm-header-icon svg,
  .sm-menu-toggle svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 420px) {
  .sm-site-header__inner {
    padding: 0.65rem 0.75rem;
    min-height: 68px;
    gap: 0.6rem;
  }

  .sm-site-branding img {
    max-height: 34px;
  }

  .sm-header-actions {
    gap: 0.35rem;
  }

  .sm-header-icons {
    gap: 0.35rem;
  }

  .sm-header-icon,
  .sm-menu-toggle {
    width: 36px;
    height: 36px;
  }

  .sm-cart-count {
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    font-size: 0.62rem;
    top: -3px;
    right: -3px;
  }
}

/* ==========================================================================
   SANDRA MARS — REAL HEADER MENU LUXURY POLISH
   Močnejši selectorji za custom header
   ========================================================================== */

/* Ciljamo samo navigacijske linke v headerju, ne admin bara */
body:not(.wp-admin) header:not(#wpadminbar) nav a,
body:not(.wp-admin) .site-header nav a,
body:not(.wp-admin) .sm-header nav a,
body:not(.wp-admin) .sm-site-header nav a,
body:not(.wp-admin) .main-navigation a,
body:not(.wp-admin) .navigation a,
body:not(.wp-admin) .nav-menu a,
body:not(.wp-admin) .primary-menu a,
body:not(.wp-admin) .menu-primary-menu-container a,
body:not(.wp-admin) .menu-glavni-menu-container a {
  position: relative !important;
  color: var(--sm-espresso, #352220) !important;
  text-decoration: none !important;
  transition:
    color 220ms ease,
    opacity 220ms ease,
    transform 220ms ease !important;
}

/* Metallic gold underline */
body:not(.wp-admin) header:not(#wpadminbar) nav a::after,
body:not(.wp-admin) .site-header nav a::after,
body:not(.wp-admin) .sm-header nav a::after,
body:not(.wp-admin) .sm-site-header nav a::after,
body:not(.wp-admin) .main-navigation a::after,
body:not(.wp-admin) .navigation a::after,
body:not(.wp-admin) .nav-menu a::after,
body:not(.wp-admin) .primary-menu a::after,
body:not(.wp-admin) .menu-primary-menu-container a::after,
body:not(.wp-admin) .menu-glavni-menu-container a::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  right: 50% !important;
  bottom: -0.100rem !important;
  height: 1px !important;
  pointer-events: none !important;
  border-radius: 999px !important;
  background:
    linear-gradient(
      90deg,
      rgba(216, 185, 130, 0),
      rgba(255, 249, 231, 0.98),
      rgba(232, 199, 122, 0.95),
      rgba(177, 132, 58, 0.72),
      rgba(255, 248, 224, 0.92),
      rgba(216, 185, 130, 0)
    ) !important;
  box-shadow:
    0 0 0.55rem rgba(232, 196, 110, 0.38),
    0 0 1.1rem rgba(232, 196, 110, 0.18) !important;
  opacity: 0 !important;
  transform: translateY(0.25rem) !important;
  transition:
    left 260ms ease,
    right 260ms ease,
    opacity 260ms ease,
    transform 260ms ease !important;
}

body:not(.wp-admin) header:not(#wpadminbar) nav a:hover,
body:not(.wp-admin) .site-header nav a:hover,
body:not(.wp-admin) .sm-header nav a:hover,
body:not(.wp-admin) .sm-site-header nav a:hover,
body:not(.wp-admin) .main-navigation a:hover,
body:not(.wp-admin) .navigation a:hover,
body:not(.wp-admin) .nav-menu a:hover,
body:not(.wp-admin) .primary-menu a:hover,
body:not(.wp-admin) .menu-primary-menu-container a:hover,
body:not(.wp-admin) .menu-glavni-menu-container a:hover {
  color: var(--sm-mauve-dark, #6f3f55) !important;
}

body:not(.wp-admin) header:not(#wpadminbar) nav a:hover::after,
body:not(.wp-admin) .site-header nav a:hover::after,
body:not(.wp-admin) .sm-header nav a:hover::after,
body:not(.wp-admin) .sm-site-header nav a:hover::after,
body:not(.wp-admin) .main-navigation a:hover::after,
body:not(.wp-admin) .navigation a:hover::after,
body:not(.wp-admin) .nav-menu a:hover::after,
body:not(.wp-admin) .primary-menu a:hover::after,
body:not(.wp-admin) .menu-primary-menu-container a:hover::after,
body:not(.wp-admin) .menu-glavni-menu-container a:hover::after {
  left: 12% !important;
  right: 12% !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Aktivna stran */
body:not(.wp-admin) header:not(#wpadminbar) nav .current-menu-item > a,
body:not(.wp-admin) header:not(#wpadminbar) nav .current_page_item > a,
body:not(.wp-admin) .main-navigation .current-menu-item > a,
body:not(.wp-admin) .main-navigation .current_page_item > a,
body:not(.wp-admin) .nav-menu .current-menu-item > a,
body:not(.wp-admin) .nav-menu .current_page_item > a {
  color: var(--sm-mauve-dark, #6f3f55) !important;
}

body:not(.wp-admin) header:not(#wpadminbar) nav .current-menu-item > a::after,
body:not(.wp-admin) header:not(#wpadminbar) nav .current_page_item > a::after,
body:not(.wp-admin) .main-navigation .current-menu-item > a::after,
body:not(.wp-admin) .main-navigation .current_page_item > a::after,
body:not(.wp-admin) .nav-menu .current-menu-item > a::after,
body:not(.wp-admin) .nav-menu .current_page_item > a::after {
  left: 16% !important;
  right: 16% !important;
  opacity: 0.72 !important;
  transform: translateY(0) !important;
}

/* Dropdown luxury glass */
body:not(.wp-admin) header:not(#wpadminbar) nav ul ul,
body:not(.wp-admin) .site-header nav ul ul,
body:not(.wp-admin) .sm-header nav ul ul,
body:not(.wp-admin) .sm-site-header nav ul ul,
body:not(.wp-admin) .main-navigation ul ul,
body:not(.wp-admin) .nav-menu ul ul,
body:not(.wp-admin) .primary-menu ul ul {
  border: 1px solid rgba(216, 185, 130, 0.24) !important;
  border-radius: 1.8rem !important;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 44%),
    rgba(255, 253, 249, 0.95) !important;
  box-shadow:
    0 1.6rem 4rem rgba(55, 35, 32, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(16px) saturate(1.08) !important;
  overflow: hidden !important;
}

/* Mobilno brez hover linije */
@media (max-width: 980px) {
  body:not(.wp-admin) header:not(#wpadminbar) nav a::after,
  body:not(.wp-admin) .main-navigation a::after,
  body:not(.wp-admin) .nav-menu a::after,
  body:not(.wp-admin) .primary-menu a::after {
    display: none !important;
  }
}
/* ==========================================================================
   MENU — GOLD LINE CLOSER TO TEXT
   Linijo premakne bližje napisu, ne glede na višino link boxa
   ========================================================================== */

body:not(.wp-admin) header:not(#wpadminbar) nav a::after,
body:not(.wp-admin) .site-header nav a::after,
body:not(.wp-admin) .sm-header nav a::after,
body:not(.wp-admin) .sm-site-header nav a::after,
body:not(.wp-admin) .main-navigation a::after,
body:not(.wp-admin) .navigation a::after,
body:not(.wp-admin) .nav-menu a::after,
body:not(.wp-admin) .primary-menu a::after,
body:not(.wp-admin) .menu-primary-menu-container a::after,
body:not(.wp-admin) .menu-glavni-menu-container a::after {
  top: calc(50% + 1.05rem) !important;
  bottom: auto !important;
  transform: translateY(0.18rem) !important;
}

body:not(.wp-admin) header:not(#wpadminbar) nav a:hover::after,
body:not(.wp-admin) .site-header nav a:hover::after,
body:not(.wp-admin) .sm-header nav a:hover::after,
body:not(.wp-admin) .sm-site-header nav a:hover::after,
body:not(.wp-admin) .main-navigation a:hover::after,
body:not(.wp-admin) .navigation a:hover::after,
body:not(.wp-admin) .nav-menu a:hover::after,
body:not(.wp-admin) .primary-menu a:hover::after,
body:not(.wp-admin) .menu-primary-menu-container a:hover::after,
body:not(.wp-admin) .menu-glavni-menu-container a:hover::after,
body:not(.wp-admin) header:not(#wpadminbar) nav .current-menu-item > a::after,
body:not(.wp-admin) header:not(#wpadminbar) nav .current_page_item > a::after,
body:not(.wp-admin) .main-navigation .current-menu-item > a::after,
body:not(.wp-admin) .main-navigation .current_page_item > a::after,
body:not(.wp-admin) .nav-menu .current-menu-item > a::after,
body:not(.wp-admin) .nav-menu .current_page_item > a::after {
  transform: translateY(0) !important;
}