/* DICGU Modern CSS - Replaces table-based layout with flexbox */
/* Preserves original color scheme and proportions */

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

body {
  background: #464646 url(images/bg.jpg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #333;
  line-height: 1.4;
}

a { color: #0066CC; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Site wrapper */
.site-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}

/* Header: logo + carousel side by side */
.header {
  display: flex;
  width: 100%;
}
.header-logo {
  flex-shrink: 0;
}
.header-logo img { display: block; }

/* Carousel */
.carousel {
  position: relative;
  width: 716px;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}
.carousel img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s;
}
.carousel img.active { opacity: 1; }

/* Main layout: sidebar + content */
.main {
  display: flex;
  width: 100%;
}

/* Sidebar */
.sidebar {
  width: 266px;
  flex-shrink: 0;
  background: url(images/layout_08.jpg) repeat-y;
}
.sidebar-top { display: block; }
.sidebar-bottom img { display: block; }

/* Language switcher */
.lang-switch {
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
}
.lang-switch a {
  color: #666;
  padding: 2px 6px;
  text-decoration: none;
}
.lang-switch a.active,
.lang-switch a:hover {
  color: #003399;
  font-weight: bold;
}

/* vert-one menu (kept from original) */
ul.vert-one {
  margin: 0; padding: 0;
  list-style: none;
  text-align: left;
  width: 178px;
  margin: 0 auto;
}
ul.vert-one li {
  border-top: 1px solid #D8D8D8;
}
ul.vert-one li a {
  display: block;
  text-decoration: none;
  color: #464646;
  font: bold 16px Helvetica, Verdana, Arial, sans-serif;
  line-height: 300%;
  background: #fff;
  padding: 0 0 0 22px;
}
ul.vert-one li a:hover {
  background: #ccc url(images/vert-one_arrow.gif) no-repeat 2px;
}
ul.vert-one li a.current,
ul.vert-one li a.current:hover {
  background: #e5e5e5 url(images/vert-one_arrow.gif) no-repeat 2px;
}

/* Content area */
.content-area {
  flex: 1;
  min-width: 0;
}
.content-bar {
  width: 10px;
  background: url(images/layout_06.jpg) repeat-y;
  flex-shrink: 0;
  float: left;
  min-height: 400px;
}
.content-box {
  background: #ECECEE;
  padding: 15px 20px;
  min-height: 400px;
}

/* Typography - matches original */
h1, .title2 {
  color: #24398C;
  font: bold 14px Arial, Helvetica, sans-serif;
}
h2 { color: #996600; font-size: 14px; font-weight: bold; }
.style1 { font-size: 12px; color: #316AC5; line-height: 19px; }
.style4 { color: #003399; font-size: 13px; line-height: 20px; }
.title5 { font-size: 12px; color: #fff; font-weight: normal; line-height: 17px; }
.item-top { font: bold 15px Verdana, Arial, Helvetica, sans-serif; color: #CC6600; }

/* Content tables (product specs etc) */
.content-box table { border-collapse: collapse; }
.content-box img { max-width: 100%; height: auto; }

/* Product grid on menu page */
.product-grid {
  width: 100%;
  border-collapse: collapse;
}
.product-grid td {
  padding: 4px;
  vertical-align: top;
}
.product-grid .cat-header {
  padding: 8px 4px;
  font: bold 14px Arial, Helvetica, sans-serif;
  color: #24398C;
}
.product-grid .cat-header img { vertical-align: middle; margin-right: 4px; }
.product-grid a img { border: 0; }

/* Footer */
.footer {
  width: 100%;
  text-align: center;
  padding: 15px;
  color: #316AC5;
  font-size: 11px;
  line-height: 18px;
}
.footer a { color: #316AC5; }

/* Back/Top links */
.nav-btns {
  text-align: center;
  padding: 8px;
  background: #ECECEE;
}
.nav-btns a {
  font-size: 11px;
  color: #666;
  margin: 0 10px;
}
.nav-btns a:hover { color: #003399; }

/* Breadcrumb */
.breadcrumb { font-size: 12px; color: #316AC5; margin-bottom: 10px; }
.breadcrumb a { color: #316AC5; }

/* Frame style from original */
.frame { border: 1px dashed #CCC; padding: 10px; }

/* Product detail page styles */
.product-info { line-height: 19px; }
.product-info ul { margin-left: 20px; }
.product-info li { margin-bottom: 4px; color: #316AC5; font-size: 12px; }
