:root {
  --brand-brown: #5B371B;
  --brand-brown-dark: #321d0e;
  --brand-gold: #c99a50;
  --brand-cream: #fff8ee;
  --brand-ink: #21160f;
}

.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 35px rgba(33, 22, 15, 0.08);
  backdrop-filter: blur(14px);
}

.top-offer-bar {
  background: var(--brand-brown);
  color: var(--color-white);
  padding: 8px 0;
}

.top-offer-bar p {
  color: var(--color-white);
  text-align: center;
  font-size: 15px;
  font-family: "font_medium";
}

.nav-bar {
  height: 126px;
  display: flex;
  align-items: center;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  width: 150px;
  min-width: 124px;
}

.brand-logo img,
.logo-menu img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links li a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  color: var(--brand-ink);
  font-size: 18px;
  font-family: "font_medium";
  border-radius: 6px;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 6px;
  width: 0;
  height: 2px;
  background: var(--brand-gold);
  transition: width 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--brand-brown);
  background: rgba(91, 55, 27, 0.07);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: calc(100% - 28px);
}

.nav-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon-btn,
.menu-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(91, 55, 27, 0.14);
  border-radius: 6px;
  background: var(--color-white);
  color: var(--brand-brown);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-icon-btn:hover,
.menu-toggle:hover {
  background: var(--brand-brown);
  color: var(--color-white);
  transform: translateY(-2px);
}

.cart-btn span {
  position: absolute;
  top: -7px;
  left: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 20px;
  background: var(--brand-gold);
  color: var(--color-white);
  font-size: 11px;
  line-height: 20px;
  font-family: "font_bold";
}

.header-search-form {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: min(460px, 86vw);
  min-height: 58px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(91, 55, 27, 0.13);
  border-radius: 8px;
  box-shadow: 0 20px 55px rgba(33, 22, 15, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 20;
}

.header-search-form.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.header-search-form input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 1px solid rgba(91, 55, 27, 0.14);
  border-radius: 6px;
  padding: 0 15px;
  color: var(--brand-ink);
  background: var(--brand-cream);
  font-size: 14px;
}

.header-search-form input::placeholder {
  color: rgba(33, 22, 15, 0.55);
}

.header-search-form input:focus {
  border-color: var(--brand-brown);
  box-shadow: 0 0 0 3px rgba(91, 55, 27, 0.1);
}

.header-search-form button {
  height: 44px;
  border: 0;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header-search-form button[type="submit"] {
  gap: 7px;
  padding: 0 17px;
  background: var(--brand-brown);
  color: var(--color-white);
  font-family: "font_bold";
  white-space: nowrap;
}

.header-search-form button[type="submit"]:hover {
  background: var(--brand-brown-dark);
}

.search-close {
  width: 44px;
  background: rgba(91, 55, 27, 0.08);
  color: var(--brand-brown);
}

.search-close:hover {
  background: rgba(91, 55, 27, 0.14);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 54px;
  width: 210px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(91, 55, 27, 0.13);
  border-radius: 8px;
  box-shadow: 0 20px 55px rgba(33, 22, 15, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 21;
}

.user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.user-dropdown a {
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
  color: var(--brand-ink);
  font-size: 14px;
  font-family: "font_medium";
}

.user-dropdown a i {
  width: 18px;
  color: var(--brand-brown);
  text-align: center;
}

.user-dropdown a:hover {
  background: rgba(91, 55, 27, 0.08);
  color: var(--brand-brown);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(33, 22, 15, 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100vh;
  background: var(--color-white);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.32s ease;
  box-shadow: -24px 0 60px rgba(33, 22, 15, 0.18);
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 26px 24px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(91, 55, 27, 0.1);
}

.cart-drawer-header span {
  color: var(--brand-gold);
  font-size: 13px;
  font-family: "font_bold";
}

.cart-drawer-header h3 {
  color: var(--brand-brown);
  font-size: 22px;
  font-family: "font_bold";
  margin-top: 6px;
}

.cart-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 6px;
  background: rgba(91, 55, 27, 0.08);
  color: var(--brand-brown);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cart-close:hover {
  background: var(--brand-brown);
  color: var(--color-white);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px 18px 8px;
}

.cart-item {
  display: grid;
  grid-template-columns: 82px 1fr 36px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(91, 55, 27, 0.1);
  border-radius: 8px;
  background: #fffaf4;
}

.cart-item-img {
  width: 82px;
  height: 82px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--brand-cream);
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info h4 {
  color: var(--brand-ink);
  font-size: 15px;
  font-family: "font_bold";
  line-height: 1.4;
  margin-bottom: 5px;
}

.cart-item-info p {
  color: rgba(33, 22, 15, 0.62);
  font-size: 13px;
  margin-bottom: 6px;
}

.cart-item-info strong {
  color: var(--brand-brown);
  font-size: 15px;
  font-family: "font_bold";
}

.cart-item-remove {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: rgba(91, 55, 27, 0.08);
  color: var(--brand-brown);
  cursor: pointer;
}

.cart-item-remove:hover {
  background: rgba(180, 41, 41, 0.1);
  color: #b42929;
}

.cart-summary {
  padding: 18px 20px 22px;
  border-top: 1px solid rgba(91, 55, 27, 0.1);
  background: var(--color-white);
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  color: var(--brand-ink);
  font-family: "font_bold";
}

.cart-total-row span {
  font-size: 16px;
}

.cart-total-row strong {
  color: var(--brand-brown);
  font-size: 22px;
}

.cart-checkout-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 6px;
  background: var(--brand-brown);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "font_bold";
  font-size: 16px;
}

.cart-checkout-btn:hover {
  background: var(--brand-brown-dark);
  color: var(--color-white);
}

.menu-toggle {
  display: none;
}

.menu-toggle .navicon {
  width: 24px;
  height: 18px;
  color: currentColor;
}

.menu-toggle .navicon__item {
  background: currentColor;
}

.logo-menu {
  width: 135px;
  margin: 0 auto;
}

.btn-nav-res .ctm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 46px;
  border-radius: 6px;
  background: var(--brand-brown);
  color: var(--color-white);
  font-family: "font_bold";
}

.remove-mune span {
  position: absolute;
  top: 25px;
  left: 25px;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: rgba(91, 55, 27, 0.1);
  cursor: pointer;
}

.remove-mune span::before,
.remove-mune span::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 8px;
  width: 18px;
  height: 2px;
  background: var(--brand-brown);
}

.remove-mune span::before {
  transform: rotate(45deg);
}

.remove-mune span::after {
  transform: rotate(-45deg);
}

/* Inner pages hero */
.title-page {
  position: relative;
  min-height: 360px;
  padding: 76px 0 62px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(42, 24, 12, 0.45) 0%, rgba(42, 24, 12, 0.82) 48%, rgba(42, 24, 12, 0.96) 100%),
    url("../images/hero-gifts-perfume.png") center / cover;
  overflow: hidden;
  isolation: isolate;
}

.title-page::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -80px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(217, 173, 101, 0.2);
  border-radius: 50%;
  z-index: -1;
}

.title-page::after {
  content: "";
  position: absolute;
  right: 9%;
  bottom: 0;
  width: 120px;
  height: 3px;
  background: var(--brand-gold);
  z-index: 1;
}

.title-page-inner {
  position: relative;
  z-index: 2;
}

.title-page-content {
  max-width: 700px;
}

.title-page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--brand-gold);
  font-family: "font_bold";
  font-size: 14px;
}

.title-page-kicker::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--brand-gold);
}

.title-page-content h1 {
  color: var(--color-white);
  font-family: "font_bold";
  font-size: 54px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.title-page-content p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  line-height: 1.9;
}

.title-page-breadcrumb {
  margin-top: 30px;
  min-height: 44px;
  width: fit-content;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 11px;
}

.title-page-breadcrumb a,
.title-page-breadcrumb span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-family: "font_medium";
}

.title-page-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.title-page-breadcrumb a:hover,
.title-page-breadcrumb .title-page-current {
  color: var(--brand-gold);
}

.title-page-breadcrumb > i {
  color: rgba(255, 255, 255, 0.38);
  font-size: 9px;
}
