/* 
    ============================================================
    INDEX PAGE STYLES - FINAL VERSION
    ============================================================
*/

:root {
  --navy-blue: #0b2341;
  --navy-dark: #091426;
  --industrial-orange: #ff9900;
  --light-gray: #f9f9f9;
  --border-color: #eeeeee;
  --text-main: #333333;
  --text-muted: #888888;
}

/* --- GLOBAL RESET --- */
.index-page-wrapper {
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  overflow-x: hidden;
}

.index-page-wrapper a {
  text-decoration: none;
  transition: 0.3s ease;
}
.index-page-wrapper ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- 1. HERO GRID (2/3 SCREEN HEIGHT) --- */
.hero-layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 20px;
  margin-top: 20px;
  height: 65vh; /* Approximately 2/3 of display screen */
  min-height: 400px; /* Safety minimum for small laptops */
  align-items: stretch;
}

/* Sidebar Navigation - Fixed Height with Scroll */
.sidebar-navigation {
  border: 1px solid var(--border-color);
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden; /* Important to contain the scroll list */
}

.sidebar-title {
  background: var(--navy-blue);
  color: #fff;
  padding: 15px;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* SCROLLING CATEGORY LIST */
.sidebar-cat-list {
  flex-grow: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--industrial-orange) #f1f1f1;
}

/* Custom Scrollbar for Chrome/Safari */
.sidebar-cat-list::-webkit-scrollbar {
  width: 5px;
}
.sidebar-cat-list::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.sidebar-cat-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
.sidebar-cat-list::-webkit-scrollbar-thumb:hover {
  background: var(--industrial-orange);
}

.sidebar-cat-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--light-gray);
}

.sidebar-cat-list li a:hover {
  background: var(--light-gray);
  color: var(--industrial-orange);
  padding-left: 20px;
}

/* Main Hero Banner */
.main-hero-banner {
  background-size: cover;
  background-position: center;
  padding: 40px 60px;
  display: flex;
  align-items: center;
  height: 100%;
  border-radius: 4px;
}

.hero-text-content h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  margin: 15px 0;
  color: var(--navy-blue);
  font-weight: 900;
}

.orange-label {
  background: var(--industrial-orange);
  color: #fff;
  padding: 5px 12px;
  font-weight: 800;
  font-size: 12px;
  border-radius: 2px;
}

.btn-orange-hero {
  background: var(--industrial-orange);
  color: #fff !important;
  padding: 12px 30px;
  font-weight: 700;
  display: inline-block;
  border-radius: 2px;
}

/* Side Promo Ads */
.side-promo-ads {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.ad-box {
  flex: 1;
  padding: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 4px;
}

.dark-navy-bg {
  background: var(--navy-blue);
}
.navy-with-border {
  background: var(--navy-dark);
  border: 2px solid var(--industrial-orange);
}

/* --- 2. PRODUCT GRID (FIXED HOVER ICONS) --- */
.product-grid-main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.product-card {
  border: 1px solid var(--border-color);
  background: #fff;
  transition: 0.3s;
  position: relative;
}

.product-card:hover {
  border-color: var(--industrial-orange);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* FIXED CONTAINER FOR ICONS */
.product-img-wrap {
  height: 240px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; /* Anchor for icons */
  overflow: hidden; /* Prevents icons from leaking outside the card */
  padding: 20px;
}

.product-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: 0.5s ease;
}

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

/* ICONS HIDDEN BY DEFAULT (OFF-SCREEN RIGHT) */
.product-actions-vertical {
  position: absolute;
  top: 15px;
  right: -50px; /* Moves icons outside the hidden box */
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
  transition: all 0.3s ease-in-out;
}

/* SLIDE ICONS IN ON HOVER */
.product-card:hover .product-actions-vertical {
  right: 15px; /* Slide inside */
}

.action-btn {
  width: 36px;
  height: 36px;
  background: #fff;
  color: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.action-btn:hover {
  background: var(--industrial-orange);
  color: #fff;
}

/* Product Text Styling */
.product-body {
  padding: 15px;
}
.product-brand-tag {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}
.product-title-link a {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-blue);
  margin: 8px 0;
  display: block;
  height: 40px;
  overflow: hidden;
}
.product-price-tag {
  color: var(--industrial-orange);
  font-weight: 900;
  font-size: 20px;
  margin: 10px 0;
}

.product-card-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}
.btn-get-quote {
  background: var(--navy-dark);
  color: #fff !important;
  text-align: center;
  padding: 10px;
  font-size: 11px;
  font-weight: 800;
  display: block;
  margin-top: 10px;
}

/* --- 3. FILTER BAR --- */
.section-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border-color);
  margin: 60px 0 30px;
}

.filter-label {
  background: var(--navy-blue);
  color: #fff;
  padding: 12px 25px;
  font-weight: 800;
  font-size: 14px;
}
.filter-tab-list {
  display: flex;
  gap: 30px;
}
.filter-tab-list li a {
  color: var(--text-muted);
  padding-bottom: 15px;
  display: block;
  font-weight: 700;
  font-size: 13px;
}
.filter-tab-list li.active {
  border-bottom: 3px solid var(--industrial-orange);
  margin-bottom: -2px;
}
.filter-tab-list li.active a {
  color: var(--navy-blue);
}

/* --- 4. BRAND & TRUST BAR --- */
.brand-section-wrapper {
  padding: 50px 0;
  border-top: 1px solid var(--border-color);
  margin: 60px 0;
}
.brand-carousel-track {
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0.5;
  font-weight: 900;
  font-size: 24px;
  color: #ccc;
}

.service-trust-bar {
  padding: 50px 0;
  background: var(--light-gray);
  border-top: 1px solid var(--border-color);
}
.service-flex-container {
  display: flex;
  justify-content: space-between;
}
.service-block {
  display: flex;
  align-items: center;
  gap: 15px;
}
.service-block i {
  font-size: 28px;
  color: var(--industrial-orange);
}
.service-text strong {
  display: block;
  font-size: 15px;
  color: var(--navy-blue);
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
  .hero-layout-grid {
    grid-template-columns: 240px 1fr;
    height: auto;
  }
  .side-promo-ads {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-layout-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .sidebar-navigation {
    display: none;
  }
  .product-grid-main {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-hero-banner {
    height: 350px;
    padding: 30px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .product-grid-main {
    grid-template-columns: 1fr;
  }
  .service-flex-container {
    flex-direction: column;
    gap: 25px;
  }
}
