/* Hernest-inspired header, hero & category styles for The Khatia */

@font-face {
  font-family: 'Linux Biolinum';
  src: url('/assets/fonts/linux-biolinum/LinuxBiolinum-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --site-font: 'Linux Biolinum', sans-serif, Arial;
  --font-primary: var(--site-font);
  --font-secondary: var(--site-font);
  --hernest-serif: var(--site-font);
  --hernest-sans: var(--site-font);
  --hero-title-font: var(--site-font);
  --header-nav-font: 'Poppins', sans-serif;
  --product-card-font: 'Poppins', sans-serif;
  --hernest-black: #1a1a1a;
  --hernest-brown: #4a3728;
  --hernest-sale: #c0392b;
  --hernest-border: #e0e0e0;
  --khatia-accent: #BB8D5B;
  --khatia-green: #07333B;
}

body {
  font-family: var(--site-font);
}

/* Legacy announcement bar styles live in adheader.ejs */
/* ── Header ── */
.hernest-header {
  background: #fff;
  border-bottom: 1px solid var(--hernest-border);
  margin-bottom: 0 !important;
}

/* Reset legacy theme padding that inflates header height */
.hernest-header .logo-area,
.hernest-header .hernest-header__logo {
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  width: auto !important;
}

.hernest-header .mlogo {
  height: auto !important;
  width: auto !important;
  margin-top: 0 !important;
}

.hernest-header .header-search-cart-area,
.hernest-header .hernest-header__icons {
  padding: 0 !important;
  margin: 0 !important;
}

.hernest-header .main-menu > li {
  padding: 0 !important;
  margin: 0 !important;
}

.hernest-header .header-icon {
  margin: 0 !important;
  padding: 0 !important;
}

.hernest-header .mobile-menu {
  margin: 0;
  padding: 0;
}

.hernest-header.is-sticky,
.hernest-header.header-sticky.is-sticky {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 0 !important;
  background: #fff !important;
  transform: translate3d(0, 0, 0);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
}

.hernest-header.is-sticky.is-sticky-animate:not(.is-header-hidden) {
  animation: hernestStickyIn 0.45s ease-out both;
  -webkit-animation: hernestStickyIn 0.45s ease-out both;
}

.hernest-header.is-sticky.is-header-hidden {
  transform: translate3d(0, -100%, 0);
  box-shadow: none;
  pointer-events: none;
}

@keyframes hernestStickyIn {
  from {
    opacity: 0;
    transform: translate3d(0, -28px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

#header-sticky-spacer {
  display: block;
  width: 100%;
  pointer-events: none;
}

.hernest-header__top {
  max-width: 100%;
  padding-right: 4% !important;
  padding-left: 4% !important;
  position: relative;
}

/* Top row: left | logo | right */
.hernest-header__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "left logo right";
  align-items: center;
  padding: 18px 0 12px;
  gap: 16px;
  min-height: 0;
}

.hernest-header__left {
  grid-area: left;
  justify-self: start;
  min-width: 0;
}

.hernest-header__logo {
  grid-area: logo;
  justify-self: center;
  text-align: center;
}

.hernest-header__icons {
  grid-area: right;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hernest-header__search {
  position: relative;
  width: 100%;
  max-width: 320px;
}

/* Desktop search — override legacy theme input styles */
.hernest-header__search--desktop {
  display: block !important;
  width: 100%;
  max-width: 320px;
  min-width: 240px;
}

.hernest-header__search--desktop .hernest-header__search-input,
.hernest-header__search--desktop input.search-input {
  width: 100% !important;
  max-width: none !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 44px 0 14px !important;
  margin: 0 !important;
  border: 1px solid var(--hernest-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--header-nav-font) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: normal !important;
  color: var(--hernest-black) !important;
  background: #fff !important;
  -webkit-appearance: none;
  appearance: none;
}

.hernest-header__search--desktop .hernest-header__search-input::placeholder,
.hernest-header__search--desktop input.search-input::placeholder {
  color: #888 !important;
  font-family: var(--header-nav-font) !important;
  font-size: 13px !important;
  opacity: 1;
}

.hernest-header__search--desktop .hernest-header__search-trigger {
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
  height: 40px;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--hernest-black);
}

.hernest-header__search--desktop .search-dropdown {
  right: 0 !important;
  left: 0 !important;
  top: calc(100% + 8px) !important;
  min-width: 100% !important;
  margin-bottom: 0;
  border-radius: 0;
  padding: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hernest-header__search--desktop .search-dropdown .search-input {
  display: none;
}

.hernest-header__search-input {
  width: 100%;
  border: 1px solid var(--hernest-border);
  border-radius: 0;
  padding: 7px 36px 7px 12px;
  font-family: var(--header-nav-font);
  font-size: 13px;
  color: #666;
  background: #fff;
  outline: none;
  height: 36px;
}

.hernest-header__search-input:focus {
  border-color: #999;
}

.hernest-header__search-trigger {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--hernest-black);
  font-size: 16px;
  padding: 0;
}

.hernest-header__logo img {
  max-height: 60px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.hernest-header__icons a {
  color: var(--hernest-black);
  font-size: 20px;
  text-decoration: none;
  position: relative;
  display: flex;
  align-items: center;
  width: auto;
  height: auto;
  line-height: 1;
}

.hernest-header__icons a:hover {
  color: var(--khatia-accent);
}

.hernest-header__icons .cart-quantity {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--khatia-accent);
  color: #fff;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--hernest-sans);
}

/* Bottom row: navigation */
.hernest-header__nav {
  border-top: 1px solid transparent;
  position: relative;
}

.hernest-header__nav .main-menu > li.category-item {
  position: static;
}

.hernest-header__nav ul.main-menu {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0 4%;
}

.hernest-header__nav .main-menu > li > a {
  color: var(--hernest-black) !important;
  font-family: var(--header-nav-font) !important;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px !important;
  line-height: 1.2 !important;
  text-decoration: none;
}

@media (max-width: 1260px) {
  .hernest-header__nav ul.main-menu {
    column-gap: 15px;
  }

  .hernest-header__nav .main-menu > li > a {
   font-size: 14px;
   padding:8px!important;
  }
}

.hernest-header__nav .main-menu > li > a:hover,
.hernest-header__nav .category-item:hover > a {
  color: var(--khatia-accent) !important;
}

/* ── Desktop mega menu — div panel + inner ul grid ── */
.hernest-header__nav .category-item > .mega-menu-panel {
  display: block !important;
  position: absolute;
  left: 50%;
  top: 100%;
  width: 100%;
  min-width: 0;
  max-height: none !important;
  overflow: visible !important;
  padding: 24px 32px 28px;
  margin: 0;
  background: #fff;
  border: 1px solid var(--hernest-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) !important;
  -webkit-transform: translateX(-50%) !important;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 1000;
}

.hernest-header__nav .category-item:hover > .mega-menu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) !important;
  -webkit-transform: translateX(-50%) !important;
}

.hernest-header__nav .mega-menu-panel > .mega-menu-list,
.hernest-header__nav .mega-menu-panel > .subcategories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 28px;
  list-style: none;
  max-width: 1100px;
  margin: auto;
  padding: 0;
}

.hernest-header__nav .mega-menu-panel .subcategory-item {
  position: static;
  list-style: none;
  margin: 0;
}

.hernest-header__nav .mega-menu-panel .subcategory-link {
  display: block;
  padding: 8px 0 !important;
  font-family: var(--header-nav-font) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  letter-spacing: 0;
  text-transform: none;
  color: #000000 !important;
  text-decoration: none;
  background: transparent;
  transition: color 0.15s ease;
  text-align: left;
}

.hernest-header__nav .mega-menu-panel .subcategory-link:hover {
  color: var(--khatia-accent) !important;
}

@media (max-width: 1200px) {
  .hernest-header__nav .category-item > .mega-menu-panel {
    width: min(820px, 94vw);
    max-width: min(820px, 94vw);
    padding: 20px 24px 24px;
  }

  .hernest-header__nav .mega-menu-panel > .mega-menu-list,
  .hernest-header__nav .mega-menu-panel > .subcategories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .hernest-header__nav .mega-menu-panel > .mega-menu-list,
  .hernest-header__nav .mega-menu-panel > .subcategories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hernest-header__nav .mega-menu-panel .subcategory-link span {
  display: block;
}

.hernest-header__nav .mega-menu-panel .supersubcategories {
  display: none !important;
}

.hernest-header__nav .main-menu > li.sale-link > a {
  color: var(--hernest-sale) !important;
}

.hernest-header__nav .dropdown {
  background: #fff;
  min-width: 0;
}

.hernest-header__nav .dropdown:not(.mega-menu-panel) {
  min-width: 220px;
}

.hernest-header__nav .dropdown a {
  color: var(--hernest-black) !important;
  font-family: var(--header-nav-font) !important;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.hernest-header__nav .dropdown a:hover {
  color: var(--khatia-accent) !important;
}

.hernest-header__nav .over,
.hernest-header__icons .over {
  color: var(--hernest-black) !important;
}

/* Search dropdown reposition */
.hernest-header .search-dropdown {
  right: 0;
  left: 0;
  top: calc(100% + 8px);
  min-width: 100%;
}

/* Mobile left actions: menu + search icon */
.hernest-header__mobile-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hernest-header__menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 21px;
  height: 20px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.hernest-header__menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--hernest-black);
}

.hernest-header__mobile-search-open,
.hernest-header__mobile-search-back {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--hernest-black);
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hernest-header__mobile-search-open {
  font-size: 19px;
}

.hernest-header__mobile-search-back {
  font-size: 24px;
  flex-shrink: 0;
  margin-right: 4px;
}

/* Mobile search expand panel */
.hernest-header__mobile-search-panel {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 0 12px;
}

.hernest-header.hernest-header--search-open .hernest-header__top {
  display: none;
}

.hernest-header.hernest-header--search-open .hernest-header__mobile-search-panel {
  display: flex;
}

.hernest-header__search--mobile {
  flex: 1;
  max-width: none;
}

.hernest-header__search--mobile .hernest-header__search-input {
  height: 44px;
  padding: 10px 40px 10px 14px;
  font-size: 14px;
  border-color: var(--hernest-black);
}

.hernest-header__search--mobile .search-dropdown {
  left: 0;
  right: 0;
  top: calc(100% + 6px);
}

/* ── Mobile sidebar drawer ── */
.hernest-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 10050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hernest-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 420px;
  height: 100%;
  height: 100dvh;
  background: #fff;
  z-index: 10051;
  transform: translateX(-100%);
  transition: transform 0.32s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

body.hernest-drawer-open {
  overflow: hidden;
}

body.hernest-drawer-open .hernest-drawer-overlay {
  opacity: 1;
  visibility: visible;
}

body.hernest-drawer-open .hernest-drawer {
  transform: translateX(0);
}

.hernest-drawer__header {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--hernest-border);
}

.hernest-drawer__close,
.hernest-drawer__search-open {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--hernest-black);
  font-size: 20px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.hernest-drawer__logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hernest-drawer__logo img {
  max-height: 45px;
  width: auto;
}

.hernest-drawer__quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--hernest-border);
}

.hernest-drawer__quick-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hernest-black);
  font-size: 22px;
  text-decoration: none;
  padding: 8px;
}

.hernest-drawer__quick-link:hover {
  color: var(--khatia-accent);
}

.hernest-drawer__quick-link--cart img {
  filter: brightness(0);
  width: 22px;
  height: 22px;
}

.hernest-drawer__nav {
  padding: 8px 0 24px;
}

.hernest-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hernest-drawer__item {
  border-bottom: 1px solid var(--hernest-border);
}

.hernest-drawer__link--solo,
.hernest-drawer__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  font-family: var(--header-nav-font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hernest-black);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.hernest-drawer__link--solo:hover,
.hernest-drawer__toggle:hover {
  color: var(--khatia-accent);
}

.hernest-drawer__toggle-icon {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 12px;
}

.hernest-drawer__item--accordion.is-open .hernest-drawer__toggle-icon {
  transform: rotate(45deg);
}

.hernest-drawer__sublist {
  list-style: none;
  margin: 0;
  padding: 0 0 12px;
  display: none;
}

.hernest-drawer__sublist li {
  margin-top: 2px !important;
  margin-bottom: 2px !important;
}
.hernest-drawer__item--accordion.is-open .hernest-drawer__sublist {
  display: block;
}

.hernest-drawer__sublist a {
  display: block;
  padding: 10px 20px 10px 28px;
  font-family: var(--header-nav-font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #444;
  text-decoration: none;
}

.hernest-drawer__sublist a:hover {
  color: var(--khatia-accent);
}

@media (max-width: 991px) {
  .hernest-header__inner {
    padding: 0 16px;
  }

  .hernest-header__top {
    grid-template-columns: 1fr auto 1fr;
    padding: 14px 0;
    gap: 8px;
  }

  .hernest-header__left {
    display: flex;
    align-items: center;
  }

  .hernest-header__search--desktop {
    display: none !important;
  }

  .hernest-header .mlogo {
    height: auto !important;
    width: auto !important;
    margin-top: 0 !important;
  }

  .hernest-header__logo img {
    max-height: 45px;
    max-width: min(140px, 42vw);
  }

  .hernest-header .header-icon {
    justify-content: flex-end !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
  }

  .hernest-header__icons {
    gap: 16px;
  }

  .hernest-header__nav {
    display: none;
  }
}

/* ── Hero Section ── */
.hernest-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.hernest-hero .hero-slider,
.hernest-hero .owl-carousel {
  margin: 0 !important;
}

/* Kill legacy fixed heights from theme responsive.css */
.hernest-hero .single-slider {
  position: relative;
  display: block !important;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  background: none !important;
  line-height: 0;
}

.hernest-hero .owl-stage-outer,
.hernest-hero .owl-height,
.hernest-hero .owl-stage,
.hernest-hero .owl-item {
  height: auto !important;
}

.hernest-hero .hero-slide-image {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  line-height: 0;
}

.hernest-hero .hero-slide-image img {
  width: 100%;
  height: auto;
  display: block;
  padding: 0 !important;
  vertical-align: top;
}

.hernest-hero .hero-slide-image .hero-slide-img--desktop {
  display: block;
}

.hernest-hero .hero-slide-image .hero-slide-img--mobile {
  display: none !important;
}

.hernest-hero .hero-slide-overlay,
.hernest-hero .hero-slider-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 48px 5%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.60) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  line-height: normal;
  pointer-events: none;
  max-width: none;
  margin: 0;
  text-align: left;
}

.hernest-hero .hero-slider-content > h1 {
  font-family: var(--hernest-sans);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.06em;
  
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.2;
  opacity: 1 !important;
  animation: none;
}

.hernest-hero .hero-slider-content > h2,
.hernest-hero .hero-slider-content .h-title {
  font-family: var(--hero-title-font);
  font-size: 60px !important;
  font-weight: 400;
  max-width: 74vh;
  color: #fff;
  margin: 0 0 28px;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1 !important;
  animation: none;
}

.hernest-hero .hero-slider-content > h2:empty {
  display: none;
  margin: 0;
}

.hernest-hero .hero-slider-content .slider-btn,
.hernest-hero .hero-slider-content .hero-slide-actions {
  pointer-events: auto;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hernest-hero .hero-slider-content .slider-btn a,
.hernest-hero .hero-slider-content .hero-slide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 28px !important;
  margin-top: 0 !important;
  line-height: 1 !important;
  background: #fff !important;
  color: var(--hernest-black) !important;
  font-family: var(--hernest-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 0;
  box-shadow: none !important;
  pointer-events: auto;
  opacity: 1 !important;
  animation: none;
  white-space: nowrap;
}

.hernest-hero .hero-slider-content .slider-btn a:hover,
.hernest-hero .hero-slider-content .hero-slide-btn:hover {
  background: var(--khatia-green) !important;
  color: #fff !important;
  text-decoration: none;
}

.hernest-hero .hero-slide-overlay a {
  pointer-events: auto;
}

.hernest-hero .owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  pointer-events: none;
}

.hernest-hero .owl-nav button {
  pointer-events: all;
  background: rgba(255, 255, 255, 0.85) !important;
  width: 44px;
  height: 44px;
  border-radius: 0 !important;
  color: var(--hernest-black) !important;
  font-size: 20px !important;
  margin: 0 !important;
  position: absolute;
}

.hernest-hero .owl-nav .owl-prev {
  left: 16px;
}

.hernest-hero .owl-nav .owl-next {
  right: 16px;
}

.hernest-hero .hero-slider {
  position: relative;
  line-height: 0;
}

.hernest-hero .owl-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  line-height: normal;
  z-index: 3;
}

@media (max-width: 991px) {
  .hernest-hero .hero-slide-image .hero-slide-img--desktop {
    display: none !important;
  }

  .hernest-hero .hero-slide-image .hero-slide-img--mobile {
    display: block !important;
  }

  .hernest-hero .hero-slide-overlay,
  .hernest-hero .hero-slider-content {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 24px;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.32);
  }

  .hernest-hero .hero-slider-content > h1 {
    font-size: 11px;
    letter-spacing: 0.18em;
    margin-bottom: 14px;
    max-width: 92%;
  }

  .hernest-hero .hero-slider-content > h2,
  .hernest-hero .hero-slider-content .h-title {
    font-size: clamp(30px, 8.5vw, 42px) !important;
    max-width: 92%;
    margin-bottom: 28px;
    line-height: 1.12;
  }

  .hernest-hero .hero-slider-content .slider-btn,
  .hernest-hero .hero-slider-content .hero-slide-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 280px;
    gap: 10px;
  }

  .hernest-hero .hero-slider-content .slider-btn a,
  .hernest-hero .hero-slider-content .hero-slide-btn {
    width: 100%;
    height: 48px;
    padding: 0 20px !important;
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .hernest-hero .hero-slide-overlay,
  .hernest-hero .hero-slider-content {
    padding: 28px 20px;
  }

  .hernest-hero .hero-slider-content > h1 {
    font-size: 10px;
    margin-bottom: 12px;
  }

  .hernest-hero .hero-slider-content > h2,
  .hernest-hero .hero-slider-content .h-title {
    font-size: clamp(26px, 7.5vw, 36px) !important;
    margin-bottom: 22px;
  }

  .hernest-hero .hero-slider-content .slider-btn a,
  .hernest-hero .hero-slider-content .hero-slide-btn {
    height: 44px;
    font-size: 10px;
  }
}

/* ── Shop By Category ── */
.hernest-categories {
  padding: 56px 0 48px;
  background: #fff;
}

.hernest-categories__heading {
  font-family: var(--site-font);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--hernest-black);
  margin: 0 0 40px;
}

.hernest-categories__wrapper {
  position: relative;
  padding: 0 4%;
}

.hernest-categories__track-container {
  overflow: hidden;
}

.hernest-categories__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.hernest-categories__track::-webkit-scrollbar {
  display: none;
}

.hernest-categories__card {
  flex: 0 0 18%;
  min-width: 160px;
  text-decoration: none;
  color: inherit;
}

.hernest-categories__card-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f5f5f5;
  margin-bottom: 12px;
}

.hernest-categories__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hernest-categories__card:hover .hernest-categories__card-image img {
  transform: scale(1.03);
}

.hernest-categories__card-label {
  font-family: var(--header-nav-font);
  font-size: 16px;
  font-weight: 400;
  color: var(--hernest-black);
  text-align: left;
  margin: 0;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  display: inline-block;
  transition: border-color 0.2s;
}

.hernest-categories__card:hover .hernest-categories__card-label {
  border-bottom-color: var(--hernest-black);
}

.hernest-categories__arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--hernest-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--hernest-black);
  z-index: 2;
  transition: opacity 0.2s ease, visibility 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hernest-categories__arrow--prev {
  left: calc(4% + 8px);
}

.hernest-categories__arrow--next {
  right: calc(4% + 8px);
}

.hernest-categories__arrow.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hernest-categories__arrow:hover {
  background: var(--hernest-black);
  color: #fff;
}

.hernest-categories__progress {
  margin: 24px 4% 0;
  height: 2px;
  background: #e8e8e8;
  position: relative;
}

.hernest-categories__progress-bar {
  height: 100%;
  background: var(--hernest-black);
  width: 20%;
  transition: width 0.15s, margin-left 0.15s;
  margin-left: 0;
}

@media (max-width: 1200px) {
  .hernest-categories__card {
    flex: 0 0 calc(25% - 12px);
  }
}

@media (max-width: 768px) {
  .hernest-categories {
    padding: 40px 0 32px;
  }

  .hernest-categories__card {
    flex: 0 0 calc(45% - 8px);
    min-width: 140px;
  }

  .hernest-categories__arrow {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

/* Header nav only — keep Poppins, rest of site uses Linux Biolinum */
.hernest-header__nav .main-menu > li > a,
.hernest-header__nav .dropdown a,
.hernest-header__nav .subcategory-link,
.mobile-menu .mean-nav ul li a {
  font-family: var(--header-nav-font) !important;
}

/* Product cards — tag overlay + Poppins title/price */
.single-product-area {
  position: relative;
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.single-product-area .product-img {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}

/* Move quality tag over image, top-left — cards without unified tag wrapper */
.single-product-area:not(:has(.product-image-tags)) .product-content > .single-product-reviews:first-child {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  margin: 0 !important;
  padding: 0;
  text-align: left;
}

.single-product-area:not(:has(.product-image-tags)) .product-content > .single-product-reviews:first-child .quality-badge,
.single-product-area:not(:has(.product-image-tags)) .product-content > .single-product-reviews:first-child .p-content {
  margin: 0 !important;
  display: inline-block;
}

/* Shop listing — stacked tags on image */
.product-image-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 8;
  display: flex;

  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}

@media (max-width: 768px) {
  .product-image-tags {
   flex-direction: column;
  }
}

.product-image-tags .sticker {
  position: static;
  top: auto;
  left: auto;
  margin: 0;
  min-width: 0;
  line-height: 1.3;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-image-tags .quality-badge {
  margin: 0 !important;
  padding: 4px 8px;
  font-size: 10px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}

.single-product-area .product-content {
  padding-top: 12px !important;
  text-align: left !important;
  position: relative;
  background: #fff;
  flex: 1 1 auto;
}

/* Soft subtle title */
.single-product-area .product-content > div > span > a,
.single-product-area .product-content > span > a,
.single-product-area .product-content > h4 > a,
.product-content > h4 > a {
  font-family: var(--product-card-font) !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  color: #1a1a1a !important;
  text-transform: none !important;
  letter-spacing: 0.01em;
  line-height: 1.45;
  text-decoration: none;
}

.single-product-area .product-content > div > span > a:hover,
.single-product-area .product-content > span > a:hover,
.single-product-area .product-content > h4 > a:hover {
  color: var(--khatia-accent) !important;
}

/* Price row — Poppins, keep existing colors */
.single-product-area .product-price,
.single-product-area .product-price span,
.product-price,
.product-price span {
  font-family: var(--product-card-font) !important;
}

.single-product-area .product-price .now-price,
.product-price .now-price {
  font-weight: 600 !important;
  font-size: 15px !important;
}

.single-product-area .product-price .regular-price,
.single-product-area .product-price .new-price,
.product-price .regular-price,
.product-price .new-price {
  font-weight: 400 !important;
  font-size: 13px !important;
}

.quality-badge {
  font-family: var(--product-card-font) !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em;
}

/* Shop listing sidebar — sticky while scrolling */
.shop-sidebar {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 120px;
  max-height: calc(100vh - 140px);
  overflow-y: auto !important;
  overflow-x: hidden;
  z-index: 10;
}

.shop-area > .container > .row > .col-lg-3 {
  align-self: stretch;
}

@media (max-width: 991px) {
  .shop-sidebar {
    position: relative !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .shop-area > .container > .row > .col-lg-3 {
    min-height: 0 !important;
  }
}


@media (max-width: 768px) {
  .single-product-area .product-content > div > span > a,
.single-product-area .product-content > span > a,
.single-product-area .product-content > h4 > a,
.product-content > h4 > a {
  font-size: 15px !important;
  line-height: 1 !important;
}

}

/* Product grids — 4 columns on desktop */
.products-grid,
.product-grid-view #product-container,
.product-grid-view .skeleton-loader {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 991px) {
  .products-grid,
  .product-grid-view #product-container,
  .product-grid-view .skeleton-loader {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }
}

/* Whole-card hover border (listing grids only) */
.products-grid .single-product-area,
.product-grid-view .single-product-area {
  padding: 2px;
  overflow: hidden;
  box-sizing: border-box;
}

.products-grid .single-product-area::before,
.product-grid-view .single-product-area::before {
  content: '';
  position: absolute;
  width: 220%;
  height: 220%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    #ffffff 0deg,
    #ffffff 18deg,
    #e1b382 32deg,
    #e1b382 68deg,
    #ffffff 198deg,
    #e1b382 212deg,
    #e1b382 248deg,
    #ffffff 360deg
  );
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 1.25s ease;
}

.products-grid .single-product-area:hover::before,
.product-grid-view .single-product-area:hover::before {
  opacity: 1;
  animation: khatiaProductBorderSpin 12.5s linear infinite;
}

.products-grid .single-product-area > .product-img,
.products-grid .single-product-area > .product-content,
.product-grid-view .single-product-area > .product-img,
.product-grid-view .single-product-area > .product-content {
  position: relative;
  z-index: 1;
  background: #fff;
}

/* Inner spacing — always on so content never sticks to card edge / hover border */
.products-grid .single-product-area > .product-content,
.product-grid-view .single-product-area > .product-content {
  padding: 12px 14px 16px !important;
}

@media (max-width: 576px) {
  .products-grid .single-product-area > .product-content,
  .product-grid-view .single-product-area > .product-content {
    padding: 10px 12px 14px !important;
  }
}

@keyframes khatiaProductBorderSpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.single-product-area .product-img > a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  background: #fff;
  overflow: hidden;
}

.single-product-area .product-img > a > img,
.single-product-area .product-img img.first-img,
.single-product-area .product-img img.hover-img {
  object-fit: contain !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  padding: 6px;
  box-sizing: border-box;
  transition: opacity 0.4s ease;
}

.single-product-area .product-img > a > img.first-img,
.single-product-area .product-img img.first-img {
  position: relative;
  display: block;
  opacity: 1;
  z-index: 1;
}

.single-product-area .product-img > a > img.hover-img,
.single-product-area .product-img img.hover-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  z-index: 2;
}

.single-product-area:hover .product-img > a > img.first-img,
.single-product-area:hover .product-img img.first-img {
  opacity: 0;
}

.single-product-area:hover .product-img > a > img.hover-img,
.single-product-area:hover .product-img img.hover-img {
  opacity: 1;
}

/* Keep image visible when there is no hover image */
.single-product-area:hover .product-img > a:not(:has(.hover-img)) > img.first-img,
.single-product-area:hover .product-img > a:not(:has(.hover-img)) img.first-img {
  opacity: 1;
}

.single-product-area .product-img .product-image-tags,
.single-product-area .product-img .wishlist-icon-top-right,
.single-product-area .product-img > .sticker,
.single-product-area .product-img .product-action {
  z-index: 4;
}