/* Reset CSS */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

header {
  font-size: 1.25rem;
}

/* ===== WRAPPER ===== */
.wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 8px 48px;
  background-color: #fff;
  gap: 16px;
}

/* ===== LOGO ===== */
.logo a {
  display: flex;
  align-items: center;
}

/* ===== RIGHT SIDE ===== */
.header-right {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

/* ===== 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 (mobile only) ===== */
.menu {
  display: none;
}

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: var(--color-primary);
  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;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .wrapper {
    padding: 8px 16px;
    gap: 8px;
  }

  /* Show hamburger on mobile */
  .menu {
    display: block;
    flex-shrink: 0;
  }

  /* Hide desktop nav on mobile */
  .header-nav {
    display: none;
  }

  /* Logo centered on mobile */
  .logo {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .header-right {
    margin-left: 0;
    flex-shrink: 0;
  }
}
