/* ========================================
   OLIMPI — Grand Candy inspired design
   ======================================== */

:root {
  --accent: #E4003A;
  --accent-dark: #C50032;
  --bg: #fbfbfb;
  --white: #ffffff;
  --dark: #212529;
  --text: #555;
  --text-light: #9b9b9b;
  --border: #e4e4e4;
  --radius: 1em;
  --radius-lg: 1.82em;
  --shadow: 0 0.19em 0.82em rgba(0,0,0,0.1);
  --shadow-lg: 0.57em 0.8em 1em rgba(117,67,31,0.2);
  --font: 'Noto Sans Georgian', 'Poppins', system-ui, sans-serif;
  --font-latin: 'Poppins', system-ui, sans-serif;
  --container: 1200px;
  --px: 40px;
}

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--dark); background: var(--bg); overflow-x: hidden; }
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; border: none; outline: none; background: none; }

/* SHARED */
.section-title {
  font-size: 22px; font-weight: 700; color: var(--dark);
}
.view-all {
  font-size: 14px; font-weight: 600; color: var(--accent);
  transition: opacity 0.3s;
}
.view-all:hover { opacity: 0.7; }

/* ========================================
   PRELOADER
   ======================================== */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__logo {
  display: flex; align-items: center; justify-content: center;
}
.preloader__logo img {
  height: 234px; width: auto; object-fit: contain;
}
.preloader__bar {
  width: 80px; height: 3px; background: #eee; margin: 16px auto 0;
  border-radius: 3px; overflow: hidden;
}
.preloader__bar span {
  display: block; width: 0; height: 100%;
  background: var(--accent); border-radius: 3px;
  animation: preloaderFill 2s ease-out forwards;
}
@keyframes preloaderFill { to { width: 100%; } }

/* ========================================
   HEADER
   ======================================== */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  box-shadow: 0 0.19em 0.69em rgba(0,0,0,0.07);
  padding: 0 var(--px);
}
.header__inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.header__logo { display: flex; align-items: center; }
.header__logo img { height: 88px; width: auto; object-fit: contain; }

.header__nav { display: flex; align-items: center; gap: 28px; }
.header__nav-link {
  font-size: 15px; font-weight: 500; color: var(--dark);
  position: relative; transition: color 0.3s;
}
.header__nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), #ffcc00);
  transition: width 0.3s;
}
.header__nav-link:hover { color: var(--accent); }
.header__nav-link:hover::after, .header__nav-link.active::after { width: 100%; }
.header__nav-link.active { font-weight: 700; }

.header__right { display: flex; align-items: center; gap: 16px; }
.header__btn {
  font-size: 13px; font-weight: 600; color: var(--white);
  background: var(--accent); border-radius: 20px;
  padding: 8px 24px; transition: all 0.3s;
}
.header__btn:hover { background: var(--accent-dark); }

.header__lang { display: flex; gap: 2px; }
.header__lang-btn {
  font-family: var(--font-latin);
  font-size: 11px; font-weight: 700; padding: 5px 8px; border-radius: 4px;
  color: var(--text-light); cursor: pointer; transition: all 0.3s;
}
.header__lang-btn.active { color: var(--dark); background: #f0f0f0; }

.header__hamburger {
  display: none; width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; cursor: pointer;
}
.header__hamburger span {
  display: block; width: 22px; height: 2px; background: var(--dark);
  transition: all 0.3s; border-radius: 2px;
}
.header__hamburger.active span:first-child { transform: rotate(45deg) translate(4px, 4px); }
.header__hamburger.active span:nth-child(2) { opacity: 0; }
.header__hamburger.active span:last-child { transform: rotate(-45deg) translate(4px, -4px); }

/* NAV OVERLAY (mobile) */
.nav-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.4s ease;
}
.nav-overlay.open { opacity: 1; visibility: visible; }
.nav-overlay__inner { text-align: center; }
.nav-overlay__link {
  display: block; font-size: 24px; font-weight: 700;
  color: var(--dark); padding: 14px 0;
  transition: color 0.3s;
}
.nav-overlay__link:hover { color: var(--accent); }

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative; margin: 20px auto 0;
  max-width: 1260px;
  border-radius: var(--radius-lg); overflow: hidden;
  height: 414.7px;
}
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.8s ease;
}
.hero__slide.active { opacity: 1; }
.hero__img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 48px;
}
.hero__title {
  font-size: 32px; font-weight: 800; color: var(--white);
  line-height: 1.2; margin-bottom: 16px;
}
.hero__cta {
  display: inline-block; padding: 10px 32px;
  font-size: 14px; font-weight: 700; color: var(--white);
  background: var(--accent); border-radius: 24px;
  transition: all 0.3s; align-self: flex-start;
}
.hero__cta:hover { background: var(--accent-dark); transform: translateY(-2px); }
.hero__arrow {
  position: absolute; top: 50%; z-index: 10;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--dark); cursor: pointer;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(4px);
  transition: all 0.3s; transform: translateY(-50%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.hero__arrow:hover { background: var(--white); }
.hero__arrow--prev { left: 16px; }
.hero__arrow--next { right: 16px; }

/* ========================================
   CATEGORIES (Grand Candy pastel cards)
   ======================================== */
.categories {
  padding: 48px var(--px);
  max-width: calc(var(--container) + var(--px) * 2); margin: 0 auto;
}
.categories__inner { max-width: var(--container); margin: 0 auto; }
.categories__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.categories__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.cat-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-radius: var(--radius-lg);
  height: 130px; overflow: hidden; position: relative;
  box-shadow: var(--shadow-lg); transition: transform 0.3s;
}
.cat-card:hover { transform: translateY(-4px); }
.cat-card__text { z-index: 2; }
.cat-card__text h3 {
  font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 4px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.cat-card__text span {
  font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.85);
}
.cat-card__img {
  width: 90px; height: 90px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}
.cat-card:hover .cat-card__img { transform: rotate(6deg) scale(1.05); }
.cat-card__img img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ========================================
   PRODUCTS
   ======================================== */
.products-showcase {
  padding: 32px var(--px) 48px;
  max-width: calc(var(--container) + var(--px) * 2); margin: 0 auto;
}
.products-showcase__inner { max-width: var(--container); margin: 0 auto; }
.products-showcase__head { margin-bottom: 24px; }
.products-showcase__filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px;
}
.pf-btn {
  padding: 8px 20px; font-size: 13px; font-weight: 600;
  color: var(--text); border: 1.5px solid var(--border);
  border-radius: 24px; cursor: pointer; transition: all 0.3s;
  background: var(--white);
}
.pf-btn:hover { border-color: var(--accent); color: var(--accent); }
.pf-btn.active {
  border-color: var(--accent); color: var(--white);
  background: var(--accent);
}
.products-showcase__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}

.ps-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; position: relative;
  transition: all 0.3s; cursor: default;
  box-shadow: var(--shadow);
}
.ps-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.ps-card.hidden { display: none; }

.ps-card__badge {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 32px; height: 32px;
  background: var(--accent); color: var(--white);
  font-family: var(--font-latin);
  font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; cursor: pointer;
  transition: all 0.3s;
}
.ps-card__badge:hover { transform: scale(1.1); }

.ps-card__details {
  position: absolute; top: 0; left: 0; right: 0; z-index: 4;
  background: var(--accent); color: var(--white);
  border-radius: var(--radius);
  padding: 0 20px;
  display: flex; flex-direction: column; justify-content: flex-start;
  height: 0; overflow: hidden; opacity: 0;
  transition: height 0.4s ease, opacity 0.25s ease, padding 0.4s ease;
}
.ps-card__badge:hover ~ .ps-card__details,
.ps-card__details:hover,
.ps-card.info-open .ps-card__details {
  height: 100%; opacity: 1; padding: 24px 20px;
}
.ps-card__badge:hover, .ps-card.info-open .ps-card__badge {
  background: var(--white); color: var(--accent);
}
.ps-card__details-name { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.ps-card__details-desc { font-size: 12px; opacity: 0.8; margin-bottom: 8px; }
.ps-card__details-weight { font-size: 16px; font-weight: 700; color: #ffcc00; margin-bottom: 12px; }
.ps-card__details-list { list-style: none; }
.ps-card__details-list li {
  font-size: 12px; padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2); line-height: 1.4;
}
.ps-card__details-list li:last-child { border-bottom: none; }

.ps-card__img {
  height: 180px; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: var(--bg);
}
.ps-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 8px; transition: transform 0.4s;
}
.ps-card:hover .ps-card__img img { transform: scale(1.05); }

.ps-card__info { padding: 16px; text-align: center; }
.ps-card__info h3 {
  font-size: 14px; font-weight: 700; color: var(--dark);
  margin-bottom: 4px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ps-card__info p {
  font-size: 12px; color: var(--text-light); line-height: 1.4;
}

/* ========================================
   ABOUT
   ======================================== */
.about {
  padding: 64px var(--px);
  max-width: calc(var(--container) + var(--px) * 2); margin: 0 auto;
}
.about__inner {
  display: flex; align-items: center; gap: 48px;
  max-width: var(--container); margin: 0 auto;
}
.about__image { flex: 0 0 48%; }
.about__image img {
  width: 100%; height: 380px; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about__text { flex: 1; }
.about__text .section-title { margin-bottom: 16px; }
.about__text p {
  font-size: 15px; line-height: 1.8; color: var(--text);
  margin-bottom: 24px; max-width: 480px;
}
.about__btn {
  display: inline-block; padding: 12px 36px;
  font-size: 14px; font-weight: 700; color: var(--white);
  background: var(--accent); border-radius: 24px;
  transition: all 0.3s;
}
.about__btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px); box-shadow: 0 8px 20px rgba(228,0,58,0.25);
}

/* ========================================
   DID YOU KNOW
   ======================================== */
.dyk {
  background: var(--accent); color: var(--white);
  padding: 64px var(--px);
  position: relative; overflow: hidden;
}
.dyk__inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; gap: 64px;
}
.dyk__text { flex: 1; }
.dyk__text h2 {
  font-size: 28px; font-weight: 800; margin-bottom: 24px;
}
.dyk__card {
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  border-radius: var(--radius); padding: 24px;
  margin-bottom: 24px; max-width: 440px;
}
.dyk__card p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.9); }
.dyk__nav { display: flex; gap: 10px; }
.dyk__arrow {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); cursor: pointer; transition: all 0.3s;
}
.dyk__arrow:hover { background: rgba(255,255,255,0.15); }
.dyk__visual { flex: 0 0 35%; text-align: center; }
.dyk__big-num {
  font-family: var(--font-latin);
  font-size: clamp(64px, 12vw, 140px);
  font-weight: 900; line-height: 1; color: rgba(255,255,255,0.2);
}
.dyk__big-label {
  font-size: 20px; font-weight: 700; color: rgba(255,255,255,0.6);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ========================================
   NEWS / PRESS
   ======================================== */
.press {
  padding: 64px var(--px);
  max-width: calc(var(--container) + var(--px) * 2); margin: 0 auto;
}
.press__inner { max-width: var(--container); margin: 0 auto; }
.press__head { margin-bottom: 24px; }
.press__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.press__card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; transition: all 0.3s;
  box-shadow: var(--shadow);
}
.press__card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.press__card-img { height: 200px; overflow: hidden; }
.press__card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.press__card:hover .press__card-img img { transform: scale(1.05); }
.press__card-body { padding: 20px; }
.press__card-body time { font-size: 12px; font-weight: 600; color: var(--accent); }
.press__card-body h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin: 8px 0; line-height: 1.3; }
.press__card-body p { font-size: 13px; color: var(--text); margin-bottom: 12px; }
.press__read { font-size: 13px; font-weight: 700; color: var(--accent); }

/* ========================================
   PARTNERS
   ======================================== */
.partners {
  padding: 48px var(--px);
  max-width: calc(var(--container) + var(--px) * 2); margin: 0 auto;
}
.partners__inner { max-width: var(--container); margin: 0 auto; }
.partners__inner .section-title { text-align: center; margin-bottom: 32px; }
.partners__grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.partner-logo {
  display: flex; align-items: center; justify-content: center;
  height: 80px; background: var(--white);
  border-radius: var(--radius); transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.partner-logo:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.partner-logo span {
  font-family: var(--font-latin); font-size: 14px; font-weight: 700;
  color: var(--text-light); letter-spacing: 0.02em;
}
.partner-logo:hover span { color: var(--dark); }

/* ========================================
   CONTACT
   ======================================== */
.contact {
  padding: 64px var(--px);
  max-width: calc(var(--container) + var(--px) * 2); margin: 0 auto;
}
.contact__inner { max-width: 900px; margin: 0 auto; }
.contact__inner .section-title { text-align: center; margin-bottom: 32px; }
.contact__grid {
  display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: start;
}
.contact__info { display: flex; flex-direction: column; gap: 12px; }
.contact__card {
  background: var(--white); border-radius: var(--radius); padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.contact__card h4 { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.contact__card p { font-size: 13px; color: var(--text); }
.contact__form { display: flex; flex-direction: column; gap: 12px; }
.contact__form input, .contact__form textarea {
  width: 100%; padding: 14px 20px; font-size: 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--white); color: var(--dark); transition: border-color 0.3s;
}
.contact__form textarea { resize: vertical; min-height: 100px; }
.contact__form input::placeholder, .contact__form textarea::placeholder { color: var(--text-light); }
.contact__form input:focus, .contact__form textarea:focus { border-color: var(--accent); }
.contact__submit {
  padding: 12px 40px; font-size: 14px; font-weight: 700;
  color: var(--white); background: var(--accent);
  border-radius: 24px; cursor: pointer; transition: all 0.3s;
  align-self: flex-start;
}
.contact__submit:hover {
  background: var(--accent-dark); transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(228,0,58,0.25);
}

/* ========================================
   FOOTER (Grand Candy style — white bg, columns)
   ======================================== */
.footer {
  background: var(--white);
  box-shadow: 0 -0.19em 0.88em rgba(0,0,0,0.05);
  padding: 40px var(--px) 24px;
}
.footer__inner { max-width: var(--container); margin: 0 auto; }
.footer__top {
  display: flex; gap: 64px; margin-bottom: 32px;
  padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.footer__brand { flex: 1; }
.footer__logo-img { height: 56px; width: auto; margin-bottom: 12px; }
.footer__tagline { font-size: 13px; color: var(--text); max-width: 240px; }
.footer__col {
  display: flex; flex-direction: column; gap: 8px;
}
.footer__col a {
  font-size: 14px; color: var(--dark); transition: color 0.3s;
}
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
}
.footer__bottom p { font-size: 12px; color: var(--text-light); }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); transition: all 0.3s;
  background: var(--bg);
}
.footer__social a:hover { color: var(--accent); background: #fce4ec; }

/* ========================================
   SCROLL REVEAL
   ======================================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ========================================
   RESPONSIVE — 1024px
   ======================================== */
@media (max-width: 1024px) {
  .products-showcase__grid { grid-template-columns: repeat(3, 1fr); }
  .categories__grid { grid-template-columns: repeat(2, 1fr); }

  .about__inner { flex-direction: column; }
  .about__image { flex: none; width: 100%; }
  .about__image img { height: 300px; }
  .dyk__inner { flex-direction: column; }
  .dyk__visual { flex: none; }
  .press__grid { grid-template-columns: 1fr; }
  .footer__top { flex-wrap: wrap; gap: 32px; }
}

/* ========================================
   RESPONSIVE — 768px
   ======================================== */
@media (max-width: 768px) {
  :root { --px: 16px; }

  /* Header */
  .header__nav { display: none; }
  .header__btn { display: none; }
  .header__hamburger { display: flex; }
  .header__inner { height: 60px; }
  .header__logo img { height: 70px; }

  /* Hero */
  .hero { height: 280px; border-radius: var(--radius); margin-top: 12px; }
  .hero__title { font-size: 22px; }
  .hero__overlay { padding: 24px; }
  .hero__cta { padding: 8px 24px; font-size: 13px; }
  .hero__arrow { width: 36px; height: 36px; }

  /* Categories */
  .categories { padding: 32px var(--px); }
  .categories__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-card { height: 100px; padding: 16px; }
  .cat-card__text h3 { font-size: 14px; }
  .cat-card__img { width: 64px; height: 64px; }

  /* Products */
  .products-showcase { padding: 0 var(--px) 32px; }
  .products-showcase__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pf-btn { padding: 6px 14px; font-size: 11px; }
  .ps-card__img { height: 140px; padding: 12px; }
  .ps-card__info { padding: 12px; }
  .ps-card__info h3 { font-size: 13px; }
  .ps-card__info p { font-size: 11px; }
  .ps-card__badge { width: 28px; height: 28px; font-size: 11px; top: 8px; right: 8px; }

  /* About */
  .about { padding: 32px var(--px); }
  .about__image img { height: 220px; }
  .about__text p { font-size: 14px; }

  /* DYK */
  .dyk { padding: 40px var(--px); }
  .dyk__text h2 { font-size: 22px; }
  .dyk__card p { font-size: 13px; }
  .dyk__big-num { font-size: 64px; }

  /* Press */
  .press { padding: 32px var(--px); }
  .press__card-img { height: 160px; }

  /* Partners */
  .partners { padding: 32px var(--px); }
  .partners__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .partner-logo { height: 64px; }

  /* Contact */
  .contact { padding: 32px var(--px); }
  .contact__grid { grid-template-columns: 1fr; gap: 20px; }
  .contact__submit { width: 100%; text-align: center; }

  /* Footer */
  .footer { padding: 32px var(--px) 16px; }
  .footer__top { flex-direction: column; gap: 24px; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer__social { justify-content: center; }

  /* Nav overlay */
  .nav-overlay__link { font-size: 20px; }
}

@media (max-width: 480px) {
  .products-showcase__grid { grid-template-columns: repeat(2, 1fr); }
  .categories__grid { grid-template-columns: 1fr; }
}
