:root {
  --bds-primary: #a97946;
  --bds-primary-dark: #74471f;
  --bds-accent: #f7d983;
  --bds-ink: #161b2b;
  --bds-muted: #6f7788;
  --bds-surface: #fff;
  --bds-surface-soft: #fbf7f2;
  --bds-border: #eadfd3;
  --bds-footer-bg: #2d1c0f;
  --bds-footer-text: #ead7c6;
  --bds-container: 1280px;
  --bds-radius: 16px;
  --bds-shadow-sm: 0 3px 14px rgba(45, 28, 15, 0.08);
  --bds-shadow-md: 0 12px 30px rgba(45, 28, 15, 0.15);
}

.bds-container {
  width: min(calc(100% - 32px), var(--bds-container));
  margin-inline: auto;
}

.bds-header,
.bds-footer,
.bds-mobile-drawer,
.bds-mobile-bottom-nav {
  font-family: inherit;
  color: var(--bds-ink);
}

.bds-header svg,
.bds-footer svg,
.bds-mobile-drawer svg,
.bds-mobile-bottom-nav svg {
  width: 1.35em;
  height: 1.35em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bds-header a,
.bds-footer a,
.bds-mobile-bottom-nav a {
  text-decoration: none;
}

.bds-header {
  position: relative;
  z-index: 999;
  background: var(--bds-surface);
  border-bottom: 1px solid var(--bds-border);
}

.bds-sticky-header-enabled .bds-header {
  position: sticky;
  top: 0;
  transition: box-shadow .2s ease, transform .2s ease;
}

body.admin-bar.bds-sticky-header-enabled .bds-header { top: 32px; }
.bds-header.is-scrolled { box-shadow: var(--bds-shadow-sm); }

.bds-announcement {
  background: #fbefe3;
  color: #1c1712;
  font-size: 13px;
  line-height: 1.2;
}

.bds-announcement__inner {
  min-height: 34px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.bds-announcement__welcome { justify-self: start; }
.bds-announcement__message { font-weight: 700; text-align: center; }
.bds-announcement__message a,
.bds-track-link { color: #d2181b; margin-left: 8px; font-weight: 700; }
.bds-announcement__meta { justify-self: end; display: flex; gap: 18px; align-items: center; }
.bds-announcement__meta a:not(.bds-track-link) { color: inherit; font-weight: 600; }

.bds-header-main { background: var(--bds-surface); }
.bds-header-main__inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(320px, 620px) auto;
  align-items: center;
  gap: 28px;
}

.bds-brand { display: inline-flex; flex-direction: column; width: fit-content; color: var(--bds-primary); line-height: 1; }
.bds-brand .custom-logo-link { display: block; }
.bds-brand img { width: auto; max-width: 175px; max-height: 56px; object-fit: contain; }
.bds-brand__name { font-size: clamp(26px, 2.2vw, 36px); font-weight: 700; letter-spacing: -.04em; }
.bds-brand__tagline { margin-top: 4px; color: var(--bds-muted); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; }

.bds-product-search {
  display: grid;
  grid-template-columns: 1fr 48px;
  height: 48px;
  border: 1px solid var(--bds-border);
  border-radius: 999px;
  background: var(--bds-surface);
  overflow: hidden;
  box-shadow: 0 2px 7px rgba(45, 28, 15, .04);
}
.bds-product-search input {
  min-width: 0;
  border: 0 !important;
  outline: 0;
  box-shadow: none !important;
  padding: 0 8px 0 20px;
  background: transparent;
  color: var(--bds-ink);
  font: inherit;
}
.bds-product-search input::placeholder { color: #9da5b4; opacity: 1; }
.bds-product-search button {
  width: 42px;
  height: 42px;
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #d7c2ad;
  color: white;
  cursor: pointer;
}

.bds-header-actions { display: flex; align-items: center; gap: 9px; justify-content: flex-end; white-space: nowrap; }
.bds-action-link,
.bds-account-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--bds-border);
  border-radius: 999px;
  color: var(--bds-primary);
  background: var(--bds-surface-soft);
}
.bds-account-link { gap: 8px; color: var(--bds-ink); font-weight: 600; }
.bds-cart-count {
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.bds-action-link .bds-cart-count {
  position: absolute;
  top: -8px;
  right: -3px;
  background: var(--bds-primary);
  color: white;
}

.bds-mobile-menu-toggle { display: none; }

.bds-nav-row {
  position: relative;
  border-top: 1px solid #f2ece5;
  border-bottom: 1px solid var(--bds-border);
  background: var(--bds-surface);
}
.bds-nav-row__inner { min-height: 54px; display: flex; align-items: center; gap: 10px; }
.bds-category-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--bds-primary);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.bds-category-toggle svg:last-child { width: 14px; transition: transform .2s ease; }
.bds-category-toggle[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }

.bds-primary-nav-wrap { min-width: 0; overflow: hidden; }
ul.bds-primary-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
ul.bds-primary-nav::-webkit-scrollbar { display: none; }
ul.bds-primary-nav > li { position: relative; flex: 0 0 auto; }
ul.bds-primary-nav > li > a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--bds-border);
  border-radius: 999px;
  background: #fffdfa;
  color: var(--bds-ink);
  font-size: 14px;
  white-space: nowrap;
}
ul.bds-primary-nav > li.current-menu-item > a,
ul.bds-primary-nav > li > a:hover { border-color: var(--bds-primary); color: var(--bds-primary-dark); }
ul.bds-primary-nav .sub-menu { display: none; }

.bds-category-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 22px 0 28px;
  background: var(--bds-surface);
  border-top: 1px solid var(--bds-border);
  box-shadow: var(--bds-shadow-md);
}
.bds-category-panel[hidden] { display: none !important; }
.bds-category-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.bds-category-panel__head strong { font-size: 22px; color: var(--bds-primary-dark); }
.bds-category-panel__head a { color: var(--bds-primary); }
.bds-category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.bds-category-chip {
  min-height: 64px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--bds-border);
  border-radius: calc(var(--bds-radius) - 4px);
  background: var(--bds-surface-soft);
  color: var(--bds-ink);
}
.bds-category-chip small { color: var(--bds-muted); margin-top: 3px; }
.bds-category-chip:hover { border-color: var(--bds-primary); transform: translateY(-1px); }

.bds-mobile-drawer { display: none; }
.bds-mobile-bottom-nav { display: none; }

/* Footer */
.bds-footer { margin-top: 60px; background: var(--bds-footer-bg); color: var(--bds-footer-text); }
.bds-footer-trust { padding: 38px 0 28px; }
.bds-footer-trust__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bds-trust-card {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--bds-radius);
  background: rgba(255,255,255,.04);
}
.bds-trust-card__icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(247,217,131,.12);
  color: var(--bds-accent);
}
.bds-trust-card strong,
.bds-trust-card span { display: block; }
.bds-trust-card strong { color: #fff; font-size: 14px; line-height: 1.2; }
.bds-trust-card span { margin-top: 4px; font-size: 12px; opacity: .8; }

.bds-footer-main { padding: 24px 0 52px; }
.bds-footer-grid { display: grid; grid-template-columns: 1.45fr .9fr .9fr 1fr; gap: 54px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.08); }
.bds-footer-logo { display: inline-block; color: white; font-size: 34px; font-weight: 700; }
.bds-footer-logo img { max-width: 190px; max-height: 72px; width: auto; filter: brightness(0) invert(1); }
.bds-footer-brand p { max-width: 430px; margin: 18px 0; line-height: 1.75; color: var(--bds-footer-text); }
.bds-social-links { display: flex; gap: 9px; }
.bds-social-links a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); color: white; }
.bds-footer-column h2 { margin: 0 0 20px; color: var(--bds-accent); font-size: 14px; text-transform: uppercase; letter-spacing: .14em; }
.bds-footer-column h2::after { content: ''; display: block; width: 42px; height: 2px; margin-top: 10px; background: var(--bds-accent); opacity: .7; }
ul.bds-footer-menu { margin: 0; padding: 0; list-style: none; }
ul.bds-footer-menu li + li { margin-top: 9px; }
ul.bds-footer-menu a { color: var(--bds-footer-text); }
ul.bds-footer-menu a:hover { color: white; }
.bds-footer-contact > a:not(.bds-whatsapp-button),
.bds-footer-contact > div { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; color: var(--bds-footer-text); }
.bds-footer-contact svg { flex: 0 0 19px; color: var(--bds-accent); margin-top: 2px; }
.bds-whatsapp-button { display: inline-flex; margin-top: 15px; padding: 12px 18px; border-radius: 10px; background: var(--bds-accent); color: #24180e; font-weight: 700; }
.bds-footer-placeholder { opacity: .75; }
.bds-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.bds-footer-bottom__inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 12px; color: rgba(255,255,255,.66); }

@media (max-width: 1100px) {
  .bds-header-main__inner { grid-template-columns: 150px minmax(250px, 1fr) auto; gap: 14px; }
  .bds-account-link span { display: none; }
  .bds-account-link { padding: 0; width: 44px; }
  .bds-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bds-footer-grid { gap: 28px; }
}

@media (max-width: 921px) {
  body.admin-bar.bds-sticky-header-enabled .bds-header { top: 46px; }
  body.bds-mobile-bottom-nav-enabled { padding-bottom: 72px; }
  .bds-container { width: min(calc(100% - 20px), var(--bds-container)); }

  .bds-announcement__inner {
    min-height: 38px;
    display: flex;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
  }
  .bds-announcement__welcome,
  .bds-announcement__meta > a:not(.bds-track-link) { display: none; }
  .bds-announcement__message { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
  .bds-announcement__meta { margin-left: auto; flex: 0 0 auto; }
  .bds-track-link { font-size: 12px; margin-left: 0; }

  .bds-header-main__inner {
    min-height: 67px;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 38px;
    gap: 9px;
  }
  .bds-brand img { max-width: 105px; max-height: 44px; }
  .bds-brand__name { font-size: 24px; }
  .bds-brand__tagline { font-size: 7px; }
  .bds-product-search { height: 45px; grid-template-columns: 1fr 42px; }
  .bds-product-search input { padding-left: 14px; font-size: 14px; }
  .bds-product-search button { width: 38px; height: 38px; }
  .bds-header-actions { display: none; }
  .bds-mobile-menu-toggle {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111;
  }
  .bds-mobile-menu-toggle svg { width: 28px; height: 28px; stroke-width: 2.2; }

  .bds-nav-row__inner { min-height: 51px; gap: 7px; overflow: hidden; }
  .bds-category-toggle { height: 38px; padding: 0 14px; font-size: 13px; }
  ul.bds-primary-nav { gap: 7px; }
  ul.bds-primary-nav > li > a { height: 36px; padding: 0 13px; font-size: 13px; }
  .bds-category-panel { max-height: calc(100vh - 160px); overflow: auto; padding: 16px 0 22px; }
  .bds-category-panel__head strong { font-size: 18px; }
  .bds-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bds-category-chip { min-height: 58px; padding: 10px 12px; font-size: 13px; }

  .bds-mobile-drawer { display: block; position: fixed; inset: 0; z-index: 99999; visibility: hidden; pointer-events: none; }
  .bds-mobile-drawer.is-open { visibility: visible; pointer-events: auto; }
  .bds-mobile-drawer__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(15, 18, 24, .48); opacity: 0; transition: opacity .2s ease; }
  .bds-mobile-drawer.is-open .bds-mobile-drawer__backdrop { opacity: 1; }
  .bds-mobile-drawer__panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(88vw, 360px);
    padding: 18px;
    overflow: auto;
    background: white;
    transform: translateX(100%);
    transition: transform .22s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,.16);
  }
  .bds-mobile-drawer.is-open .bds-mobile-drawer__panel { transform: translateX(0); }
  .bds-mobile-drawer__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--bds-border); }
  .bds-mobile-drawer__head strong { font-size: 20px; }
  .bds-mobile-drawer__head button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--bds-border); border-radius: 50%; background: white; }
  ul.bds-mobile-drawer__menu { margin: 16px 0 0; padding: 0; list-style: none; }
  ul.bds-mobile-drawer__menu a { display: block; padding: 13px 4px; color: var(--bds-ink); border-bottom: 1px solid #f1ece7; }
  ul.bds-mobile-drawer__menu .sub-menu { margin: 0 0 0 14px; padding: 0; list-style: none; }
  .bds-mobile-drawer__shop { display: block; margin-top: 18px; padding: 13px 16px; border-radius: 12px; background: var(--bds-primary); color: white; text-align: center; font-weight: 700; }
  .bds-lock-scroll { overflow: hidden; }

  .bds-mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    min-height: 66px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: #171717;
    color: white;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -8px 25px rgba(0,0,0,.15);
  }
  body.admin-bar .bds-mobile-bottom-nav { bottom: 0; }
  .bds-mobile-bottom-nav a {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 7px 2px 6px;
    color: white;
    font-size: 10px;
    line-height: 1.1;
  }
  .bds-mobile-bottom-nav a:nth-child(2) { color: #efb86e; }
  .bds-mobile-bottom-nav svg { width: 23px; height: 23px; }
  .bds-mobile-bottom-nav .bds-cart-count { min-width: auto; height: auto; padding: 0; background: transparent; color: inherit; font-size: inherit; }

  .bds-footer { margin-top: 36px; }
  .bds-footer-trust { padding: 28px 0 20px; }
  .bds-footer-trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bds-trust-card { min-height: 92px; padding: 12px; align-items: center; }
  .bds-trust-card__icon { flex-basis: 42px; width: 42px; height: 42px; }
  .bds-trust-card strong { font-size: 12px; }
  .bds-trust-card span { font-size: 10px; }
  .bds-footer-main { padding-bottom: 32px; }
  .bds-footer-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 28px; }
  .bds-footer-brand p { margin: 14px 0; }
  .bds-footer-logo { font-size: 40px; }
  .bds-footer-column h2 { margin-bottom: 16px; }
  .bds-footer-bottom__inner { min-height: 92px; flex-direction: column; justify-content: center; text-align: center; gap: 7px; }
}

@media (max-width: 480px) {
  .bds-container { width: min(calc(100% - 16px), var(--bds-container)); }
  .bds-header-main__inner { grid-template-columns: 112px minmax(0, 1fr) 34px; gap: 6px; }
  .bds-product-search input { font-size: 13px; padding-left: 11px; }
  .bds-category-toggle span { font-size: 12px; }
  .bds-footer-trust__grid { gap: 9px; }
  .bds-trust-card { gap: 8px; }
}
