.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #F5F5F5;
  padding: 6px 2px;
  text-decoration: none;
}

.cart-btn:hover { color: #D1B26F; }

.cart-btn__subtotal {
  display: none !important;
}

.cart-btn__icon {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.cart-btn__count {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #D1B26F;
  color: #1C1C1E;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.cart-btn__count.is-empty { opacity: 0.55; }

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.account-btn,
.header-tools .cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  box-sizing: border-box;
  flex: 0 0 40px;
  border: 1px solid rgba(209, 178, 111, 0.55);
  border-radius: 50%;
  color: #F5F5F5;
  text-decoration: none;
  transition: color .4s cubic-bezier(.16,1,.3,1), background .4s cubic-bezier(.16,1,.3,1), border-color .4s cubic-bezier(.16,1,.3,1);
}

.account-btn:hover,
.header-tools .cart-btn:hover {
  color: #1C1C1E;
  background: #D1B26F;
  border-color: #D1B26F;
}

.account-btn__icon {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}

header nav {
  gap: 28px !important;
  flex-wrap: nowrap;
}

header nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 6px;
  font-size: 12px !important;
  letter-spacing: .16em !important;
  background-image: linear-gradient(#D1B26F, #D1B26F);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0 1px;
  transition: color .35s cubic-bezier(.16,1,.3,1), opacity .35s, background-size .45s cubic-bezier(.16,1,.3,1);
}

header nav a:hover,
header nav a.active {
  color: #D1B26F;
  opacity: 1;
  background-size: 100% 1px;
}

.header-tools .cart-btn__icon {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.header-tools .cart-btn__count {
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 9px;
  line-height: 16px;
  box-shadow: 0 0 0 2px #1c1c1e;
}

.cart-btn:hover .cart-btn__icon {
  color: inherit;
  background: transparent;
  border-color: transparent;
  transform: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: 8px;
  border: 1px solid rgba(209, 178, 111, 0.45);
  background: transparent;
  color: #F5F5F5;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.nav-toggle.is-needed {
  display: inline-flex;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 1px;
  background: #D1B26F;
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

html {
  overflow-x: clip;
}

.nav-panel {
  position: fixed;
  z-index: 60;
  left: 0;
  right: 0;
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  background: rgba(28, 28, 30, 0.96);
  border-bottom: 1px solid rgba(209, 178, 111, 0.28);
  padding: 8px 20px 18px;
}

.nav-panel[hidden] {
  display: none !important;
}

.nav-panel nav {
  display: flex !important;
  flex-direction: column;
}

.nav-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #F5F5F5;
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-panel a:hover {
  color: #D1B26F;
}

.nav-toggle:focus-visible,
.nav-panel a:focus-visible,
header nav a:focus-visible,
.account-btn:focus-visible,
.cart-btn:focus-visible {
  outline: 2px solid #D1B26F;
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

img,
video {
  max-width: 100%;
  height: auto;
}

.logo img {
  height: 52px;
  width: auto;
  max-width: none;
}

@media (max-width: 1023px) {
  header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(28, 28, 30, 0.94) !important;
    padding: 14px 16px !important;
  }

  header nav {
    display: none !important;
  }

  .cart-btn__subtotal {
    display: none !important;
  }

  .header-right {
    gap: 8px !important;
  }

  .header-tools {
    gap: 8px;
  }

  .logo img {
    height: 44px;
  }

  .products,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .shop-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (min-width: 700px) and (max-width: 1023px) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: start;
    gap: 28px;
  }
}

@media (max-width: 767px) {
  .hero {
    background-position: center 48% !important;
    animation: none !important;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(28, 28, 30, 0.7) 0%, rgba(28, 28, 30, 0.76) 42%, rgba(28, 28, 30, 0.92) 100%) !important;
  }

  .hero .eyebrow {
    font-size: 13px !important;
    letter-spacing: 0.12em !important;
    line-height: 1.45;
    max-width: 100%;
  }

  .hero-inner {
    width: min(900px, calc(100% - 32px));
  }

  .hero h1 {
    font-size: clamp(1.45rem, calc((100vw - 48px) / 13.2), 2rem) !important;
    font-weight: 400 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.12;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.65);
  }

  .hero p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #F7F4EE;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7);
  }

  .section-title {
    font-size: clamp(1.55rem, 7vw, 2rem) !important;
    line-height: 1.15;
  }
}

@media (max-width: 767px) and (max-height: 700px) {
  .hero {
    padding: 76px 0 16px !important;
  }

  .hero-inner {
    padding: 0 !important;
  }

  .hero .eyebrow {
    margin-bottom: 10px !important;
    font-size: 12px !important;
    letter-spacing: 0.1em !important;
  }

  .hero h1 {
    margin-bottom: 12px !important;
    font-size: clamp(1.35rem, calc((100vw - 40px) / 13.5), 1.7rem) !important;
    font-weight: 400 !important;
    letter-spacing: 0.06em !important;
  }

  .hero p {
    margin-bottom: 16px !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  .hero .btn {
    min-height: 44px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    align-items: center !important;
    padding: 72px 0 24px !important;
  }

  .hero-inner {
    padding: 0 !important;
  }

  .hero .eyebrow {
    margin-bottom: 8px !important;
    font-size: 12px !important;
  }

  .hero h1 {
    font-size: clamp(1.4rem, 3.4vw, 2.05rem) !important;
    font-weight: 400 !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 8px !important;
    line-height: 1.12 !important;
  }

  .hero p {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
  }

  .hero .btn {
    min-height: 40px;
    padding: 0 16px;
  }
}

@media (max-width: 640px) {
  header {
    padding: 12px 14px !important;
  }

  .logo img {
    height: 40px;
  }

  .products,
  .blog-grid,
  .shop-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .cart-summary {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-summary .actions,
  .ctas {
    flex-direction: column;
  }

  .cart-summary .actions .btn,
  .cart-summary .actions .btn-ghost,
  .ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .toolbar select,
  .tabs a,
  input,
  select,
  textarea {
    max-width: 100%;
  }

  .prose a,
  .crumb {
    overflow-wrap: anywhere;
  }
}
