/* Reset CSS */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

header {
  font-size: 1.25rem;
}

/* ===== WRAPPER ===== */
.wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background-color: #fff;
  border-bottom: 1px solid #f3f4f6;
  min-height: 60px;
}

/* ===== LOGO — truly centered ===== */
.logo a {
  display: flex;
  align-items: center;
}

/* ===== RIGHT SIDE — cart only, anchored right ===== */
.header-right {
  position: absolute;
  right: 16px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== DESKTOP NAV ===== */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 16px;
}

.header-nav__link {
  /* font-size: 0.9375rem; */
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(17, 24, 39, 0.65);
  text-decoration: none;
  padding: 7px 12px;
  white-space: nowrap;
  display: inline-block;
  position: relative;
  transition: color 0.2s;
}

.header-nav__link::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 12px;
  width: 0;
  height: 1px;
  background: var(--color-primary, #4B8A7C);
  transition: width 0.25s;
}

.header-nav__link:hover {
  color: #111827;
}

.header-nav__link:hover::after {
  width: calc(100% - 24px);
}

/* ===== CART BUTTON ===== */
sl-button.cart-button::part(base) {
  border: none;
  background-color: transparent;
  outline: none;
  position: relative;
  padding: 8px;
}

sl-button.cart-button::part(base):hover {
  background-color: rgba(0, 0, 0, 0.05);
  border: none;
}

/* ===== MENU BUTTON — always visible, anchored left ===== */
.menu {
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
}

sl-button.menu-button::part(base) {
  border: none;
  background-color: transparent;
  outline: none;
  padding: 8px;
}

sl-button.menu-button::part(base):hover {
  border: none;
  background-color: rgba(0, 0, 0, 0.05);
}

/* ===== DRAWER ===== */
sl-drawer.menu-drawer::part(panel) {
  background-color: rgba(0, 0, 0, 0.88);
  color: #fff;
}

sl-drawer.menu-drawer .sidebar {
  display: flex;
  align-items: start;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  margin-left: 10px;
}

sl-drawer::part(header) {
  font-weight: 600;
}

sl-drawer::part(body) {
  padding: 0;
}

.mainContent {
  width: 100%;
  margin-bottom: 32px;
}

.moreInformation {
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.moreInformation .jf-footer__link {
  font-size: 13px;
  opacity: 0.7;
}

/* ===== CART BADGE ===== */
.header-quantity {
  position: absolute;
  top: -8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #DC2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #fff;
  display: none;
  justify-content: center;
  align-items: center;
}

/* ===== MISC ===== */
.cart-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
}

.tip {
  padding: 8px;
}

sl-input.tip::part(form-control-label) {
  font-size: 16px;
  font-weight: 600;
}

/* ===== DESKTOP NAV — hidden on all sizes ===== */
.header-nav {
  display: none;
}
