:root {
  --accent: #A8632E;
  --text-dark: #1B1B1B;
  --text-muted: #8A8A8A;
  --bg-light: #F7F5F2;
  --bg-white: #FFFFFF;
  --border-color: #E7E4DF;
  --radius: 16px;
  --font-main: 'Inter', sans-serif;
}

.site-announcement {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  position: relative;
  z-index: 101;
}
.site-announcement a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.5);
  text-underline-offset: 2px;
}
.site-announcement a:hover {
  text-decoration-color: #fff;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 88px;
  padding: 0 60px;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  font-family: 'Inter', sans-serif;
  color: #1b1b1b;
}

.site-header.is-scrolled {
  border-bottom-color: #ececec;
}

.site-header__logo {
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  justify-self: start;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.site-header__nav > li {
  display: flex;
  align-items: center;
  height: 100%;
}

.site-header__nav > li > a {
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 15px;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
}

.site-header__nav > li > a.is-active {
  color: #8f654c;
}

.site-header .caret {
  font-size: 10px;
  margin-left: 2px;
}

.site-header__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.site-header__icon {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

.cart-badge[hidden] {
  display: none !important;
}

.site-header__menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.site-header__menu-toggle span {
  width: 22px;
  height: 2px;
  background: currentColor;
  display: block;
}

.site-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent;
  color: #ffffff;
}

.site-header--overlay .site-header__nav > li > a.is-active {
  color: #ffffff;
  border-bottom: 2px solid #ffffff;
  padding-bottom: 4px;
}

.site-header.has-dropdown,
.site-header .has-dropdown {
  position: static;
}

.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 48px;
  right: 48px;
  width: auto;
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  color: #1b1b1b;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  padding: 28px 32px;
  gap: 40px;
  z-index: 40;
  pointer-events: auto;
}

.mega-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -24px;
  height: 24px;
}

.has-dropdown.open .mega-menu,
.has-dropdown:hover .mega-menu {
  display: flex !important;
}

.mega-menu-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 210px;
  flex-shrink: 0;
}

.mega-cat {
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: #8a8a8a;
  padding: 10px 0;
}

.mega-cat.active,
.mega-cat:hover {
  color: #1b1b1b;
  font-weight: 600;
}

.mega-menu-content {
  flex: 1;
}

.mega-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  row-gap: 22px;
  align-content: start;
}

.mega-panel.active {
  display: grid;
}

.mega-sub-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #1b1b1b;
  text-decoration: none;
}

.mega-sub-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  flex-shrink: 0;
  background: #f4f1ec;
  overflow: hidden;
}

.mega-sub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mega-sub-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.mega-sub-item small {
  color: #8a8a8a;
  font-size: 12px;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  font-family: 'Inter', sans-serif;
}

.search-overlay.open {
  display: flex;
}

.search-overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.search-panel {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 48px));
  margin-top: 88px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 999px;
  padding: 16px 22px;
  color: #8a8a8a;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  color: #1b1b1b;
  background: transparent;
}

.search-no-result,
.search-results-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

.search-no-result {
  min-height: 220px;
  padding: 56px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

.search-no-result[hidden],
.search-results-card[hidden] {
  display: none !important;
}

.search-no-result strong {
  color: #1b1b1b;
  font-size: 20px;
  font-weight: 600;
}

.search-no-result p {
  color: #8a8a8a;
  font-size: 14px;
}

.search-results-card {
  padding: 8px 8px 0;
  overflow: hidden;
}

.search-results {
  padding: 4px;
  list-style: none;
  margin: 0;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
}

.search-result-item:hover,
.search-result-item.is-active {
  background: #f7f5f2;
}

.result-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f4f1ec;
}

.result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.result-info small {
  color: #8a8a8a;
  font-size: 12px;
}

.search-kbd {
  display: flex;
  gap: 18px;
  padding: 12px 18px 14px;
  font-size: 12px;
  color: #8a8a8a;
  border-top: 1px solid #f0eeea;
}

.search-kbd kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  padding: 1px 5px;
  margin-left: 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 10px;
  font-family: inherit;
  background: #fafafa;
}

.site-footer {
  background: #f7f6f4;
  padding: 56px 60px 0;
  font-family: 'Inter', sans-serif;
  color: #1b1b1b;
}

.site-footer a {
  text-decoration: none;
  color: inherit;
}

.site-footer__inner {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

.site-footer__brand {
  min-width: 280px;
  max-width: 340px;
}

.site-footer__logo {
  display: inline-block;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}

.site-footer__slogan {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 28px;
}

.site-footer__copyright {
  font-size: 13px;
  color: #8a8a8a;
  margin: 0;
}

.site-footer__columns {
  flex: 1;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.site-footer__column {
  flex: 1;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__title {
  font-size: 14px;
  font-weight: 400;
  color: #8a8a8a;
  margin-bottom: 8px;
}

.site-footer__column a {
  font-size: 14px;
  font-weight: 500;
}

.site-footer__column a:hover,
.site-footer__legal a:hover {
  color: #8f654c;
}

.site-footer__legal {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding: 28px 0 20px;
  font-size: 13px;
  font-weight: 500;
}

.site-footer__banner {
  margin: 0 -12px;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  height: 280px;
}

.site-footer__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1024px) {
  .site-header,
  .site-footer {
    padding-left: 32px;
    padding-right: 32px;
  }

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

  .mega-menu {
    left: 32px;
    right: 32px;
  }

  .site-footer__inner {
    flex-direction: column;
    gap: 40px;
  }

  .site-footer__legal {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 72px;
    padding: 0 20px;
    grid-template-columns: 1fr auto auto;
  }

  .site-header__menu-toggle {
    display: flex;
    order: 3;
  }

  .site-header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(86vw, 320px);
    max-width: 320px;
    height: 100vh;
    overflow-y: auto;
    background: #fff;
    color: #1b1b1b;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 90px 24px 32px;
    transition: right 0.3s ease;
    z-index: 120;
  }

  .site-header__actions a[href^="mailto"] {
    display: none;
  }

  .site-header__nav.open {
    right: 0;
  }

  .site-header__nav > li {
    width: 100%;
    display: block;
  }

  .site-header__nav > li,
  .site-header__nav > li > a {
    height: auto;
  }

  .site-header__nav > li > a {
    display: block;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid #ececec;
    color: #1b1b1b;
  }

  .mega-menu {
    position: static;
    display: none;
    width: 100%;
    max-width: none;
    box-shadow: none;
    flex-direction: column;
    padding: 12px 0 0;
    left: 0;
    right: 0;
  }

  .mega-menu::before {
    display: none;
  }

  .has-dropdown:hover .mega-menu {
    display: none !important;
  }

  .has-dropdown.open .mega-menu {
    display: flex !important;
  }

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

  .site-footer {
    padding: 40px 20px 0;
  }

  .site-footer__slogan {
    font-size: 22px;
  }

  .site-footer__banner {
    height: 180px;
    margin: 0 -20px;
    border-radius: 16px 16px 0 0;
  }
}

body {
  overflow-x: hidden;
}

body.nav-open,
body.filters-open,
body.cart-open {
  overflow: hidden;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(27, 27, 27, 0.28);
}

.nav-backdrop[hidden] {
  display: none;
}

.quote-modal__close,
.cart-item__remove,
.cart-item__minus,
.cart-item__plus {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.quote-modal__close svg,
.cart-item__remove svg {
  width: 16px;
  height: 16px;
}

.quote-form__submit {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--text-dark);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.cart-item,
.quote-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-item__image,
.quote-item__image {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--bg-light);
  border-radius: 10px;
  flex-shrink: 0;
}

.cart-item__info,
.quote-item div {
  flex: 1;
  min-width: 0;
}

.cart-item__name,
.quote-item__name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  overflow-wrap: anywhere;
}

.cart-item__code,
.quote-item__meta {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-item__qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-item__minus,
.cart-item__plus {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.cart-item__qty-value {
  min-width: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(27, 27, 27, 0.28);
  overflow: hidden;
}

.quote-modal[hidden] {
  display: none;
}

.quote-modal__dialog {
  position: relative;
  box-sizing: border-box;
  width: min(720px, 100%);
  max-width: 100%;
  min-width: 0;
  max-height: calc(100vh - 48px);
  overflow-x: hidden;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 32px 28px;
  font-family: var(--font-main);
}

.quote-modal__dialog *,
.quote-modal__dialog *::before,
.quote-modal__dialog *::after {
  box-sizing: border-box;
}

.quote-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.quote-modal__dialog h2 {
  font-size: 24px;
  margin: 0 0 8px;
}

.quote-modal__lead {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.quote-summary {
  margin-bottom: 20px;
  max-height: 220px;
  overflow-x: hidden;
  overflow-y: auto;
  min-width: 0;
}

.quote-form {
  min-width: 0;
}

.quote-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 14px;
  min-width: 0;
}

.quote-field em {
  font-style: normal;
  color: var(--text-muted);
  font-weight: 400;
}

.quote-field input,
.quote-field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
}

.quote-field input.is-invalid,
.quote-field textarea.is-invalid {
  border-color: #c45c4a;
}

.quote-field__error {
  color: #c45c4a;
  font-size: 12px;
}

.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  background: var(--text-dark);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cart-toast[hidden] {
  display: none !important;
}

.cart-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .quote-modal {
    padding: 0;
    align-items: flex-end;
  }

  .quote-modal__dialog {
    width: 100%;
    max-width: 100%;
    max-height: min(92vh, calc(100vh - 12px));
    padding: 24px 20px 20px;
    border-radius: 20px 20px 0 0;
    overflow-x: hidden;
  }
}
