/* Define primary theme color */
:root {
  --primary-color: #EA9435;
}

/* Active nav-pill styling */
.nav-pills .nav-link.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}


.brand-heading {
  color: var(--primary-color) !important;
}

.dropdown-item {
  color: var(--bs-link-color);
}

.dropdown-menu {
  --bs-dropdown-link-hover-color: var(--primary-color);
}

/* Feature icon container size */
.feature-icon-small {
  width: 3rem;
  height: 3rem;
}


/* Solid primary background for primary utilities */
.text-bg-primary {
  background-color: var(--primary-color) !important;
  background-image: none !important;
}

.modern-footer {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.modern-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(108, 92, 231, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
}

.footer-content {
  position: relative;
  z-index: 2;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2d3436;
  text-decoration: none;
}

.footer-title {
  color: #2d3436;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #EA9435, transparent);
}

.contact-info {
  list-style: none;
  padding: 0;
}

.contact-info li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info i {
  color: var(--primary-color);
  width: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d3436;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.social-icon:hover {
  transform: translateY(-3px);
  color: #6c5ce7;
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.2);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.quick-links a {
  color: #2d3436;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.quick-links a:hover {
  color: #6c5ce7;
  transform: translateX(5px);
}

.quick-links a::before {
  content: '→';
  opacity: 0;
  transition: all 0.3s ease;
}

.quick-links a:hover::before {
  opacity: 1;
}

.newsletter-input {
  border: none;
  padding: 0.8rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.btn-subscribe {
  background: linear-gradient(45deg, #6c5ce7, #a363d9);
  border: none;
  box-shadow: 0 2px 10px rgba(108, 92, 231, 0.2);
  padding: 0.8rem 2rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.btn-subscribe:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.footer-bottom {
  background: white;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-bottom p {
  margin: 0;
  color: #6c757d;
}

.footer-bottom a {
  color: #6c5ce7;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

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


/* Product section: use custom primary color */
#custom-cards .text-primary {
  color: var(--primary-color) !important;
}

.breadcrumb-chevron {
  --bs-breadcrumb-divider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  gap: .5rem;
}

.breadcrumb-chevron .breadcrumb-item {
  display: flex;
  gap: inherit;
  align-items: center;
  padding-left: 0;
  line-height: 1;
}

.breadcrumb-chevron .breadcrumb-item::before {
  gap: inherit;
  float: none;
  width: 1rem;
  height: 1rem;
}

.breadcrumb-custom .breadcrumb-item {
  position: relative;
  flex-grow: 1;
  padding: .75rem 3rem;
}

.breadcrumb-custom .breadcrumb-item::before {
  display: none;
}

.breadcrumb-custom .breadcrumb-item::after {
  position: absolute;
  top: 50%;
  right: -25px;
  z-index: 1;
  display: inline-block;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  content: "";
  background-color: var(--bs-tertiary-bg);
  border-top-right-radius: .5rem;
  box-shadow: 1px -1px var(--bs-border-color);
  transform: scale(.707) rotate(45deg);
}

.breadcrumb-custom .breadcrumb-item:first-child {
  padding-left: 1.5rem;
}

.breadcrumb-custom .breadcrumb-item:last-child {
  padding-right: 1.5rem;
}

.breadcrumb-custom .breadcrumb-item:last-child::after {
  display: none;
}

/* Make table box lines visible */
.tg-wrap table,
.tg-wrap table th,
.tg-wrap table td {
  border: 1px solid #ccc;
}

.tg-wrap table th {
  background-color: var(--primary-color);
}


.gridjs-table th:nth-child(1),
.gridjs-table td:nth-child(1) {
  font-weight: bold;
}

/* Hidden by default */
.details-pane {
  display: none;
}

#rings-radio:checked~#rings {
  display: block;
}

#rollers-radio:checked~#rollers {
  display: block;
}

.details-pane {
  border-top: 1px solid var(--bs-border-color);
}

/* --- ISO Card Grid Theming (consistent with site) --- */
.section-title {
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -8px;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
}

.themed-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.themed-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

.themed-card .card-title {
  color: #2d3436;
  font-weight: 600;
}

.themed-card .card-text {
  color: #6c757d;
}

.iso-card-img {
  height: 260px;
  /* bigger by default */
  object-fit: contain;
  /* preserve certificate proportions */
  width: 100%;
  background: #fff;
  padding: 1rem;
  /* a bit more breathing room */
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

@media (min-width: 576px) {

  /* ≥ sm */
  .iso-card-img {
    height: 500px;
  }
}

@media (min-width: 768px) {

  /* ≥ md */
  .iso-card-img {
    height: 540px;
  }
}

@media (min-width: 1200px) {

  /* ≥ xl */
  .iso-card-img {
    height: 580px;
  }
}

/* --- Filter Panel Theming --- */
/* --- Filter Panel Theming --- */
.filter-card {
  --bs-primary: #EA9435;
  --bs-primary-rgb: 234, 148, 53;
  --bs-btn-color: #EA9435;
  --bs-btn-border-color: #EA9435;
  --bs-btn-hover-bg: #EA9435;
  --bs-btn-hover-border-color: #EA9435;
  --bs-btn-active-bg: #EA9435;
  --bs-btn-active-border-color: #EA9435;
  --bs-btn-disabled-color: #EA9435;
  --bs-btn-disabled-border-color: #EA9435;
}

.filter-card .text-primary {
  color: #EA9435 !important;
}

.filter-card .input-group-text {
  background-color: #EA9435 !important;
  color: white !important;
  border-color: #EA9435 !important;
}

.filter-card .btn-outline-primary {
  color: #EA9435 !important;
  border-color: #EA9435 !important;
}

.filter-card .btn-outline-primary:hover,
.filter-card .btn-outline-primary:active,
.filter-card .btn-check:checked+.btn-outline-primary {
  background-color: #EA9435 !important;
  border-color: #EA9435 !important;
  color: white !important;
}

.filter-card .form-control:focus {
  border-color: #EA9435 !important;
  box-shadow: 0 0 0 0.25rem rgba(234, 148, 53, 0.25) !important;
}

/* --- Components Page UX Improvements --- */

/* Feature Icons (Hanging Icons) */
#hanging-icons .col {
  transition: transform 0.3s ease;
  padding: 1.5rem;
  border-radius: 1rem;
}

#hanging-icons .col:hover {
  transform: translateY(-5px);
  background-color: rgba(234, 148, 53, 0.05);
}

#hanging-icons .icon-square {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease, color 0.3s ease;
  border-radius: 12px;
  /* Softer corners */
  width: 3.5rem;
  /* Slightly larger */
  height: 3.5rem;
  background-color: rgba(234, 148, 53, 0.1);
  /* Subtle primary tint background */
  color: var(--primary-color) !important;
}

#hanging-icons .col:hover .icon-square {
  transform: scale(1.15);
  background-color: var(--primary-color);
  color: white !important;
}

/* Product Cards */
.card {
  border: none;
  /* Cleaner look */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  /* For image zoom */
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.card-img-top {
  transition: transform 0.5s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  position: relative;
  z-index: 1;
  background: white;
}

/* Modal Styling */
.modal-content {
  border-radius: 1rem;
  overflow: hidden;
}

.modal-header {
  border-bottom: none;
  padding: 1.5rem 2rem;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  padding: 1.5rem 2rem;
  background-color: #f8f9fa;
}

.btn-close-white {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.btn-close-white:hover {
  opacity: 1;
}

/* Smooth scroll behavior for the whole page is nice too */
html {
  scroll-behavior: smooth;
}

/* Typography Enhancements */
h2.display-6 {
  letter-spacing: -0.5px;
}

.lead {
  line-height: 1.6;
}

/* Button Hover Consistency */
.btn-primary,
.text-bg-primary {
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(234, 148, 53, 0.2);
}

.btn-primary:hover,
.text-bg-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(234, 148, 53, 0.3);
  filter: brightness(105%);
}

.btn-primary:active,
.text-bg-primary:active {
  transform: translateY(0);
}