@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
  --black: #1A1A1A;
  --white: #ffffff;
  --cream: #F2F2F0;
  --gray-light: #F7F7F5;
  --gray-mid: #8a8a8a;
  --border: #ececec;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', 'DejaVu Sans', sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.font-serif {
  font-family: 'Playfair Display', serif;
}

/* ===== HEADER ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 5%;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 100;
}

.nav-links {
  display: flex;
  gap: 34px;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--black);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.logo-text {
  font-size: 30px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 3px;
}

.logo-link {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
}

.nav-icons {
  display: flex;
  gap: 22px;
  font-size: 18px;
  align-items: center;
}

.nav-icons a {
  opacity: 0.85;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
}
.nav-icons a:hover { opacity: 1; }

.icon-svg {
  width: 19px;
  height: 19px;
  display: block;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--black);
  align-items: center;
}
.mobile-toggle .icon-svg {
  width: 22px;
  height: 22px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 13px;
  letter-spacing: 0.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover { background: #333333; }

.btn-inverse {
  background: var(--white);
  color: var(--black);
}
.btn-inverse:hover { background: var(--cream); }

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-outline:hover { background: var(--black); color: var(--white); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 70px 5% 30px;
  margin-top: 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 50px;
  border-bottom: 1px solid #333333;
}

.footer-icon {
  margin-bottom: 10px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.footer-slogan {
  color: #999999;
  font-size: 12px;
  letter-spacing: 1.5px;
}

.footer-col h4 {
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 18px;
  color: #cccccc;
  text-transform: uppercase;
}

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 13px;
  color: #999999;
}

.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #666666;
}

/* ===== UTILITIES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  text-align: center;
  margin-bottom: 46px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gray-mid);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 10px;
}

.demo-banner {
  background: #FFF7E6;
  border-bottom: 1px solid #F0DFAE;
  color: #8a6d1a;
  text-align: center;
  font-size: 12px;
  padding: 8px;
  letter-spacing: 0.3px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Мобилно паѓачко мени (хамбургер) */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 73px;
  z-index: 99;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-nav.open {
  display: flex;
  max-height: 300px;
}
.mobile-nav a {
  padding: 16px 6%;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--black);
}
.mobile-nav a:last-child { border-bottom: none; }

/* Телефон — потесни екрани (под 600px) */
@media (max-width: 600px) {
  .site-header { padding: 16px 5%; }
  .logo-text { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .search-overlay { padding-top: 50px; }
  .search-modal { width: 94%; max-height: 80vh; }
}

/* ===== SEARCH ===== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.6);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 90px;
}
.search-overlay.open {
  display: flex;
}
.search-modal {
  background: var(--white);
  width: 92%;
  max-width: 600px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}
.search-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.search-input-row svg {
  width: 20px;
  height: 20px;
  color: var(--gray-mid);
  flex-shrink: 0;
}
.search-input-row input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: "Poppins", sans-serif;
  color: var(--black);
}
.search-close {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 15px;
  color: var(--gray-mid);
}
.search-results {
  overflow-y: auto;
  padding: 8px;
}
.search-hint {
  padding: 34px 20px;
  text-align: center;
  color: var(--gray-mid);
  font-size: 13px;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.15s ease;
}
.search-result-item:hover {
  background: var(--gray-light);
}
.search-result-img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ececea, #dcdcd8);
  flex-shrink: 0;
}
.search-result-info {
  flex: 1;
}
.search-result-brand {
  font-size: 10px;
  color: var(--gray-mid);
  letter-spacing: 0.5px;
}
.search-result-name {
  font-size: 13px;
  color: var(--black);
  font-weight: 500;
}
.search-result-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal,
.reveal-item {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible,
.reveal-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== CART ===== */
.cart-icon-wrap {
  position: relative;
}
.cart-badge {
  display: none;
  position: absolute;
  top: -8px;
  right: -9px;
  background: var(--black);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.favorites-icon-wrap {
  position: relative;
}
.favorites-badge {
  display: none;
  position: absolute;
  top: -8px;
  right: -9px;
  background: var(--black);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.heart-filled {
  fill: var(--black) !important;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.6);
  z-index: 1001;
  display: none;
  align-items: stretch;
  justify-content: flex-end;
}
.cart-overlay.open {
  display: flex;
}
.cart-modal {
  background: var(--white);
  width: 100%;
  max-width: 420px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
}
.cart-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
}
.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #f2f2f2;
}
.cart-item-img {
  width: 64px;
  height: 80px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ececea, #dcdcd8);
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-brand { font-size: 10px; color: var(--gray-mid); letter-spacing: 0.5px; }
.cart-item-name { font-size: 13px; font-weight: 500; margin: 3px 0; }
.cart-item-size { font-size: 12px; color: var(--gray-mid); margin-bottom: 8px; }
.cart-item-qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.qty-btn {
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}
.cart-item-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cart-item-price { font-size: 13px; font-weight: 600; }
.cart-item-remove {
  border: none;
  background: none;
  color: #b0392b;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}
.favorite-add-to-cart-btn {
  border: 1px solid var(--black);
  background: none;
  color: var(--black);
  font-size: 11px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 14px;
}
.favorite-add-to-cart-btn:hover {
  background: var(--black);
  color: var(--white);
}
.fav-qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.fav-qty-row .qty-btn {
  width: 22px;
  height: 22px;
  font-size: 13px;
}
.fav-qty-row .fav-qty-display {
  font-size: 12px;
  min-width: 14px;
  text-align: center;
}
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .cart-modal { max-width: 100%; }
}
