@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600&display=swap');

/* Reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #F8F9FB;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==================== HEADER ====================*/
.unitronics-header {
  height: 64px;
  background: white;
  border-bottom: 1px solid #E5E7EB;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.unitronics-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.unitronics-logo {
  height: 32px;
}

.profile-dropdown {
  position: relative;
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.profile-button:hover {
  background-color: #f9fafb;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E31E24 0%, #8B1538 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.profile-text {
  color: #374151;
  font-weight: 500;
  font-size: 14px;
}

.profile-chevron {
  color: #6b7280;
  transition: transform 0.2s;
}

.profile-dropdown.active .profile-chevron {
  transform: rotate(180deg);
}

.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 224px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1001;
}

.profile-dropdown.active .profile-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-dropdown-header {
  padding: 12px;
}

.profile-dropdown-name {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  margin: 0 0 2px 0;
}

.profile-dropdown-email {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.profile-dropdown-divider {
  height: 1px;
  background-color: #e5e7eb;
}

.profile-dropdown-item {
  display: block;
  padding: 10px 12px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s;
}

.profile-dropdown-item:hover {
  background-color: #f9fafb;
}

.profile-dropdown-logout {
  color: #dc2626;
  font-weight: 500;
}

.profile-dropdown-logout:hover {
  background-color: #fef2f2;
}

/* ==================== LAYOUT ==================== */
.unitronics-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 64px;
}

/* ==================== SIDEBAR ==================== */
.page-wrapper_sidebar {
  width: 256px;
  flex-shrink: 0;
  background: white;
  border-right: 1px solid #E5E7EB;
  height: calc(100vh - 64px);
  position: sticky;
  top: 64px;
  overflow-y: auto;
}

.sidebar {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.menu-wrapper {
  padding: 16px;
  flex: 1;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-item {
  position: relative;
}

.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #4b5563;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  font-weight: 400;
}

.menu-link:hover {
  background-color: #F9FAFB;
  color: #111827;
}

.menu-item.current-menu-item>.menu-link {
  background-color: rgba(2, 38, 53, 0.2);
  color: #022635;
  font-weight: 500;
}

.menu-link-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.menu-link .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-link .icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.menu-link .label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.menu-chevron svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.menu-item.menu-open>.menu-link .menu-chevron {
  transform: rotate(180deg);
}

.sub-menu {
  list-style: none;
  margin: 4px 0 0 0;
  padding: 0 0 0 44px;
  display: none;
  flex-direction: column;
  gap: 4px;
}

.menu-item.menu-open .sub-menu {
  display: flex;
}

.sub-menu .menu-link {
  padding: 8px 12px;
  color: #6b7280;
  justify-content: flex-start;
}

.sub-menu .menu-link.active {
  background-color: rgba(2, 38, 53, 0.2);
  color: #022635;
  font-weight: 500;
}

.support-section {
  padding: 16px;
  border-top: 1px solid #E5E7EB;
  margin-top: auto;
}

.support-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s ease;
}

.support-link:hover {
  background-color: #F9FAFB;
}

.support-link .icon {
  width: 20px;
  height: 20px;
}

.support-link .icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ==================== MAIN CONTENT ==================== */
.unitronics-main {
  flex: 1;
  min-width: 0;
}

.unitronics-hero {
  position: relative;
  min-height: 360px;
  background-image: url('https://unitronics.prm.technology/2026/03/398ad3b68_CoverImage1.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 48px;
}

.hero-corner {
  position: absolute;
  width: 80px;
  height: 80px;
  z-index: 10;
}

.hero-corner-tl {
  top: 24px;
  left: 24px;
  border-left: 4px solid #FFFDF0;
  border-top: 4px solid #FFFDF0;
  border-top-left-radius: 8px;
  filter: drop-shadow(0 0 20px rgba(255, 253, 240, 1));
}

.hero-corner-br {
  bottom: 24px;
  right: 24px;
  border-right: 4px solid #FFFDF0;
  border-bottom: 4px solid #FFFDF0;
  border-bottom-right-radius: 8px;
  filter: drop-shadow(0 0 20px rgba(255, 253, 240, 1));
}

.hero-inner {
  position: relative;
  z-index: 20;
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.hero-heading {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.1;
}

.hero-explore {
  color: #E31E24;
}

.hero-brand {
  color: white;
}

.hero-tagline {
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 32px 0;
  letter-spacing: 0.05em;
}

.hero-search-box {
  position: relative;
  margin: 0 0 24px;
}

.hero-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  stroke-width: 2;
}

.hero-search-input {
  width: 100%;
  padding: 12px 16px 12px 48px;
  height: 48px;
  border-radius: 9999px;
  border: none;
  font-size: 16px;
  color: #111827;
  font-family: 'Poppins', sans-serif;
  outline: none;
}

.hero-search-input:focus {
  box-shadow: 0 0 0 2px #E31E24;
}

.hero-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.hero-filter-tag {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.hero-filter-tag:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==================== CONTENT SECTION ==================== */
.unitronics-content {
  padding: 32px 48px 48px;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.content-title {
  font-size: 28px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.content-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.view-toggle {
  display: flex;
  gap: 4px;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 4px;
}

.view-btn {
  padding: 8px;
  border: none;
  background: transparent;
  color: #6B7280;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.view-btn:hover {
  background: #F9FAFB;
}

.view-btn.active {
  background: #E31E24;
  color: white;
}

.content-sort {
  padding: 8px 32px 8px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: white;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
}

/* ==================== PRODUCT CARDS ==================== */
.products-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.product-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}

.product-item:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.product-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}

.product-image .a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.new-product {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  background: #E31E24;
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
}

.product-content {
  padding: 16px;
}

.product-content .title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
}

.product-card__ext-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.post-meta_left {
  display: flex;
  gap: 12px;
}

.post-category .a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #6B7280;
  text-decoration: none;
}

.thm-btn {
  padding: 8px 16px;
  background: #E31E24;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.thm-btn:hover {
  background: #C81E24;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-item_link {
  padding: 4px 12px;
  background: #F3F4F6;
  color: #4B5563;
  border-radius: 9999px;
  font-size: 12px;
  text-decoration: none;
  transition: background 0.2s;
}

.tag-item_link:hover {
  background: #E5E7EB;
}