
:root {
  --bg: #ffffff;
  --sec-bg: #f5f5f7;
  --card-bg: #ffffff;
  --text: #1d1d1f;
  --text-sec: #86868b;
  --accent-black: #000000;
  --accent-gray: #8e8e93; 
  --border: #e8e8ed;
  --card-base-height: 460px;

  /* Glassmorphism Variables */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  --blur-amount: 20px;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body { 
  font-family: 'Montserrat', sans-serif; 
  background: var(--bg); 
  color: var(--text); 
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

.container {
  max-width: 1400px; 
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* =========================================
   2. ШАПКА ТА НАВІГАЦІЯ
   ========================================= */
.utility-bar {
  height: 44px; background: #000; color: #fff; display: flex; align-items: center;
  font-size: 11px; font-weight: 500; letter-spacing: 0.05em; position: relative; z-index: 1001;
}
.utility-bar .container { display: flex; justify-content: space-between; align-items: center; }
.util-left, .util-right { display: flex; gap: 20px; align-items: center; }
.util-link { color: #ccc; text-transform: uppercase; transition: color 0.2s; }
.util-link:hover { color: #fff; }
.lang-switcher span { color: #fff; font-weight: 700; }
.lang-switcher { color: #666; cursor: pointer; }

.main-nav {
  height: 80px; position: sticky; top: 0; z-index: 1000; display: flex; align-items: center;
  background: var(--glass-bg); backdrop-filter: saturate(180%) blur(var(--blur-amount));
  -webkit-backdrop-filter: saturate(180%) blur(var(--blur-amount));
  border-bottom: 1px solid rgba(0,0,0,0.05); box-shadow: var(--glass-shadow); transition: height 0.3s ease;
}
.main-nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo-img { height: 42px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }

.nav-center { flex: 1; max-width: 500px; margin: 0 40px; }
.search-wrapper { position: relative; width: 100%; }
.search-input {
  width: 100%; padding: 12px 20px 12px 48px; border-radius: 99px; border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.04); font-family: inherit; font-size: 13px; font-weight: 500;
  color: var(--text); transition: all 0.3s var(--transition-smooth);
}
.search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; opacity: 0.4; transition: all 0.3s ease; pointer-events: none;
}
.search-input:focus {
  background: #fff; border-color: rgba(0,0,0,0.1); box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  transform: scale(1.02); outline: none;
}
.search-input:focus + .search-icon { opacity: 1; transform: translateY(-50%) scale(1.1); }

.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link-item { 
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; position: relative; padding: 8px 0; color: var(--text);
}
.nav-link-item::before {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--accent-black);
  transition: width 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); border-radius: 2px;
}
.nav-link-item:hover::before { width: 100%; }

.review-badge {
  position: absolute; top: -8px; right: -18px; background: var(--accent-black);
  color: #fff; font-size: 9px; font-weight: 600; height: 16px; width: 16px; box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center; border-radius: 4px; 
}

.nav-icons { display: flex; gap: 12px; padding-left: 32px; border-left: 1px solid rgba(0,0,0,0.06); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; cursor: pointer; position: relative; background: transparent; transition: all 0.2s ease;
}
.icon-btn:hover { background: rgba(0,0,0,0.04); }
.nav-icon-img { width: 22px; height: 22px; object-fit: contain; transition: transform 0.3s var(--transition-smooth); }
.icon-btn:hover .nav-icon-img { transform: scale(1.15); }
.cart-count { 
  position: absolute; top: -4px; right: -6px; background: #1b1b1b; color: #fff; 
  font-size: 9px; width: 16px; height: 16px; border-radius: 4px; 
  display: flex; align-items: center; justify-content: center; font-weight: 700; box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
}

/* =========================================
   3. ПІДВАЛ (FOOTER)
   ========================================= */
.main-footer { background-color: #000000; color: #ffffff; padding: 80px 0 30px 0; font-size: 13px; border-top: 1px solid #333; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 60px; }
.brand-col { display: flex; flex-direction: column; gap: 20px; padding-right: 20px; }
.footer-logo { font-size: 24px; font-weight: 900; letter-spacing: -1px; color: #fff; display: inline-block; margin-bottom: 10px; }
.footer-desc { color: #86868b; line-height: 1.6; font-size: 13px; max-width: 300px; }
.social-links { display: flex; gap: 12px; margin-top: 10px; }
.social-icon-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; transition: 0.3s ease; }
.social-icon-btn img { width: 18px; height: 18px; filter: invert(1); opacity: 0.7; transition: 0.3s; }
.social-icon-btn:hover { background: #fff; transform: translateY(-3px); }
.social-icon-btn:hover img { filter: invert(0); opacity: 1; }
.footer-col h4 { color: #86868b; font-size: 12px; font-weight: 600; text-transform: uppercase; margin-bottom: 25px; letter-spacing: 0.05em; }
.footer-links-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer-link { color: #f5f5f7; text-decoration: none; font-weight: 500; transition: all 0.3s ease; display: inline-flex; align-items: center; }
.footer-link:hover { color: #fff; transform: translateX(5px); text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.contact-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; color: #f5f5f7; }
.contact-row svg { width: 18px; height: 18px; fill: #86868b; margin-top: 2px; }
.contact-text span { display: block; color: #86868b; font-size: 11px; margin-bottom: 4px; }
.contact-val { font-weight: 600; font-size: 14px; }
.footer-bottom { border-top: 1px solid #333; padding-top: 30px; display: flex; justify-content: space-between; align-items: center; color: #86868b; font-size: 11px; }
.copyright { font-weight: 500; }
.legal-links { display: flex; gap: 20px; }
.legal-links a:hover { text-decoration: underline; color: #fff; }


@media (max-width: 992px) { 
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 50px; } 
}
@media (max-width: 600px) { 
  .footer-grid { grid-template-columns: 1fr; gap: 40px; } 
  .brand-col { align-items: center; text-align: center; padding: 0; } 
  .footer-col { text-align: center; } 
  .footer-bottom { flex-direction: column; gap: 15px; text-align: center; } 
  .footer-link:hover { transform: translateX(0) scale(1.05); } 
}

.epc-chat-widget { position: fixed; bottom: 30px; right: 30px; z-index: 1000; font-family: 'Montserrat', sans-serif; }
.epc-chat-toggle { width: 60px; height: 60px; border-radius: 50%; background: #000; color: #fff; border: none; cursor: pointer; box-shadow: 0 10px 24px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.epc-chat-toggle:hover { transform: scale(1.05); background: #1d1d1f; }

.epc-chat-window { position: absolute; bottom: 80px; right: 0; width: 340px; background: #fff; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.15); display: flex; flex-direction: column; overflow: hidden; transform: translateY(20px); opacity: 0; pointer-events: none; transition: 0.3s ease; border: 1px solid rgba(0,0,0,0.06); }
.epc-chat-window.active { transform: translateY(0); opacity: 1; pointer-events: all; }

.epc-chat-header { background: #000; color: #fff; padding: 20px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.epc-chat-close { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; opacity: 0.7; }
.epc-chat-close:hover { opacity: 1; }

.epc-chat-body { padding: 20px; height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; background: #f5f5f7; }
.epc-msg { padding: 12px 16px; border-radius: 16px; font-size: 13px; line-height: 1.4; max-width: 85%; }
.epc-msg.bot { background: #fff; color: #000; align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.epc-msg.user { background: #ff3b30; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }

.epc-chat-footer { padding: 16px; background: #fff; border-top: 1px solid rgba(0,0,0,0.06); display: flex; flex-direction: column; gap: 10px; }
.epc-input-row { display: flex; gap: 8px; }
.epc-chat-input { flex: 1; border: 1px solid rgba(0,0,0,0.1); border-radius: 20px; padding: 12px 16px; font-size: 13px; font-family: inherit; outline: none; transition: 0.2s; }
.epc-chat-input:focus { border-color: #000; }
.epc-chat-send { width: 44px; height: 44px; border-radius: 50%; background: #000; color: #fff; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
.epc-chat-send:hover { background: #ff3b30; }

@media (max-width: 480px) {
  .epc-chat-window { width: calc(100vw - 40px); right: -10px; bottom: 75px; }
}