/* Shaya Trade - Hotel Supplies | Bootstrap 5.3 Custom Styles */

:root {
  --brand-primary: #0193d7;
  --brand-primary-dark: #1a3a5c;
  --brand-primary-darker: #0d2440;
  --brand-accent: #0d2440;
  --brand-gold: #c9a96e;
  --hero-bg: #f6fafd;
  --border-light: #eef2f7;
  --text-muted: #5a6577;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 0.75rem;
  --radius-lg: 1rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--brand-primary-dark);
}

/* ===== Navbar ===== */
.navbar {
  padding: 1rem 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}
.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}
.navbar-brand { padding: 0; }
.navbar-brand img { height: 52px; width: auto; transition: transform 0.3s ease; }
.navbar-brand:hover img { transform: scale(1.05); }

.navbar .nav-link {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: #444;
  padding: 0.6rem 1.2rem;
  position: relative;
  transition: color 0.3s ease;
}
.navbar .nav-link:hover { color: var(--brand-primary); }
.navbar .nav-link.active {
  color: var(--brand-primary);
  font-weight: 600;
}
.navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.2rem;
  right: 1.2rem;
  height: 2px;
  background: var(--brand-primary);
  border-radius: 1px;
}

/* ===== Navbar Dropdown ===== */
.nav-item.dropdown { position: relative; }
.nav-item.dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  z-index: 1050;
  animation: dropdownFade 0.25s ease;
}
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-item.dropdown:hover .dropdown-menu { display: block; }
.nav-link.dropdown-toggle-parent::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.35rem;
  vertical-align: middle;
  border-top: 0.35em solid;
  border-right: 0.35em solid transparent;
  border-left: 0.35em solid transparent;
  opacity: 0.6;
  transition: transform 0.2s ease;
}
.nav-item.dropdown:hover .nav-link.dropdown-toggle-parent::after {
  transform: rotate(180deg);
}
.nav-item.dropdown .dropdown-menu .dropdown-item {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #444;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}
.nav-item.dropdown .dropdown-menu .dropdown-item:hover {
  background: var(--hero-bg);
  color: var(--brand-primary);
  border-left-color: var(--brand-primary);
  padding-left: 1.5rem;
}
.nav-item.dropdown .dropdown-menu .dropdown-item.active {
  color: var(--brand-primary);
  background: var(--hero-bg);
  border-left-color: var(--brand-primary);
}

/* ===== Hero ===== */
.hero-section {
  background: var(--hero-bg);
  border-bottom: 1px solid var(--border-light);
  padding: 4rem 0 3rem;
}
.hero-title {
  font-family: Georgia, serif;
  color: var(--brand-primary-dark);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* ===== Index full-bleed hero ===== */
.hero-index {
  min-height: 600px;
}
.hero-index .hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(10,18,30,0.7) 0%, rgba(26,58,92,0.5) 50%, rgba(1,147,215,0.2) 100%);
  z-index: 1;
}
.hero-index .hero-content {
  position: relative;
  z-index: 2;
}

/* Philosophy section overlay */
.philosophy-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(10,18,30,0.82) 0%, rgba(26,58,92,0.75) 85%);
  z-index: 0;
}
.hero-index .hero-badge {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
  padding: 0.4rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 2rem;
}
.hero-index h1 {
  font-family: Georgia, serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  margin-bottom: 1.5rem;
}
.hero-index .hero-cta {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(1,147,215,0.4);
}
.hero-index .hero-cta:hover {
  background: #0179b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(1,147,215,0.5);
  color: #fff;
}
@media (max-width: 767.98px) {
  .hero-index { min-height: 420px; }
  .hero-index h1 { font-size: 2.4rem !important; }
}

/* ===== Section spacing ===== */
.section { padding: 5rem 0; }
.section-title {
  font-family: Georgia, serif;
  color: var(--brand-primary-dark);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--brand-primary);
  margin: 1rem auto 1.5rem;
  border-radius: 2px;
}

/* ===== Cards ===== */
.card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  background: #fff;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card-img-top {
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-img-top {
  transform: scale(1.05);
}
.card-img-wrapper {
  overflow: hidden;
  position: relative;
}
.card-img-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.15), transparent);
  pointer-events: none;
}
.card-title {
  font-family: Georgia, serif;
  color: var(--brand-primary-dark);
  font-weight: 600;
}
.card-meta { color: var(--text-muted); font-size: 0.85rem; }

/* ===== Buttons ===== */
.btn-brand {
  background: var(--brand-primary);
  color: white;
  border: none;
  font-weight: 600;
  padding: 0.7rem 1.8rem;
  border-radius: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(1,147,215,0.3);
  font-size: 0.9rem;
}
.btn-brand:hover {
  background: #0179b3;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(1,147,215,0.4);
}
.btn-outline-brand {
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  background: white;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 2rem;
  transition: all 0.3s ease;
}
.btn-outline-brand:hover {
  background: var(--brand-primary);
  color: white;
  transform: translateY(-2px);
}

/* ===== FAQ accordion ===== */
.accordion-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.accordion-item:hover {
  box-shadow: var(--shadow-sm);
}
.accordion-button {
  background: white;
  color: var(--brand-primary-dark);
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  padding: 1.1rem 1.5rem;
  font-size: 0.95rem;
}
.accordion-button:not(.collapsed) {
  background: var(--hero-bg);
  color: var(--brand-primary);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: none; }
.accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230193d7'%3E%3Cpath d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z'/%3E%3C/svg%3E");
}
.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230193d7'%3E%3Cpath d='M2 8a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11A.5.5 0 0 1 2 8z'/%3E%3C/svg%3E");
}
.accordion-body {
  padding: 1rem 1.5rem 1.25rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== Floating Customer Service Widget ===== */
.cs-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
}
.cs-toggle-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(1,147,215,0.45);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}
.cs-toggle-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(1,147,215,0.55);
}
.cs-icon-close { display: none; }
.cs-widget.open .cs-icon-chat { display: none; }
.cs-widget.open .cs-icon-close { display: block; }

/* Action buttons */
.cs-actions {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.cs-widget.open .cs-actions {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cs-action-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(0,0,0,0.18);
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
}
.cs-action-btn:hover { transform: scale(1.12) translateY(-2px); color: #fff; }
.cs-whatsapp { background: #25d366; }
.cs-email { background: var(--brand-primary); }
.cs-inquiry { background: var(--brand-primary-dark); }

/* Tooltip */
.cs-tooltip {
  position: absolute;
  right: 62px;
  background: var(--brand-primary-dark);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.25s ease;
  pointer-events: none;
}
.cs-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--brand-primary-dark);
}
.cs-action-btn:hover .cs-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Inquiry popup */
.cs-inquiry-popup {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 310px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transition: all 0.3s ease;
  z-index: 3;
}
.cs-inquiry-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.cs-inquiry-header {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: #fff;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cs-inquiry-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.cs-inquiry-close:hover { opacity: 1; }
.cs-inquiry-popup form { padding: 16px; }
.cs-field { margin-bottom: 10px; }
.cs-field .form-control {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 0.85rem;
  padding: 8px 12px;
  transition: border-color 0.2s;
}
.cs-field .form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(1,147,215,0.15);
}
.cs-send-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 4px;
}
.cs-send-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(1,147,215,0.35);
}

/* Scroll top - adjust position above cs-widget */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 92px;
  width: 48px;
  height: 48px;
  background: var(--brand-primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s ease;
}
.scroll-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.scroll-top.show { display: flex; }

/* ===== Blog single ===== */
.blog-content { font-size: 1.05rem; line-height: 1.9; color: #444; }
.blog-content h2, .blog-content h3 { color: var(--brand-primary-dark); margin-top: 2rem; font-family: 'Playfair Display', serif; }
.blog-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.blog-sidebar { position: sticky; top: 100px; }
.sidebar-widget {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-widget h5 {
  color: var(--brand-primary-dark);
  font-weight: 700;
  font-family: Georgia, serif;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--brand-primary);
}
.sidebar-widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar-widget li { padding: 0.5rem 0; border-bottom: 1px solid var(--border-light); }
.sidebar-widget li:last-child { border-bottom: none; }
.sidebar-widget a { color: #444; transition: color 0.2s; }
.sidebar-widget a:hover { color: var(--brand-primary); }

/* ===== Product grid ===== */
.product-card .price {
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 1.1rem;
}
.product-card .card-body {
  padding: 1.25rem;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--brand-primary-darker);
  color: rgba(255,255,255,0.7);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-gold), var(--brand-primary));
}
.site-footer h6 {
  color: #fff;
  letter-spacing: 0.08em;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
}
.site-footer a {
  color: rgba(255,255,255,0.65) !important;
  transition: all 0.3s ease;
}
.site-footer a:hover {
  color: var(--brand-primary) !important;
  padding-left: 4px;
}
.site-footer strong { color: rgba(255,255,255,0.9); }
.site-footer hr { border-color: rgba(255,255,255,0.1); opacity: 1; }
.site-footer .footer-bottom {
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
}
.site-footer .btn-outline-secondary {
  width: 40px; height: 40px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border-color: rgba(255,255,255,0.2) !important;
  color: rgba(255,255,255,0.7) !important;
  transition: all 0.3s ease;
}
.site-footer .btn-outline-secondary:hover {
  background: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

/* ===== Page hero (large) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary-darker) 100%);
  padding: 10rem 0 8rem;
  position: relative;
  overflow: hidden;
}
.page-hero-banner {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(5,15,30,0.92) 0%, rgba(10,25,50,0.90) 50%, rgba(5,20,40,0.93) 100%);
  z-index: 0;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(1,147,215,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,169,110,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: Georgia, serif;
  color: #fff;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* ===== Breadcrumb ===== */
.breadcrumb-wrapper {
  background: var(--hero-bg);
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 0;
}
.breadcrumb-wrapper .breadcrumb {
  margin: 0;
  font-size: 0.85rem;
}
.breadcrumb-wrapper .breadcrumb-item a {
  color: var(--brand-primary);
  font-weight: 500;
}
.breadcrumb-wrapper .breadcrumb-item.active {
  color: var(--text-muted);
}

/* ===== Contact form ===== */
.contact-form .form-control,
.contact-form .form-control {
  border: 1.5px solid var(--border-light);
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  transition: all 0.3s ease;
}
.contact-form .form-control:focus,
.form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(1,147,215,0.12);
}

/* ===== Feature icons ===== */
.feature-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--hero-bg) 0%, #dceefb 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.8rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(1,147,215,0.1);
}
.feature-icon:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(1,147,215,0.2);
}

/* ===== Client logos ===== */
.client-logo {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}
.client-logo:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-3px);
}
.client-logo span {
  color: rgba(255,255,255,0.8);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #0179b3 50%, var(--brand-primary-dark) 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  border-radius: 50%;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 {
  font-family: Georgia, serif;
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
}
.cta-section p { color: rgba(255,255,255,0.85); }
.cta-btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: #fff;
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  color: var(--brand-primary-dark);
}

/* ===== Subcategory pills ===== */
.subcat-nav {
  background: var(--hero-bg);
  border-bottom: 1px solid var(--border-light);
  padding: 1.25rem 0;
}
.subcat-pill {
  display: inline-block;
  padding: 0.45rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 2rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.subcat-pill.active,
.subcat-pill:hover {
  background: var(--brand-primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(1,147,215,0.3);
}
.subcat-pill:not(.active) {
  background: #fff;
  color: var(--brand-primary-dark);
  border-color: var(--border-light);
}
.subcat-pill:not(.active):hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* ===== Pagination (PHPCMS raw output) ===== */
.page-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3rem;
}
.page-pagination a,
.page-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.3s ease;
}
.page-pagination a {
  background: #fff;
  color: var(--brand-primary-dark);
  border: 1.5px solid var(--border-light);
}
.page-pagination a:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(1,147,215,0.25);
}
.page-pagination span {
  background: var(--brand-primary);
  color: #fff;
  border: 1.5px solid var(--brand-primary);
  font-weight: 600;
}

/* ===== Bootstrap Pagination override ===== */
.pagination .page-link {
  color: var(--brand-primary-dark);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius) !important;
  margin: 0 3px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.pagination .page-link:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}
.pagination .active .page-link {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

/* ===== Prev / Next Navigation ===== */
.prev-next-nav {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}
.prev-next-nav a {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--hero-bg);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}
.prev-next-nav a:hover {
  background: #fff;
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}
.prev-next-nav .nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-primary);
  margin-bottom: 0.25rem;
}
.prev-next-nav .nav-title {
  font-family: Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-primary-dark);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prev-next-nav .nav-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.prev-next-nav a:hover .nav-arrow {
  background: var(--brand-primary-dark);
}
.prev-next-nav .prev-item { text-align: left; }
.prev-next-nav .next-item { text-align: right; flex-direction: row-reverse; }
@media (max-width: 575.98px) {
  .prev-next-nav { flex-direction: column; }
  .prev-next-nav .next-item { flex-direction: row-reverse; text-align: right; }
  .cs-inquiry-popup { width: 280px; right: -4px; }
  .cs-toggle-btn { width: 52px; height: 52px; }
  .cs-action-btn { width: 44px; height: 44px; }
  .scroll-top { right: 80px; bottom: 20px; width: 42px; height: 42px; }
}

/* ===== Contact info card ===== */
.contact-info-card {
  background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary-darker) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.contact-info-card::before {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(1,147,215,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.contact-info-card h4 { color: #fff; position: relative; z-index: 1; }
.contact-info-card .info-item { position: relative; z-index: 1; margin-bottom: 1.5rem; }
.contact-info-card .info-label { color: var(--brand-primary); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.25rem; }
.contact-info-card .info-value { color: rgba(255,255,255,0.85); margin: 0; }
.contact-info-card .info-value a { color: rgba(255,255,255,0.85); }
.contact-info-card .info-value a:hover { color: var(--brand-primary); }

/* ===== Form card ===== */
.form-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}
.form-card h4 {
  font-family: Georgia, serif;
  color: var(--brand-primary-dark);
  font-weight: 700;
}

/* ===== Mission/Vision cards ===== */
.mv-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--brand-primary);
  transition: all 0.3s ease;
  height: 100%;
}
.mv-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.mv-card h3 {
  font-family: Georgia, serif;
  color: var(--brand-primary-dark);
  font-weight: 700;
}

/* ===== Blog card ===== */
.blog-card {
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
}
.blog-card .card-body { padding: 1.5rem; }
.blog-card .blog-date {
  color: var(--brand-primary);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.blog-card .read-more {
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.3s ease;
}
.blog-card .read-more:hover {
  gap: 0.6rem;
  color: var(--brand-primary-dark);
}

/* ===== Product detail ===== */
.product-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.product-detail-img img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

/* ===== Product Gallery ===== */
.product-gallery .gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--hero-bg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-gallery .gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}
.gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.gallery-thumbs .thumb-item {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border-light);
  transition: all 0.3s ease;
  background: var(--hero-bg);
}
.gallery-thumbs .thumb-item:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}
.gallery-thumbs .thumb-item.active {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(1,147,215,0.2);
}
.gallery-thumbs .thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Product Info ===== */
.product-category {
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.product-title {
  font-family: Georgia, serif;
  color: var(--brand-primary-dark);
  font-weight: 700;
  font-size: 2.2rem;
  margin: 0.5rem 0 1.25rem;
  line-height: 1.2;
}
.product-divider {
  width: 50px;
  height: 3px;
  background: var(--brand-primary);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.product-short-desc {
  color: #555;
  line-height: 1.8;
  font-size: 1rem;
}

/* ===== Product Description Content ===== */
.product-description-content {
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  font-size: 1.05rem;
  line-height: 2;
  color: #444;
}
.product-description-content p {
  margin-bottom: 1rem;
}
.product-description-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 0;
  display: block;
}

/* --- Content images auto 2-column layout --- */
.product-description-content p:has(> img:only-child) {
  display: inline-block;
  width: calc(50% - 0.5rem);
  margin: 0 1rem 1rem 0;
  vertical-align: top;
}
.product-description-content p:has(> img:only-child):nth-child(even) {
  margin-right: 0;
}
.product-description-content p > img:only-child {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-description-content p:has(> img:only-child):hover > img {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Single image fallback — when only one image in content, full width */
.product-description-content p:has(> img:only-child):last-child:nth-child(odd) {
  width: 100%;
  margin-right: 0;
}
.product-description-content p:has(> img:only-child):last-child:nth-child(odd) > img {
  height: auto;
  max-height: 500px;
  object-fit: contain;
}

/* Mobile: single column */
@media (max-width: 767.98px) {
  .product-description-content p:has(> img:only-child) {
    width: 100%;
    margin-right: 0;
  }
  .product-description-content p > img:only-child {
    height: auto;
  }
}

/* ===== Mobile ===== */
@media (max-width: 991.98px) {
  .hero-title, .page-hero h1 { font-size: 2rem; }
  .hero-section, .page-hero { padding: 5rem 0 4rem; }
  .blog-sidebar { position: static; margin-top: 2rem; }
  .section { padding: 3.5rem 0; }
}
@media (max-width: 767.98px) {
  .page-hero { padding: 7rem 0 5rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .section-title { font-size: 1.6rem; }
  .form-card { padding: 1.5rem; }
  .contact-info-card { padding: 1.75rem; }
}
