@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@400;500;600;700;800&display=swap');

:root {
  --cream: #FBF3D9;
  --cream-soft: #FFFBEF;
  --blue: #4FB8DE;
  --blue-dark: #2E97BE;
  --pink: #F3A9C9;
  --pink-soft: #FBE0EC;
  --peach: #F5A65B;
  --peach-soft: #FCE3C4;
  --coral: #EF7C7C;
  --brown: #5A4232;
  --brown-soft: #8A6F5C;
  --white: #FFFFFF;
  --shadow: 0 10px 30px rgba(90, 66, 50, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Noto Sans Georgian', sans-serif;
  background: var(--cream);
  color: var(--brown);
  line-height: 1.6;
}

img, video { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 243, 217, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--pink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--blue-dark);
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--brown);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--pink);
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.icon-btn:hover { transform: scale(1.08); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--blue-dark);
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--cream-soft);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { text-align: center; padding: 12px; }
  .nav-toggle { display: block; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 8px 20px rgba(79, 184, 222, 0.4); }
.btn-pink { background: var(--pink); color: var(--white); box-shadow: 0 8px 20px rgba(243, 169, 201, 0.45); }
.btn-peach { background: var(--peach); color: var(--white); box-shadow: 0 8px 20px rgba(245, 166, 91, 0.45); }
.btn-outline { background: transparent; color: var(--blue-dark); border: 2px solid var(--blue); }
.btn-sm { padding: 8px 18px; font-size: 0.9rem; }
.btn-danger { background: var(--coral); color: var(--white); }

/* ===== Hero ===== */
.hero {
  padding: 60px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-decor {
  font-size: 2rem;
  position: absolute;
  opacity: 0.7;
}

.hero-logo {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  box-shadow: var(--shadow);
  border: 6px solid var(--white);
}

.hero h1 {
  font-size: 2.6rem;
  color: var(--blue-dark);
  margin: 0 0 14px;
}

.hero p.slogan {
  max-width: 640px;
  margin: 0 auto 8px;
  font-size: 1.15rem;
  color: var(--brown-soft);
}

/* ===== Natural badge ===== */
.natural-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 36px 0;
}

.natural-badge {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  font-weight: 600;
  max-width: 260px;
}

.natural-badge .emoji { font-size: 1.8rem; }

/* ===== Category cards (home) ===== */
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 40px 0 60px;
}

@media (max-width: 760px) {
  .category-grid { grid-template-columns: 1fr; }
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: block;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  transition: transform 0.25s;
}
.category-card:hover { transform: translateY(-6px) scale(1.01); }

.category-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(90,66,50,0.75) 100%);
  display: flex;
  align-items: flex-end;
  padding: 26px;
}

.category-card h2 {
  color: var(--white);
  font-size: 1.8rem;
  margin: 0 0 6px;
}
.category-card p {
  color: var(--cream);
  margin: 0;
  font-weight: 500;
}

/* ===== Section headers ===== */
.section-title {
  text-align: center;
  color: var(--blue-dark);
  font-size: 2.1rem;
  margin: 50px 0 8px;
}
.section-sub {
  text-align: center;
  color: var(--brown-soft);
  max-width: 620px;
  margin: 0 auto 40px;
}

/* ===== Product grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
  margin-bottom: 60px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); }

.product-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--peach-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.product-media img,
.product-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.product-info h3 { margin: 0 0 6px; color: var(--brown); font-size: 1.15rem; }
.product-info .desc { color: var(--brown-soft); font-size: 0.92rem; flex: 1; margin-bottom: 10px; }
.product-price {
  align-self: flex-start;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.empty-state {
  text-align: center;
  color: var(--brown-soft);
  padding: 40px;
  font-size: 1.05rem;
}

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(90, 66, 50, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }

.modal-box {
  background: var(--cream-soft);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--shadow);
}

.modal-media {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-body { padding: 24px 28px 30px; }
.modal-body h2 { color: var(--blue-dark); margin: 0 0 8px; }
.modal-body .modal-price {
  display: inline-block;
  background: var(--peach);
  color: var(--white);
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.ingredients-box {
  background: var(--pink-soft);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-top: 14px;
}
.ingredients-box h4 {
  margin: 0 0 8px;
  color: var(--brown);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== Auth modal / forms ===== */
.form-group { margin-bottom: 16px; text-align: left; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--pink-soft);
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
}
.form-error {
  color: var(--coral);
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 20px;
  margin-top: 4px;
}
.form-success { color: #3E9A6D; font-weight: 600; font-size: 0.9rem; }

.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab-btn {
  flex: 1;
  padding: 10px;
  border-radius: 999px;
  border: 2px solid var(--pink);
  background: var(--white);
  font-weight: 700;
  cursor: pointer;
  color: var(--brown);
}
.tab-btn.active { background: var(--pink); color: var(--white); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--blue-dark);
}

/* ===== Inquiry form section ===== */
.inquiry-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px;
  margin: 20px 0 70px;
  text-align: center;
}
.inquiry-section h2 { color: var(--blue-dark); margin-top: 0; }
.inquiry-section p { color: var(--brown-soft); max-width: 560px; margin: 0 auto 26px; }
.inquiry-form {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--blue-dark);
  color: var(--cream-soft);
  padding: 50px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer-grid h4 { color: var(--white); margin: 0 0 14px; font-size: 1.05rem; }
.footer-grid p, .footer-grid a { color: var(--cream); opacity: 0.9; display: block; margin-bottom: 8px; }
.footer-grid a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.85rem;
  opacity: 0.85;
}
.social-icons { display: flex; gap: 12px; margin-top: 6px; }
.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.social-icons a:hover { background: var(--pink); }

/* ===== Chatbot ===== */
.chatbot-toggle {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  font-size: 1.6rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(243,169,201,0.6);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.chatbot-toggle:hover { transform: scale(1.08); }

.chatbot-window {
  position: fixed;
  bottom: 100px;
  right: 26px;
  width: 340px;
  max-width: 90vw;
  height: 440px;
  max-height: 70vh;
  background: var(--cream-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 900;
}
.chatbot-window.open { display: flex; }

.chatbot-header {
  background: var(--blue);
  color: var(--white);
  padding: 14px 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.msg.bot { background: var(--pink-soft); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--blue); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }
.msg a { color: var(--blue-dark); font-weight: 700; text-decoration: underline; }
.msg.user a { color: var(--white); }

.chatbot-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 10px;
}
.chip-btn {
  background: var(--peach-soft);
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
}
.chip-btn:hover { background: var(--peach); color: var(--white); }

.chatbot-input {
  display: flex;
  border-top: 2px solid var(--pink-soft);
  padding: 10px;
  gap: 8px;
}
.chatbot-input input {
  flex: 1;
  border: none;
  background: var(--white);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 0.9rem;
}
.chatbot-input input:focus { outline: none; }
.chatbot-input button {
  background: var(--blue);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
}

/* ===== Misc ===== */
.page-hero {
  text-align: center;
  padding: 50px 0 10px;
}
.page-hero h1 { color: var(--blue-dark); font-size: 2.3rem; margin-bottom: 10px; }
.page-hero p { color: var(--brown-soft); max-width: 600px; margin: 0 auto; }

.badge-natural {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E6F5E9;
  color: #2E7D4F;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.loader {
  text-align: center;
  padding: 40px;
  color: var(--brown-soft);
}
