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

:root {
  --primary: #0d9488;      /* Clean Teal */
  --primary-hover: #0f766e;
  --secondary: #0f172a;    /* Deep Slate Blue */
  --secondary-light: #1e293b;
  --accent: #f59e0b;       /* Amber Gold */
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-sans: 'Outfit', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  line-height: 1.7;
  font-size: 16px;
  background: var(--bg-white);
  color: var(--text-dark);
}

/* Custom Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.3;
}

.text-primary {
  color: var(--primary) !important;
}
.bg-primary {
  background-color: var(--primary) !important;
}

/* Navigation Bar */
.ftco_navbar {
  transition: var(--transition);
  background: transparent !important;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem 0;
}

@media (max-width: 991.98px) {
  .ftco_navbar {
    background: var(--secondary) !important;
    position: relative;
    padding: 0.8rem 0;
  }
}

.ftco_navbar .navbar-brand {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  color: var(--bg-white) !important;
  text-transform: uppercase;
  transition: var(--transition);
}

@media (max-width: 576px) {
  .ftco_navbar .navbar-brand {
    font-size: 1.0rem !important;
    letter-spacing: 0.01em !important;
  }
}

@media (max-width: 380px) {
  .ftco_navbar .navbar-brand {
    font-size: 0.9rem !important;
  }
}

.ftco_navbar .navbar-brand span {
  color: var(--primary);
}

.ftco_navbar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  font-size: 15px;
  padding: 0.5rem 1.2rem !important;
  transition: var(--transition);
  position: relative;
}

.ftco_navbar .nav-link:hover,
.ftco_navbar .nav-link.active {
  color: var(--primary) !important;
}

/* Dropdown styling */
.navbar-nav .dropdown-menu {
  background: var(--secondary-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  margin-top: 10px;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
}

.navbar-nav .dropdown-item {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 14px;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar-nav .dropdown-item:hover {
  background: var(--primary) !important;
  color: var(--bg-white) !important;
}

/* Sticky Navbar scrolled state */
.ftco_navbar.scrolled {
  position: fixed;
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(10px);
  margin-top: -120px;
  box-shadow: var(--shadow-md);
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ftco_navbar.scrolled.awake {
  margin-top: 0px;
  transition: transform 0.4s ease-out;
}

.ftco_navbar.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

.ftco_navbar.scrolled .nav-link.active {
  color: var(--primary) !important;
}

.navbar-toggler {
  border: none !important;
  outline: none !important;
}

/* Hero Section */
.ftco-cover {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
}

.ftco-cover.overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);
  z-index: 1;
}

.ftco-cover .container {
  position: relative;
  z-index: 2;
}

.ftco-cover h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--bg-white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .ftco-cover h1 {
    font-size: 2.2rem;
  }
}

.ftco-cover p.lead {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
}

/* Slanted Divider from target */
.ftco-slant {
  position: relative;
  overflow: hidden;
}

.ftco-slant:after {
  width: 120%;
  height: 120px;
  left: -10%;
  background: var(--bg-light);
  transform: rotate(-3deg);
  content: "";
  position: absolute;
  bottom: -60px;
  z-index: 2;
}

.ftco-slant.ftco-slant-white:after {
  background: var(--bg-white);
}

.ftco-slant.ftco-slant-dark:after {
  background: var(--secondary);
}

@media (max-width: 768px) {
  .ftco-slant:after {
    bottom: -90px;
    height: 150px;
  }
}

/* Buttons */
.btn {
  border-radius: var(--radius-md);
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg-white);
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  color: var(--bg-white);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.btn-outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--bg-white);
}

.btn-outline-white:hover {
  background: var(--bg-white);
  border-color: var(--bg-white);
  color: var(--secondary);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Core Sections */
.ftco-section {
  padding: 7rem 0;
  position: relative;
  z-index: 3;
}

@media (max-width: 768px) {
  .ftco-section {
    padding: 4rem 0;
  }
}

.section-heading h2 {
  font-size: 2.5rem;
  font-weight: 800;
  position: relative;
  margin-bottom: 1rem;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin-top: 15px;
  border-radius: 2px;
}

.section-heading.text-center h2::after {
  margin: 15px auto 0 auto;
}

/* Feature & Service Cards */
.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 148, 136, 0.2);
}

.feature-card:hover .ftco-icon {
  background: var(--primary);
  color: var(--bg-white);
}

.ftco-icon {
  width: 64px;
  height: 64px;
  background: rgba(13, 148, 136, 0.08);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.media.ftco-media:hover .ftco-icon {
  background: var(--primary);
  color: var(--bg-white);
}

.ftco-icon span, .ftco-icon i {
  font-size: 1.8rem;
}

/* Counter section */
#section-counter {
  position: relative;
  z-index: 4;
}

.counter-wrap {
  text-align: center;
}

.counter-wrap .ftco-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}

.counter-wrap .label {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--text-muted);
}

/* Products Engine Layout */
.catalog-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

@media (max-width: 991.98px) {
  .catalog-container {
    grid-template-columns: 1fr;
  }
}

/* Sidebar Filter UI */
.filter-sidebar {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  position: sticky;
  top: 100px;
  height: calc(100vh - 140px);
  overflow-y: auto;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 991.98px) {
  .filter-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    z-index: 2100;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    background: var(--bg-white) !important;
  }
  .filter-sidebar.active {
    left: 0;
  }
}

.filter-sidebar h3 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.6rem;
  margin-bottom: 1.2rem;
}

.filter-group {
  margin-bottom: 1.8rem;
}

.filter-group h4 {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 280px;
  overflow-y: auto;
}

.category-list li {
  margin-bottom: 0.5rem;
}

.category-list label {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 0;
  transition: var(--transition);
}

.category-list label:hover {
  color: var(--primary);
}

.category-list input {
  margin-right: 8px;
  accent-color: var(--primary);
}

/* Division tab switchers */
.division-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.division-tab {
  flex: 1;
  text-align: center;
  padding: 0.8rem;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
}

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

.division-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Search bar styling */
.search-box {
  position: relative;
  margin-bottom: 1.5rem;
}

.search-box input {
  width: 100%;
  padding: 0.8rem 1.2rem 0.8rem 2.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  outline: none;
  font-size: 15px;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Product Cards Grid & Layout - Standard Bootstrap Grid used now! */
.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 148, 136, 0.15);
}

.product-image-wrapper {
  position: relative;
  padding-bottom: 95%; /* Square aspect ratio to maximize image height */
  background: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.product-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;  /* Fits labels/tubes/bottles fully without cropping */
  padding: 0.3rem; /* Less padding to make the product image appear larger */
  background: #ffffff;
  transition: var(--transition);
}

.product-card:hover .product-image-wrapper img {
  transform: scale(1.03);
}

.product-discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ef4444;
  color: var(--bg-white);
  font-weight: 700;
  font-size: 11px;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.product-info {
  padding: 0.7rem; /* Reduced padding to make card more compact */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

@media (max-width: 575.98px) {
  .product-info {
    padding: 0.5rem;
  }
  .product-title {
    font-size: 13px;
    height: auto !important;
    max-height: 36px !important;
    margin-bottom: 0.2rem;
  }
  .product-price-row {
    margin-bottom: 0.2rem;
  }
  .price-selling {
    font-size: 14px;
  }
  .product-sku {
    margin-bottom: 0.4rem;
    font-size: 10px;
  }
  .btn-enquire {
    font-size: 11px;
    padding: 0.4rem;
  }
}

.product-category-tag {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem; /* Shrunk category tag margin */
}

.product-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.2rem; /* Shrunk title margin */
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: auto; /* Let layout shrink normally */
  max-height: 38px;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  margin-bottom: 0.25rem; /* Shrunk price row margin */
  gap: 0.4rem;
}

.price-selling {
  font-size: 16px;
  font-weight: 700;
  color: var(--secondary);
}

.price-actual {
  font-size: 12px;
  text-decoration: line-through;
  color: var(--text-muted);
}

.product-sku {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 0; /* Remove auto top margin so it doesn't push down */
  margin-bottom: 0.5rem; /* Shrunk SKU margin */
  font-family: monospace;
}

/* Button actions on cards */
.product-actions-row {
  display: flex;
  gap: 0.4rem;
  margin-top: auto; /* Keeps only the buttons aligned at the bottom */
}

.btn-enquire {
  flex: 1;
  background: var(--bg-light);
  color: var(--secondary);
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
  cursor: pointer;
}

.btn-add-bucket-shortcut {
  background: var(--bg-light);
  color: var(--primary);
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.btn-add-bucket-shortcut:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg-white);
}

.product-card:hover .btn-enquire {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg-white);
}

/* Skeleton Loading Animation */
.skeleton-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 360px;
  background: var(--bg-white);
  padding: 0;
}

.skeleton-image {
  height: 200px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: loading-skeleton 1.5s infinite;
}

.skeleton-text {
  margin: 15px;
  height: 12px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: loading-skeleton 1.5s infinite;
  border-radius: 4px;
}

.skeleton-text.short {
  width: 60%;
}

@keyframes loading-skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Load More Observer anchor */
.load-more-trigger {
  width: 100%;
  text-align: center;
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Modal Popup styling */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1060;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 780px;
  width: 100%;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modal-zoom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2.2rem;
  border: 1px solid var(--border-color);
}

@keyframes modal-zoom {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close-modal {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  z-index: 100;
  line-height: 1;
}

.close-modal:hover {
  color: #ef4444;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
}

@media (max-width: 640px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.detail-image-wrapper {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
}

.detail-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.detail-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.detail-category {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
  display: block;
}

.detail-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.2rem;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.spec-item {
  background: var(--bg-light);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
}

.spec-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.spec-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btn-whatsapp-enquire {
  background: #25d366;
  color: var(--bg-white);
  border: none;
  font-weight: 600;
  font-size: 13px; /* Reduced to fit in narrow layouts */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem; /* Reduced horizontal padding to prevent clipping */
  white-space: nowrap;
}

.btn-whatsapp-enquire:hover {
  background: #20ba5a !important;
  color: var(--bg-white);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-email-enquire-toggle {
  background: var(--secondary);
  color: var(--bg-white);
  border: none;
  font-weight: 600;
  font-size: 13px; /* Reduced to fit in narrow layouts */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem; /* Reduced horizontal padding to prevent clipping */
  white-space: nowrap;
}

.btn-email-enquire-toggle:hover {
  background: var(--secondary-light) !important;
  color: var(--bg-white);
  box-shadow: 0 4px 12px rgba(15, 23, 60, 0.3);
}

.btn-add-bucket {
  background: var(--bg-light);
  color: var(--secondary);
  border: 1px solid var(--border-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem;
}

.btn-add-bucket:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg-white);
}

/* Dynamic details sub-form (Email form inside details modal) */
.detail-email-form-wrapper {
  border-top: 1px dashed var(--border-color);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

/* Enquiry Bucket styling */
.bucket-item-row {
  display: flex;
  align-items: center;
  padding: 0.8rem;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.6rem;
  gap: 1rem;
}

.bucket-item-img {
  width: 50px;
  height: 50px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bucket-item-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.bucket-item-info {
  flex: 1;
}

.bucket-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.1rem;
  line-height: 1.3;
}

.bucket-item-sku {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
}

.btn-remove-bucket-item {
  color: #ef4444;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  font-size: 16px;
  transition: var(--transition);
}

.btn-remove-bucket-item:hover {
  transform: scale(1.1);
}

/* Gallery Showcase layout */
.gallery-grid {
  margin-top: 1rem;
}

.gallery-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-image-wrapper {
  position: relative;
  padding-bottom: 75%; /* 4:3 aspect ratio */
  overflow: hidden;
  background: #ffffff;
}

.gallery-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Fits wide operational scenes and tall bottles without clipping */
  padding: 0.5rem;
  background: #ffffff;
  transition: var(--transition);
}

.gallery-card:hover .gallery-image-wrapper img {
  transform: scale(1.05);
}

.gallery-info {
  padding: 1.2rem;
}

.gallery-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.gallery-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Mobile Filters button floating */
.mobile-filter-btn-wrapper {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 998;
  display: none;
}

@media (max-width: 991.98px) {
  .mobile-filter-btn-wrapper {
    display: block;
  }
}

.mobile-filter-btn {
  background: var(--secondary);
  color: var(--bg-white);
  border: none;
  box-shadow: var(--shadow-lg);
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  font-weight: 600;
}

/* Footer layout */
footer {
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer h4 {
  color: var(--bg-white);
  font-size: 18px;
  margin-bottom: 1.5rem;
}

footer a {
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition);
}

footer a:hover {
  color: var(--primary);
}

footer .footer-logo span {
  color: var(--primary);
}

footer .footer-socials {
  margin-top: 1.2rem;
  display: flex;
  gap: 1rem;
}

footer .footer-socials a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer .footer-socials a:hover {
  background: var(--primary);
  color: var(--bg-white);
}

/* Toast/Popup alerts (custom replacement for popup-message) */
#popup-message {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-sm);
  color: var(--bg-white);
  font-weight: 600;
  font-size: 15px;
  z-index: 2000;
  box-shadow: var(--shadow-lg);
  display: none;
  animation: slide-in-toast 0.3s ease-out;
}

@keyframes slide-in-toast {
  from { top: -50px; opacity: 0; }
  to { top: 30px; opacity: 1; }
}

#popup-message.success {
  background: #10b981;
}

#popup-message.error {
  background: #ef4444;
}

.loader {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid var(--bg-white);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 991.98px) {
  /* Make navbar brand and hamburger align nicely with screen edges */
  .ftco_navbar .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  /* Render mobile dropdown menu items inline vertically */
  .navbar-nav .dropdown-menu {
    position: static !important;
    float: none !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: none !important;
    box-shadow: none !important;
    margin-top: 0 !important;
    padding-left: 1.5rem !important;
    display: none;
  }
  
  .navbar-nav .dropdown-menu.show {
    display: block !important;
  }
  
  .navbar-nav .dropdown-item {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.5rem 1rem !important;
  }
  
  .navbar-nav .dropdown-item:hover {
    background: transparent !important;
    color: var(--primary) !important;
  }
}

/* B2B Enquiry Bucket Row styling inside modal */
.bucket-item-row {
  display: flex;
  align-items: center;
  padding: 0.8rem;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 0.8rem;
  gap: 1rem;
}

.bucket-item-img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bucket-item-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.bucket-item-info {
  flex: 1;
  min-width: 0;
}

.bucket-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-remove-bucket-item {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 0.3rem;
  font-size: 16px;
  transition: var(--transition);
}

.btn-remove-bucket-item:hover {
  transform: scale(1.15);
}

/* Instant check styles */
.btn-add-bucket-shortcut.added {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.05) !important;
}

.btn-add-bucket.added {
  background-color: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
}

/* Team card hover style */
.team-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.team-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md) !important;
  border-color: var(--primary) !important;
}

