/* ============================================================
   Τσιβανίδης — Modern responsive theme (2026 redesign)
   ============================================================ */

:root {
  --red: #d30000;
  --red-dark: #a80000;
  --blue: #1565c0;
  --orange: #ef6c00;
  --green: #2e7d32;
  --ink: #222;
  --ink-soft: #555;
  --line: #e3e3e3;
  --bg: #f5f5f4;
  --card: #ffffff;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 6px 22px rgba(0, 0, 0, 0.13);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; }

a { color: var(--red); }
a:hover { color: var(--red-dark); }

.wrap {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ------------------------------------------------------------
   Top bar
   ------------------------------------------------------------ */
.topbar {
  background: #1c1c1c;
  color: #ddd;
  font-size: 13.5px;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  align-items: center;
  min-height: 34px;
  justify-content: flex-end;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #ff8a80; }
.topbar .tel { color: #bbb; }
.topbar .tel b { color: #fff; font-weight: 600; }

/* ------------------------------------------------------------
   Header / brand
   ------------------------------------------------------------ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { max-height: 74px; width: auto; }

.nav-toggle {
  display: none;
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
}

/* ------------------------------------------------------------
   Main navigation — restyles the existing #cssmenu markup
   ------------------------------------------------------------ */
.mainnav { background: var(--red); }

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

#cssmenu { position: relative; font-size: 15.5px; }

#cssmenu > ul {
  display: flex;
  flex-wrap: wrap;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 8px;
}

#cssmenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  padding: 13px 18px;
  white-space: nowrap;
}

#cssmenu > ul > li > a { font-weight: 600; }
#cssmenu > ul > li:hover > a { background: var(--red-dark); }

#cssmenu li { position: relative; }

#cssmenu ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
  z-index: 50;
}
#cssmenu ul ul ul {
  top: 0;
  left: 100%;
  border-radius: 8px;
}

#cssmenu li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#cssmenu ul ul a {
  color: var(--ink);
  padding: 10px 16px;
  border-bottom: 1px solid #f0f0f0;
}
#cssmenu ul ul li:last-child > a { border-bottom: 0; }
#cssmenu ul ul a:hover { background: #faf3f3; color: var(--red); }

#cssmenu .belaki {
  font-size: 12px;
  color: #b5b5b5;
  margin-left: auto;
}
#cssmenu > ul > li > a > .belaki { display: none; }

/* ------------------------------------------------------------
   Hero slider
   ------------------------------------------------------------ */
.hero {
  position: relative;
  background: #ddd;
  overflow: hidden;
}
.hero .slide {
  display: none;
  width: 100%;
}
.hero .slide.active { display: block; }
.hero .slide img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hero-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0;
}
.hero-dots button.active { background: var(--red); }

/* ------------------------------------------------------------
   Section headings
   ------------------------------------------------------------ */
.section { padding-top: 44px; padding-bottom: 10px; }
.section h2 {
  font-size: 26px;
  margin: 0 0 6px;
}
.section .sub {
  color: var(--ink-soft);
  margin: 0 0 24px;
}

/* ------------------------------------------------------------
   Category cards
   ------------------------------------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  text-decoration: none;
  color: var(--ink);
  border-top: 4px solid var(--red);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  color: var(--ink);
}
.card.blue { border-top-color: var(--blue); }
.card.orange { border-top-color: var(--orange); }
.card.green { border-top-color: var(--green); }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.card .more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  font-size: 14px;
  color: var(--red);
}
.card.blue .more { color: var(--blue); }
.card.orange .more { color: var(--orange); }
.card.green .more { color: var(--green); }

/* ------------------------------------------------------------
   Contact strip
   ------------------------------------------------------------ */
.contact-strip {
  margin: 44px 0 0;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.contact-grid h3 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: 0.4px;
  color: var(--red);
}
.contact-grid p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.contact-grid a { text-decoration: none; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  background: #1c1c1c;
  color: #bbb;
  font-size: 14px;
  margin-top: 0;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.site-footer a { color: #eee; text-decoration: none; }
.site-footer a:hover { color: #ff8a80; }

/* ------------------------------------------------------------
   Legacy content retrofit — old product pages render their
   table-based body inside .legacy until they are migrated
   ------------------------------------------------------------ */
.legacy { background: #fff; }
.legacy table { max-width: 100%; }

/* ------------------------------------------------------------
   Breadcrumb + product content (new template for inner pages)
   ------------------------------------------------------------ */
.breadcrumb {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 16px 0 0;
}
.breadcrumb a { text-decoration: none; }

.page-body {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  margin: 18px 0 40px;
  overflow-x: auto;
}

/* ------------------------------------------------------------
   Legacy typography — the old tsiba.css font classes, restyled
   to readable modern sizes (the markup still uses <font class=…>)
   ------------------------------------------------------------ */
.legacy font { font-family: var(--font); }

.legacy .keimenomauro, .legacy .keimenomauromm,
.legacy .keimenomaurom, .legacy .keimenomauromp,
.legacy .keimeno, .legacy .perigrafi { color: var(--ink); font-size: 15px; }

.legacy .keimenogkri, .legacy .keimenogkrimm, .legacy .keimenogkrim,
.legacy .keimenogkrimp, .legacy .keimenogkrif, .legacy .keimenogkrimmf,
.legacy .keimenogkrimf { color: var(--ink-soft); font-size: 15px; }

.legacy .keimenokokkino, .legacy .keimenokokkinomm, .legacy .keimenokokkinom,
.legacy .keimenokokkinomp, .legacy .keimenokokkinomf { color: var(--red); font-size: 15px; }

.legacy .keimenomple, .legacy .keimenomplemm, .legacy .keimenomplem,
.legacy .keimenomplemp { color: var(--blue); font-size: 15px; }

.legacy .keimenoportokali, .legacy .keimenoportokalimm,
.legacy .keimenoportokalim, .legacy .keimenoportokalimp { color: var(--orange); font-size: 15px; }

.legacy .keimenoprasino, .legacy .keimenoprasinomm,
.legacy .keimenoprasinom, .legacy .keimenoprasinomp { color: var(--green); font-size: 15px; }

.legacy .keimenomaurosup { color: var(--ink); font-size: 10px; }
/* invisible spacer lines from the old layout — keep them near zero height */
.legacy .keimenomaurosupbr, .legacy .keimenomaurosupk,
.legacy .keimenomaurosupkk { font-size: 4px; line-height: 4px; }
.legacy sup { line-height: 0; }

.legacy .featureSetText, .legacy .featureSetTextGkrim { color: var(--ink-soft); font-size: 14px; text-decoration: none; }
.legacy .featureSetTextKokkino, .legacy .featureSetTextKokkinom { color: var(--red); font-size: inherit; text-decoration: none; }
.legacy .featureSetTextMple, .legacy .featureSetTextMplem { color: var(--blue); font-size: inherit; text-decoration: none; }
.legacy .featureSetTextPortokali, .legacy .featureSetTextPortokalim { color: var(--orange); font-size: inherit; text-decoration: none; }
.legacy .featureSetTextPrasino, .legacy .featureSetTextPrasinom { color: var(--green); font-size: inherit; text-decoration: none; }
.legacy a:hover { text-decoration: underline; }

.legacy a[rel^="lightbox"] { cursor: zoom-in; }
.legacy td { vertical-align: top; }

/* ------------------------------------------------------------
   Breadcrumb links
   ------------------------------------------------------------ */
.breadcrumb a { color: var(--red); font-size: inherit; }

/* ------------------------------------------------------------
   Lightbox
   ------------------------------------------------------------ */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.85);
  padding: 20px;
}
.lb-overlay.open { display: flex; }
.lb-box { margin: 0; text-align: center; max-width: 90vw; }
.lb-box img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.lb-box figcaption { color: #eee; padding-top: 10px; font-size: 15px; }
.lb-close, .lb-prev, .lb-next {
  background: none;
  border: 0;
  color: #fff;
  font-size: 34px;
  cursor: pointer;
  padding: 8px 12px;
  line-height: 1;
}
.lb-close { position: absolute; top: 12px; right: 16px; font-size: 44px; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: #ff8a80; }

/* ------------------------------------------------------------
   Photo gallery (Ο χώρος μας)
   ------------------------------------------------------------ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.gallery img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.2s ease;
}
.gallery a:hover img { transform: scale(1.04); }

@media (max-width: 700px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery img { height: 150px; }
}

/* ------------------------------------------------------------
   Contact page
   ------------------------------------------------------------ */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.contact-cards .card { border-top-color: var(--red); }
.contact-cards .card p { font-size: 15px; }
@media (max-width: 900px) {
  .contact-cards { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   Mobile
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }

  .mainnav { display: none; }
  .mainnav.open { display: block; }

  #cssmenu > ul {
    display: block;
    padding: 0;
  }
  #cssmenu a { white-space: normal; }

  #cssmenu ul ul,
  #cssmenu ul ul ul {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    min-width: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
  }
  #cssmenu li.open > ul { display: block; }
  #cssmenu ul ul a { padding-left: 28px; }
  #cssmenu ul ul ul a { padding-left: 44px; }

  #cssmenu > ul > li > a > .belaki { display: inline; }
  #cssmenu .belaki { transition: transform 0.15s; }
  #cssmenu li.open > a > .belaki { transform: rotate(90deg); }

  .brand img { max-height: 56px; }
  .topbar .wrap { justify-content: center; }
}

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