/* ==========================================================================
   Prelude Netcomms - Product Catalog Premium Stylesheet
   ========================================================================== */

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

/* Color Variables and Typography Override */
:root {
  --brand-blue: #0A3D91;
  --brand-red: #D32F2F;
  --brand-blue-light: rgba(10, 61, 145, 0.06);
  --brand-red-light: rgba(211, 47, 47, 0.08);
  --brand-blue-hover: #072e6e;
  --brand-red-hover: #b02626;
  --text-dark: #1e293b;
  --text-slate: #64748b;
  --text-light: #94a3b8;
  --bg-light: #f8fafc;

  /* Glassmorphism Variables */
  --glass-bg: rgba(255, 255, 255, 0.70);
  --glass-bg-dark: rgba(10, 61, 145, 0.03);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-border-heavy: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 10px 30px -10px rgba(10, 61, 145, 0.12);
  --glass-shadow-hover: 0 20px 40px -15px rgba(10, 61, 145, 0.22);

  /* Fonts */
  --font-title: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-quick: all 0.2s ease;
}

/* Base resets & fonts specifically for product area */
.product-catalog-section {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.product-catalog-section h1,
.product-catalog-section h2,
.product-catalog-section h3,
.product-catalog-section h4,
.product-catalog-section h5,
.product-catalog-section .font-heading {
  font-family: var(--font-title);
  font-weight: 700;
}

/* Brand styling helpers */
.text-brand-blue {
  color: var(--brand-blue) !important;
}

.text-brand-red {
  color: var(--brand-red) !important;
}

.bg-brand-blue {
  background-color: var(--brand-blue) !important;
}

.bg-brand-red {
  background-color: var(--brand-red) !important;
}

/* Custom Brand Buttons */
.btn-brand-primary {
  background: linear-gradient(135deg, var(--brand-blue) 0%, #082d6b 100%);
  color: #ffffff !important;
  font-family: var(--font-title);
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 30px;
  border: none;
  box-shadow: 0 4px 15px rgba(10, 61, 145, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-brand-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 61, 145, 0.4);
  background: linear-gradient(135deg, #082d6b 0%, #06204c 100%);
}

.btn-brand-red {
  background: linear-gradient(135deg, var(--brand-red) 0%, #b32525 100%);
  color: #ffffff !important;
  font-family: var(--font-title);
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 30px;
  border: none;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-brand-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(211, 47, 47, 0.4);
  background: linear-gradient(135deg, #b32525 0%, #911d1d 100%);
}

.btn-brand-outline {
  background: transparent;
  color: var(--brand-blue) !important;
  font-family: var(--font-title);
  font-weight: 600;
  padding: 11px 24px;
  border-radius: 30px;
  border: 2px solid var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-brand-outline:hover {
  background: var(--brand-blue);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 61, 145, 0.15);
}

.btn-brand-outline-red {
  background: transparent;
  color: var(--brand-red) !important;
  font-family: var(--font-title);
  font-weight: 600;
  padding: 11px 24px;
  border-radius: 30px;
  border: 2px solid var(--brand-red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-brand-outline-red:hover {
  background: var(--brand-red);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.15);
}

/* Page Header Custom style */
.products-header-banner {
  background: linear-gradient(135deg, #051a3d 0%, #0A3D91 60%, #1555ba 100%);
  color: #ffffff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.products-header-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(211, 47, 47, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    linear-gradient(rgba(10, 61, 145, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 61, 145, 0.2) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  opacity: 0.8;
  pointer-events: none;
  animation: gridGlow 10s ease-in-out infinite;
}

.products-header-banner h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .text-desktop-nowrap {
    white-space: nowrap;
  }
}

/* Search and Dynamic Filter Bar */
.catalog-toolbar {
  margin-top: -40px;
  position: relative;
  z-index: 100;
}

.toolbar-glass-container {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border-heavy);
  box-shadow: var(--glass-shadow);
  border-radius: 20px;
  padding: 24px;
  transition: var(--transition-smooth);
}

.toolbar-glass-container:hover {
  box-shadow: var(--glass-shadow-hover);
}

.search-input-group {
  position: relative;
}

.search-input-group i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-slate);
  font-size: 1.1rem;
}

.search-input-group input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: 30px;
  border: 1px solid rgba(10, 61, 145, 0.15);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.search-input-group input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(10, 61, 145, 0.12);
  background: #ffffff;
}

/* Filter Pills Style */
.filter-pills-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: none;
  /* Firefox */
}

.filter-pills-scroll::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.filter-pill {
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(10, 61, 145, 0.1);
  color: var(--text-slate);
  padding: 10px 22px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-pill:hover {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  border-color: rgba(10, 61, 145, 0.25);
  transform: translateY(-1px);
}

.filter-pill.active {
  background: linear-gradient(135deg, var(--brand-blue) 0%, #082d6b 100%);
  color: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 6px 15px rgba(10, 61, 145, 0.2);
}

/* Premium Product Cards style */
.product-grid-container {
  padding-top: 50px;
  padding-bottom: 80px;
}

.product-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-red) 100%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(10, 61, 145, 0.2);
  box-shadow: var(--glass-shadow-hover);
}

.product-card:hover::after {
  opacity: 1;
}

/* Badge tags style */
.product-badge-wrap {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  color: #ffffff;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.badge-bestseller {
  background: linear-gradient(135deg, var(--brand-red) 0%, #b31b1b 100%);
}

.badge-enterprise {
  background: linear-gradient(135deg, var(--brand-blue) 0%, #062354 100%);
}

.badge-new {
  background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
}

/* Compare checkbox wrap */
.product-compare-wrap {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(10, 61, 145, 0.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-slate);
  transition: var(--transition-quick);
}

.product-compare-wrap:hover {
  background: #ffffff;
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.product-compare-wrap input {
  cursor: pointer;
  accent-color: var(--brand-blue);
}

/* Product card image */
.product-img-box {
  position: relative;
  background: radial-gradient(circle, #ffffff 40%, rgba(241, 245, 249, 0.6) 100%);
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  border-bottom: 1px solid rgba(10, 61, 145, 0.06);
}

.product-img-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.product-card:hover .product-img-box img {
  transform: scale(1.08);
}

/* Custom placeholder graphics for missing images */
.product-icon-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(10, 61, 145, 0.05);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: inset 0 4px 10px rgba(10, 61, 145, 0.04);
  transition: var(--transition-smooth);
}

.product-card:hover .product-icon-placeholder {
  background: var(--brand-blue-light);
  color: var(--brand-red);
  transform: scale(1.05);
}

/* Product card body */
.product-info-box {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-meta {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-red);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.text-transform-none {
  text-transform: none !important;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 10px;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.88rem;
  color: var(--text-slate);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 44px;
}

/* Product features list */
.product-specs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  border-top: 1px dashed rgba(10, 61, 145, 0.1);
  padding-top: 16px;
}

.product-specs-list li {
  font-size: 0.82rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-specs-list li i {
  color: var(--brand-red);
  font-size: 0.75rem;
}

/* Card buttons footer */
.product-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.product-card-actions .btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.85rem;
  border-radius: 20px;
}

/* Bottom Comparison Drawer */
.compare-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  transform: translateY(105%);
  transition: var(--transition-smooth);
}

.compare-drawer.active {
  transform: translateY(0);
}

.compare-drawer-glass {
  background: rgba(10, 61, 145, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
  color: #ffffff;
  padding: 18px 0;
}

.compare-items-list {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.compare-item-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.82rem;
  color: #ffffff;
  font-weight: 500;
  animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.compare-item-pill span {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-item-pill button {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition-quick);
}

.compare-item-pill button:hover {
  opacity: 1;
  color: var(--brand-red);
}

/* Modals Premium Styling */
.modal-telecom-premium .modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  box-shadow: var(--glass-shadow-hover);
  overflow: hidden;
}

.modal-telecom-premium .modal-header {
  border-bottom: 1px solid rgba(10, 61, 145, 0.08);
  padding: 24px 28px;
}

.modal-telecom-premium .modal-body {
  padding: 28px;
}

.modal-telecom-premium .modal-footer {
  border-top: 1px solid rgba(10, 61, 145, 0.08);
  padding: 20px 28px;
}

.modal-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

@media (max-width: 768px) {
  .modal-spec-grid {
    grid-template-columns: 1fr;
  }
}

.spec-item {
  background: var(--brand-blue-light);
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(10, 61, 145, 0.04);
}

.spec-item-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 2px;
}

.spec-item-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-blue);
}

/* Comparison Table modal style */
.compare-modal-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-modal-table th,
.compare-modal-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(10, 61, 145, 0.08);
  font-size: 0.9rem;
}

.compare-modal-table th {
  font-weight: 700;
  color: var(--brand-blue);
  background: var(--brand-blue-light);
}

.compare-modal-table td:first-child {
  font-weight: 600;
  color: var(--text-slate);
  background: rgba(10, 61, 145, 0.01);
  width: 25%;
}

.compare-product-header {
  text-align: center;
}

.compare-product-header img {
  max-height: 80px;
  margin-bottom: 10px;
}

.compare-product-header h5 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--brand-blue);
}

/* Premium Inquiry Form Section (at the bottom) */
.inquiry-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #fafbfd 0%, #f1f5f9 100%);
  position: relative;
}

.inquiry-glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border-heavy);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--glass-shadow);
}

.form-group-glass {
  position: relative;
  margin-bottom: 24px;
}

.form-group-glass label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-blue);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}

.form-group-glass select,
.form-group-glass input,
.form-group-glass textarea {
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(10, 61, 145, 0.15);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.form-group-glass select:focus,
.form-group-glass input:focus,
.form-group-glass textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(10, 61, 145, 0.1);
  background: #ffffff;
}

/* Animations */
@keyframes scaleIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slideUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-slideup {
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Grid animations */
.product-card-anim {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.product-card-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Quick toast notification */
.toast-compare {
  position: fixed;
  top: 90px;
  right: 20px;
  background: var(--brand-red);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(211, 47, 47, 0.25);
  z-index: 2000;
  transform: translateY(-20px);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.toast-compare.active {
  transform: translateY(0);
  opacity: 1;
}