/* ============================================================
   MUSEN PLUS — Catalog Stylesheet
   Version: 3.0 (Redesigned for 12 Products)
   ============================================================ */

/* === RESET & BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a2e;
  background: #f8f9fb;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* === LANG BAR === */
.lang-bar {
  background: #1a1a2e;
  padding: 10px 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.lang-bar button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 18px;
  margin: 0 4px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-bar button .flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

.lang-bar button.active,
.lang-bar button:hover {
  background: #fff;
  color: #1a1a2e;
  border-color: #fff;
  font-weight: 600;
}

/* === COVER === */
.cover {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  color: #fff;
  text-align: center;
  padding: 80px 24px 70px;
  position: relative;
  overflow: hidden;
}

.cover::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 70%, rgba(229, 62, 62, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(49, 130, 206, 0.08) 0%, transparent 50%);
  animation: coverFloat 20s ease-in-out infinite;
}

@keyframes coverFloat {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-3%, 3%);
  }
}

.cover-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  position: relative;
  backdrop-filter: blur(10px);
}

.cover h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
}

.cover h1 span {
  background: linear-gradient(90deg, #e53e3e, #f56565, #fc8181);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cover p {
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 28px;
  opacity: 0.85;
  line-height: 1.7;
  position: relative;
}

.cover-btn {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 10px 28px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
}

.cover-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* === FEATURES === */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 50px 24px;
  max-width: 1100px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.features.visible {
  opacity: 1;
  transform: translateY(0);
}

.feat {
  background: #fff;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feat:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.feat .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.4rem;
  color: #fff;
  background: #e2e8f0;
}

.feat .icon.icon-red {
  background: linear-gradient(135deg, #e53e3e, #fc8181);
}

.feat .icon.icon-blue {
  background: linear-gradient(135deg, #3182ce, #63b3ed);
}

.feat .icon.icon-green {
  background: linear-gradient(135deg, #38a169, #68d391);
}

.feat .icon.icon-purple {
  background: linear-gradient(135deg, #805ad5, #b794f4);
}

.feat h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1a1a2e;
}

.feat p {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.5;
}

/* === CATEGORY HEADER === */
.cat-header {
  background: linear-gradient(135deg, #e53e3e, #c53030);
  color: #fff;
  padding: 40px 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.cat-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.cat-header.cat-ai {
  background: linear-gradient(135deg, #e53e3e, #c53030);
}

.cat-header.cat-call {
  background: linear-gradient(135deg, #e53e3e, #c53030);
}

.cat-header h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.cat-header h2 i {
  margin-right: 10px;
}

.footer-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: #e53e3e;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.cat-sub {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* === PRODUCT SECTION === */
.product-section {
  padding: 60px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.product-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-section.alt {
  background: #f0f2f5;
}

.prod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.prod-grid.reverse {
  direction: rtl;
}

.prod-grid.reverse>* {
  direction: ltr;
}

/* Product Image */
.prod-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.prod-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.prod-img-wrap:hover .prod-img {
  transform: scale(1.05);
}

.prod-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 2;
}

.prod-grid.reverse .prod-badge {
  left: auto;
  right: 16px;
}

.prod-badge.hot {
  background: #e53e3e;
  color: #fff;
}

.prod-badge.sale {
  background: #f6ad55;
  color: #1a1a2e;
}

.prod-badge.new {
  background: #48bb78;
  color: #fff;
}

/* Product Info */
.prod-info {
  padding: 10px 0;
}

.prod-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.05);
  line-height: 1;
  margin-bottom: -10px;
}

.prod-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.prod-sub {
  font-size: 0.9rem;
  color: #e53e3e;
  font-weight: 600;
  margin-bottom: 12px;
}

.prod-desc {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 20px;
}

.prod-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 10px;
  border-left: 3px solid #e53e3e;
}

.pf-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #444;
  line-height: 1.4;
}

.pf-item i {
  color: #e53e3e;
  font-size: 0.8rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.prod-usecases {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.uc-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.uc-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #edf2f7;
  color: #4a5568;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.uc-tag i {
  font-size: 0.65rem;
  color: #e53e3e;
}

/* Spec Box */
.spec-box {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-item .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #a0aec0;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.spec-item .val {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2d3748;
}

/* Product Button */
.prod-btn {
  display: inline-block;
  background: linear-gradient(135deg, #e53e3e, #c53030);
  color: #fff;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

.prod-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(229, 62, 62, 0.4);
}

.prod-btn-quote {
  display: inline-block;
  background: transparent;
  color: #e53e3e;
  border: 2px solid #e53e3e;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.3s;
  margin-right: 10px;
  margin-bottom: 8px;
}

.prod-btn-quote:hover {
  background: #e53e3e;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

.prod-btn-quote i {
  margin-right: 6px;
}

/* === CTA SECTION === */
.cta-section {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  text-align: center;
  padding: 70px 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.cta-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 1rem;
  opacity: 0.8;
  max-width: 550px;
  margin: 0 auto 30px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s;
}

.cta-btn.primary {
  background: #e53e3e;
  color: #fff;
  box-shadow: 0 4px 20px rgba(229, 62, 62, 0.4);
}

.cta-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(229, 62, 62, 0.5);
}

.cta-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.cta-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* === FOOTER === */
footer {
  background: #0f0f1a;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 50px 24px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin: 0 auto 16px;
  filter: brightness(0) saturate(100%) invert(29%) sepia(93%) saturate(3000%) hue-rotate(345deg) brightness(95%) contrast(95%);
}

.footer-text {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-ver {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.footer-addr,
.footer-contact {
  font-size: 0.82rem;
  line-height: 1.8;
}

/* === CONTACT WIDGET (Fixed Position) === */
.contact-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

.widget-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 24px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  position: relative;
  animation: pulse 2s infinite;
}

.widget-btn:hover {
  transform: scale(1.1);
}

.widget-btn.zalo {
  background: #0068ff;
}

.widget-btn.hotline {
  background: #e74c3c;
  animation-delay: 1s;
}

.widget-tooltip {
  position: absolute;
  right: 70px;
  background: #333;
  color: white;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  pointer-events: none;
}

.widget-btn:hover .widget-tooltip {
  opacity: 1;
  visibility: visible;
  right: 65px;
}

#scrollTopBtn {
  display: none;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  outline: none;
  background-color: #0071bc;
  color: white;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
}

#scrollTopBtn.show {
  display: flex;
}

#scrollTopBtn:hover {
  background-color: #e67e22;
  transform: translateY(-5px);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 113, 188, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(0, 113, 188, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 113, 188, 0);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cover {
    padding: 50px 20px 45px;
  }

  .cover h1 {
    font-size: 1.8rem;
  }

  .features {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 30px 20px;
  }

  .feat {
    padding: 20px 14px;
  }

  .cat-header {
    padding: 28px 20px;
  }

  .cat-header h2 {
    font-size: 1.2rem;
  }

  .product-section {
    padding: 36px 20px;
  }

  .prod-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .prod-grid.reverse {
    direction: ltr;
  }

  .prod-img {
    height: 250px;
  }

  .prod-num {
    font-size: 2.5rem;
  }

  .prod-info h3 {
    font-size: 1.3rem;
  }

  .cta-section {
    padding: 45px 20px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  #scrollTopBtn {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .cover {
    padding: 40px 16px 35px;
  }

  .cover h1 {
    font-size: 1.5rem;
  }

  .cover p {
    font-size: 0.9rem;
  }

  .features {
    grid-template-columns: 1fr;
    padding: 24px 16px;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .lang-bar button {
    padding: 5px 12px;
    font-size: 12px;
  }
}