:root {
  --primary: #2d6a4f;
  --primary-dark: #1e4f3a;
  --gold: #d4a373;
  --gold-dark: #c4956a;
  --dark: #0b0b0f;
  --light: #f9fbf7;
  --text: #000;
  --white: #fff;

  --container: 1280px;
  --header-height: 80px;
  --header-height-mobile: 60px;
  --breadcrumbs-height: 44px;
  --breadcrumbs-height-mobile: 40px;

  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 20px;
  --transition: 0.25s ease;
}

.custom-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 1001;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s ease;
  will-change: transform;
}
.custom-header.header-hidden {
  transform: translateY(-100%);
  box-shadow: none;
}

.header-container {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo a {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}
.logo-accent { color: var(--gold); }

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu > ul > li {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-menu a {
  font-weight: 600;
  font-size: 15px;
  color: #000;
  transition: color var(--transition);
  padding: 6px 2px;
  position: relative;
}

.nav-menu a.is-active { color: var(--primary); }
.nav-menu a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.nav-menu a:hover { color: var(--primary); }

.dropdown-toggle {
  background: none;
  border: none;
  color: #666;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
  margin-left: 2px;
  transition: transform var(--transition);
}
.has-dropdown:hover .dropdown-toggle { transform: rotate(180deg); }

.has-dropdown .dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  background: var(--white);
  box-shadow: var(--shadow-hover);
  border-radius: 12px;
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  flex-direction: column;
  gap: 0;
  z-index: 1002;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.has-dropdown .dropdown li { width: 100%; }
.has-dropdown .dropdown a {
  display: block;
  padding: 8px 20px;
  font-weight: 500;
  font-size: 14px;
}
.has-dropdown .dropdown a:hover,
.has-dropdown .dropdown a.is-active {
  background: #f5f7f5;
  color: var(--primary);
}
.has-dropdown .dropdown a.is-active { font-weight: 600; }

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
  white-space: nowrap;
  transition: color var(--transition);
}
.phone-link:hover { color: var(--primary-dark); }

.cart-icon {
  position: relative;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
  color: inherit;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.cart-icon:not([hidden]) {
  opacity: 1;
  transform: scale(1);
}
.cart-icon[hidden] { display: none; }

.cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--gold);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--primary);
}

.header-spacer {
  height: calc(var(--header-height) + var(--breadcrumbs-height));
}

.breadcrumbs {
  position: fixed;
  left: 0; right: 0;
  top: var(--header-height);
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid #e5e7eb;
  height: var(--breadcrumbs-height);
  transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: top;
}
body.header-is-hidden .breadcrumbs { top: 0; }

.breadcrumbs-container {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  font-size: 0.9rem;
  scrollbar-width: none;
}
.breadcrumbs-container::-webkit-scrollbar { display: none; }

.breadcrumbs a {
  color: #555;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--transition);
}
.breadcrumbs a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumbs .sep { color: #bbb; flex-shrink: 0; }
.breadcrumbs .current { color: #000; font-weight: 600; white-space: nowrap; }

.custom-footer-global {
  background: var(--dark);
  color: var(--white);
  padding: 48px 0 24px;
  margin-top: 60px;
  border-top: 2px solid var(--primary);
}
.footer-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col p,
.footer-col ul li,
.footer-col div,
.footer-address div {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  line-height: 1.8;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a,
.footer-col a {
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}
.footer-col a:hover,
.footer-col ul li a:hover { color: var(--gold); }

.footer-cta a {
  color: var(--gold);
  font-weight: 700;
}
.footer-mini {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-mini li a { font-size: 13px; }

.footer-address { font-style: normal; }
.footer-social {
  display: flex;
  gap: 16px;
  margin: 12px 0 0;
}
.footer-social a {
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-left {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom-right a {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}
.footer-bottom-right a:hover { color: var(--gold); }
.footer-bottom-right span { color: rgba(255,255,255,0.25); }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-menu ul { gap: 14px; }
  .nav-menu a { font-size: 14px; }
}

@media (max-width: 768px) {
  :root {
    --header-height: var(--header-height-mobile);
    --breadcrumbs-height: var(--breadcrumbs-height-mobile);
  }

  .mobile-toggle { display: block; }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow-hover);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-menu.open { max-height: calc(100vh - var(--header-height)); overflow-y: auto; }
  .nav-menu ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }
  .nav-menu > ul > li {
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
  }
  .nav-menu a {
    display: block;
    padding: 14px 24px;
  }
  .dropdown-toggle {
    position: absolute;
    top: 8px;
    right: 16px;
    padding: 8px;
    font-size: 16px;
  }
  .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0;
    background: #f8faf7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .has-dropdown.open .dropdown { max-height: 500px; }

  .phone-text { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-right { justify-content: center; }
  .breadcrumbs-container { padding: 0 16px; font-size: 0.82rem; }
}