/*
 * Custom Header Styles - Digitale Menomale
 * Applies site-wide to all pages
 */

/* ── HEADER ── */
.custom-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(15, 7, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); /* Safari support */
  border-bottom: 1px solid rgba(255, 184, 0, 0.2);
  transition: background 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 5%;
  gap: 1.5rem;
}

/* ── LOGO ── */
.header-logo-block {
  display: inline-flex;
  flex-shrink: 0;
}

.header-logo-block .logo {
  display: inline-flex;
}

.header-logo-block .logo a {
  display: inline-block;
}

.header-logo-block .logo img.site-logo {
  max-width: 150px;
  height: auto;
}

.header-logo-block .custom-logo-link {
  display: inline-block;
}

.header-logo-block .custom-logo {
  max-width: 180px;
  height: auto;
}

/* Keep glow effect on hover */
.header-logo-block a:hover {
  filter: drop-shadow(0 0 20px rgba(255, 184, 0, 0.4));
}

/* ── MOBILE CONTROLS WRAPPER ── */
.mobile-controls-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  max-width: 650px;
}

/* ── SEARCH BAR ── */
.search-wrap {
  max-width: 550px;
  width: 100%;
  display: flex;
  line-height: 40px;
  /* background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 184, 0, 0.25);
  border-radius: 12px; */
  overflow: hidden;
  /* transition: border-color 0.2s, box-shadow 0.2s; */
}

/* .search-wrap:focus-within {
  border-color: var(--y, #FFB800);
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.2);
} */

.search-select {
  background: transparent;
  border: 1px solid rgba(255, 184, 0, 0.2);
  margin-right: 10px;
  color: var(--y, #FFB800);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0 1rem;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
  min-width: 100px;
  flex: 1;
  border-radius: 6px;
  margin-right: 15px;
}

.search-select option {
  background: var(--pd, #3B0764);
}

.search-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  outline: none;
  color: var(--white, #fff);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  min-width: 150px;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.search-btn {
  background: var(--y, #FFB800);
  color: var(--pd, #3B0764);
  border: none;
  padding: 0 1.1rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  min-width: 90px;
  border-radius: 6px;
}

.search-btn:hover {
  background: var(--yd, #e6a000);
}

/* ── NAVIGATION ── */
nav {
  display: flex;
  gap: 0.15rem;
}

nav ul {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.65);
  padding: 6px 12px;
  border-radius: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

nav a:hover {
  color: var(--y, #FFB800);
  background: rgba(255, 184, 0, 0.08);
}

/* ── HEADER RIGHT ── */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.cart-btn {
  position: relative;
  background: rgba(255, 184, 0, 0.12);
  border: 1.5px solid rgba(255, 184, 0, 0.3);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.cart-btn:hover {
  background: rgba(255, 184, 0, 0.22);
  border-color: var(--y, #FFB800);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--pm, #7C3AED);
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-links {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.auth-links a {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--y, #FFB800);
  text-decoration: none;
  transition: color 0.2s;
}

.auth-links a:hover {
  color: white;
}

/* ── MOBILE MENU TOGGLE ── */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 501;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--y, #FFB800);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu-toggle:hover .hamburger-line {
  background: var(--white, #fff);
}

/* ── MOBILE MENU OVERLAY ── */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  transition: right 0.3s ease;
}

.mobile-menu-overlay.active {
  right: 0;
}

.mobile-menu-container {
  position: absolute;
  right: -320px;
  top: 0;
  width: 320px;
  height: 100vh;
  background: var(--dark, #0f0720);
  border-left: 1.5px solid rgba(255, 184, 0, 0.3);
  padding: 2rem 1.5rem;
  overflow-y: auto;
  transition: right 0.3s ease;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.mobile-menu-overlay.active .mobile-menu-container {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--y, #FFB800);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
  transition: color 0.2s;
}

.mobile-menu-close:hover {
  color: var(--white, #fff);
}

.mobile-nav {
  margin-top: 3rem;
}

/* Force nav visibility inside mobile menu (overrides parent theme) */
.mobile-menu-overlay nav,
.mobile-nav,
.mobile-nav ul {
  display: flex !important;
  flex-direction: column;
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu-list li {
  margin: 0;
}

.mobile-menu-list a {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.65);
  padding: 12px 16px;
  border-radius: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.mobile-menu-list a:hover {
  color: var(--y, #FFB800);
  background: rgba(255, 184, 0, 0.08);
}

/* ── CART DROPDOWN ── */
.cart-container {
  position: relative;
}

.mini-cart-dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  opacity: 0;
  visibility: hidden;
  z-index: -1;
  min-width: 370px;
  background: var(--dark, #0f0720);
  border: 1.5px solid rgba(255, 184, 0, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  transition: opacity 0.3s, top 0.3s, visibility 0.3s;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cart-container:hover .mini-cart-dropdown,
.mini-cart-dropdown:hover {
  opacity: 1;
  visibility: visible;
  z-index: 9998;
  top: calc(100% + 10px);
}

/* Mini cart content styling - dark theme */
.mini-cart-dropdown .woocommerce-mini-cart {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 400px;
  overflow-y: auto;
}

.mini-cart-dropdown .woocommerce-mini-cart__empty-message {
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  padding: 1rem;
}

.mini-cart-dropdown .woocommerce-mini-cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 184, 0, 0.15);
}

.mini-cart-dropdown .woocommerce-mini-cart-item:last-child {
  border-bottom: none;
}

.mini-cart-dropdown .woocommerce-mini-cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.mini-cart-dropdown .woocommerce-mini-cart-item a {
  color: var(--white, #fff);
  text-decoration: none;
  font-weight: 600;
}

.mini-cart-dropdown .woocommerce-mini-cart-item a:hover {
  color: var(--y, #FFB800);
}

.mini-cart-dropdown .quantity {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

.mini-cart-dropdown .woocommerce-Price-amount {
  color: var(--y, #FFB800);
  font-weight: 700;
}

.mini-cart-dropdown .remove {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.mini-cart-dropdown .remove:hover {
  color: #ff4444;
}

.mini-cart-dropdown .woocommerce-mini-cart__total {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 2px solid rgba(255, 184, 0, 0.3);
  margin-top: 1rem;
  color: var(--white, #fff);
  font-weight: 700;
  font-size: 1.1rem;
}

.mini-cart-dropdown .woocommerce-mini-cart__total .amount {
  color: var(--y, #FFB800);
}

.mini-cart-dropdown .woocommerce-mini-cart__buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.mini-cart-dropdown .button {
  flex: 1;
  background: var(--y, #FFB800);
  color: var(--pd, #3B0764);
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.mini-cart-dropdown .button:hover {
  background: var(--yd, #e6a000);
  transform: translateY(-2px);
}

.mini-cart-dropdown .button.checkout {
  background: var(--p, #5B21B6);
  color: var(--white, #fff);
}

.mini-cart-dropdown .button.checkout:hover {
  background: var(--pm, #7C3AED);
}

/* Scrollbar styling for cart items */
.mini-cart-dropdown .woocommerce-mini-cart::-webkit-scrollbar {
  width: 6px;
}

.mini-cart-dropdown .woocommerce-mini-cart::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.mini-cart-dropdown .woocommerce-mini-cart::-webkit-scrollbar-thumb {
  background: rgba(255, 184, 0, 0.3);
  border-radius: 3px;
}

.mini-cart-dropdown .woocommerce-mini-cart::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 184, 0, 0.5);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 1rem;
  }

  nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-right {
    gap: 0.75rem;
  }

  /* Mobile Controls Wrapper takes full width as second row */
  .mobile-controls-wrapper {
    order: 3;
    flex-basis: 100%;
    max-width: 100%;
    margin-top: 10px;
  }

  /* Search bar takes remaining space in wrapper */
  .search-wrap {
    flex: 1;
    max-width: 100%;
    line-height: normal;
  }

  /* Mobile cart dropdown trigger */
  .cart-container.mobile-cart-open .mini-cart-dropdown {
    opacity: 1;
    visibility: visible;
    z-index: 9998;
    top: calc(100% + 10px);
  }
}

@media (max-width: 600px) {
  .header-inner {
    padding: 10px 3%;
  }

  .header-logo-block .logo img.site-logo {
    max-width: 120px;
  }

  .header-logo-block .custom-logo {
    max-width: 140px;
  }

  .search-select {
    font-size: 0.75rem;
    padding: 0 0.75rem;
  }

  .search-input {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }

  .search-btn {
    padding: 0.85rem;
    font-size: 0.75rem;
  }

  .mini-cart-dropdown {
    min-width: 300px;
    right: -50px;
  }
}

/* Add padding to body for fixed header */
/*body {
  padding-top: 150px; // Adjust based on actual header height
}*/

.widget_shopping_cart_content {
  border: none;
  background-color: transparent;
  padding: 0;
}

.widget_shopping_cart_content .woocommerce-mini-cart__buttons .checkout {
  margin-left: 0 !important;
}

.home .widget_shopping_cart_content .woocommerce-mini-cart__buttons .button {
  height: auto;
  line-height: normal;
}

.widget_shopping_cart_content .woocommerce-mini-cart__total strong {
  color: #fff;
}

body:not(.home) .mini-cart-dropdown .woocommerce-mini-cart__buttons {
  flex-direction: column;
}

.mini-cart-dropdown .woocommerce-mini-cart-item .product-content {
  width: 100%;
}

.woocommerce ul.cart_list li dl dt,
.woocommerce .widget_shopping_cart_content ul.product_list_widget li dl dt,
.woocommerce ul.cart_list li .quantity,
.woocommerce .widget_shopping_cart_content ul.product_list_widget li .quantity
{
  color: #fff;
}

.site-content {
  padding-top: 0;
  padding-bottom: 0;
}

@media (max-width: 480px) {
    .search-select {
        /* float: left;
        max-width: 80px; */
        min-width: auto;
        flex: 1;
    }
    
    .search-input {
        float: left;
        width: 100%;
        min-width: auto;
    }

    /* .search-btn {
        min-width: auto;
    } */
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul {
  flex-direction: column;
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul li a:hover {
  background-color: transparent;
}


.woocommerce-lost-password button.show-password-input::before {
  content: "\e6a5";
  font-family: 'Linearicons' !important;
  font-weight: 700;
  font-size: 16px;
}

.woocommerce-lost-password .password-input {
  display: flex;
  gap: 10px;
}

.woocommerce-lost-password .show-password-input {
  padding: 12px;
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation {
  display: block !important;
}