/* =========================
   SIMPLE MENU — THEME (Full CSS, updated to 2-column layout like screenshot)
========================= */

/* ---------- Global ---------- */
body {
  font-family: "Inter", "Roboto", sans-serif;
  background: #0f0f0f;
  color: #eee;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.sfm-open-btn{display: none;}
/* ---------- Layout: main + sidebar + content ---------- */
.sfm-main-wrap {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
  /*padding: 12px 20px;*/
}

/* Sidebar (left) */
.category_product { flex: 0 0 240px;display: none; }
.category_product ul.sfm-category-list {
  list-style: none;
  margin: 0;
  padding: 14px;
  position: sticky;
  top: 100px;
  background: rgba(24,24,24,0.95);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}
.category_product ul.sfm-category-list li { margin-bottom: 10px; }
.category_product ul.sfm-category-list li a {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  color: #eaeaea;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}
.category_product ul.sfm-category-list li a:hover {
  transform: translateX(6px);
  background: linear-gradient(135deg,#2a2a2a,#1b1b1b);
  color: #fff;
}
.category_product ul.sfm-category-list li a.active {
  background: linear-gradient(135deg,#e63946,#ff5f6d);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 26px rgba(230,57,70,0.35);
}

/* ---------- Content area / list-wrap ---------- */
.sfm-list-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-sizing: border-box;
}
.sfm-category-wrap { width: 100%; }

/* ---------- Category banner ---------- */
.sfm-category-banner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 240px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: none;
  border: none;
  margin-bottom: 10px;
}
.sfm-category-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.6));
  z-index: 1;
}
.sfm-category-title{display: none;}
.sfm-category-banner * { position: relative; z-index: 2; }
.sfm-category-banner .sfm-category-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-align: center;
  text-shadow: 0 6px 20px rgba(0,0,0,0.7);
  padding: 8px 20px;
}

/* ---------- Items layout: 2 columns (text left, image right) ---------- */
.sfm-category-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sfm-item {
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;
  /*background: #f5f5f5;*/
  margin-bottom: 20px;
  border: none;
  box-shadow: none;
}

/* Text left */
.sfm-body {
  flex: 1;
  padding: 20px;
  margin-right: 30px;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Title with number */
.sfm-title {
  font-size: 22px;
  font-weight: 700;
  color: #e87c08;  /* cam nổi bật */
  margin: 0 0 10px 0;
}

/* Description */
.sfm-desc,
.sfm-excerpt {
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
  line-height: 1.5;
}

/* Price */
.sfm-price {
  font-size: 18px;
  font-weight: bold;
  color: #b70400;
  margin-top: auto;
}

/* Image right */
.sfm-thumb {
  flex: 0 0 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.sfm-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: none;
  box-shadow: none;
}

/* ---------- Modal overrides (giữ style cũ) ---------- */
.sfm-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 120000;
  font-family: "Inter", sans-serif;
  -webkit-overflow-scrolling: touch;
}
.sfm-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 1;
}
.sfm-modal-inner {
  position: relative;
  max-width: 1100px;
  margin: 5vh auto;
  background: #171717;
  color: #eee;
  border-radius: 14px;
  z-index: 2;
  box-shadow: 0 40px 80px rgba(0,0,0,0.8);
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100vh - 6vh);
  animation: fadeUp .36s cubic-bezier(.2,.8,.2,1);
  border: 1px solid rgba(255,255,255,0.03);
  min-width: 320px;
}
.sfm-modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  background: transparent;
  border: 0;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}
.sfm-modal-close:hover { transform: rotate(90deg); }
.sfm-modal-top {
  display: flex;
  gap: 24px;
  padding: 28px;
  background: linear-gradient(180deg,#141414,#1b1b1b);
  align-items: flex-start;
}
.sfm-modal-image img {
  width: 340px;
  height: 240px;
  object-fit: cover;
  border: none;
  box-shadow: none;
  display: block;
}
.sfm-modal-info { flex: 1 1 auto; min-width: 0; }
.sfm-modal-title {
  font-size: 22px;
  font-weight: 700;
}
.sfm-modal-price {
  color: #ffd34d;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 12px;
}
.sfm-modal-desc { color: #dcdcdc; line-height: 1.7; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .sfm-item {
    flex-direction: column;
  }
  .sfm-thumb {
    flex: 0 0 auto;
    width: 100%;
  }
  .sfm-thumb img {
    width: 100%;
    height: auto;
  }
}
