﻿:root {
  --ink: #35291f;
  --muted: #76695e;
  --brand: rgb(163, 119, 72);
  --brand-dark: #80572e;
  --line: #e9e1d9;
  --page: #faf7f3;
  --shadow: 0 16px 40px rgba(69, 47, 29, .1);
  font-family: Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-main {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  color: #fff;
  background: var(--brand);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__text {
  display: grid;
  line-height: 1.4;
}

.brand__name {
  font-size: 16px;
  font-weight: 800;
}

.brand__group {
  color: var(--muted);
  font-size: 11px;
}

.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.main-nav a {
  padding: 7px 0;
  color: #40515d;
  font-size: 13px;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.welcome {
  color: var(--muted);
  font-size: 12px;
}

.profile-menu {
  position: relative;
}

.profile-menu__toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 4px 6px 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.profile-menu__toggle:hover {
  border-color: var(--brand);
  background: #fffaf5;
}

.profile-menu__toggle:focus-visible {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(163, 119, 72, .18);
}

.profile-menu__toggle[aria-expanded="true"] {
  border-color: var(--brand);
  background: #fffaf5;
  box-shadow: 0 0 0 3px rgba(163, 119, 72, .12);
}

.login-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 4px 13px 4px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  transition: border-color .2s, box-shadow .2s, background-color .2s, transform .2s;
}

.login-button:hover {
  border-color: var(--brand);
  background: #fffaf5;
  transform: translateY(-1px);
}

.login-button:focus-visible {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(163, 119, 72, .18);
}

.login-button__icon {
  display: grid;
  flex: none;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #ead9c7;
  border-radius: 9px;
  color: var(--brand-dark);
  background: #f8eee4;
}

.login-button__icon svg {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .login-button {
    transition: none;
  }
}

.profile-menu__name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu__avatar {
  display: grid;
  flex: none;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #ead9c7;
  border-radius: 9px;
  color: var(--brand-dark);
  background: #f8eee4;
}

.profile-menu__avatar--large {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--brand);
  background: #f3e5d6;
}

.profile-menu__chevron {
  flex: none;
  color: var(--muted);
  transition: transform .25s ease, color .2s;
}

.profile-menu__toggle[aria-expanded="true"] .profile-menu__chevron {
  color: var(--brand);
  transform: rotate(180deg);
}

.profile-menu__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 30;
  width: 240px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(69, 47, 29, .18);
  transform-origin: top left;
  animation: profile-menu-in .18s ease-out;
}

.profile-menu__dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 26px;
  width: 11px;
  height: 11px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #faf7f3;
  transform: rotate(45deg);
}

.profile-menu__dropdown[hidden] {
  display: none;
}

.profile-menu__header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #faf7f3, #f3e9de);
}

.profile-menu__identity {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.5;
}

.profile-menu__identity strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.profile-menu__identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.profile-menu__items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
}

.profile-menu__items form {
  margin: 0;
}

.profile-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  background: transparent;
  text-align: right;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: background-color .15s, color .15s;
}

.profile-menu__item svg {
  flex: none;
  color: var(--muted);
  transition: color .15s;
}

.profile-menu__item:hover,
.profile-menu__item:focus-visible {
  outline: 0;
  background: var(--page);
  color: var(--brand-dark);
}

.profile-menu__item:hover svg,
.profile-menu__item:focus-visible svg {
  color: var(--brand);
}

.profile-menu__items form {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.profile-menu__item--danger {
  color: #b42318;
}

.profile-menu__item--danger svg {
  color: #d92d20;
}

.profile-menu__item--danger:hover,
.profile-menu__item--danger:focus-visible {
  background: #fef3f2;
  color: #b42318;
}

.profile-menu__item--danger:hover svg,
.profile-menu__item--danger:focus-visible svg {
  color: #b42318;
}

@keyframes profile-menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-menu__dropdown {
    animation: none;
  }

  .profile-menu__chevron {
    transition: none;
  }
}

@media (max-width: 600px) {
  .profile-menu__name {
    display: none;
  }

  .profile-menu__toggle {
    padding: 4px 6px;
  }

  .profile-menu__dropdown {
    width: min(240px, calc(100vw - 32px));
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: .2s;
}

.button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.button--small {
  min-height: 36px;
  padding: 6px 14px;
}

.button--outline {
  color: var(--brand);
  background: #fff;
  border: 1px solid var(--brand);
}

.button--light {
  color: var(--brand-dark);
  background: #fff;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 21px;
}

.hero {
  overflow: hidden;
  background: linear-gradient(130deg, #f8f1e9, #fdfbf9 58%, #f0e1d1);
}

.hero__inner {
  min-height: 410px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 50px;
  padding-block: 55px;
}

.eyebrow {
  display: block;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.hero h1,
.section-heading h2,
.consultation h2 {
  margin: 5px 0 12px;
  line-height: 1.5;
}

.hero h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.hero h1 span {
  color: var(--brand);
}

.hero p {
  max-width: 540px;
  color: var(--muted);
}

.brands,
.search-page {
  padding: 75px 0;
}

.section-heading {
  margin-bottom: 25px;
}

.section-heading--center {
  max-width: 570px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading h2 {
  font-size: 27px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.brand-marquee {
  overflow: hidden;
  padding: 8px 0;
  direction: rtl;
  mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent);
}

.brand-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: brand-scroll 80s linear infinite;
}

.brand-marquee:hover .brand-track {
  animation-play-state: paused;
}

.brand-item {
  width: 180px;
  height: 92px;
  display: grid;
  flex: none;
  place-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(69, 47, 29, .05);
}

.brand-item img {
  max-width: 130px;
  max-height: 52px;
  object-fit: contain;
}

@keyframes brand-scroll {
  to {
    transform: translateX(50%);
  }
}


.empty-state {
  padding: 30px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border-radius: 12px;
}

.consultation {
  padding: 38px 0;
  color: #fff;
  background: var(--brand-dark);
}

.consultation__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.consultation .eyebrow {
  color: #f2d9bd;
}

.consultation h2 {
  font-size: 25px;
}

.consultation p {
  margin: 0;
  color: #e9dccd;
}

.site-footer {
  padding-top: 48px;
  color: #eee6dd;
  background: #35291f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 35px;
  padding-bottom: 35px;
}

.footer-brand .brand__name,
.footer-column h2 {
  color: #fff;
}

.footer-description {
  max-width: 370px;
  color: #adbdc4;
  font-size: 12px;
}

.footer-column h2 {
  margin: 0 0 12px;
  font-size: 15px;
}

.footer-column p,
.footer-column a {
  display: block;
  margin: 6px 0;
  color: #c1cdd2;
  font-size: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: transform 0.2s ease;
}

.social-links a:hover {
  border: 0;
  background: transparent;
  transform: translateY(-2px);
}

.social-links img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}




.footer-bottom {
  display: flex;
  justify-content: center;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #adbdc4;
  font-size: 11px;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media(max-width:760px) {
  .container {
    width: min(100% - 30px, 540px);
  }

  .header-main {
    min-height: 68px;
    gap: 10px;
  }

  .menu-toggle {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    border-bottom: 1px solid var(--line);
  }

  .header-actions {
    margin-right: auto;
  }

  .welcome {
    display: none;
  }

  .hero__inner {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 42px;
  }

  .consultation__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-search-form {
    flex-direction: column;
  }

  .product-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 24px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  .brand-track {
    animation: none;
  }
}

.site-messages {
  padding-top: 18px;
}

.site-message {
  padding: 10px 14px;
  border: 1px solid #b7dec5;
  border-radius: 10px;
  color: #176b38;
  background: #f1fbf4;
  font-size: 13px;
}

.profile-page {
  min-height: 55vh;
  padding: 56px 0 76px;
  background: linear-gradient(180deg, #faf7f3 0, #fff 360px);
}

.profile-heading {
  margin-bottom: 24px;
}

.profile-heading h1 {
  margin: 4px 0;
  font-size: 30px;
}

.profile-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.profile-card {
  max-width: 900px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.profile-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.profile-card__top h2 {
  margin: 3px 0 0;
  font-size: 21px;
}

.profile-badge {
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--page);
  font-size: 11px;
  font-weight: 800;
}

.profile-badge--edit {
  color: #176b38;
  background: #f1fbf4;
}

.profile-grid,
.profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 22px;
}

.profile-value {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 75px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdfa;
}

.profile-value span,
.profile-field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-value strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.profile-phone {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr);
  align-items: end;
  gap: 16px;
  padding-top: 22px;
}

.profile-phone__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.profile-phone__form .button {
  min-height: 44px;
  white-space: nowrap;
}

.profile-security {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

.profile-security h2 {
  margin: 0;
  font-size: 18px;
}

.profile-phone .profile-value {
  min-height: 75px;
}

.profile-phone--readonly {
  display: block;
}

.profile-phone--readonly .profile-value {
  width: calc((100% - 16px) / 2);
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-field__input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
}

.profile-field__input:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(163, 119, 72, .14);
}

.profile-submit {
  grid-column: 1/-1;
  justify-self: start;
  min-width: 170px;
}

@media(max-width:600px) {
  .profile-page {
    padding: 35px 0 50px;
  }

  .profile-card {
    padding: 20px;
  }

  .profile-heading h1 {
    font-size: 25px;
  }

  .profile-grid,
  .profile-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .profile-phone {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .profile-phone__form {
    grid-template-columns: 1fr;
  }

  .profile-phone__form .button {
    width: 100%;
  }

  .profile-security {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-security .button {
    width: 100%;
  }

  .profile-submit {
    width: 100%;
  }
}

.auth-page {
  padding: 64px 0;
  background: var(--page);
}

.auth-card {
  max-width: 720px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 5px 0 12px;
  font-size: 28px;
}

.auth-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 13px;
  font-weight: 800;
}

.form-field input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.form-field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(163, 119, 72, .14);
}

.form-field--error input {
  border-color: #c0392b;
  background: #fff8f7;
}

.form-error {
  margin: 0;
  color: #b42318;
  font-size: 12px;
}

.form-help {
  color: var(--muted);
  font-size: 11px;
}

.auth-form__submit {
  width: 100%;
  margin-top: 8px;
}

.auth-register-link {
  margin: 18px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.auth-register-link a {
  color: var(--brand-dark);
  font-weight: 800;
}

.auth-register-link a:hover {
  color: var(--brand);
}

@media (max-width: 600px) {
  .auth-card {
    padding: 24px;
  }
}

/* Home notification modal */
.notification-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(53 41 31 / 58%);
  backdrop-filter: blur(5px);
  animation: notification-overlay-in 0.22s ease-out;
}

.notification-modal {
  position: relative;
  width: min(100%, 580px);
  max-height: min(82vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgb(40 28 18 / 30%);
  direction: rtl;
  animation: notification-modal-in 0.28s cubic-bezier(.2, .8, .2, 1);
}

.notification-modal__header {
  padding: 25px 30px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #fffaf5, #f5e9dc);
}

.notification-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px;
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 800;
}

.notification-modal__eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}


.notification-modal__close {
  position: absolute;
  top: 17px;
  left: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #ead9c7;
  border-radius: 12px;
  color: var(--brand-dark);
  background: rgb(255 255 255 / 75%);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: color .2s, background-color .2s, transform .2s;
}

.notification-modal__close:hover {
  color: #fff;
  background: var(--brand-dark);
  transform: rotate(90deg);
}

.notification-modal__close:focus-visible {
  outline: 3px solid rgb(163 119 72 / 30%);
  outline-offset: 2px;
}

.notification-modal__list {
  min-height: 0;
  overflow-y: auto;
  padding: 8px 30px 26px;
}

.notification-modal__item {
  padding: 20px 0;
}

.notification-modal__item+.notification-modal__item {
  border-top: 1px solid var(--line);
}

.notification-modal__item h3 {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.7;
}

.notification-modal__item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
  overflow-wrap: anywhere;
}

@keyframes notification-overlay-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes notification-modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 600px) {
  .notification-overlay {
    padding: 14px;
  }

  .notification-modal {
    max-height: 88vh;
    border-radius: 18px;
  }

  .notification-modal__header {
    padding: 22px 22px 17px;
  }
}

.notification-modal__close {
  top: 13px;
  left: 13px;
}

.notification-modal__list {
  min-height: 0;
  overflow-y: auto;
  padding: 8px 30px 26px;
}

.notification-modal__item {
  padding: 16px 0;
}


@media (prefers-reduced-motion: reduce) {

  .notification-overlay,
  .notification-modal {
    animation: none;
  }

  .notification-modal__close {
    transition: none;
  }
}

/* Footer location map */
.footer-map__iframe {
  display: block;
  margin-top: 16px;
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 10px;
}

.consultation .button--light:hover {
  background: #fff;
  color: var(--brand-dark);
  border-color: #fff;
}
