/* ============================================================
   Site header — navbar, search, category nav, mobile drawer
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #000;
  color: #fff;
}

.site-header-topbar {
  background: #000;
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 16px;
}

.site-brand {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.4px;
  white-space: nowrap;
  line-height: 1.2;
}

.site-brand:hover {
  color: #fff;
}

/* Search */
.site-search {
  flex: 1;
  min-width: 120px;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  height: 40px;
}

.site-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  color: #111;
  background: transparent;
}

.site-search input::placeholder {
  color: #6c6c6c;
}

.site-search button {
  width: 48px;
  height: 40px;
  border: 0;
  background: #fff;
  color: #000;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-search button:hover {
  background: #f1f1f1;
}

/* Header actions */
.site-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-header-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #fff;
  padding: 4px 10px;
  font-size: 18px;
  text-decoration: none;
}

.site-header-icon:hover {
  color: #fff;
  opacity: 0.85;
}

.site-header-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.site-badge {
  position: absolute;
  top: 0;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #ff0;
  color: #000;
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  display: none;
}

.site-badge.show {
  display: block;
}

/* Category nav */
.site-catnav {
  background: #141414;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-catnav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-catnav-inner::-webkit-scrollbar {
  display: none;
}

.site-catnav a {
  color: #d8d8d8;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  white-space: nowrap;
  border-radius: 3px;
  text-decoration: none;
}

.site-catnav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.site-catnav-home {
  font-size: 14px !important;
  padding: 8px 10px !important;
}

/* Hamburger (mobile only) */
.site-hamburger {
  display: none;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
}

.site-hamburger:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Drawer */
.site-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.site-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  animation: site-fade 0.2s ease;
}

.site-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 84vw;
  background: #fff;
  color: #111;
  overflow-y: auto;
  animation: site-slide 0.22s ease;
  box-shadow: 2px 0 18px rgba(0, 0, 0, 0.3);
}

.site-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #eee;
  background: #000;
  color: #fff;
}

.site-drawer-head strong {
  font-size: 17px;
  letter-spacing: 0.3px;
}

.site-drawer-close {
  width: 32px;
  height: 32px;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
}

.site-drawer-body {
  padding: 8px 0 24px;
}

.site-drawer-section {
  padding: 14px 16px 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #777;
}

.site-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  color: #222;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.site-drawer-link i {
  width: 18px;
  color: #555;
  font-size: 14px;
}

.site-drawer-link:hover {
  background: #f5f5f5;
  color: #000;
}

.site-drawer-empty {
  padding: 6px 16px;
  color: #888;
  font-size: 13px;
}

@keyframes site-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes site-slide {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 767px) {
  .site-hamburger {
    display: flex;
  }

  .site-header-inner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
  }

  .site-brand {
    font-size: 19px;
    margin-right: auto;
  }

  .site-search {
    order: 3;
    flex-basis: 100%;
    height: 38px;
  }

  .site-search button {
    height: 38px;
  }

  .site-header-icon {
    padding: 4px 7px;
  }

  .site-header-label {
    display: none;
  }

  .site-catnav-inner {
    padding: 0 8px;
  }

  .site-catnav a {
    padding: 7px 11px;
    font-size: 12.5px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .site-header-inner {
    gap: 10px;
    padding: 10px 14px;
  }

  .site-brand {
    font-size: 20px;
  }

  .site-header-label {
    font-size: 10px;
  }
}


/* AL storefront header refresh */
.al-header { background:#111; box-shadow:0 1px 0 rgba(0,0,0,.18); }
.al-header .site-header-inner { max-width:1400px; padding:12px 18px; gap:18px; }
.al-brand { display:flex; align-items:center; gap:8px; font-size:20px; letter-spacing:.2px; }
.al-brand-mark { width:34px; height:34px; border-radius:9px; display:inline-flex; align-items:center; justify-content:center; background:#fff; color:#111; font-size:15px; }
.al-search { height:42px; border-radius:8px; max-width:680px; margin:0 auto; }
.al-search > i { color:#777; padding-left:14px; font-size:13px; }
.al-search input { padding-left:9px; }
.al-actions { gap:2px; }
.al-actions .site-header-icon { padding:4px 9px; }
.al-cart-icon .site-badge.show { display:flex; }
.al-catnav { background:#fff; border-top:1px solid #292929; border-bottom:1px solid #e5e5e5; }
.al-catnav .site-catnav-inner { max-width:1400px; }
.al-catnav a { color:#333; padding:9px 13px; }
.al-catnav a:hover { color:#111; background:#f4f4f4; }
.al-catnav-home { color:#111 !important; }
@media (max-width:700px) {
  .al-header .site-header-inner { padding:9px 10px; gap:8px; }
  .al-header .site-hamburger { display:flex; }
  .al-brand { font-size:15px; }
  .al-brand-mark { width:30px; height:30px; }
  .al-search { order:4; flex-basis:100%; width:100%; max-width:none; margin:0; }
  .al-header .site-header-inner { flex-wrap:wrap; }
  .al-actions { margin-left:auto; }
  .al-actions .site-header-icon { padding:3px 5px; font-size:16px; }
  .al-actions .site-header-label { display:none; }
  .al-catnav { display:none; }
}
/* =========================================================
   AFGHANNUTS NEW HEADER
   Added for .an-* header
========================================================= */

.an-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.an-head-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 9px 18px 7px;
}

.an-top-row {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.an-menu {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
}

.an-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    color: #111 !important;
    flex-shrink: 0;
}

.an-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

.an-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.an-brand-text strong {
    font-size: 20px;
    font-weight: 800;
    color: #111;
}

.an-brand-text small {
    margin-top: 4px;
    font-size: 8px;
    color: #777;
    letter-spacing: 1px;
}

.an-top-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.an-top-nav a {
    color: #222 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
}

.an-top-nav a:hover {
    color: #388e3c !important;
}

.an-delivery {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    color: #333;
    font-size: 13px;
    font-weight: 600;
}

.an-delivery i {
    font-size: 17px;
}

.an-cart-top {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #111 !important;
    text-decoration: none !important;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
}

.an-cart-top i {
    font-size: 18px;
}

.an-cart-top b {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #111;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.an-search {
    width: 100%;
    height: 40px;
    margin-top: 7px;
    display: flex;
    align-items: center;
    border: 1px solid #aaa;
    border-radius: 21px;
    background: #fff;
    overflow: hidden;
}

.an-search > i {
    margin-left: 14px;
    color: #777;
    font-size: 13px;
}

.an-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0 !important;
    outline: 0 !important;
    padding: 0 12px;
    font-size: 13px;
    background: transparent !important;
}

.an-search button {
    width: 40px;
    height: 40px;
    border: 0;
    background: #f3f3f3;
    color: #333;
    cursor: pointer;
}

.an-search button:hover {
    background: #111;
    color: #fff;
}

.an-nav {
    width: 100%;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.an-nav a {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #444 !important;
    text-decoration: none !important;
    font-size: 10px;
}

.an-nav a i {
    font-size: 10px;
}

.an-nav a:hover {
    color: #388e3c !important;
}

.an-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.an-alert {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 7px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 14px;
}


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

@media (max-width: 900px) {

    .an-top-nav {
        gap: 10px;
    }

    .an-delivery {
        display: none;
    }
}


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

@media (max-width: 768px) {

    .an-head-inner {
        padding: 6px 10px;
    }

    .an-top-row {
        min-height: 40px;
        gap: 7px;
    }

    .an-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .an-brand {
        gap: 5px;
        min-width: 0;
    }

    .an-brand-mark {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .an-brand-text strong {
        font-size: 15px;
    }

    .an-brand-text small {
        font-size: 6px;
        letter-spacing: .6px;
    }

    .an-top-nav {
        display: none;
    }

    .an-cart-top {
        margin-left: auto;
    }

    .an-cart-top span {
        display: none;
    }

    .an-cart-top i {
        font-size: 18px;
    }

    .an-search {
        height: 37px;
        margin-top: 6px;
    }

    .an-search button {
        width: 37px;
        height: 37px;
    }

    .an-nav {
        margin-top: 4px;
        padding-top: 4px;
    }

    .an-nav a {
        flex-direction: column;
        gap: 2px;
        font-size: 9px;
    }

    .an-nav a i {
        font-size: 12px;
    }
}


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

@media (max-width: 480px) {

    .an-brand-text strong {
        font-size: 14px;
    }

    .an-brand-mark {
        width: 30px;
        height: 30px;
    }

    .an-page {
        width: 100%;
    }
}
