/* ================================================================
   AURUM — Premium Jewelry Design for PrestaShop Classic
   Źródło designu: Figma Make (Header.tsx, CategoryPage.tsx)
   ================================================================ */

/* ── FONTS ── */
:root {
  --au-gold: #B8963E;
  --au-gold-hover: #a07832;
  --au-text: #030213;
  --au-text-muted: #717182;
  --au-muted: #ececf0;
  --au-border: rgba(0,0,0,0.08);
  --au-font-serif: "Cormorant Garamond", Georgia, serif;
  --au-font-sans: "Inter", system-ui, sans-serif;
}

body {
  font-family: var(--au-font-sans);
  color: var(--au-text);
}

/* ── TOP NAV BAR ── */
#header .header-nav {
  background: #111827 !important;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

#header .header-nav .container {
  max-width: 1320px;
}

#header .header-nav .row {
  align-items: center;
  min-height: 36px;
}

/* Contact link */
#contact-link {
  color: #9ca3af;
  font-family: var(--au-font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

#contact-link a {
  color: var(--au-gold);
  text-decoration: none;
  font-weight: 500;
}

/* Search w topbar — ukryj nadmiarowe style */
#_desktop_search_plugin {
  width: auto !important;
  min-width: auto !important;
  height: 36px !important;
  flex: 0 0 auto !important;
}

#_desktop_search_plugin .jd-search-glyph {
  color: #9ca3af !important;
  font-size: 16px !important;
  width: 20px !important;
  height: 20px !important;
}

/* Currency */
#_desktop_currency_selector .expand-more {
  color: #9ca3af !important;
  font-size: 0.75rem;
  font-family: var(--au-font-sans);
}

#_desktop_currency_selector .material-icons {
  color: #9ca3af !important;
  font-size: 16px;
}

#_desktop_currency_selector .dropdown-menu {
  background: #fff;
  border: 1px solid var(--au-border);
  border-radius: 0.375rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  min-width: 100px;
}

#_desktop_currency_selector .dropdown-menu a {
  font-size: 0.8125rem;
  color: #374151;
  padding: 0.5rem 0.75rem;
}

#_desktop_currency_selector .dropdown-menu a:hover {
  color: var(--au-gold);
  background: rgba(184,150,62,0.04);
}

/* Cart preview — czysty */
.blockcart .header a {
  color: #9ca3af !important;
  font-size: 0.75rem !important;
  font-family: var(--au-font-sans) !important;
  height: 36px !important;
  gap: 0.25rem !important;
}

.blockcart .body {
  display: none !important;
}

/* User info */
.user-info {
  width: auto !important;
  min-width: auto !important;
  height: 36px !important;
}

.user-info .jd-login-glyph {
  color: #9ca3af !important;
  font-size: 16px !important;
  width: 20px !important;
  height: 20px !important;
}

.user-info .dropdown-menu {
  background: #fff;
  border: 1px solid var(--au-border);
  border-radius: 0.375rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.user-info .dropdown-menu a {
  font-size: 0.8125rem;
  color: #374151;
}

.user-info .dropdown-menu a:hover {
  color: var(--au-gold);
}

/* ── MAIN HEADER (logo + menu) ── */
#header .header-top {
  background: #fff;
  border-bottom: 1px solid var(--au-border);
  padding: 0;
}

#header .header-top .container {
  max-width: 1320px;
  display: flex;
  align-items: center;
  min-height: 70px;
}

/* Logo */
#header .header-top .logo {
  max-height: 44px;
}

/* Albo text logo */
#header .header-top a[href*="jubilerdukat"] {
  font-family: var(--au-font-serif);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--au-text);
  font-size: 1.5rem;
  text-decoration: none;
}

/* ── DESKTOP MENU (ps_mainmenu) ── */
#_desktop_top_menu,
.menu.js-top-menu {
  display: flex !important;
  justify-content: center;
}

#top-menu[data-depth="0"] {
  display: flex;
  align-items: center;
  gap: clamp(0.625rem, 1.5vw, 1.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

#top-menu[data-depth="0"] > li > a {
  font-family: var(--au-font-sans);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
  text-decoration: none !important;
  padding: 0.75rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

#top-menu[data-depth="0"] > li > a:hover,
#top-menu[data-depth="0"] > li.current > a {
  color: var(--au-gold);
  border-bottom-color: var(--au-gold);
}

/* Ukryj mobile toggler w desktop menu */
#top-menu .navbar-toggler,
#top-menu .float-xs-right,
#top-menu .collapse-icons {
  display: none !important;
}

/* Dropdown submenu */
#top-menu .popover.sub-menu,
#top-menu .sub-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--au-border);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  min-width: 160px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  z-index: 100;
  margin: 0;
}

#top-menu[data-depth="0"] > li:hover > .popover.sub-menu,
#top-menu[data-depth="0"] > li:hover > .sub-menu {
  display: block !important;
}

#top-menu .sub-menu .top-menu[data-depth="1"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

#top-menu .sub-menu .top-menu[data-depth="1"] li {
  margin: 0;
}

#top-menu .sub-menu .top-menu[data-depth="1"] li a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-family: var(--au-font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  color: #374151;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0;
  text-transform: none;
  border-bottom: none;
}

#top-menu .sub-menu .top-menu[data-depth="1"] li a:hover {
  color: var(--au-gold);
  background: rgba(184,150,62,0.04);
}

/* Hide clearfix */
.menu .clearfix { display: none; }

/* ── STICKY HEADER ── */
#header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
}

/* ================================================================
   MEGA-MENU (Figma DUKAT design)
   ================================================================ */

/* Menu wrapper */
.au-menu-wrap {
  display: flex;
  justify-content: center;
}

.au-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.625rem, 1.8vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Menu links */
.au-menu__link {
  font-family: var(--au-font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
  text-decoration: none !important;
  padding: 1.5rem 0;
  display: inline-block;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.au-menu__link:hover,
.au-menu__item.current > .au-menu__link {
  color: #1a1a1a;
  border-bottom-color: #1a1a1a;
}

.au-menu__link--gold {
  color: var(--au-gold) !important;
}

.au-menu__link--promo {
  color: #dc2626 !important;
}

/* Hide mobile togglers */
.au-menu .navbar-toggler,
.au-menu .float-xs-right,
.au-menu .collapse-icons {
  display: none !important;
}

/* ── MEGA DROPDOWN ── */
.au-mega {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  z-index: 100;
}

.au-menu__item:hover > .au-mega {
  display: block;
}

.au-mega__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 180px 1fr 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

/* Kolumna 1: Nazwa kategorii */
.au-mega__title-col {
  padding-top: 0.25rem;
}

.au-mega__cat-name {
  font-family: var(--au-font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1a1a;
}

/* Kolumna 2-3: nagłówki */
.au-mega__heading {
  display: block;
  font-family: var(--au-font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

/* Lista linków */
.au-mega__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.au-mega__list li {
  margin-bottom: 0.875rem;
}

.au-mega__link {
  font-family: var(--au-font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

.au-mega__link:hover {
  color: var(--au-gold);
}

/* Metal lista — italic serif */
.au-mega__list--metal .au-mega__link {
  font-family: var(--au-font-serif);
  font-style: italic;
  font-size: 0.9375rem;
  color: #374151;
}

/* "WSZYSTKIE →" link */
.au-mega__all {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  font-family: var(--au-font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--au-gold);
  text-decoration: none;
  transition: color 0.2s;
}

.au-mega__all:hover {
  color: var(--au-gold-hover);
}

/* Kolumna 4: Zdjęcie */
.au-mega__photo {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.au-mega__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.au-mega__photo:hover img {
  transform: scale(1.03);
}

.au-mega__photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.45));
  font-family: var(--au-font-serif);
  font-style: italic;
  font-size: 1rem;
  color: #fff;
}

/* Menu items need relative for mega positioning */
.au-menu__item {
  position: static;
}

.au-menu-wrap {
  position: relative;
}

/* ── HIDE old PS menu classes ── */
.au-menu .popover.sub-menu,
.au-menu .clearfix {
  display: none !important;
}

#header .header-top .position-static {
  position: relative !important;
}
