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

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

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

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

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

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

.menu-wrapper {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-right: 4px;
}

/* Elegant Scrollbar for Sidebar */
.menu-wrapper::-webkit-scrollbar {
  width: 5px;
}

.menu-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.menu-wrapper::-webkit-scrollbar-thumb {
  background-color: #E5E7EB;
  border-radius: 10px;
}

.menu-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: #D1D5DB;
}


.unitronics-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Hero Section */
.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;
  overflow: hidden;
}

/* Hero Corners */
.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)) drop-shadow(0 0 35px rgba(255, 250, 200, 0.8));
}

.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)) drop-shadow(0 0 35px rgba(255, 250, 200, 0.8));
}

.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;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.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;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.12);
}

/* Hero Search */
.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;
  background: white;
  font-size: 16px;
  color: #111827;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: box-shadow 0.2s;
}

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

.hero-search-input::placeholder {
  color: #9CA3AF;
}

/* Hero Quick Filters */
.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;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.hero-filter-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Content Section */
.unitronics-content {
  flex: 1;
  padding: 32px 48px 48px;
  background: #F8F9FB;
}

.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 */
.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;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

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

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

/* Sort Select */
.content-sort {
  padding: 8px 32px 8px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: white;
  font-size: 14px;
  color: #374151;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.content-sort:hover {
  border-color: #D1D5DB;
}

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

.products-container.view-list {
  grid-template-columns: 1fr;
}

/* Responsive */
@media (max-width: 1024px) {
  .unitronics-layout {
    flex-direction: column;
  }

  .page-wrapper_sidebar {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
  }

  .unitronics-hero,
  .unitronics-content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-heading {
    font-size: 36px;
  }

  .hero-tagline {
    font-size: 16px;
  }

  .products-container {
    grid-template-columns: 1fr;
  }
}