/* Modern Products Page - Product-specific styles */

/* ========================================
   HERO + VALUE PROPS SECTION
   ======================================== */

.products-hero-overview {
  position: relative;
  min-height: 60vh;
  padding: 100px 0 80px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e40af 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.products-hero-overview::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.products-hero-overview::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 8%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

/* Hero Badge */
.products-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #93c5fd;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero Title */
.products-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .products-hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .products-hero-title {
    font-size: 3.5rem;
  }
}

/* Hero Description */
.products-hero-description {
  font-size: 1.125rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Value Props Grid */
.products-hero-overview .products-value-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 16px !important;
  position: relative;
  z-index: 10;
}

@media (min-width: 640px) {
  .products-hero-overview .products-value-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Value Prop Card */
.products-hero-overview .products-value-card {
  display: flex !important;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.products-hero-overview .products-value-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
}

/* Value Prop Icon */
.products-hero-overview .products-value-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(139, 92, 246, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #93c5fd;
}

/* Value Prop Content */
.products-hero-overview .products-value-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
}

.products-hero-overview .products-value-description {
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

/* Search Box Styling Override for Products */
.products-hero-overview .desktop-search-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.products-hero-overview .desktop-search-input {
  color: #fff;
}

.products-hero-overview .desktop-search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.products-hero-overview .search-kbd {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .products-hero-overview {
    padding: 80px 0 60px;
  }
  
  .products-hero-overview .products-value-grid {
    margin-top: 2rem;
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 575px) {
  .products-hero-overview {
    padding: 60px 0 50px;
    min-height: auto;
  }
  
  .products-hero-title {
    font-size: 1.875rem;
  }
  
  .products-hero-description {
    font-size: 1rem;
  }
  
  .products-hero-overview .products-value-card {
    padding: 16px 18px;
  }
  
  .products-hero-overview .products-value-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 1.25rem;
  }
}

/* ========================================
   TABS SECTION
   ======================================== */

.products-tabs-section {
  padding: 60px 0 80px;
  background: #ffffff;
}

/* Desktop: Normal tabs with modern gradient */
.vendor-tabs-desktop {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  padding: 0 15px;
}

/* Modern vendor tabs */
.vendor-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.vendor-tab:hover {
  border-color: #667eea;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.vendor-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.vendor-tab img {
  max-height: 30px;
  max-width: 120px;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.vendor-tab.active img {
  filter: brightness(0) invert(1);
}

.vendor-tab span {
  font-weight: 600;
  color: #1e293b;
  font-size: 14px;
}

.vendor-tab.active span {
  color: #fff;
}

/* Mobile carousel - hidden by default on desktop */
.vendor-tabs-mobile {
  display: none;
}

/* Mobile carousel styles */
.vendor-carousel-wrapper {
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
}

.vendor-carousel-track {
  display: flex;
  gap: 10px;
  transition: transform 0.3s ease;
}

.vendor-carousel-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  transition: all 0.3s ease;
}

.vendor-carousel-btn:hover {
  border-color: #667eea;
  color: #667eea;
}

.vendor-carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.vendor-carousel-indicators .indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vendor-carousel-indicators .indicator.active {
  background: #667eea;
  width: 24px;
  border-radius: 4px;
}

/* Product panels */
.products-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.products-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modern product cards */
.product-card-compact {
  background: white;
  border-radius: 16px;
  padding: 28px;
  height: 100%;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-card-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.product-card-compact:hover::before {
  transform: scaleX(1);
}

.product-card-compact:hover {
  border-color: #cbd5e1;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-card-compact .product-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #0d6efd 0%, #1f0757 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #fff;
  font-size: 1.5rem;
}

.product-card-compact h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #1f0757;
  margin-bottom: 10px;
  line-height: 1.3;
}

.product-card-compact p {
  font-size: 0.875rem;
  color: #8480ae;
  margin-bottom: 16px;
  flex-grow: 1;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-compact .btn-product {
  display: inline-flex;
  align-items: center;
  color: #0d6efd;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto;
}

.product-card-compact .btn-product:hover {
  color: #1f0757;
  gap: 8px;
}

.product-card-compact .btn-product i {
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.product-card-compact:hover .btn-product i {
  transform: translateX(4px);
}

/* Vendor specific colors on hover */
.product-card-compact.bitdefender:hover { border-color: #ed1c24; }
.product-card-compact.bitdefender:hover::before { background: linear-gradient(90deg, #ed1c24, #ff4444); }
.product-card-compact.bitdefender .product-icon { background: linear-gradient(135deg, #ed1c24 0%, #b71c1c 100%); }

.product-card-compact.microsoft:hover { border-color: #00a4ef; }
.product-card-compact.microsoft:hover::before { background: linear-gradient(90deg, #00a4ef, #0078d4); }
.product-card-compact.microsoft .product-icon { background: linear-gradient(135deg, #00a4ef 0%, #0078d4 100%); }

.product-card-compact.hpe:hover { border-color: #01a982; }
.product-card-compact.hpe:hover::before { background: linear-gradient(90deg, #01a982, #00d4a0); }
.product-card-compact.hpe .product-icon { background: linear-gradient(135deg, #01a982 0%, #008571 100%); }

.product-card-compact.acronis:hover { border-color: #00a0e1; }
.product-card-compact.acronis:hover::before { background: linear-gradient(90deg, #00a0e1, #00d4ff); }
.product-card-compact.acronis .product-icon { background: linear-gradient(135deg, #00a0e1 0%, #0071a9 100%); }

.product-card-compact.solarwinds:hover { border-color: #ff6b00; }
.product-card-compact.solarwinds:hover::before { background: linear-gradient(90deg, #ff6b00, #ff9500); }
.product-card-compact.solarwinds .product-icon { background: linear-gradient(135deg, #ff6b00 0%, #e55c00 100%); }

.product-card-compact.fortinet:hover { border-color: #da291c; }
.product-card-compact.fortinet:hover::before { background: linear-gradient(90deg, #da291c, #ff4444); }
.product-card-compact.fortinet .product-icon { background: linear-gradient(135deg, #da291c 0%, #b71c1c 100%); }

.product-card-compact.adobe:hover { border-color: #ff0000; }
.product-card-compact.adobe:hover::before { background: linear-gradient(90deg, #ff0000, #ff4444); }
.product-card-compact.adobe .product-icon { background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%); }

.product-card-compact.cisco:hover { border-color: #049fd9; }
.product-card-compact.cisco:hover::before { background: linear-gradient(90deg, #049fd9, #06c4f7); }
.product-card-compact.cisco .product-icon { background: linear-gradient(135deg, #049fd9 0%, #037aa6 100%); }

.product-card-compact.greenrocket:hover { border-color: #00b140; }
.product-card-compact.greenrocket:hover::before { background: linear-gradient(90deg, #00b140, #00d450); }
.product-card-compact.greenrocket .product-icon { background: linear-gradient(135deg, #00b140 0%, #008f33 100%); }

.product-card-compact.pfsense:hover { border-color: #d93f0b; }
.product-card-compact.pfsense:hover::before { background: linear-gradient(90deg, #d93f0b, #ff6b3f); }
.product-card-compact.pfsense .product-icon { background: linear-gradient(135deg, #d93f0b 0%, #b32f00 100%); }

/* Panel header with vendor logo */
.panel-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9e9e9;
}

.panel-header img {
  max-height: 45px;
  max-width: 200px;
}

.panel-header h2 {
  font-size: 1.25rem;
  color: #1f0757;
  margin-top: 10px;
  margin-bottom: 0;
}

/* Quick nav for mobile */
.products-count {
  text-align: center;
  color: #8480ae;
  font-size: 0.875rem;
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  /* Hide desktop tabs, show mobile carousel */
  .vendor-tabs-desktop {
    display: none !important;
  }
  
  .vendor-tabs-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
  }
  
  .vendor-tab {
    padding: 14px 24px;
    min-width: 160px;
  }
  
  .vendor-tab img {
    max-height: 30px;
    max-width: 130px;
  }
  
  .products-tabs-section {
    padding: 40px 0 60px;
  }
  
  .panel-header img {
    max-height: 35px;
  }
  
  .panel-header h2 {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .vendor-tabs-mobile {
    gap: 8px;
  }
  
  .vendor-carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .vendor-tab {
    min-width: 120px;
    padding: 12px 16px;
    font-size: 12px;
  }
  
  .vendor-tab img {
    max-height: 24px;
    max-width: 100px;
  }
  
  .vendor-carousel-wrapper {
    max-width: calc(100vw - 100px);
  }
}

/* Product Search Component - Desktop */
.product-search-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #020617 100%);
  padding: 30px 0;
  position: relative;
  z-index: 10;
}

.product-search-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.product-search-input-wrapper {
  position: relative;
}

.product-search-input {
  width: 100%;
  padding: 14px 50px 14px 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  color: #f8f9fa;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.product-search-input::placeholder {
  color: rgba(248, 249, 250, 0.5);
}

.product-search-input:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.product-search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(248, 249, 250, 0.5);
  font-size: 1.2rem;
  pointer-events: none;
}

.product-search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
}

.product-search-results.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: flex-start;
  padding: 16px 20px;
  border-bottom: 1px solid #e9e9e9;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: #f8f9fa;
}

.search-result-item:last-child {
  border-bottom: none;
}

/* Vendor Select Dropdown for Mobile */
.vendor-select-mobile {
  margin-bottom: 25px;
  padding: 0 15px;
  display: none; /* Hidden by default, shown on very small screens */
}

.vendor-select-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231e293b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.vendor-select-control:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.vendor-select-control:hover {
  border-color: #cbd5e1;
}

.vendor-select-control option {
  padding: 10px;
  background: white;
  color: #1e293b;
}

.vendor-select-control option:checked {
  background: linear-gradient(#667eea, #667eea);
  background-color: #667eea !important;
  color: white;
}

/* Hide vendor carousel on very small screens, show select instead */
@media (max-width: 480px) {
  .vendor-tabs-mobile .vendor-carousel-wrapper,
  .vendor-tabs-mobile .vendor-carousel-btn,
  .vendor-tabs-mobile .vendor-carousel-indicators {
    display: none !important;
  }
  
  .vendor-select-mobile {
    display: block !important;
  }
}

.search-result-item.no-results {
  justify-content: center;
  text-align: center;
  color: #8480ae;
  padding: 30px 20px;
}

.search-result-item.no-results i {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.search-result-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-right: 15px;
}

.search-result-content {
  flex: 1;
}

.search-result-content h6 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f0757;
  margin-bottom: 5px;
}

.search-result-content h6 mark {
  background: #ffc107;
  padding: 2px 4px;
  border-radius: 3px;
}

.search-result-content p {
  font-size: 0.85rem;
  color: #8480ae;
  margin-bottom: 5px;
  line-height: 1.4;
}

.search-result-brand {
  display: inline-block;
  font-size: 0.75rem;
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: capitalize;
}

/* Hide search on mobile */
@media (max-width: 768px) {
  .product-search-section {
    display: none;
  }
}
