/* =========================================================
   ВЕРНО — Main Stylesheet
   Fonts: Inter (Google Fonts, loaded in HTML)
   ========================================================= */

/* ---- Variables ---- */
:root {
  --bg: #FEFAF6;
  --bg2: #FDF4EC;
  --glass: rgba(255, 250, 246, 0.82);
  --glass-border: rgba(200, 160, 130, 0.22);
  --brand: #AD7968;
  --brand-light: #E8C4B0;
  --brand-dark: #7A4E3A;
  --peach: #F0A878;
  --peach-light: #FAE4D4;
  --pink: #E8B0BC;
  --pink-light: #F8E4EA;
  --text: #2A2018;
  --text2: #7A6A60;
  --text3: #B8ACA4;
  --white: #FFFFFF;
  --red: #E05050;
  --shadow-sm: 0 2px 12px rgba(120, 70, 40, 0.07);
  --shadow-md: 0 8px 30px rgba(120, 70, 40, 0.11);
  --shadow-lg: 0 20px 60px rgba(120, 70, 40, 0.15);
  --shadow-card: 0 4px 24px rgba(120, 70, 40, 0.09);
  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --transition: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;
  --subbar-h: 60px;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
}

ul {
  list-style: none;
}

/* ---- Typography ---- */
h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

h3 {
  font-size: 1.15rem;
  font-weight: 500;
}

p {
  color: var(--text2);
  line-height: 1.75;
}

/* ---- Glassmorphism helpers ---- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(254, 250, 246, 0.90);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 450;
  color: var(--text2);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--brand);
  background: var(--peach-light);
}

.header-nav a.accent {
  color: var(--brand);
  font-weight: 600;
  background: var(--peach-light);
}

.header-nav a.accent:hover {
  background: var(--brand-light);
}

.header-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.header-logo svg,
.header-logo img {
  height: 38px;
  width: auto;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.header-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.header-icon-btn:hover {
  color: var(--brand);
  background: var(--peach-light);
}

.header-icon-btn svg {
  width: 20px;
  height: 20px;
}

.cart-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 1.5px solid var(--bg);
  display: none;
}

.cart-badge.visible {
  display: block;
}

/* ---- Sub-bar (category strip) ---- */
.site-subbar {
  background: var(--bg);
  border-bottom: 1px solid var(--glass-border);
  height: var(--subbar-h);
}

.subbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.subbar-inner a {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--text2);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.subbar-inner a:hover,
.subbar-inner a.active {
  color: var(--brand);
  background: var(--peach-light);
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-h) - var(--subbar-h));
  min-height: 520px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2a1a14 0%, #3d2418 30%, #5a3020 60%, #3d2418 100%);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(254, 250, 246, 0.20) 0%,
      rgba(40, 20, 10, 0.42) 60%,
      rgba(40, 20, 10, 0.55) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 720px;
}

.hero-title {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 36px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}

.btn-hero:hover {
  background: rgba(255, 255, 255, 0.30);
  box-shadow: 0 0 40px rgba(240, 168, 120, 0.50), 0 0 80px rgba(240, 168, 120, 0.25);
  transform: translateY(-2px);
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--white);
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee-wrap {
  overflow: hidden;
  background: var(--brand);
  color: var(--white);
  padding: 12px 0;
}

.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-track span {
  display: inline-block;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   SECTION LAYOUT
   ========================================================= */
.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-header h2 {
  color: var(--text);
}

.section-header p {
  margin-top: 12px;
  font-size: 16px;
  color: var(--text2);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

/* =========================================================
   SKIN PROBLEM SELECTOR
   ========================================================= */
.skin-selector {
  background: var(--bg2);
}

.skin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.skin-tag {
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  font-size: 15px;
  font-weight: 450;
  color: var(--text2);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
}

.skin-tag:hover,
.skin-tag.active {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--peach-light);
  box-shadow: 0 4px 20px rgba(173, 121, 104, 0.18);
  transform: translateY(-2px);
}

/* =========================================================
   PRODUCT CARDS
   ========================================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: block;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.card-image-wrap.gradient-bg {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card:hover .card-image {
  transform: scale(1.04);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-badge.hit {
  background: var(--brand);
  color: var(--white);
}

.card-badge.new {
  background: var(--peach);
  color: var(--white);
}

.card-discount-badge {
  position: absolute;
  top: 44px;
  right: 12px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
  pointer-events: none;
  z-index: 2;
}

/* ---- Card action row: qty selector + add button ---- */
.card-action-row {
  padding: 10px 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}

.product-card:hover .card-action-row {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.card-qty-ctrl {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--brand-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.card-qty-btn {
  padding: 6px 12px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  color: var(--brand);
  cursor: pointer;
  background: none;
  border: none;
  transition: background 0.15s;
}

.card-qty-btn:hover {
  background: var(--peach-light);
}

.card-qty-num {
  padding: 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  min-width: 22px;
  text-align: center;
}

.card-add-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: none;
  transition: background var(--transition);
  white-space: nowrap;
}

.card-add-btn:hover {
  background: var(--brand-dark);
}

.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.card-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-current {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.price-old {
  font-size: 13px;
  color: var(--text3);
  text-decoration: line-through;
}

.price-sale {
  color: var(--red);
}

/* product card placeholder icon */
.card-placeholder-icon {
  width: 72px;
  height: 72px;
  opacity: 0.35;
}

/* card mini description for sets */
.card-mini-desc {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.5;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Cart gift threshold messages */
.cart-gift-msg {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
  animation: giftFadeIn 0.3s ease;
}

.cart-gift-msg.achieved {
  background: linear-gradient(135deg, rgba(76,175,125,0.12), rgba(76,175,125,0.06));
  color: #2e7d4f;
  border: 1px solid rgba(76,175,125,0.25);
}

.cart-gift-msg.pending {
  background: linear-gradient(135deg, rgba(173,121,104,0.12), rgba(173,121,104,0.06));
  color: var(--brand-dark);
  border: 1px solid rgba(173,121,104,0.25);
}

@keyframes giftFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   PHILOSOPHY / VALUES
   ========================================================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.value-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.value-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.value-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.value-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.75;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.70);
  padding: 52px 0 32px;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 2;
  display: block;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--brand-light);
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: background var(--transition), color var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-social-btn:hover {
  background: var(--brand);
  color: var(--white);
}

.footer-social-btn svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a:hover {
  color: var(--brand-light);
}

.footer-max-btn-wrap {
  text-align: center;
  padding: 20px 0 0;
}

.footer-max-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  background: rgba(173, 121, 104, 0.18);
  color: var(--brand-light);
  border: 1.5px solid rgba(173, 121, 104, 0.4);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}

.footer-max-btn:hover {
  background: rgba(173, 121, 104, 0.32);
  color: white;
}

.footer-max-btn svg {
  width: 18px;
  height: 18px;
}

.subbar-problem-link {
  background: var(--peach-light) !important;
  color: var(--brand) !important;
  font-weight: 600 !important;
}

/* ---- Profile tabs ---- */
.profile-tab {
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  font-family: inherit;
}

.profile-tab.active {
  background: var(--white);
  color: var(--brand);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* =========================================================
   FAB (Max messenger)
   ========================================================= */
.fab-max {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F0C0A0, #E89878);
  box-shadow: 0 6px 24px rgba(173, 121, 104, 0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.fab-max:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 36px rgba(173, 121, 104, 0.55);
}

.fab-max svg {
  width: 26px;
  height: 26px;
}

/* =========================================================
   CART DRAWER
   ========================================================= */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}

.cart-overlay.open {
  pointer-events: all;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 20, 10, 0.38);
  opacity: 0;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}

.cart-overlay.open .cart-backdrop {
  opacity: 1;
}

.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
}

.cart-overlay.open .cart-drawer {
  transform: translateX(0);
}

.cart-header {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  transition: background var(--transition);
}

.cart-close:hover {
  background: var(--peach-light);
  color: var(--brand);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--glass-border);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  overflow: hidden;
}

.cart-item-info {
  flex: 1;
}

.cart-item-brand {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cart-item-name {
  font-size: 13px;
  font-weight: 500;
  margin-top: 2px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 600;
  margin-top: 6px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--peach-light);
  color: var(--brand-dark);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}

.qty-btn:hover {
  background: var(--brand-light);
}

.qty-num {
  font-size: 14px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  color: var(--text3);
  font-size: 12px;
  cursor: pointer;
  align-self: flex-start;
  padding: 4px;
  border-radius: 4px;
  transition: color var(--transition);
}

.cart-item-remove:hover {
  color: var(--red);
}

.cart-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--text2);
}

.cart-empty svg {
  width: 64px;
  height: 64px;
  color: var(--text3);
  margin: 0 auto 16px;
}

.cart-empty p {
  font-size: 15px;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--glass-border);
  background: var(--white);
}

.cart-promo {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.cart-promo input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.cart-promo input:focus {
  border-color: var(--brand);
}

.btn-sm {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-outline {
  border: 1.5px solid var(--brand);
  color: var(--brand);
  background: transparent;
}

.btn-outline:hover {
  background: var(--peach-light);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cart-total-label {
  font-size: 14px;
  color: var(--text2);
}

.cart-total-amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.btn-primary {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(173, 121, 104, 0.32);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--brand);
  color: var(--brand);
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--peach-light);
}

/* =========================================================
   INNER PAGE HERO (skin problems / categories)
   ========================================================= */
.page-hero {
  padding: 64px 0 52px;
  background: linear-gradient(135deg, var(--bg2) 0%, var(--peach-light) 100%);
  text-align: center;
}

.page-hero .breadcrumb {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 16px;
}

.page-hero .breadcrumb a {
  color: var(--brand);
}

.page-hero .breadcrumb span {
  margin: 0 6px;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--text);
  margin-bottom: 16px;
}

.page-hero p {
  max-width: 520px;
  margin: 0 auto;
  font-size: 16px;
}

/* =========================================================
   LEAD FORM (on skin problem pages)
   ========================================================= */
.lead-section {
  background: var(--brand);
  padding: 60px 0;
  text-align: center;
  color: var(--white);
}

.lead-section h2 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.lead-section p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 32px;
}

.lead-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.lead-form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  backdrop-filter: blur(8px);
}

.lead-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.lead-form input:focus {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.22);
}

.btn-white {
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.lead-success {
  display: none;
  font-size: 16px;
  color: var(--white);
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* =========================================================
   SEARCH OVERLAY
   ========================================================= */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(40, 20, 10, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.search-box {
  width: 100%;
  max-width: 640px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--glass-border);
}

.search-input-wrap svg {
  width: 20px;
  color: var(--text3);
  flex-shrink: 0;
}

.search-input-wrap input {
  flex: 1;
  padding: 20px 14px;
  border: none;
  background: transparent;
  font-size: 16px;
  color: var(--text);
  outline: none;
}

.search-results {
  padding: 16px;
  max-height: 360px;
  overflow-y: auto;
}

.search-result-item {
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background var(--transition);
}

.search-result-item:hover {
  background: var(--peach-light);
}

.search-result-img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
}

.search-result-info .brand {
  font-size: 11px;
  color: var(--brand);
  font-weight: 600;
  text-transform: uppercase;
}

.search-result-info .name {
  font-size: 14px;
  font-weight: 500;
}

.search-result-info .price {
  font-size: 13px;
  color: var(--text2);
  margin-top: 2px;
}

.search-empty {
  text-align: center;
  color: var(--text3);
  padding: 32px;
  font-size: 14px;
}

/* =========================================================
   PRODUCT PAGE
   ========================================================= */
.product-page {
  padding: 48px 0 80px;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.product-image-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow-md);
}

.product-image-main img,
.product-image-main .gradient-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {}

.product-brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}

.product-name {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.3;
}

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.product-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.product-price.sale {
  color: var(--red);
}

.product-price-old {
  font-size: 18px;
  color: var(--text3);
  text-decoration: line-through;
}

.product-desc {
  color: var(--text2);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.product-meta {
  margin-bottom: 32px;
}

.product-meta dt {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  margin-top: 12px;
}

.product-meta dd {
  font-size: 14px;
  color: var(--text2);
  margin-top: 2px;
}

.product-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.product-qty-row .card-qty-ctrl {
  flex-shrink: 0;
  height: 56px;
  padding: 0 4px;
}

.product-qty-row .card-qty-btn {
  padding: 8px 16px;
  font-size: 20px;
}

.product-qty-row .card-qty-num {
  font-size: 16px;
  min-width: 28px;
}

.product-qty-row .btn-add-to-cart {
  margin-bottom: 0;
}

.btn-add-to-cart {
  width: 100%;
  padding: 18px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-bottom: 12px;
}

.btn-add-to-cart:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(173, 121, 104, 0.35);
}

.btn-consult {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1.5px solid var(--brand);
  color: var(--brand);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.btn-consult:hover {
  background: var(--peach-light);
}

/* =========================================================
   CART PAGE
   ========================================================= */
.cart-page {
  padding: 48px 0 80px;
}

.cart-page-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.cart-page-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  margin-bottom: 32px;
}

.cart-page-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--glass-border);
  align-items: center;
}

.cart-page-img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  overflow: hidden;
}

.cart-page-item-info {
  flex: 1;
}

.cart-page-brand {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-page-name {
  font-size: 15px;
  font-weight: 500;
  margin-top: 4px;
}

.cart-page-price {
  font-size: 16px;
  font-weight: 700;
  margin-top: 8px;
}

.cart-page-qty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.order-summary {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-h) + var(--subbar-h) + 20px);
}

.order-summary h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
}

.order-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text2);
  padding: 6px 0;
}

.order-row.total {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  border-top: 1px solid var(--glass-border);
  margin-top: 12px;
  padding-top: 16px;
}

.order-promo-wrap {
  margin: 16px 0;
}

.order-promo-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition);
  margin-bottom: 8px;
}

.order-promo-input:focus {
  border-color: var(--brand);
}

/* =========================================================
   PROFILE / AUTH
   ========================================================= */
.auth-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.auth-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.auth-box h2 {
  margin-bottom: 8px;
}

.auth-box p {
  margin-bottom: 32px;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--glass-border);
  margin-bottom: 28px;
}

.auth-tab-btn {
  flex: 1;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text3);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  font-family: inherit;
}

.auth-tab-btn.active {
  color: var(--brand);
  border-color: var(--brand);
}

.auth-tab-panel {
  display: none;
}

.auth-tab-panel.active {
  display: block;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  display: block;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.form-input:focus {
  border-color: var(--brand);
}

.form-input.error {
  border-color: var(--red);
}

.form-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 5px;
  display: none;
  line-height: 1.4;
}

.form-error.visible {
  display: block;
}

.form-hint {
  font-size: 11px;
  color: var(--text3);
  margin-top: 4px;
}

.form-input.valid {
  border-color: #38A169;
}

.form-input:focus.error {
  border-color: var(--red);
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.captcha-question {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  background: var(--bg2);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  white-space: nowrap;
  border: 1.5px solid var(--glass-border);
  min-width: 110px;
  text-align: center;
}

.captcha-input {
  flex: 1;
}

.social-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 16px;
  color: var(--text3);
  font-size: 13px;
}

.social-divider::before,
.social-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

.social-auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--glass-border);
  background: var(--white);
  color: var(--text);
  transition: all var(--transition);
  font-family: inherit;
}

.social-btn:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.social-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.social-btn.yandex {
  border-color: rgba(252, 63, 29, 0.4);
  color: #CC2000;
}

.social-btn.yandex:hover {
  background: #FFF3F0;
}

.social-btn.google:hover {
  background: #F0F4FF;
}

.social-btn.vk {
  border-color: rgba(0, 119, 255, 0.3);
  color: #0055CC;
}

.social-btn.vk:hover {
  background: #EEF6FF;
}

/* =========================================================
   TOAST NOTIFICATION
   ========================================================= */
.toast-container {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--text);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.5s forwards;
  max-width: 280px;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* =========================================================
   BRANDS PAGE
   ========================================================= */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.brand-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
}

.brand-card:hover {
  border-color: var(--brand-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.brand-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.brand-count {
  font-size: 13px;
  color: var(--text3);
  margin-top: 4px;
}

/* =========================================================
   SALES BADGES
   ========================================================= */
.sale-hero {
  background: linear-gradient(135deg, var(--brand) 0%, #C8907A 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.sale-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.sale-hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  margin-top: 12px;
}

/* =========================================================
   UTILITY
   ========================================================= */
.text-center {
  text-align: center;
}

.text-brand {
  color: var(--brand);
}

.fw-600 {
  font-weight: 600;
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.mb-24 {
  margin-bottom: 24px;
}

.gap-12 {
  gap: 12px;
}

.hidden {
  display: none !important;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cart-page-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .order-summary {
    position: static;
  }
}

/* =========================================================
   MOBILE MENU DRAWER
   ========================================================= */
.mobile-menu-btn {
  display: none;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}

.mobile-menu-overlay.open {
  pointer-events: all;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 20, 10, 0.45);
  opacity: 0;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}

.mobile-menu-overlay.open .mobile-menu-backdrop {
  opacity: 1;
}

.mobile-menu-drawer {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  transform: translateX(-100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu-overlay.open .mobile-menu-drawer {
  transform: translateX(0);
}

.mobile-menu-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-header .header-logo svg,
.mobile-menu-header .header-logo img {
  height: 28px;
}

.mobile-menu-body {
  padding: 16px 0;
  flex: 1;
}

.mobile-menu-link {
  display: block;
  padding: 13px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}

.mobile-menu-link:hover {
  background: var(--peach-light);
  color: var(--brand);
}

.mobile-menu-link.accent-link {
  color: var(--brand);
  font-weight: 600;
}

.mobile-menu-link-sm {
  font-size: 14px;
  font-weight: 400;
  color: var(--text2);
  padding: 10px 24px;
}

.mobile-menu-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 8px 24px;
}

@media (max-width: 640px) {
  :root {
    --header-h: 60px;
    --subbar-h: 48px;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .header-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .header-logo svg,
  .header-logo img {
    height: 28px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .section {
    padding: 52px 0;
  }

  .cart-drawer {
    width: 100vw;
  }

  .subbar-inner {
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .subbar-inner::-webkit-scrollbar {
    display: none;
  }

  .fab-max {
    bottom: 18px;
    right: 18px;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 380px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}