/* ==========================================================================
   SOBLAR Official Website - English Version Custom Stylesheet (en_style.css)
   Full responsive layout, locked header height, bottom-pinned navbar,
   sidebar styling, and product card typography
   ========================================================================== */

/* --- 1. Global Page Layout & Theme --- */
html {
  background: #cce4ff;
}

body {
  color: #333;
  font-size: 12px;
  margin: 0;
  padding: 0;
  font-family: Arial, Verdana, Helvetica, sans-serif;
  background: #cce4ff url(/skin/body.jpg) center top / cover no-repeat fixed;
}

#container {
  width: 960px !important;
  max-width: 960px;
  margin: 0 auto !important;
  color: #323232 !important;
  background: #ffffff !important;
  text-align: center !important;
  box-shadow: 0 0 20px rgba(0, 45, 90, 0.15) !important;
  position: relative !important;
}

/* --- 2. Header Banner & Fixed Height --- */
#container #header {
  height: 250px !important;
  width: 960px !important;
  margin: 0 auto 0 !important;
  background: url(/skin/header.jpg) center top no-repeat !important;
  position: relative !important;
  z-index: 0 !important;
  box-sizing: border-box !important;
}

#container #header #blogname {
  height: 55px !important;
  padding: 30px 20px 2px 60px !important;
  background: none !important;
}

#container #header #blogname #blogTitle {
  height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* --- 3. Language Switcher Badge (Top-Right Absolute Pin) --- */
.lang-switch {
  position: absolute !important;
  top: 12px !important;
  right: 20px !important;
  z-index: 99 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  box-shadow: 0 2px 8px rgba(0, 45, 90, 0.2) !important;
  font-size: 12px !important;
  font-family: Arial, sans-serif !important;
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
  line-height: normal !important;
}

.lang-switch a {
  text-decoration: none !important;
  font-weight: bold !important;
  color: #555555 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  transition: background 0.2s, color 0.2s !important;
}

.lang-switch a:hover {
  color: #004b91 !important;
  background: #eef5fc !important;
}

.lang-switch a.active {
  color: #ffffff !important;
  background: #004b91 !important;
}

/* --- 4. Top Navigation Bar (Pinned to Exact Bottom of Header) --- */
#container #header #menu {
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 38px !important;
  text-align: left !important;
  clear: both !important;
  z-index: 10 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#container #header #menu ul {
  list-style: none !important;
  margin: 0 0 0 15px !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  float: left !important;
  flex-wrap: nowrap !important;
  height: 38px !important;
}

#container #header #menu ul li.menuL,
#container #header #menu ul li.menuR {
  display: none !important;
}

#container #header #menu ul li {
  float: none !important;
  display: inline-block !important;
  height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
}

#container #header #menu ul li a.menuA {
  display: inline-block !important;
  font-size: 13.5px !important;
  font-weight: bold !important;
  color: #1e3a5f !important;
  text-decoration: none !important;
  padding: 5px 12px !important;
  line-height: 20px !important;
  white-space: nowrap !important;
  border-radius: 4px !important;
  transition: all 0.2s ease-in-out !important;
}

#container #header #menu ul li a.menuA:hover {
  color: #ffffff !important;
  background: #004b91 !important;
}

/* --- 5. Main Body Grid Containers --- */
#Tbody {
  width: 960px !important;
  margin: 0 auto !important;
  text-align: left !important;
}

#mainContent {
  width: 680px !important;
  float: left !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

#innermainContent {
  width: 660px !important;
  margin: 0 0 0 10px !important;
  float: left !important;
  background: transparent !important;
}

#sidebar {
  width: 260px !important;
  float: right !important;
  margin: 0 !important;
  padding: 10px 10px 0 0 !important;
  box-sizing: border-box !important;
}


/* Sidebar Category Menu - Clean English Badges */
#sidebar #cglist {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding: 8px 4px !important;
}

#sidebar #cglist a.sideA,
#sidebar #cglist a.en-cat-btn {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 34px !important;
  padding: 7px 12px !important;
  background: #f8fbfe !important;
  border: 1px solid #d0e2f2 !important;
  border-radius: 6px !important;
  color: #1e3a5f !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  line-height: 1.35 !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
  text-align: left !important;
}

#sidebar #cglist a.sideA:hover,
#sidebar #cglist a.en-cat-btn:hover {
  background: #004b91 !important;
  color: #ffffff !important;
  border-color: #004b91 !important;
  box-shadow: 0 2px 6px rgba(0, 75, 145, 0.2) !important;
}

#sidebar #cglist a.sideA.active,
#sidebar #cglist a.en-cat-btn.active {
  background: #004b91 !important;
  color: #ffffff !important;
  border-color: #004b91 !important;
}

#sidebar #cglist a.sideA::before,
#sidebar #cglist a.en-cat-btn::before {
  content: "▶";
  font-size: 9px;
  margin-right: 8px;
  color: #0066c0;
  flex-shrink: 0;
}

#sidebar #cglist a.sideA:hover::before,
#sidebar #cglist a.en-cat-btn:hover::before {
  color: #ffffff;
}

/* Product Category Grid Card */
.en-product-item {
  display: flex;
  flex-direction: row;
  border: 1px solid #c8d8ea;
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 45, 90, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.en-product-item:hover {
  border-color: #004b91;
  box-shadow: 0 4px 14px rgba(0, 45, 90, 0.12);
}

.en-product-img-box {
  width: 200px;
  min-width: 200px;
  text-align: center;
  margin-right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbfdff;
  border-radius: 6px;
  padding: 8px;
  border: 1px solid #edf4fb;
}

.en-product-img-box img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.en-product-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.en-product-title {
  font-size: 15px;
  font-weight: bold;
  color: #004b91;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.en-product-title a {
  color: #004b91;
  text-decoration: none;
}

.en-product-title a:hover {
  text-decoration: underline;
}

.en-product-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 12px;
}

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

.btn-inquire {
  display: inline-block;
  background: #004b91;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 16px;
  border-radius: 16px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-inquire:hover {
  background: #0066c0;
}

@media (max-width: 768px) {
  #container, #header, #Tbody, #mainContent, #innermainContent, #sidebar {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
  }
  #container #header {
    height: auto !important;
    min-height: 120px !important;
    background-size: cover !important;
  }
  #container #header #menu {
    position: relative !important;
    height: auto !important;
  }
  #container #header #menu ul {
    flex-wrap: wrap !important;
    height: auto !important;
    margin: 10px 0 !important;
  }
  #mainContent, #innermainContent {
    width: 100% !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 650px) {
  .en-product-item {
    flex-direction: column;
  }
  .en-product-img-box {
    width: 100%;
    min-width: 100%;
    margin-right: 0;
    margin-bottom: 12px;
  }
}

