/* QX Scaffold Product Widget Styles */

/* Typography Scale */
.qx-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.qx-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.qx-body {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.qx-caption {
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Section chính */
.qx-scaffold-product {
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.qx-scaffold-product::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23e2e8f0" fill-opacity="0.3"><circle cx="30" cy="30" r="1.5"/></g></g></svg>');
  opacity: 0.5;
}

.qx-scaffold-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
  position: relative;
  z-index: 2;
}

/* Cột trái - Text features */
.qx-scaffold-left {
  display: grid;
  grid-template-rows: repeat(auto-fit, minmax(0, 1fr));
  gap: 2rem;
  align-content: start;
}

/* Cột giữa - Hình ảnh */
.qx-scaffold-center {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
}

.qx-scaffold-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Cột phải - Text features */
.qx-scaffold-right {
  display: grid;
  grid-template-rows: repeat(auto-fit, minmax(0, 1fr));
  gap: 2rem;
  align-content: start;
}

/* Feature Item Styles */
.qx-feature-item {
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.qx-feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 12px -2px rgba(0, 0, 0, 0.15);
}

/* Orange style will be controlled by Elementor */

/* Feature title styles controlled by Elementor */

/* Feature description styles controlled by Elementor */

/* Responsive Design */
@media (max-width: 1024px) {
  .qx-scaffold-content {
    gap: 1.5rem;
  }

  .qx-scaffold-left,
  .qx-scaffold-right {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .qx-scaffold-product {
    padding: 2.5rem 0;
  }

  .qx-scaffold-content {
    grid-template-columns: 1fr;
    gap: 1rem;
    min-height: auto;
  }

  /* Mobile: Hình lên đầu */
  .qx-scaffold-center {
    order: 1;
    margin-bottom: 1rem;
  }

  /* Mobile: Text features thành 2 cột */
  .qx-scaffold-left {
    order: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .qx-scaffold-right {
    order: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

}

@media (max-width: 480px) {
  .qx-scaffold-product {
    padding: 2rem 0;
  }

  /* Mobile small: Tất cả features thành 1 cột */
  .qx-scaffold-left,
  .qx-scaffold-right {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

}

/* Dark mode support - colors controlled by Elementor */
