/****************************************
    GLOBAL WRAPPER — STANDARD CONTAINER
*****************************************/

.container {
  margin: 0 auto;
  /* Center perfectly */
  padding: 0 64px;
  /* Equal left & right spacing */
  box-sizing: border-box;
}

/****************************************
    BRAND LOGO
*****************************************/
.logo {
  width: 145px;
  height: auto;
  padding-top: 10px;
  transition: filter 0.25s ease;
}

/****************************************
    COLOR PALETTE (Luxury Gold Theme)
*****************************************/
:root {
  --gold-light: #d8c08f;
  --gold-mid: #c9b180;
  --gold-dark: #a28c63;
  --text-dark: #3e3a30;
  --white: #ffffff;
}

/****************************************
    HEADER — FIXED + GLASS EFFECT
*****************************************/
.site-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  /* Higher z-index to stay above content */
  height: 150px;
  /* Standardize total header height */

  background: transparent;
  border-bottom: none;

  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body.inner-page .site-header:not(.nav-hidden) {
  background-color: #000;
}

body.inner-page .mobile-header {
  background-color: #000 !important;
}

/* Default (over hero section) → white text */
.site-header * {
  color: var(--white) !important;
  fill: var(--white) !important;
}

/****************************************
    SCROLLED / ACTIVE HEADER (Glass + Gold)
*****************************************/
.site-header.active,
.site-header.scrolled,
.site-header:hover {
  background: #000000 !important;
  backdrop-filter: blur(14px) saturate(125%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

.site-header.scrolled .logo {
  /**filter: drop-shadow(0 0 6px rgba(202, 213, 49, 0.4));**/
  transition: filter 0.25s ease;
}

.site-header.active *,
.site-header.scrolled *,
.site-header:hover * {
  color: #fff !important;
  fill: #fff !important;
}

/****************************************
    NAV UNDERLINES (Become Gold on Active)
*****************************************/
.site-header .menu-item>a::after {
  background: var(--white);
}

.site-header.active .menu-item>a::after,
.site-header.scrolled .menu-item>a::after,
.site-header:hover .menu-item>a::after {
  background: var(--gold-mid);
}

/****************************************
    SEARCH UNDERLINE — GOLD WHEN ACTIVE
*****************************************/
.pandora-search-line {
  background: #fff;
}

.site-header.active .pandora-search-line,
.site-header.scrolled .pandora-search-line,
.site-header:hover .pandora-search-line {
  background: var(--gold-mid);
}

/****************************************
    ROW 1 — LOGO / SEARCH / ICONS
*****************************************/
.header-row-1 {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* SEARCH */
.pandora-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  padding-bottom: 18px;
}

.pandora-search-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.pandora-search-text {
  font-size: 14px;
  font-weight: 500;
  transition: color 0.25s ease;
}

.pandora-search-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 260px;
  height: 1px;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.pandora-search:hover .pandora-search-line {
  width: 330px;
}

/****************************************
    ICONS (Wishlist / Cart / Profile)
*****************************************/
.header-icons span {
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.25s ease;
}

.header-icons span:hover {
  transform: scale(1.15);
  color: var(--gold-mid) !important;
}

/****************************************
    ROW 2 — NAV MENU
*****************************************/
.header-row-2 {
  height: 60px;
  /* Restored display flex */
  align-items: center;
  justify-content: center;
}

.site-header.scrolled .header-row-2,
.site-header:hover .header-row-2 {
  border-top-color: rgba(255, 255, 255, 0.05);
}

.main-menu {
  display: flex;
  width: 100%;
  -webkit-box-pack: justify;
  justify-content: space-between;
  list-style: none;
}

.menu-item>a {
  font-size: 0.875rem;
  text-decoration: none;
  padding: 0 15px;
  /* Side padding only, vertical centered by row height */
  line-height: 60px;
  /* Match row height for perfect centering */
  display: block;
  position: relative;
  font-weight: 600;
  transition: all 0.3s ease;
}

.menu-item>a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 12px;
  height: 1px;
  /* Thinner line for elegance */
  width: 0%;
  background: var(--gold-mid);
  transition: width 0.3s ease;
}

.menu-item:hover>a::after {
  width: calc(100% - 30px);
}

/* Hover color (Gold) */
.header-row-2 .menu-item:hover>a {
  color: var(--gold-mid) !important;
}

/****************************************
    MEGA MENU — LUXURY GOLD GRID
*****************************************/
.mega-menu {
  position: fixed;
  top: 150px;
  /* Perfect flush at the bottom of 150px header */
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 60px 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);

  transform: translateY(0);
  /* Remove jumpy transforms */
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
  transition-delay: 0.3s;
  /* Grace period before closing */
}

/* Hover Bridge: Fills the gap between menu item and dropdown */
.mega-menu::before {
  content: "";
  position: absolute;
  top: -22px;
  /* Stronger bridge to header */
  left: 0;
  width: 100%;
  height: 35px;
  background: transparent;
}

/* SHOW MEGA MENU */
.menu-item:hover>.mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
  /* Open instantly */
}

/****************************************
    MEGA MENU INNER GRID
*****************************************/
.mega-inner {
  max-width: 1400px;
  margin: auto;
  padding: 0 40px;

  display: grid;
  grid-template-columns: 320px 200px 200px;
  gap: 80px;
}

/****************************************
    COLUMNS & ITEMS
*****************************************/
.mega-column h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.mega-column ul {
  list-style: none;
}

.mega-column ul li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  font-size: 14px;
  opacity: 0.9;
  cursor: pointer;
  transition: 0.35s ease;
}

.mega-column ul li:hover {
  transform: translateX(10px);
  color: var(--gold-dark) !important;
  opacity: 1;
}

/* CATEGORY ICONS */
.mega-column ul li img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;

  filter: grayscale(0.3) brightness(0.9);
  transition: 0.3s ease;
}

.mega-column ul li:hover img {
  transform: scale(1.15);
  filter: grayscale(0) brightness(1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/****************************************
    RESPONSIVE ADJUSTMENTS
*****************************************/
@media (max-width: 1024px) {
  .main-menu {
    gap: 30px;
  }

  .mega-inner {
    gap: 40px;
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .logo {
    width: 130px;
  }

  .pandora-search {
    max-width: 280px;
  }

  .mega-inner {
    grid-template-columns: 1fr;
  }
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Standardize Icon Buttons (cleaner Pandora style) */
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.site-header.scrolled .icon-btn,
.site-header:hover .icon-btn {
  border-color: rgba(255, 255, 255, 0.15);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-mid);
  transform: translateY(-2px);
}

.icon-svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
  transition: all 0.3s ease;
}

.icon-btn:hover .icon-svg {
  stroke: var(--gold-mid) !important;
}

/* ===============================
   CART COUNT BADGE (Premium Style)
================================ */
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--gold-mid);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.icon-btn:hover .cart-count {
  transform: scale(1.1);
  background: #fff;
}

/* Hide badge when empty or 0 */
.cart-count:empty,
.cart-count[data-count="0"] {
  display: none;
}

.site-header.scrolled,
.site-header:hover {
  /* slightly smaller Pandora-like */
  background: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.site-header.scrolled .icon-btn {
  transform: scale(0.92);
}

.site-header.scrolled .main-menu a {
  letter-spacing: 0.25px;
}

/* =====================================================
   MINI CART OVERLAY
===================================================== */
.mini-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9998;
}

.mini-cart-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* =====================================================
   MINI CART PANEL
===================================================== */
.mini-cart {
  position: fixed;
  top: var(--header-height, 90px);
  /* desktop header height */
  right: 0;
  width: 380px;
  height: calc(100vh - var(--header-height, 90px));
  background: #fffaf5;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;

  display: flex;
  flex-direction: column;
}

.mini-cart.open {
  transform: translateX(0);
}

/* =====================================================
   HEADER
===================================================== */
.mini-cart-header {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 500;
}

.mini-cart-header button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* =====================================================
   BODY
===================================================== */
.mini-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.mini-cart-loading {
  text-align: center;
  opacity: 0.6;
}

/* =====================================================
   ITEM
===================================================== */
.mini-cart-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

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

.mini-cart-item div {
  flex: 1;
}

.mini-cart-item-title {
  font-size: 14px;
  font-weight: 500;
}

.mini-cart-item-meta {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 4px;
}

/* =====================================================
   FOOTER
===================================================== */
.mini-cart-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #fffaf5;
}

.mini-cart-btn {
  display: block;
  width: 100%;
  padding: 14px;
  text-align: center;
  border-radius: 30px;
  border: 1px solid #222;
  margin-bottom: 12px;
  text-decoration: none;
  color: #222;
  font-weight: 500;
}

.mini-cart-btn.primary {
  background: #0d2a2f;
  color: #fff;
  border: none;
}

/* =====================================================
   MOBILE
===================================================== */
@media (max-width: 768px) {
  .mini-cart {
    top: 80px;
    height: 60vh;
    width: 100%;
    border-radius: 0;
  }
}