/* =========================================================
   AESTHETIC PLEASURE
   OpenCart 4.1.0.4
   Header stylesheet

   San de More Bold:
   Upload your licensed webfont to:
   catalog/view/stylesheet/fonts/SanDeMore-Bold.woff2
   ========================================================= */

@font-face {
  font-family: "San de More";
  src: url("fonts/SanDeMore-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ap-header-bg: #ffffff;
  --ap-header-bg-soft: #fbfaf8;
  --ap-header-text: #202020;
  --ap-header-muted: #77716b;
  --ap-header-accent: #a68c67;
  --ap-header-line: rgba(32, 32, 32, 0.10);
  --ap-header-line-soft: rgba(32, 32, 32, 0.06);
  --ap-header-hover: #f8f5f0;
  --ap-header-shadow: 0 18px 46px rgba(0, 0, 0, 0.08);
}

/* ---------------------------------------------------------
   GENERAL HEADER
   --------------------------------------------------------- */

.ap-site-header {
  position: relative;
  z-index: 1030;
  background: var(--ap-header-bg);
  border-bottom: 1px solid var(--ap-header-line-soft);
}

.ap-header-inner {
  position: relative;
  min-height: 108px;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
  align-items: center;
  gap: 24px;
}

/* ---------------------------------------------------------
   LEFT: CURRENCY + LANGUAGE
   --------------------------------------------------------- */

.ap-locale {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.ap-locale-item {
  margin: 0;
  padding: 0;
}

.ap-locale a,
.ap-locale button,
.ap-locale .dropdown-toggle {
  color: var(--ap-header-muted);
  background: transparent;
  border: 0;
  box-shadow: none;
  text-decoration: none;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.ap-locale a:hover,
.ap-locale button:hover,
.ap-locale .dropdown-toggle:hover,
.ap-locale a:focus,
.ap-locale button:focus,
.ap-locale .dropdown-toggle:focus {
  color: var(--ap-header-accent);
}

/* ---------------------------------------------------------
   CENTRE: BRAND
   --------------------------------------------------------- */

.ap-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-width: 0;
}

#logo.ap-logo {
  margin: 0;
  padding: 0;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#logo.ap-logo .ap-logo-wordmark {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: #000000;
  text-decoration: none;
  white-space: nowrap;
  font-family: "San de More", Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: none;
  transition: opacity 0.2s ease;
}

#logo.ap-logo .ap-logo-wordmark:hover,
#logo.ap-logo .ap-logo-wordmark:focus {
  color: #000000;
  text-decoration: none;
  opacity: 0.78;
  outline: none;
}

/* ---------------------------------------------------------
   RIGHT: HEADER ACTIONS
   --------------------------------------------------------- */

.ap-header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ap-header-actions li {
  margin: 0;
  padding: 0;
}

.ap-icon-link,
.ap-icon-button {
  position: relative;
  width: 30px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  color: var(--ap-header-text);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.ap-icon-link svg,
.ap-icon-button svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.ap-icon-link:hover,
.ap-icon-button:hover,
.ap-icon-link:focus,
.ap-icon-button:focus {
  color: var(--ap-header-accent);
  transform: translateY(-1px);
  outline: none;
  box-shadow: none;
}

.ap-icon-button.dropdown-toggle::after {
  display: none;
}

/* ---------------------------------------------------------
   ACCOUNT DROPDOWN
   --------------------------------------------------------- */

.ap-account-dropdown {
  position: relative;
}

.ap-account-menu {
  min-width: 194px;
  margin-top: 0;
  padding: 12px 0;
  background: #ffffff;
  border: 1px solid var(--ap-header-line);
  border-radius: 0;
  box-shadow: var(--ap-header-shadow);
}

.ap-account-menu .dropdown-item {
  padding: 9px 22px;
  color: var(--ap-header-text);
  background: transparent;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.ap-account-menu .dropdown-item:hover,
.ap-account-menu .dropdown-item:focus {
  color: var(--ap-header-accent);
  background: var(--ap-header-hover);
}

@media (min-width: 992px) {
  .ap-account-dropdown:hover > .dropdown-menu {
    display: block;
  }
}

/* ---------------------------------------------------------
   SEARCH PANEL
   --------------------------------------------------------- */

.ap-search-panel {
  position: relative;
  z-index: 1025;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background: var(--ap-header-bg-soft);
  border-top: 0 solid var(--ap-header-line-soft);
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    border-width 0.25s ease;
}

.ap-search-panel.is-open {
  max-height: 130px;
  opacity: 1;
  border-top-width: 1px;
}

.ap-search-panel-inner {
  max-width: 620px;
  margin: 0 auto;
  padding: 22px 15px 24px;
}

.ap-search-panel #search {
  margin: 0;
}

.ap-search-panel #search .form-control {
  height: 46px;
  border: 0;
  border-bottom: 1px solid rgba(32, 32, 32, 0.22);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ap-header-text);
  font-size: 14px;
  font-weight: 400;
}

.ap-search-panel #search .form-control:focus {
  border-bottom-color: var(--ap-header-accent);
  box-shadow: none;
}

.ap-search-panel #search .btn {
  min-width: 48px;
  border: 0;
  border-bottom: 1px solid rgba(32, 32, 32, 0.22);
  border-radius: 0;
  background: transparent;
  color: var(--ap-header-text);
  box-shadow: none;
}

.ap-search-panel #search .btn:hover,
.ap-search-panel #search .btn:focus {
  color: var(--ap-header-accent);
  border-bottom-color: var(--ap-header-accent);
  background: transparent;
}

/* ---------------------------------------------------------
   OPENCART CART ENGINE
   Keep {{ cart }} in DOM for native OpenCart functionality,
   but do not show the standard cart box in the new design.
   --------------------------------------------------------- */

.ap-cart-engine {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------------------------------------------------------
   CATEGORY NAVIGATION
   Uses OpenCart's native {{ menu }} output.
   Configure the four top-level categories in Admin:
   Advanced Skincare / Mineral Makeup / Accessories / Gift Sets
   --------------------------------------------------------- */

.ap-category-navigation {
  position: relative;
  z-index: 1020;
  background: #ffffff;
  border-bottom: 1px solid var(--ap-header-line);
}

.ap-category-navigation #menu {
  margin: 0;
  padding: 0;
  min-height: 54px;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.ap-category-navigation #menu .container,
.ap-category-navigation #menu .container-fluid {
  max-width: 1320px;
  margin: 0 auto;
}

.ap-category-navigation #menu .navbar-header,
.ap-category-navigation #menu .navbar-toggler {
  border: 0;
  box-shadow: none;
}

.ap-category-navigation #menu .navbar-nav {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(22px, 4vw, 62px);
  margin: 0 auto;
}

.ap-category-navigation #menu .nav-item {
  margin: 0;
}

.ap-category-navigation #menu .nav-link,
.ap-category-navigation #menu .dropdown-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 !important;
  color: var(--ap-header-text) !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.ap-category-navigation #menu .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 9px;
  height: 1px;
  background: var(--ap-header-accent);
  transition:
    left 0.25s ease,
    right 0.25s ease;
}

.ap-category-navigation #menu .nav-link:hover,
.ap-category-navigation #menu .nav-link:focus,
.ap-category-navigation #menu .dropdown-toggle:hover,
.ap-category-navigation #menu .dropdown-toggle:focus {
  color: var(--ap-header-accent) !important;
}

.ap-category-navigation #menu .nav-link:hover::after,
.ap-category-navigation #menu .nav-link:focus::after {
  left: 0;
  right: 0;
}

.ap-category-navigation #menu .dropdown-menu {
  margin-top: 0;
  padding: 14px 0;
  background: #ffffff;
  border: 1px solid var(--ap-header-line);
  border-radius: 0;
  box-shadow: var(--ap-header-shadow);
}

.ap-category-navigation #menu .dropdown-menu a,
.ap-category-navigation #menu .dropdown-item {
  padding: 8px 22px;
  color: var(--ap-header-text);
  background: transparent;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ap-category-navigation #menu .dropdown-menu a:hover,
.ap-category-navigation #menu .dropdown-menu a:focus,
.ap-category-navigation #menu .dropdown-item:hover,
.ap-category-navigation #menu .dropdown-item:focus {
  color: var(--ap-header-accent);
  background: var(--ap-header-hover);
}

/* OpenCart's menu title/button is not needed on desktop */
.ap-category-navigation #menu .navbar-brand {
  color: var(--ap-header-text);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 991.98px) {
  .ap-header-inner {
    min-height: 92px;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
  }

  #logo.ap-logo .ap-logo-wordmark {
    font-size: 38px;
  }

  .ap-locale {
    gap: 8px;
  }

  .ap-header-actions {
    gap: 12px;
  }

  .ap-icon-link,
  .ap-icon-button {
    width: 28px;
  }

  .ap-category-navigation #menu .navbar-nav {
    gap: 0;
    align-items: stretch;
  }

  .ap-category-navigation #menu .nav-link,
  .ap-category-navigation #menu .dropdown-toggle {
    min-height: 44px;
    padding: 0 15px !important;
  }
}

@media (max-width: 767.98px) {
  .ap-header-inner {
    min-height: 82px;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "locale locale";
    gap: 4px 12px;
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .ap-brand {
    grid-area: brand;
    justify-content: flex-start;
  }

  .ap-locale {
    grid-area: locale;
    justify-content: flex-start;
    padding-bottom: 3px;
  }

  .ap-header-actions {
    grid-area: actions;
    gap: 9px;
  }

  #logo.ap-logo {
    justify-content: flex-start;
  }

  #logo.ap-logo .ap-logo-wordmark {
    font-size: 31px;
  }

  .ap-locale a,
  .ap-locale button,
  .ap-locale .dropdown-toggle {
    font-size: 10px;
  }

  .ap-icon-link,
  .ap-icon-button {
    width: 27px;
    height: 38px;
  }

  .ap-icon-link svg,
  .ap-icon-button svg {
    width: 19px;
    height: 19px;
  }

  .ap-search-panel-inner {
    padding-top: 16px;
    padding-bottom: 18px;
  }

  .ap-category-navigation #menu {
    min-height: auto;
  }

  .ap-category-navigation #menu .navbar-nav {
    align-items: stretch;
    text-align: left;
  }

  .ap-category-navigation #menu .nav-link,
  .ap-category-navigation #menu .dropdown-toggle {
    min-height: 42px;
    padding: 0 18px !important;
    font-size: 11px;
  }

  .ap-category-navigation #menu .nav-link::after {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .ap-header-inner {
    padding-left: 2px;
    padding-right: 2px;
  }

  #logo.ap-logo .ap-logo-wordmark {
    font-size: 27px;
  }

  .ap-header-actions {
    gap: 3px;
  }

  .ap-icon-link,
  .ap-icon-button {
    width: 23px;
  }
}

/* ---------------------------------------------------------
   SHOPPING BAG COUNT BADGE
   --------------------------------------------------------- */

.ap-shopping-bag {
  overflow: visible;
}

.ap-cart-badge {
  position: absolute;
  top: 1px;
  right: -4px;
  z-index: 2;

  min-width: 16px;
  height: 16px;
  padding: 0 4px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
  border: 1.5px solid #ffffff;
  border-radius: 999px;

  background: #000000;
  color: #ffffff;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;

  pointer-events: none;
}

.ap-cart-badge[hidden] {
  display: none !important;
}

@media (max-width: 767.98px) {
  .ap-cart-badge {
    top: 0;
    right: -5px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    font-size: 8px;
  }
}

