/* ==========================================================================
   BEAUTIFYKITCHEN — NAVIGATION SYSTEM
   Design tokens: warm white ground, ink charcoal type, sage-green primary
   accent, brass secondary accent used sparingly for hover/active states.
   Fonts: Fraunces (display/editorial) + Inter (utility/body).
   ========================================================================== */

:root{
  /* ---- Color ---- */
  --bk-white:        #ffffff;
  --bk-cream:        #fbfaf7;
  --bk-ink:          #1e2420;
  --bk-ink-soft:     #4a534d;
  --bk-border:       #e7e4dd;
  --bk-sage:         #3f5a4d;
  --bk-sage-dark:    #2c4038;
  --bk-brass:        #b9873f;
  --bk-shadow:       0 12px 32px rgba(30, 36, 32, 0.08);
  --bk-shadow-soft:  0 4px 14px rgba(30, 36, 32, 0.06);

  /* ---- Type ---- */
  --bk-font-display: "Fraunces", Georgia, serif;
  --bk-font-body:    "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* ---- Layout ---- */
  --bk-header-h-desktop: 128px;
  --bk-header-h-mobile: 64px;
  --bk-catbar-h: 44px;
  --bk-radius-sm: 6px;
  --bk-radius-md: 12px;
  --bk-radius-full: 999px;
  --bk-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --bk-speed: 300ms;
}

*{ box-sizing: border-box; }
body{
  margin: 0;
  font-family: var(--bk-font-body);
  color: var(--bk-ink);
  background: var(--bk-white);
  -webkit-font-smoothing: antialiased;
}
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg{ width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Visible keyboard focus everywhere in the nav */
.bk-header a:focus-visible,
.bk-header button:focus-visible,
.bk-header label:focus-visible,
.bk-header input:focus-visible,
.bk-drawer a:focus-visible,
.bk-drawer summary:focus-visible{
  outline: 2px solid var(--bk-sage);
  outline-offset: 2px;
  border-radius: var(--bk-radius-sm);
}

/* ==========================================================================
   HEADER — sticky shell
   ========================================================================== */
.bk-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bk-white);
  border-bottom: 1px solid var(--bk-border);
}

.bk-header__top{
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 32px 8px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

/* ---- Logo ---- */
.bk-logo{
  grid-column: 2;
  justify-self: center;
  font-family: var(--bk-font-display);
  font-weight: 500;
  font-size: 1.75rem;
  letter-spacing: 0.01em;
  color: var(--bk-ink);
  white-space: nowrap;
}
.bk-logo__accent{ color: var(--bk-sage); font-style: italic; }

/* ---- Desktop search (left) ---- */
.bk-header__search{ grid-column: 1; justify-self: start; width: 100%; max-width: 340px; }
.bk-search{ position: relative; display: flex; align-items: center; }
.bk-search__icon{
  position: absolute; left: 16px; width: 16px; height: 16px;
  color: var(--bk-ink-soft); pointer-events: none;
}
.bk-search__input{
  width: 100%;
  padding: 11px 16px 11px 42px;
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-full);
  background: var(--bk-cream);
  font-family: var(--bk-font-body);
  font-size: 0.9rem;
  color: var(--bk-ink);
  transition: border-color var(--bk-speed) var(--bk-ease), box-shadow var(--bk-speed) var(--bk-ease);
}
.bk-search__input::placeholder{ color: var(--bk-ink-soft); }
.bk-search__input:focus{
  outline: none;
  border-color: var(--bk-sage);
  box-shadow: 0 0 0 3px rgba(63, 90, 77, 0.12);
}

/* ---- Desktop auth buttons (right) ---- */
.bk-header__actions{ grid-column: 3; justify-self: end; display: flex; gap: 10px; }
.bk-btn{
  padding: 10px 22px;
  border-radius: var(--bk-radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background var(--bk-speed) var(--bk-ease), color var(--bk-speed) var(--bk-ease), border-color var(--bk-speed) var(--bk-ease);
}
.bk-btn--ghost{ border: 1px solid var(--bk-border); color: var(--bk-ink); }
.bk-btn--ghost:hover{ border-color: var(--bk-ink); }
.bk-btn--solid{ background: var(--bk-sage); color: var(--bk-white); }
.bk-btn--solid:hover{ background: var(--bk-sage-dark); }

/* ---- Mobile-only controls (hidden on desktop) ---- */
.bk-hamburger,
.bk-icon-btn--mobile-search,
.bk-mobile-search{ display: none; }

/* ==========================================================================
   DESKTOP MAIN NAVIGATION + MEGA MENU
   ========================================================================== */
.bk-nav{
  border-top: 1px solid var(--bk-border);
  max-width: 1440px;
  margin: 0 auto;
}
.bk-nav__list{
  display: flex;
  justify-content: center;
  gap: 48px;
}
.bk-nav__item{ position: relative; }

.bk-nav__link{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 4px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--bk-ink);
  position: relative;
}
.bk-nav__link::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  height: 2px;
  background: var(--bk-brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--bk-speed) var(--bk-ease);
}
.bk-caret{ width: 10px; height: 10px; transition: transform var(--bk-speed) var(--bk-ease); }

.bk-nav__item:hover .bk-nav__link::after,
.bk-nav__item:focus-within .bk-nav__link::after{ transform: scaleX(1); }
.bk-nav__item:hover .bk-caret,
.bk-nav__item:focus-within .bk-caret{ transform: rotate(180deg); }

/* ---- Mega menu panel ---- */
.bk-mega{
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  width: max(720px, 100%);
  background: var(--bk-white);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-md);
  box-shadow: var(--bk-shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--bk-speed) var(--bk-ease),
              transform var(--bk-speed) var(--bk-ease),
              visibility var(--bk-speed) var(--bk-ease);
  z-index: 30;
}

/* Only one open at a time is a natural consequence of :hover/:focus-within —
   each menu is scoped to its own <li>, so hovering a new item reveals only
   that item's panel while the previous one loses :hover and fades out. */
.bk-nav__item:hover > .bk-mega,
.bk-nav__item:focus-within > .bk-mega{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.bk-mega__inner{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 36px 8px;
}
.bk-mega__col{
  padding: 0 28px;
  border-right: 1px solid var(--bk-border);
}
.bk-mega__col:last-child{ border-right: none; }

.bk-mega__heading{
  font-family: var(--bk-font-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--bk-ink);
}
.bk-mega__list{ display: flex; flex-direction: column; gap: 11px; }
.bk-mega__list a{
  font-size: 0.88rem;
  color: var(--bk-ink-soft);
  background-image: linear-gradient(var(--bk-brass), var(--bk-brass));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size var(--bk-speed) var(--bk-ease), color var(--bk-speed) var(--bk-ease);
  padding-bottom: 2px;
}
.bk-mega__list a:hover{ color: var(--bk-ink); background-size: 100% 1px; }

.bk-mega__col--promo{
  background: var(--bk-cream);
  border-radius: var(--bk-radius-sm);
  padding: 24px 22px;
  align-self: start;
}
.bk-mega__eyebrow{
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bk-sage);
  font-weight: 700;
  margin: 0 0 10px;
}
.bk-mega__promo-title{
  font-family: var(--bk-font-display);
  font-size: 1.1rem;
  line-height: 1.35;
  margin: 0 0 16px;
}
.bk-mega__promo-link{ font-size: 0.85rem; font-weight: 600; color: var(--bk-sage); }
.bk-mega__promo-link:hover{ color: var(--bk-sage-dark); }

/* ==========================================================================
   MOBILE CATEGORY BAR (sticky strip under header on small screens)
   ========================================================================== */
.bk-catbar{
  display: none;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-top: 1px solid var(--bk-border);
  position: sticky;
  top: var(--bk-header-h-mobile);
  background: var(--bk-white);
  z-index: 35;
}
.bk-catbar::-webkit-scrollbar{ display: none; }
.bk-catbar__item{
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bk-ink-soft);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-full);
  white-space: nowrap;
  transition: background var(--bk-speed) var(--bk-ease), color var(--bk-speed) var(--bk-ease), border-color var(--bk-speed) var(--bk-ease);
}
.bk-catbar__item.is-active,
.bk-catbar__item:hover{
  background: var(--bk-sage);
  border-color: var(--bk-sage);
  color: var(--bk-white);
}

/* ==========================================================================
   MOBILE DRAWER + OVERLAY (checkbox-hack driven, no JS)
   ========================================================================== */
.bk-toggle-input{ position: absolute; opacity: 0; pointer-events: none; }

.bk-overlay{
  position: fixed; inset: 0;
  background: rgba(30, 36, 32, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--bk-speed) var(--bk-ease), visibility var(--bk-speed) var(--bk-ease);
  z-index: 49;
}

.bk-drawer{
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(360px, 88vw);
  background: var(--bk-white);
  z-index: 50;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--bk-speed) var(--bk-ease);
  box-shadow: var(--bk-shadow);
  overflow-y: auto;
}

/* Checked state opens overlay + drawer, and (via :has) locks page scroll */
#mobile-menu-toggle:checked ~ .bk-overlay{ opacity: 1; visibility: visible; }
#mobile-menu-toggle:checked ~ .bk-drawer{ transform: translateX(0); }
body:has(#mobile-menu-toggle:checked){ overflow: hidden; }

.bk-drawer__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--bk-border);
}
.bk-logo--drawer{ font-size: 1.35rem; }
.bk-drawer__close{
  font-size: 1.6rem;
  line-height: 1;
  padding: 4px 10px;
  color: var(--bk-ink-soft);
}
.bk-drawer__close:hover{ color: var(--bk-ink); }

.bk-search--drawer{ padding: 16px 20px; }

/* ---- Accordion ---- */
.bk-accordion{ padding: 4px 20px 20px; flex: 1; }
.bk-accordion__item{
  border-bottom: 1px solid var(--bk-border);
}
.bk-accordion__trigger{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.bk-accordion__trigger::-webkit-details-marker{ display: none; }
.bk-accordion__trigger .bk-caret{ transition: transform var(--bk-speed) var(--bk-ease); }
.bk-accordion__item[open] .bk-accordion__trigger .bk-caret{ transform: rotate(180deg); }

.bk-accordion__panel{
  padding: 0 4px 18px;
  animation: bk-accordion-in var(--bk-speed) var(--bk-ease);
}
@keyframes bk-accordion-in{
  from{ opacity: 0; transform: translateY(-6px); }
  to{ opacity: 1; transform: translateY(0); }
}
.bk-accordion__heading{
  font-family: var(--bk-font-display);
  font-size: 0.88rem;
  font-weight: 600;
  margin: 14px 0 8px;
  color: var(--bk-sage);
}
.bk-accordion__panel ul{ display: flex; flex-direction: column; gap: 10px; }
.bk-accordion__panel a{ font-size: 0.88rem; color: var(--bk-ink-soft); }
.bk-accordion__panel a:hover{ color: var(--bk-ink); }

.bk-drawer__footer{
  display: flex;
  gap: 10px;
  padding: 18px 20px;
  border-top: 1px solid var(--bk-border);
}
.bk-drawer__footer .bk-btn{ flex: 1; text-align: center; }

/* ==========================================================================
   RESPONSIVE BREAKPOINT — below 992px switch to mobile chrome
   ========================================================================== */
@media (max-width: 991px){

  .bk-header__top{
    grid-template-columns: auto 1fr auto;
    padding: 14px 16px;
    height: var(--bk-header-h-mobile);
  }

  .bk-header__search,
  .bk-header__actions{ display: none; }

  .bk-hamburger{
    grid-column: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 24px;
    height: 24px;
    cursor: pointer;
  }
  .bk-hamburger__bar{
    display: block;
    height: 2px;
    width: 100%;
    background: var(--bk-ink);
    border-radius: 2px;
  }

  .bk-logo{ grid-column: 2; font-size: 1.3rem; }

  .bk-icon-btn--mobile-search{
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    cursor: pointer;
    color: var(--bk-ink);
  }

  /* Mobile expandable search row */
  .bk-mobile-search{
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--bk-speed) var(--bk-ease);
  }
  #mobile-search-toggle:checked ~ .bk-header .bk-mobile-search,
  .bk-header:has(#mobile-search-toggle:checked) .bk-mobile-search{
    max-height: 80px;
  }
  .bk-search--mobile{ padding: 0 16px 14px; }
  .bk-mobile-search__close{
    position: absolute; right: 30px; top: 50%; transform: translateY(-50%);
    font-size: 1.3rem; color: var(--bk-ink-soft); cursor: pointer;
  }

  /* Hide desktop nav + mega menus entirely; drawer/accordion replaces them */
  .bk-nav{ display: none; }

  .bk-catbar{ display: flex; }
}

@media (min-width: 992px){
  .bk-drawer, .bk-overlay, .bk-catbar{ display: none; }
}

/*==================================================
PREMIUM FOOTER
BeautifyKitchen
==================================================*/

.bk-footer{
    background:#1f2b24;
    color:#f5f5f5;
    margin-top:80px;
}

.bk-footer__container{
    max-width:1400px;
    margin:auto;
    padding:70px 20px;
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap:50px;
}

.bk-footer__logo{
    font-size:34px;
    font-weight:700;
    color:#fff;
    text-decoration:none;
    display:inline-block;
    margin-bottom:20px;
}

.bk-footer__logo span{
    color:#4CAF50;
}

.bk-footer__brand p{
    color:#d6d6d6;
    line-height:1.8;
    margin-bottom:25px;
    font-size:15px;
}

.bk-footer__trust{
    list-style:none;
    padding:0;
    margin:0 0 25px;
}

.bk-footer__trust li{
    margin-bottom:12px;
    color:#ececec;
    font-size:15px;
}

.bk-footer__social{
    display:flex;
    gap:15px;
}

.bk-footer__social a{
    width:42px;
    height:42px;
    border-radius:50%;
    background:#2f3e35;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    text-decoration:none;
    transition:.3s;
    font-size:18px;
}

.bk-footer__social a:hover{
    background:#4CAF50;
    transform:translateY(-4px);
}

.bk-footer__links h3{
    color:#fff;
    font-size:22px;
    margin-bottom:22px;
}

.bk-footer__links ul{
    list-style:none;
    padding:0;
    margin:0;
}

.bk-footer__links li{
    margin-bottom:14px;
}

.bk-footer__links a{
    color:#d5d5d5;
    text-decoration:none;
    transition:.3s;
    font-size:15px;
}

.bk-footer__links a:hover{
    color:#4CAF50;
    padding-left:6px;
}

.bk-footer__bottom{
    border-top:1px solid rgba(255,255,255,.12);
}

.bk-footer__bottom-container{
    max-width:1400px;
    margin:auto;
    padding:22px 20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:15px;
}

.bk-footer__bottom p{
    margin:0;
    color:#cfcfcf;
    font-size:14px;
}

.bk-footer__bottom nav{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.bk-footer__bottom nav a{
    color:#d5d5d5;
    text-decoration:none;
    font-size:14px;
    transition:.3s;
}

.bk-footer__bottom nav a:hover{
    color:#4CAF50;
}

/*=================================
TABLET
=================================*/

@media(max-width:992px){

.bk-footer__container{
    grid-template-columns:1fr 1fr;
    gap:40px;
}

}

/*=================================
MOBILE
=================================*/

@media(max-width:768px){

.bk-footer__container{
    grid-template-columns:1fr;
    text-align:center;
}

.bk-footer__social{
    justify-content:center;
}

.bk-footer__bottom-container{
    flex-direction:column;
    text-align:center;
}

.bk-footer__bottom nav{
    justify-content:center;
}

}