/* --- Base Variables & Reset --- */
:root {
  --primary-blue: #0B5ED7;
  /* Siemens/Honeywell Premium Blue */
  --primary-hover: #0A58CA;
  /* Darker Blue */
  --accent-cyan: #00C2FF;
  /* Tech Cyan */
  --dark-bg: #071B2F;
  /* Deep Slate */
  --dark-blue: #071B2F;
  /* Deep Slate */
  --text-main: #1E293B;
  /* Slate (800) */
  --text-muted: #64748B;
  /* Slate (500) */
  --bg-light: #F5F8FC;
  /* Slate Light */
  --bg-white: #ffffff;
  --white: #ffffff;
  --primary-gradient: linear-gradient(135deg, #0B5ED7 0%, #00C2FF 100%);
  --radius-lg: 20px;
  --shadow-soft: 0 10px 30px rgba(7, 27, 47, 0.05);
  --shadow-medium: 0 15px 40px rgba(7, 27, 47, 0.08);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles & Typography */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  overflow-x: clip;
}

main.container {
  padding-top: 110px;
}

/* -----------------------------
   Product Showcase Layout & Animations
------------------------------ */
/* -----------------------------
   Product Showcase Layout & Animations
------------------------------ */
.product-showcase {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: 1.8rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-bottom: 2rem;
  align-items: stretch;
  border: 1px solid var(--border-color);
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

@media (min-width: 992px) {
  .product-showcase {
    position: relative;
    top: auto;
  }
}

.product-showcase:hover {
  box-shadow: 0 20px 35px rgba(220, 38, 38, 0.25); /* Red glowing shadow */
  border-color: #DC2626; /* Changed to red hover outline */
}

.product-showcase.active {
  opacity: 1;
  transform: translateY(0);
}

/* -----------------------------
   Left Side: Image Scroller
------------------------------ */
.product-gallery {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-color);
}

.slider-container {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.slider-container::-webkit-scrollbar {
  display: none;
}

.slider-img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  background-color: #ffffff;
  scroll-snap-align: start;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-gallery:hover .slider-img {
  transform: scale(1.03);
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(7, 27, 47, 0.1);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
}

.slider-btn:hover {
  background: var(--primary-gradient);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-50%) scale(1.08);
}

.prev-btn {
  left: 15px;
}

.next-btn {
  right: 15px;
}

/* -----------------------------
   Right Side: Product Info
------------------------------ */
.product-details {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
  text-align: left;
  min-height: 400px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.product-showcase.active .product-details {
  opacity: 1;
  transform: translateX(0);
}

.product-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--dark-bg);
  margin-top: 0.8rem; /* Added spacing from badge above */
  margin-bottom: 0.6rem;
  letter-spacing: -0.3px;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

/* Custom Overrides for Bootstrap Badge */
.badge.bg-primary {
  background: var(--primary-gradient) !important;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.78rem !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(11, 94, 215, 0.25);
  display: inline-block;
  margin-bottom: 0.8rem !important; /* Added explicit margin to prevent overlapping */
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-list li {
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(7, 27, 47, 0.05);
  font-size: 0.78rem;
  line-height: 1.35;
  transition: var(--transition);
  color: var(--text-main);
}

.detail-list li strong {
  color: var(--dark-bg);
}

.detail-list li:hover {
  color: var(--primary-blue);
  padding-left: 3px;
}

.check-list li i {
  margin-right: 10px;
  transition: transform 0.3s;
  color: #10b981 !important;
}

.check-list li:hover i {
  transform: scale(1.2);
}

/* Buttons overrides */
.product-actions .btn-dark {
  background: var(--primary-gradient) !important;
  border: none !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  font-size: 0.85rem !important;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(11, 94, 215, 0.25);
  transition: var(--transition) !important;
}

.product-actions .btn-dark:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(11, 94, 215, 0.45);
}

.product-actions .btn-outline-success {
  border: 2px solid #25D366 !important;
  color: #25D366 !important;
  background-color: transparent !important;
  padding: 7px 20px !important;
  font-size: 0.85rem !important;
  font-weight: 600;
  transition: var(--transition) !important;
}

.product-actions .btn-outline-success:hover {
  background-color: #25D366 !important;
  color: var(--white) !important;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
  transform: translateY(-2px) !important;
}

/* Compact spacing for details and actions inner rows */
.product-details .row.mt-4 {
  margin-top: 0.3rem !important;
}

.product-actions.mt-4 {
  margin-top: 0.6rem !important;
}

.product-details h4.h6 {
  margin-bottom: 0.3rem !important;
  font-size: 0.78rem !important;
}

.product-details .mb-3 {
  margin-bottom: 0.25rem !important;
}

.product-details .mb-2 {
  margin-bottom: 0.2rem !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .product-showcase {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding: 1.8rem;
    margin-bottom: 3rem;
  }

  .product-gallery {
    height: 320px !important;
  }

  .slider-img {
    height: 100% !important;
  }
}

/* Size Selector */
.size-selector-container {
  background: var(--bg-light);
  padding: 0.4rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  margin-bottom: 0.5rem !important;
}

.size-selector-container button {
  font-family: 'Poppins', sans-serif;
  font-weight: 600 !important;
  font-size: 0.74rem !important;
  letter-spacing: 0.5px;
  transition: var(--transition) !important;
  border-radius: 20px !important;
  border: 1px solid var(--primary-blue) !important;
  color: var(--primary-blue) !important;
  padding: 4px 10px !important;
}

.size-selector-container button:hover {
  background-color: var(--primary-blue) !important;
  color: #fff !important;
}

.size-selector-container button.active {
  background: var(--primary-gradient) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(11, 94, 215, 0.2) !important;
}

/* =========================================
   CATEGORY FILTER TABS SYSTEM
   ========================================= */
.category-filter-container {
  display: flex;
  justify-content: center;
  margin-bottom: 45px;
}

.filter-tabs-wrapper {
  display: flex;
  flex-wrap: wrap;
  background: rgba(7, 27, 47, 0.04);
  padding: 6px;
  border-radius: 40px;
  border: 1px solid var(--border-color);
  gap: 6px;
  justify-content: center;
}

.filter-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.filter-tab:hover {
  color: var(--primary-blue);
}

.filter-tab.active {
  background: var(--primary-gradient);
  color: white !important;
  box-shadow: 0 4px 15px rgba(11, 94, 215, 0.35);
}

/* Smooth sliding transitions */
.product-showcase {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.product-showcase.active {
  opacity: 1;
  transform: translateX(0);
}

.product-showcase.filtered-out {
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* Slide out to the left */
.product-showcase.filtered-out-left {
  transform: translateX(-80px) !important;
}

/* Prepare to enter from the right */
.product-showcase.filtered-out-right {
  transform: translateX(80px) !important;
}

@media (max-width: 768px) {
  .category-filter-container {
    margin-bottom: 30px;
  }

  .filter-tabs-wrapper {
    border-radius: 20px;
    padding: 8px;
    width: 100%;
    gap: 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .filter-tab {
    font-size: 0.8rem;
    padding: 12px 16px;
    border-radius: 12px;
    width: 100%;
    text-align: center;
    letter-spacing: 0.5px;
    white-space: nowrap;
  }
}

@media (max-width: 576px) {
  .product-showcase {
    padding: 1.2rem !important;
    margin-bottom: 2rem !important;
    gap: 1.2rem !important;
  }

  .slider-img {
    height: 100% !important;
  }

  .product-gallery {
    height: 240px !important;
    min-height: auto !important;
  }

  .product-title {
    font-size: 1.35rem !important;
  }

  .product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .product-actions a,
  .product-actions button {
    width: 100% !important;
    text-align: center;
    margin: 0 !important;
  }
}