/* ============================================
   EventPrint - Global Styles (Pixel Perfect)
   PERFORMANCE OPTIMIZED
   ============================================ */

/* Google Fonts Import */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap");

/* ============================================
   CSS RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Smooth scrolling & better performance */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

:root {
  /* Brand Colors */
  --primary-cyan: #00aeef;
  --white: #ffffff;
  --black: #000000;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --cyan-50: #ecfeff;
  --cyan-100: #cffafe;
  --cyan-200: #a5f3fc;
  --cyan-600: #0891b2;
  --yellow: #ffc107;
  --green: #22c55e;
  --primary-blue-dark: #003b95;
  --primary-red: #e53935;

  /* Typography */
  --font-heading: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, sans-serif;
  --font-accent: var(--font-heading);

  /* Typography Scale Factors (overridden by admin settings) */
  --size-scale-heading: 1;
  --size-scale-body: 1;
  --size-scale-accent: 1;

  /* Border Radius */
  --radius-card: 16px;
  --radius-medium: 14px;
  --radius-small: 12px;
  --radius-input: 10px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Spacing (Section gaps per spec) */
  --section-gap-desktop: 20px;
  --section-gap-tablet: 14px;
  --section-gap-mobile: 10px;
  --card-gap: 16px;
  /* Reduced from default */
  --card-gap-small: 12px;

  /* Container */
  --container-max-width: 1320px;
  --container-padding: 24px;

  /* Navbar */
  --navbar-height: 72px;

  /* Footer */
  --footer-bar-height: 48px;
}

html {
  scroll-behavior: smooth;
  font-size: calc(16px * var(--size-scale-body));
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--gray-900);
}

h1 {
  font-size: calc(2.5rem * var(--size-scale-heading) / var(--size-scale-body));
}

h2 {
  font-size: calc(2rem * var(--size-scale-heading) / var(--size-scale-body));
}

h3 {
  font-size: calc(1.75rem * var(--size-scale-heading) / var(--size-scale-body));
}

h4 {
  font-size: calc(1.5rem * var(--size-scale-heading) / var(--size-scale-body));
}

h5 {
  font-size: calc(1.25rem * var(--size-scale-heading) / var(--size-scale-body));
}

h6 {
  font-size: calc(1rem * var(--size-scale-heading) / var(--size-scale-body));
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--cyan-600);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

/* 1. Header Topbar */
.topbar--fullbleed {
  position: relative;
  overflow: hidden;
  background: #00aeef;
  min-height: 36px;
  z-index: 10;
}

/* Lekukan Capsule/Tab Style - 100% Match */
.topbar--fullbleed::before,
.topbar--fullbleed::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  background: rgba(255, 255, 255, 0.15);
  pointer-events: none;
  z-index: 1;
}

.topbar--fullbleed::before {
  left: 0;
  border-radius: 0 50px 50px 0;
}

.topbar--fullbleed::after {
  right: 0;
  border-radius: 50px 0 0 50px;
}

.topbar__inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 8px var(--container-padding);
  font-size: 0.85rem;
  color: var(--white);
  font-weight: 500;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.topbar-cta:hover {
  text-decoration: underline;
  color: var(--white);
  opacity: 0.9;
}

.section {
  padding: var(--section-gap-desktop) 0;
}

.section-highlight {
  background: transparent;
  color: var(--white);
}

.section-highlight .section-title {
  color: var(--white);
}

.section-highlight .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

/* Topbar Wave Decorations */
.topbar-wave-left,
.topbar-wave-right {
  position: absolute;
  top: 0;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.topbar-wave-left {
  left: 0;
}

.topbar-wave-right {
  right: 0;
}

.topbar-wave-left svg,
.topbar-wave-right svg {
  height: 100%;
  width: auto;
  display: block;
}

/* Responsive adjustments for topbar waves */
@media (max-width: 768px) {

  .topbar-wave-left svg,
  .topbar-wave-right svg {
    opacity: 0.3;
    height: 80%;
  }

  .topbar__inner {
    padding: 12px var(--container-padding);
  }
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
  background: var(--white);
  position: relative;
  z-index: 100;
  width: 100%;
}

/* ============================================
   HEADER MAIN - 2 Row Structure
   ============================================ */
.header-main {
  padding: 12px 0 0 0;
  background: transparent;
  position: relative;
  z-index: 50;
}

.header-main .container {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

/* ROW 1: Logo | Kategori Button | Search Center | Social Right */
.header-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 0px;
  padding-left: 0;
  padding-right: 0;
  position: relative;
  z-index: 55;
  width: 100%;
}

/* Logo + Tagline Group - Far Left */
.header-brand {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-cyan);
  text-decoration: none;
  flex-shrink: 0;
}

.header-brand img {
  height: 40px;
  width: auto;
}

/* Tagline - Desktop: inside nav row, absolute left */
.header-tagline-desktop {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.85rem !important;
  letter-spacing: 0em;
  color: #1f2937;
  font-weight: 700;
  line-height: 1.3 !important;
  white-space: nowrap;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  z-index: 56;
}

/* Tagline - Mobile: hidden on desktop */
.header-tagline-mobile {
  display: none;
}

/* Global Search - Stretches Between Kategori btn and Social Icons */
.header-search-stretch {
  flex: 1 1 0%;
  min-width: 0;
  height: 44px !important;
  position: relative;
  margin: 0;
}

.header-search-stretch form {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

.header-search-stretch .search-input-wrapper {
  width: 100% !important;
  height: 44px !important;
  max-height: 44px !important;
}

.header-search-stretch .search-input {
  width: 100% !important;
  height: 44px !important;
  box-sizing: border-box !important;
}

/* Header Actions Group (Stack Social + CTA) */
.header-social-icons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-cyan);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--cyan-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* ============================================
   ROW 2: NAVBAR - White BG, Black Text
   ============================================ */
.header-navbar-inner {
  background: transparent;
  padding: 0;
  margin-top: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: none;
  border-bottom: none;
  position: relative;
  width: 100%;
}

/* Navbar Links Container */
.navbar-nav-main {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 50px;
}

.navbar-nav-main li {
  position: relative;
}

/* Navbar Links - Black Text, White BG */
.nav-link-main {
  display: block;
  padding: 16px 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: #1f2937;
  text-decoration: none;
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Animation - Popup Effect */
.nav-link-main:hover {
  color: var(--primary-cyan);
  transform: translateY(-3px);
}

/* Animated Underline on Hover */
.nav-link-main::after {
  content: "";
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 3px;
  background: var(--primary-cyan);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link-main:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link-main.active {
  color: var(--primary-cyan);
  font-weight: 700;
}

.nav-link-main.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ============================================
   PHONE CTA - Design Spec Implementation
   ============================================ */
.cta-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px 8px 8px;
  background: #f0f9ff;
  border-radius: 24px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #e0f2fe;
  margin-left: 30px;
  white-space: nowrap;
}

.cta-phone:hover {
  background: #e0f2fe;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.cta-phone-icon {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.cta-phone-icon svg {
  display: block;
  transition: transform 0.3s ease;
}

.cta-phone:hover .cta-phone-icon svg {
  transform: rotate(-10deg) scale(1.05);
}

.cta-phone-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cta-phone-text .cta-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  line-height: 1;
}

.cta-phone-text .cta-number {
  font-size: 0.95rem;
  color: #1f2937;
  font-weight: 700;
  line-height: 1;
}

/* ============================================
   NAV SEARCH
   ============================================ */
#navSearchContainer,
.header-search {
  flex: 1;
  max-width: 900px;
  margin: 0 32px;
  position: relative;
  overflow: visible;
  z-index: 100;
  display: flex;
  align-items: center;
  align-self: center;
  height: 44px;
}

.header-tagline {
  font-size: 0.75rem;
  color: var(--gray-900);
  font-weight: 700;
  line-height: 1.3;
}

/* Nav Links Left Aligned */
.navbar-nav-main,
.navbar-nav {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: 200px;
}

/* Position Booking CTA */
.cta-booking {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  position: static;
  transform: none;
  margin: 0;
}

/* Ensure form fills the flex container */
.header-search form {
  width: 100%;
  position: relative;
  margin: 0 !important;
}

/* Wrapper for input to hold icon - safely targeted */
.search-input-wrapper {
  position: relative !important;
  width: 100%;
  display: block !important;
  height: 44px !important;
  max-height: 44px !important;
}

/* ... */

.search-dropdown {
  position: absolute;
  top: 40px !important;
  left: 0;
  right: 0;
  margin-top: 0 !important;
  width: 100%;
  background: var(--white);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--gray-200);
  border-top: none;
  overflow: hidden;
  z-index: 99999;
}

.search-input,
#globalSearchInput {
  width: 100%;
  height: 44px;
  padding: 0 46px 0 20px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: var(--gray-50);
  color: var(--gray-900);
}

.search-input:focus,
#globalSearchInput:focus {
  outline: none;
  border-color: var(--primary-cyan);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.1);
}

.header-search-icon,
.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Header Actions Group */
.header-actions {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 24px;
  flex-shrink: 0;
}

/* Header Brand Group (Logo + Tagline) */
.header-brand-group {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Reset margin for social icons in header and style links */
.header-actions .social-icons {
  display: flex;
  gap: 8px;
  margin-top: 0;
}

.header-actions .social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #00aeef !important;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 1.1rem;
}

/* CTA Icon (Restored) */
.cta-booking-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-cyan);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.cta-booking-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.cta-label {
  font-size: 0.75rem;
  color: var(--gray-600);
  font-weight: 500;
}

.cta-number {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-900);
}

.search-dropdown {
  position: absolute;
  top: 36px !important;
  left: 0;
  right: 0;
  margin-top: 0 !important;
  width: 100%;
  background: var(--white);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--gray-200);
  border-top: none;
  overflow: hidden;
  z-index: 99999;
  overflow: hidden;
  z-index: 99999;
}

.search-dropdown.hidden {
  display: none;
}

.search-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid var(--gray-50);
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: var(--cyan-50);
}

.search-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-900);
}

.search-item-price {
  font-size: 0.85rem;
  color: var(--primary-cyan);
}

.search-item-empty {
  padding: 16px;
  text-align: center;
  color: var(--gray-600);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .topbar--fullbleed {
    text-align: center;
  }

  #navSearchContainer {
    margin: 0;
    width: 100%;
    margin-bottom: 12px;
    max-width: none;
    order: 3;
  }

  .navbar {
    height: auto;
    padding: 12px 0;
  }

  .navbar .container {
    flex-wrap: wrap;
    gap: 12px;
  }

  .navbar-brand {
    margin-right: auto;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--gray-100);
  padding: 28px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 32px;
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--gray-900);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--gray-600);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary-cyan);
}

.footer-text {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.8;
}

.footer-bar {
  background: var(--primary-cyan);
  height: var(--footer-bar-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bar p {
  color: var(--white);
  font-size: 0.9rem;
  margin: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  gap: 8px;
}

.btn-primary {
  background: var(--primary-cyan);
  color: var(--white);
  border-radius: var(--radius-pill);
  height: 42px;
}

.btn-primary:hover {
  background: var(--cyan-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-cyan);
  border: 2px solid var(--primary-cyan);
  border-radius: var(--radius-pill);
  height: 42px;
}

.btn-secondary:hover {
  background: var(--primary-cyan);
  color: var(--white);
}

/* ============================================
   FORM INPUTS
   ============================================ */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-700);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-input);
  transition: all 0.2s ease;
  background: var(--white);
}

.form-input {
  height: 42px;
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
}

/* ============================================
   CARDS - PRODUCT
   ============================================ */
.product-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  /* NO transition - causes scroll lag */
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-100);
}

/* Hover Effect (Desktop Only) - Subtle, no transform */
@media (hover: hover) {
  .product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-cyan);
  }
}

.product-card-image {
  /* 4:3 aspect ratio for product cards (target: 800x600 or 600x450) */
  aspect-ratio: 4 / 3;
  /* No skeleton background - images load directly */
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--gray-600);
  overflow: hidden;
  flex-shrink: 0;
  /* Fallback min-height for older browsers */
  min-height: 200px;
}

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 4 / 3) {
  .product-card-image {
    height: 0;
    padding-bottom: 75%;
    /* 3/4 = 75% for 4:3 ratio */
    position: relative;
  }

  .product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
  }
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Always visible - NO animation */
  opacity: 1;
}

/* NO zoom on image hover - causes lag */

/* Optional: Slight zoom on image hover - DISABLED for performance */
/*
@media (hover: hover) {
  .product-card:hover .product-card-image img {
    transform: scale(1.05);
  }
}
*/

.product-card-info {
  flex: 1;
  background: var(--cyan-100);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-card-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.product-card-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
}

/* ============================================
   OUT OF STOCK STYLES
   ============================================ */
.product-card.out-of-stock {
  opacity: 0.85;
}

.product-card.out-of-stock .product-card-image {
  position: relative;
}

.product-card.out-of-stock .product-card-image img {
  filter: grayscale(50%);
}

.out-of-stock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-card-price.out-of-stock {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--gray-600);
}

.product-card-price.out-of-stock .strikethrough {
  text-decoration: line-through;
  color: var(--gray-600);
}

.product-card-price .stock-label {
  display: inline-block;
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Product Detail Out of Stock */
.price-display.out-of-stock {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-display.out-of-stock .strikethrough {
  text-decoration: line-through;
  color: #9ca3af;
}

.stock-status-badge {
  display: inline-block;
  background: #ef4444;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

/* ============================================
   CARDS - TESTIMONIAL
   ============================================ */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-medium);
  padding: 20px;
  box-shadow: var(--shadow-card);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.testimonial-stars .star {
  color: var(--yellow);
  font-size: 1rem;
}

.testimonial-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--gray-700);
  margin-bottom: 10px;
  flex-grow: 1;
}

.testimonial-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
}

/* ============================================
   SERVICES CAROUSEL (Category Bar)
   ============================================ */
.category-bar--fullbleed {
  width: 100%;
  background: transparent;
  padding: 14px 0 0 0;
  overflow: hidden;
  box-shadow: none;
}

.category-bar--fullbleed>.container,
.category-bar--fullbleed>.catbar__inner {
  background: linear-gradient(135deg, #3894a5 0%, #0891b2 100%);
  border-radius: 0;
  padding: 14px var(--container-padding, 24px) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  max-width: calc(var(--container-max-width, 1320px) - var(--container-padding, 24px) * 2);
  margin: 0 auto;
}

.catbar__inner {
  display: flex !important;
  align-items: center !important;
  gap: 30px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  position: relative !important;
}

.catbar__label {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(24px, 2.5vw, 36px);
  color: var(--white);
  margin: 0;
  text-transform: uppercase;
  flex-shrink: 0;
  line-height: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  order: 0 !important;
  min-width: 140px !important;
  white-space: nowrap !important;
  padding-right: 30px !important;
  text-align: left !important;
}

/* Wrapper */
.services-wrapper {
  position: relative !important;
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  background: transparent !important;
}

/* Track (Desktop Drag Enabled) - FORCE VISIBILITY */
.services-track {
  display: flex !important;
  gap: 16px !important;
  flex: 1 !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 8px 0 !important;
  cursor: grab !important;
  width: 100% !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 120px !important;
  order: 2 !important;

  /* Hide Scrollbar */
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* Categories Container - FORCE VISIBILITY */
#categories,
.category-list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  gap: 16px !important;
  padding: 4px !important;
  margin: 0 !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: flex-start !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 120px !important;
  background: transparent !important;
  position: relative !important;
  z-index: 1 !important;
}

.services-track::-webkit-scrollbar {
  display: none;
}

/* Hero Banner - Grid System Reset */
.hero--fullbleed {
  width: 100%;
  height: auto;
  position: relative;
}

.banner-responsive-img {
  display: block;
  width: 100%;
  height: auto;
}

.hero__inner * {
  pointer-events: auto;
}

.banner-backdrop {
  display: none;
}

/* Navigation Buttons (Desktop) - Minimal Arrow Only */
.services-nav {
  position: relative !important;
  top: auto !important;
  transform: none !important;
  width: 45px !important;
  height: 45px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 50% !important;
  font-size: 20px !important;
  font-weight: bold !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 10 !important;
  transition: all 0.3s ease !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  text-shadow: none !important;
  flex-shrink: 0 !important;
  outline: none !important;
}

.services-nav:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #00aeef !important;
  transform: scale(1.1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.services-nav:active {
  transform: scale(0.95) !important;
}

.services-nav:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  transform: none !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.services-nav.prev {
  order: -1 !important;
}

.services-nav.next {
  order: 1 !important;
}

/* Category Items - FORCE VISIBILITY */
.category-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  flex: 0 0 130px !important;
  width: 130px !important;
  min-width: 130px !important;
  max-width: 130px !important;
  height: auto !important;
  min-height: 100px !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1 !important;
}

.category-item:hover {
  background: var(--white) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 16px rgba(0, 174, 239, 0.3) !important;
}

.category-icon {
  font-size: 2rem !important;
  color: #00aeef !important;
  margin-bottom: 8px !important;
  transition: color 0.2s !important;
  display: block !important;
  text-align: center !important;
  width: 64px !important;
  height: 64px !important;
  line-height: 1 !important;
}

.category-name {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: var(--white) !important;
  text-align: center !important;
  transition: color 0.2s !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.category-item:hover .category-icon,
.category-item:hover .category-name {
  color: #00aeef !important;
}

/* ============================================
   LIVE SEARCH - SERVICES INTEGRATION
   ============================================ */
/* Services Search Hint (hidden by default, shown during search) */
.services-search-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.95);
  opacity: 0.85;
  margin: 6px 0 0;
  font-weight: 400;
  padding: 0;
}

/* Dimmed Categories (non-matching during search) */
.category-item.is-dimmed {
  opacity: 0.35;
  filter: grayscale(30%);
  pointer-events: auto;
}

/* MOBILE SWIPE OPTIMIZATION */
@media (max-width: 992px) {
  .catbar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-left: 0;
    padding-right: 0;
  }

  .catbar__label {
    padding-left: 24px;
  }

  /* Allow swipe overflow */
  .category-bar--fullbleed {
    overflow: visible;
  }

  .services-wrapper {
    width: 100%;
  }

  .services-track {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 24px 16px;
  }

  .services-track::-webkit-scrollbar {
    display: none;
  }

  .category-item {
    scroll-snap-align: start;
    flex: 0 0 110px;
    width: 110px;
    padding: 12px;
  }

  /* Hide buttons on mobile */
  .services-nav {
    display: none;
  }
}

/* ============================================
   STORE CARD (Our Home)
   ============================================ */
.store-card {
  background: var(--white);
  border-radius: var(--radius-medium);
  border: 1px solid var(--gray-200);
  padding: 20px;
  display: flex;
  gap: 20px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease;
}

.store-card:hover {
  box-shadow: var(--shadow-hover);
}

.store-image {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  background: var(--gray-200);
  border-radius: var(--radius-small);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-size: 0.85rem;
  overflow: hidden;
}

.store-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.store-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.store-icon {
  color: var(--primary-cyan);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.store-detail-text {
  color: var(--gray-700);
}

/* ============================================
   GRID SYSTEMS
   ============================================ */
.grid {
  display: grid;
  gap: var(--card-gap);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ============================================
   BANNER / CAROUSEL
   ============================================ */
.banner-carousel {
  width: 100%;
  max-width: none;
  background: var(--cyan-100);
  border-radius: 0;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.hero--fullbleed {
  width: 100%;
  min-height: clamp(420px, 60vh, 680px);
}

.hero__inner {
  max-width: var(--container-max-width);
  width: 100%;
  flex: 1;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.banner-slide {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.5s ease;
}

@media (max-width: 768px) {
  .hero--fullbleed {
    min-height: clamp(320px, 45vh, 520px);
  }

  .hero__inner {
    padding: 0 16px;
  }
}

.banner-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.banner-subtitle {
  font-size: 1.25rem;
  color: var(--gray-700);
  margin-bottom: 24px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.5);
}

.carousel-arrow.left {
  left: 24px;
}

.carousel-arrow.right {
  right: 24px;
}

.carousel-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-dot.active {
  background: var(--white);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: calc(1.75rem * var(--size-scale-heading) / var(--size-scale-body));
  font-weight: 700;
  color: var(--gray-900);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  margin-top: 8px;
}

/* ============================================
   CTA BLOCKS
   ============================================ */
.cta-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: var(--section-gap-desktop) 0;
}

.cta-block {
  background: var(--primary-cyan);
  height: 96px;
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-block:hover {
  background: var(--cyan-600);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: start;
}

.contact-box {
  background: var(--gray-100);
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-medium);
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-cyan);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gray-700);
}

.contact-form-box {
  background: var(--cyan-100);
  padding: 24px;
  border-radius: var(--radius-medium);
}

.contact-form-box h3 {
  margin-bottom: 20px;
}

/* ============================================
   SIDEBAR (Product Page)
   ============================================ */
.page-layout {
  display: flex;
  gap: 32px;
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--gray-50);
  padding: 24px;
  border-radius: var(--radius-medium);
  height: fit-content;
  position: sticky;
  top: calc(var(--navbar-height) + 20px);
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  margin-bottom: 12px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  color: var(--gray-700);
  font-size: 0.9rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: var(--primary-cyan);
  color: var(--white);
}

.main-content {
  flex: 1;
}

/* ============================================
   STATES - LOADING / EMPTY / ERROR
   Skeleton disabled for better scroll performance
   ============================================ */
.loading-skeleton {
  /* Animation disabled - causes scroll lag */
  /* animation: pulse 1.5s ease-in-out infinite; */
  opacity: 0.5;
}

/* Pulse animation disabled
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
*/

.skeleton-card {
  background: var(--gray-200);
  border-radius: var(--radius-card);
  height: 300px;
  display: none;
  /* Hidden - no skeleton loading */
}

.empty-state,
.error-state {
  text-align: center;
  padding: 64px 24px;
}

.empty-state-icon,
.error-state-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state-text {
  font-size: 1.1rem;
  color: var(--gray-600);
}

.error-state {
  background: #fee2e2;
  border-radius: var(--radius-medium);
}

.error-state-text {
  font-size: 1.1rem;
  color: #991b1b;
  font-weight: 600;
}

/* ============================================
   SOCIAL ICONS
   ============================================ */
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.social-icon:hover {
  background: var(--cyan-600);
  transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: var(--section-gap-tablet) 0;
  }

  .banner-carousel {
    height: 450px;
  }

  .banner-title {
    font-size: 2.25rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: static;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --container-padding: 16px;
  }

  .navbar-nav {
    display: none;
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: var(--section-gap-mobile) 0;
  }

  .banner-carousel {
    height: 350px;
    border-radius: 0;
  }

  .banner-title {
    font-size: 1.75rem;
  }

  .banner-subtitle {
    font-size: 1rem;
  }

  .category-list {
    justify-content: flex-start;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-row {
    grid-template-columns: 1fr;
  }

  .contact-row {
    grid-template-columns: 1fr;
  }

  .store-card {
    flex-direction: column;
  }

  .store-image {
    width: 100%;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .why-choose-row {
    grid-template-columns: 1fr;
    gap: 0;
    height: auto;
  }

  .why-choose-content {
    padding: 32px 24px;
    text-align: left;
  }

  .why-choose-media {
    height: 250px;
    min-height: 0;
  }

  .why-choose-title {
    font-size: 2rem;
  }
}

@media (max-width: 992px) {
  .why-choose-row {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }

  .why-choose-media {
    height: 300px;
    min-height: 300px;
  }

  .why-choose-content {
    padding: 32px 24px;
    text-align: left;
  }

  .why-choose-title {
    font-size: 2rem;
  }
}

/* ============================================
   SEARCH DROPDOWN
   ============================================ */
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin-top: 8px;
  border: 1px solid #eee;
  z-index: 1000;
  overflow: hidden;
  display: none;
}

.search-dropdown:not(.hidden) {
  display: block;
}

.search-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background 0.2s;
}

.search-item:hover {
  background: #f9f9f9;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item-empty {
  padding: 16px;
  text-align: center;
  color: #888;
}

.search-item-info {
  display: flex;
  flex-direction: column;
}

.search-item-name {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.search-item-price {
  font-size: 13px;
  color: #00aeef;
  margin-top: 2px;
}

/* Autocomplete highlight for matched prefix/substring */
.ac-hi {
  color: #0d6efd;
  font-weight: 600;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}

.mb-4 {
  margin-bottom: 32px;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.mt-4 {
  margin-top: 32px;
}

.hidden {
  display: none;
}

.block {
  display: block;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

/* ============================================
   WHY CHOOSE SECTION
   ============================================ */
.why-choose-section {
  padding: 10px 0 20px;
  background-color: transparent;
}

.why-choose-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: 20px;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  min-height: 420px;
}

/* Equal height media column */
.why-choose-media {
  width: 100%;
  height: 100%;
  background: var(--white);
  margin: 0;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-choose-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.why-choose-content {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  background: var(--white);
}

.why-choose-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 1.1;
  color: var(--primary-cyan);
  margin-bottom: 12px;
  text-transform: uppercase;
  margin-top: 0;
  font-weight: 800;
}

.why-choose-subtitle {
  font-size: 1.4rem;
  color: var(--gray-800);
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-weight: 600;
}

.why-choose-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.why-choose-text:last-of-type {
  margin-bottom: 0;
}

.why-choose-text strong {
  color: var(--gray-900);
}

/* ============================================
   PROMO CAROUSEL (Small Banner - 3:1 Aspect Ratio)
   Target: 1200x400 (3:1)
   ============================================ */
.promo-carousel {
  position: relative;
  width: 100%;
  /* Modern browsers: use aspect-ratio */
  aspect-ratio: 3 / 1;
  background: #f0f0f0;
  border-radius: 16px;
  overflow: hidden;
  cursor: grab;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 3 / 1) {
  .promo-carousel {
    height: 0;
    padding-bottom: 33.333%;
    /* 1/3 = 33.333% for 3:1 ratio */
  }
}

/* Mobile: smaller border-radius */
@media (max-width: 768px) {
  .promo-carousel {
    border-radius: 12px;
  }
}

.promo-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.3s ease-out;
}

.promo-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  user-select: none;
  cursor: grab;
}

/* Image: fill container with cover (no stretching) */
.promo-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.promo-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  /* Semi transparent */
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--primary-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  opacity: 0;
}

.promo-carousel:hover .promo-arrow {
  opacity: 1;
}

.promo-arrow:hover {
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.promo-prev {
  left: 16px;
}

.promo-next {
  right: 16px;
}

.promo-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.promo-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.promo-dot.active {
  background: var(--white);
  transform: scale(1.2);
}

.btn-small-white {
  background: var(--white);
  color: var(--primary-cyan);
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  display: inline-block;
  margin-top: 4px;
}

/* Contact Media Image */
.contact-media {
  width: 100%;
  height: 100%;
}

.contact-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.contact-box:hover .contact-media img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .hero-slider {
    height: 280px;
  }

  .grid {
    gap: 12px;
    /* Mobile gap */
  }
}

@media (max-width: 992px) {
  .hero-slider {
    height: 400px;
  }

  .grid {
    gap: 14px;
  }
}

/* ============================================
/* ============================================
   HIGHLIGHT SECTION (Produk Unggulan)
   ============================================ */
.section-highlight {
  background: transparent;
  border-top: none;
  border-bottom: none;
  padding: 0;
  position: relative;
}

/* Title Accent */
.section-highlight .section-title {
  position: relative;
  display: inline-block;
  color: var(--white);
}

.section-highlight .section-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  background-color: var(--white);
  opacity: 0.4;
  border-radius: 99px;
  margin-top: 4px;
}

/* Featured Carousel */
.featured-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
  /* Reserve min space to prevent layout collapse before content loads */
  /* Adjusted for smaller featured cards */
  min-height: 200px;
  /* Hide any scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 8px;
  width: max-content;
  /* Simple transform for carousel scroll - NO will-change */
  transform: translateZ(0);
}

/* Adjust Product Card in Carousel - fit 5 cards in ~1272px */
.carousel-track .product-card-link {
  width: 196px;
  flex: 0 0 196px;
  min-width: 150px;
}

/* Compact card styling inside featured carousel */
.section-highlight .product-card .product-card-image {
  min-height: auto;
  aspect-ratio: 4 / 3;
  background: #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0 !important;
}

.section-highlight .product-card .product-card-image img {
  object-fit: contain !important;
  width: 100% !important;
  height: 100% !important;
  padding: 6px;
}

.section-highlight .product-card .product-card-info {
  padding: 6px 8px;
  gap: 0;
}

.section-highlight .product-card .product-card-title {
  font-size: 0.8rem;
  margin-bottom: 3px;
}

.section-highlight .product-card .product-card-price {
  font-size: 0.75rem;
}

/* Carousel Buttons */
.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--primary-cyan);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  /* PERF: Specific transitions only */
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
  z-index: 10;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-btn:hover {
  background: var(--primary-cyan);
  color: var(--white);
  border-color: var(--primary-cyan);
}

.carousel-btn:disabled {
  opacity: 0;
  pointer-events: none;
}

.carousel-btn.prev {
  left: -24px;
}

.carousel-btn.next {
  right: -24px;
}

/* Featured Header */
.section-highlight .section-header {
  margin-bottom: 6px;
}

@media (max-width: 992px) {
  .carousel-track .product-card-link {
    flex: 0 0 calc(33.333% - 10px);
  }
}

@media (max-width: 768px) {
  .carousel-track .product-card-link {
    flex: 0 0 calc(50% - 8px);
  }

  .carousel-btn {
    display: none;
  }

  .carousel-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Responsive min-height for mobile */
    min-height: 380px;
  }

  /* Produk Unggulan: kecilkan min-height agar tidak ada space kosong besar di bawah card */
  .section-highlight .carousel-viewport {
    min-height: 240px;
  }

  .carousel-viewport::-webkit-scrollbar {
    display: none;
  }

  .carousel-track {
    width: auto;
  }

  /* Snap alignment for cards */
  .carousel-track .product-card-link {
    scroll-snap-align: start;
  }
}

@media (max-width: 480px) {
  .carousel-track .product-card-link {
    flex: 0 0 calc(80% - 10px);
    min-width: 260px;
  }
}

/* Card Emphasis inside Highlight Section */
.section-highlight .product-card {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid transparent;
  /* PERF: Specific transitions only, not 'all' */
  transition:
    transform 0.2s ease-out,
    box-shadow 0.2s ease-out,
    border-color 0.2s ease-out;
  /* GPU acceleration */
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
  gap: 0;
  padding: 4px !important;
}

.section-highlight .product-card:hover {
  transform: translateY(-4px) translateZ(0);
  box-shadow: 0 12px 24px rgba(0, 174, 239, 0.1);
  border-color: rgba(0, 174, 239, 0.3);
}

.section-highlight .product-card .product-card-image {
  background: var(--white);
}

@media (max-width: 768px) {
  .section-highlight {
    padding: var(--section-gap-mobile) 0;
  }
}

/* ============================================
   MACHINE GALLERY SECTION
   ============================================ */
.machine-gallery-section {
  padding: 30px 0 40px;
  background: var(--white);
  overflow: hidden;
}

/* Decorative Glow Blobs - simplified for performance */
.machine-gallery-section::before,
.machine-gallery-section::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle,
      rgba(0, 174, 239, 0.08) 0%,
      transparent 60%);
  /* filter: blur(80px) removed for performance */
  pointer-events: none;
  z-index: 0;
}

.machine-gallery-section::before {
  top: -20%;
  left: -10%;
}

.machine-gallery-section::after {
  bottom: -20%;
  right: -10%;
}

.gallery-header {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

.gallery-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--gray-900);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.gallery-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-cyan);
  margin: 12px auto 0;
  border-radius: 4px;
}

.gallery-subtitle {
  font-size: 1.15rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.85;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 174, 239, 0.1);
  background: var(--white);
  height: 260px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 174, 239, 0.15);
  border-color: rgba(0, 174, 239, 0.4);
}

.gallery-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  transform: skewX(-25deg);
  transition: 0.5s;
}

.gallery-item:hover::after {
  left: 200%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.6) 60%,
      transparent 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  height: 100%;
}

.gallery-item-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-item-caption {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.gallery-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 20px;
  z-index: 2;
  border: 1px solid rgba(0, 174, 239, 0.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.05em;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-item {
    height: 280px;
  }

  .gallery-title {
    font-size: 2rem;
  }
}

/* ============================================
   FOOTER REDESIGN & EXTRAS
   ============================================ */
.footer {
  background-color: var(--primary-cyan) !important;
  color: var(--white) !important;
  padding: 60px 0 20px;
}

.footer-column h4 {
  color: var(--white) !important;
  font-weight: 700;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9) !important;
}

.footer-links a:hover {
  color: var(--white) !important;
  padding-left: 6px;
}

.footer-text {
  color: rgba(255, 255, 255, 0.9) !important;
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Footer Extras Panel */
.footer-extras {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  text-align: left;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-extra-panel h5 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
}

.footer-social-icons {
  display: flex;
  gap: 12px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.social-icon-btn:hover {
  background: var(--white);
  color: var(--primary-cyan);
  transform: translateY(-2px);
}

.footer-payment-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.payment-icon {
  height: 32px;
  background: var(--white);
  padding: 4px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.payment-icon img {
  height: 100%;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .footer-extras {
    flex-direction: column;
    gap: 24px;
    padding-top: 0;
    margin-top: 0;
    border-top: none;
    margin-bottom: 32px;
  }
}

/* ============================================
   MOBILE FAB NAVIGATION
   ============================================ */
.desktop-nav {
  display: flex;
}

.fab-nav-container {
  display: none;
}

.fab-nav-container.open .fab-overlay {
  opacity: 1;
  visibility: visible;
}

.fab-nav-container.open .fab-menu-panel {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  /* FAB Container */
  .fab-nav-container {
    display: block;
    position: fixed;
    bottom: calc(18px + env(safe-area-inset-bottom));
    right: 18px;
    z-index: 9999;
  }

  /* Main Button */
  .fab-main-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-cyan);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
  }

  .fab-main-btn i,
  .fab-main-btn svg {
    font-size: 24px;
    color: white;
  }

  .fab-main-btn:active {
    transform: scale(0.95);
  }

  /* Overlay */
  .fab-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }

  /* Slide-up Panel */
  .fab-menu-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 280px;
    max-width: calc(100vw - 36px);
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .fab-nav-container.open .fab-menu-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
  }

  .fab-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
  }

  .fab-menu-header h5 {
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
  }

  .fab-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-500);
    cursor: pointer;
  }

  .fab-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .fab-link {
    display: block;
    padding: 12px 0;
    color: var(--gray-700);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--gray-100);
    transition: color 0.2s;
  }

  .fab-link.active {
    color: var(--primary-cyan);
    font-weight: 700;
  }

  /* Footer Mobile Reordering */
  .footer-wrapper-flex {
    display: flex;
    flex-direction: column;
  }

  .footer-extras {
    order: -1;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }

  .footer-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
}

/* ============================================
   MOBILE PRODUCT GRID OVERRIDES
   ============================================ */
@media (max-width: 768px) {

  /* Force 2 Columns on Mobile */
  .products-grid,
  .product-grid,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  /* Adjust Card Sizing for Compact 2-Col */
  .product-card {
    height: 260px;
  }

  .product-card-info {
    padding: 12px;
  }

  .product-card-name {
    font-size: 0.85rem;
    line-height: 1.3;
  }

  .product-card-price {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {

  /* Maintain 2 columns even on small screens */
  .products-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .product-card {
    height: auto;
  }
}

/* ============================================
   MOBILE: HOMEPAGE PRODUCTS 3-COLUMN
   ============================================ */
@media (max-width: 768px) {

  /* Targeted specifically for Main Content Grids on Homepage */
  .section .grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 0 4px;
  }

  /* Super Compact Card for 3-Col Layout */
  .section .grid-4 .product-card {
    height: auto !important;
    min-height: 180px;
  }

  .section .grid-4 .product-card-image {
    height: auto !important;
    aspect-ratio: unset !important;
  }

  .section .grid-4 .product-card-info {
    padding: 8px !important;
  }

  .section .grid-4 .product-card-name {
    font-size: 0.7rem !important;
    line-height: 1.2;
    margin-bottom: 4px;
    height: 28px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .section .grid-4 .product-card-price {
    font-size: 0.75rem !important;
  }
}

/* ============================================
   MOBILE: WHY CHOOSE IMAGE FIX
   ============================================ */
@media (max-width: 768px) {
  .why-choose-row {
    display: flex !important;
    flex-direction: column !important;
  }

  .why-choose-media {
    display: block !important;
    width: 100% !important;
    height: 240px !important;
    order: -1;
    margin-bottom: 0;
  }

  .why-choose-media img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    visibility: visible !important;
  }

  .why-choose-content {
    padding: 24px 16px !important;
  }
}

@media (max-width: 480px) {
  .product-card-info {
    padding: 10px;
  }

  .product-card-name {
    font-size: 0.8rem;
  }
}

/* ============================================
   TESTIMONIALS SECTION (Carousel 3 Cards)
   ============================================ */
.ep-testimonials {
  padding-bottom: 40px;
}

.ep-testimonials-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.ep-testimonials-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px;
  margin: -4px;
  width: 100%;
}

.ep-testimonials-track::-webkit-scrollbar {
  display: none;
}

.ep-testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  min-height: 240px;
}

.ep-testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--cyan-100);
}

/* Nav Buttons */
.ep-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--primary-cyan);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  z-index: 2;
  position: absolute;
}

.ep-nav-btn:hover {
  background: var(--primary-cyan);
  color: var(--white);
  border-color: var(--primary-cyan);
}

.ep-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.ep-nav-btn.prev {
  left: -22px;
}

.ep-nav-btn.next {
  right: -22px;
}

.ep-stars {
  color: var(--yellow);
  margin-bottom: 12px;
  font-size: 1rem;
  letter-spacing: 2px;
}

.ep-message {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-700);
  margin-bottom: 16px;
  flex-grow: 1;
}

.ep-author {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  flex-direction: column;
}

.ep-role {
  font-size: 0.75rem;
  color: var(--gray-600);
  font-weight: 400;
  margin-top: 2px;
}

/* Skeleton Loading - DISABLED for performance */
.ep-skeleton {
  background: #f0f0f0;
  border-radius: 4px;
  /* Animation disabled - causes scroll lag */
  /* animation: shimmer 1.5s infinite; */
  display: none;
}

.ep-testimonial-card.skeleton .ep-stars {
  height: 20px;
  width: 100px;
  background: #eee;
  display: none;
}

.ep-testimonial-card.skeleton .ep-message {
  height: 80px;
  width: 100%;
  background: #eee;
  display: none;
}

.ep-testimonial-card.skeleton .ep-author {
  height: 20px;
  width: 140px;
  background: #eee;
  display: none;
}

/* Shimmer animation disabled - causes scroll lag
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
*/

/* Mobile Responsive (Horizontal Swipe) */
@media (max-width: 992px) {
  .ep-testimonials-track {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ep-testimonials {
    overflow: hidden;
  }

  .ep-testimonials-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 24px;
    margin-right: -24px;
    padding-right: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .ep-testimonials-track::-webkit-scrollbar {
    display: none;
  }

  .ep-testimonial-card {
    min-width: 280px;
    max-width: 280px;
    scroll-snap-align: start;
    min-height: 200px;
    flex: 0 0 auto;
  }

  /* Hide nav buttons on mobile */
  .ep-nav-btn {
    display: none;
  }
}

/* =========================================
   NEW HEADER & HERO GRID STYLES (MATCH SPEC)
   ========================================= */

/* --- 1. Topbar --- */
.topbar--fullbleed {
  background-color: #00aeef !important;
  /* Cyan */
  color: #fff !important;
  padding: 10px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0;
}

.topbar__inner {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.topbar-cta {
  color: #fff !important;
  font-weight: 700;
  display: flex !important;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.topbar-cta:hover {
  opacity: 0.9;
}

/* --- 2. Header Main --- */
/* --- 2. Header Main --- */
.header-main {
  background: #fff !important;
  padding: 12px 0 2px 0 !important;
  position: relative;
  z-index: 100;
  display: block !important;
}

.header-main * {
  box-sizing: border-box;
}

/* Safety Reset */

.header-main .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 4px !important;
  width: 100% !important;
  max-width: 1320px !important;
}

/* Logo */
.header-brand {
  flex-shrink: 0;
  text-decoration: none;
  color: #000;
  display: flex !important;
  align-items: center;
}

.header-brand img {
  height: 48px !important;
  width: auto !important;
  object-fit: contain;
}

.header-brand span {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* Search Bar */
.header-search {
  flex-grow: 1 !important;
  max-width: 700px !important;
  position: relative;
  display: block !important;
}

.header-search form {
  display: flex !important;
  width: 100% !important;
  position: relative;
}

.header-search div {
  width: 100% !important;
  position: relative !important;
}

.header-search input {
  width: 100% !important;
  height: 46px !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 50px !important;
  padding: 0 50px 0 20px !important;
  background: #fff !important;
  font-size: 15px !important;
  color: #333 !important;
  outline: none;
  transition: all 0.2s;
  box-shadow: none;
}

.header-search input::placeholder {
  color: #aaa;
}

.header-search input:focus {
  border-color: #00aeef !important;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1) !important;
}

.header-search-icon {
  position: absolute !important;
  right: 20px !important;
  left: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #bbb !important;
  pointer-events: auto;
  display: flex !important;
  /* Fix alignment */
  align-items: center;
  justify-content: center;
  z-index: 5 !important;
}

/* Actions */
.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  flex-shrink: 0;
}

.social-icons {
  display: flex !important;
  gap: 8px !important;
}

.social-icons a {
  width: 38px !important;
  height: 38px !important;
  background: #00aeef !important;
  color: #fff !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px !important;
  transition: all 0.2s;
}

.social-icons a:hover {
  transform: translateY(-2px);
  background: #0095cc !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* CTA Booking */
.cta-booking {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none;
  margin-left: 10px !important;
}

.cta-booking-icon {
  width: 42px !important;
  height: 42px !important;
  background: #00aeef !important;
  border-radius: 8px !important;
  color: #fff !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 20px !important;
}

.cta-booking-text {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.25 !important;
}

.cta-label {
  font-size: 11px;
  color: #777;
  font-weight: 500;
}

.cta-number {
  font-size: 14px;
  color: #333;
  font-weight: 700;
}

/* --- 3. Navbar --- */
.header-navbar {
  padding-top: 30px !important;
  padding-bottom: 25px !important;
  background: #fff !important;
  display: block !important;
}

.header-navbar .navbar-nav {
  display: flex !important;
  justify-content: center !important;
  gap: 50px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.header-navbar .nav-link {
  font-weight: 600;
  font-size: 16px;
  color: #222;
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.header-navbar .nav-link:hover,
.header-navbar .nav-link.active {
  color: #00aeef !important;
  border-bottom-color: #00aeef !important;
}

/* --- 4. Hero Grid --- */
.hero-grid-container {
  display: grid !important;
  grid-template-columns: 66% 1fr !important;
  gap: 20px !important;
  height: 520px !important;
  width: 100% !important;
  max-width: 1320px !important;
  margin: 30px auto 50px !important;
  padding: 0 15px !important;
  box-sizing: border-box !important;
}

.hero-banner-item {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 16px !important;
  overflow: hidden;
  position: relative;
  background: #e0f7fa;
}

.hero-banner-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-banner-item:hover img {
  transform: scale(1.05);
}

/* Main Banner (Left) */
.hero-grid-left {
  height: 100% !important;
}

/* Side Banners (Right) */
.hero-grid-right {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  height: 100% !important;
}

.hero-grid-right>div {
  flex: 1 !important;
  height: calc(50% - 10px) !important;
  overflow: hidden;
  border-radius: 16px !important;
}

/* --- Mobile Responsive --- */
@media (max-width: 991px) {
  .header-main {
    padding: 10px 0 2px 0;
  }

  .header-main .container {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .header-brand {
    justify-content: center !important;
  }

  .header-search {
    max-width: 100% !important;
  }

  .header-actions {
    justify-content: center !important;
    flex-wrap: wrap;
  }

  .header-navbar {
    padding-top: 15px !important;
    padding-bottom: 15px;
    overflow-x: auto;
    display: none !important;
  }

  .header-navbar .navbar-nav {
    justify-content: flex-start;
    padding-left: 20px;
    gap: 30px;
    min-width: max-content;
  }

  .hero-grid-container {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    margin-top: 20px !important;
  }

  .hero-grid-left {
    height: auto !important;
    min-height: unset !important;
    width: 100%;
  }

  .hero-grid-right {
    height: auto !important;
    flex-direction: row !important;
    gap: 15px !important;
  }

  .hero-grid-right>div {
    height: auto !important;
    min-height: unset !important;
  }

  /* Banner items - show full image */
  .hero-banner-item,
  .hero-grid-left .hero-banner-item,
  .hero-grid-right .hero-banner-item {
    height: auto !important;
    min-height: unset !important;
    aspect-ratio: unset !important;
  }

  .hero-banner-item img,
  .hero-grid-left .hero-banner-item img,
  .hero-grid-right .hero-banner-item img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  /* If screen very small, stack all */
  @media (max-width: 576px) {
    .hero-grid-left {
      height: auto !important;
    }

    .hero-grid-right {
      flex-direction: column !important;
    }

    .hero-grid-right>div {
      height: auto !important;
    }
  }
}

/* ============================================
   TESTIMONIALS (Blob Design) - New
   ============================================ */
.ep-testimonials {
  padding: 80px 0;
  overflow: visible;
}

.ep-testimonials .section-title {
  text-align: center;
  color: #0891b2;
  font-size: 2.5rem;
  margin-bottom: 50px;
}

.ep-testimonials .section-subtitle {
  text-align: center;
  margin-bottom: 30px;
  display: block;
}

/* Flex Container */
/* Flex Container for Track */
.ep-testimonials-track {
  display: flex !important;
  justify-content: flex-start;
  gap: 30px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 40px 20px;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
  width: auto;
}

.ep-testimonials-track::-webkit-scrollbar {
  display: none;
}

.testi-slider-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.testi-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 174, 239, 0.5);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 50;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 174, 239, 0.3);
}

.testi-nav-btn svg {
  pointer-events: none;
}

.testi-nav-btn:hover {
  background: var(--cyan-600);
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 174, 239, 0.4);
}

/* Card Wrapper (Blob + Card) */
.review-card-wrapper {
  position: relative;
  flex: 0 0 320px;
  width: 320px;
  margin-top: 30px;
}

/* The Blob (Rotated Background) */
.review-blob {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 30px 40px 30px 40px;
  transform: rotate(-6deg) scale(1.02);
  z-index: 0;
  transition: transform 0.3s ease;
}

/* Alternate Rotations/Positions */
.review-card-wrapper:nth-child(odd) .review-blob {
  transform: rotate(-6deg) scale(1.02);
}

.review-card-wrapper:nth-child(even) .review-blob {
  transform: rotate(4deg) scale(1.02);
}

/* Blob Colors */
.blob-purple {
  background: #6d28d9;
}

/* Deep Purple */
.blob-cyan {
  background: #0ea5e9;
}

/* Sky Blue */
.blob-sky {
  background: #67e8f9;
}

/* The Card Itself */
.review-card {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 50px 30px 40px;
  text-align: center;
  z-index: 10;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

/* Avatar (Floating Top) */
.review-avatar {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 20;
  background: #f3f4f6;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content */
.review-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
  margin-top: 15px;
}

.review-role {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gray-600);
  margin-bottom: 24px;
}

.review-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.7;
  flex-grow: 1;
}

/* Star Badge (Floating Bottom) */
.review-star-badge {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  width: 73px;
  height: 73px;
  background: #ffffff;
  color: #ffd700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  isolation: isolate;
  padding: 2px;
}

/* =========================================
   MOBILE RESPONSIVE FIXES (Max 768px)
   ========================================= */
@media (max-width: 768px) {

  /* Smaller Testimonial Cards on Mobile */
  .review-card-wrapper {
    flex: 0 0 260px !important;
    width: 260px !important;
    margin-top: 20px !important;
  }

  .review-card {
    padding: 20px 15px 20px !important;
    min-height: 300px !important;
  }

  .review-avatar {
    width: 40px !important;
    height: 40px !important;
    top: -20px !important;
    border-width: 3px !important;
  }

  .review-title {
    font-size: 1rem !important;
    margin-top: 5px !important;
  }

  .review-role {
    font-size: 0.8rem !important;
    margin-bottom: 12px !important;
  }

  .review-text {
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
  }

  .review-star-badge {
    width: 30px !important;
    height: 30px !important;
    bottom: -15px !important;
  }

  .review-star-badge svg {
    width: 14px;
    height: 14px;
  }

  /* Header Container - Allow Overflow */
  .header-main,
  .header-main .container {
    overflow: visible !important;
  }

  /* 1. Header Grid Layout (Stacking) */
  .header-row-top {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    padding: 12px 15px 15px 15px !important;
    position: relative !important;
    overflow: visible !important;
  }

  /* Logo - Far Left Corner */
  .header-brand {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    order: 1 !important;
  }

  /* Mega dropdown trigger - hidden on mobile */
  .mega-dropdown-wrapper {
    display: none !important;
  }

  .header-brand img {
    height: 36px !important;
    width: auto !important;
  }

  /* Social Icons - Absolute Position Top Right */
  .header-social-icons {
    position: absolute !important;
    top: 12px !important;
    right: 15px !important;
    display: flex !important;
    gap: 8px !important;
    z-index: 10 !important;
  }

  .header-social-icons .social-icon {
    width: 32px !important;
    height: 32px !important;
  }

  /* Tagline - Desktop version hidden on mobile */
  .header-tagline-desktop {
    display: none !important;
  }

  /* Tagline - Mobile version: below logo, above search */
  .header-tagline-mobile {
    display: block !important;
    position: static !important;
    height: auto !important;
    width: 100% !important;
    min-width: unset !important;
    max-width: unset !important;
    text-align: left !important;
    margin: 4px 0 2px 0 !important;
    padding: 0 !important;
    white-space: normal !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: normal !important;
    color: #1f2937 !important;
    overflow: visible !important;
    order: 2 !important;
    flex-shrink: 0 !important;
  }

  /* Search Bar - Full Width below Tagline with spacing */
  .header-search-stretch,
  #navSearchContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    margin-top: 12px !important;
    display: flex !important;
    order: 3 !important;
    position: relative !important;
    z-index: 9999 !important;
  }

  /* Navbar Links - Hidden on Mobile (Moved to FAB) */
  .header-navbar,
  .header-navbar-inner {
    display: none !important;
  }

  .navbar-nav-main {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 10px;
    padding: 0 5px;
  }

  .nav-link-main {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Hide CTA Phone on Mobile to save space */
  .cta-phone {
    display: none !important;
  }

  .cta-booking {
    display: none !important;
  }

  .hero-section-3banner {
    padding-top: 15px;
  }

  /* Hero Banner Images - Mobile: Show full image without cropping */
  .hero-grid-container {
    height: auto !important;
  }

  .hero-banner-item,
  .hero-grid-left .hero-banner-item,
  .hero-grid-right .hero-banner-item,
  .hero-grid-right>div .hero-banner-item {
    height: auto !important;
    min-height: unset !important;
    max-height: none !important;
    aspect-ratio: unset !important;
    overflow: visible !important;
  }

  .hero-banner-item img,
  .hero-grid-left .hero-banner-item img,
  .hero-grid-right .hero-banner-item img,
  .hero-grid-right>div .hero-banner-item img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  .hero-grid-left,
  .hero-grid-right>div {
    height: auto !important;
    min-height: unset !important;
    max-height: none !important;
  }

  /* --- Mobile Search Bar Rotating Glow Animation --- */
  .search-input-wrapper {
    position: relative;
    overflow: visible !important;
    border-radius: 999px;
    padding: 3px;
    background: #fff;
    isolation: isolate;
  }

  /* Search Dropdown - Mobile Specific */
  .search-dropdown {
    position: absolute !important;
    top: 48px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
    background: var(--white) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid var(--gray-200) !important;
    z-index: 999999 !important;
  }

  .search-dropdown:not(.hidden) {
    display: block !important;
  }

  /* Simple gradient border instead of rotating */
  .search-input-wrapper::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #00aeef, #cffafe, #00aeef);
    border-radius: 999px;
    z-index: -2;
  }

  /* Inner Background (Mask) */
  .search-input-wrapper::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: #fff;
    border-radius: 999px;
    z-index: -1;
  }

  /* Transparent Input */
  #globalSearchInput.search-input {
    border: none !important;
    background: transparent !important;
    height: 100% !important;
    box-shadow: none !important;
    position: relative;
    z-index: 10;
  }
}

/* End of Mobile Styles */
/* ============================================
   SPLIT LAYOUT (Banner Left - Product Grid Right)
   ============================================ */
.section-split-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 20px;
  align-items: stretch;
  /* PERF: GPU acceleration for smooth scroll */
  transform: translateZ(0);
  contain: layout style;
}

/* Banner Card (Left Side) */
.section-banner-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 340px;
  color: var(--white);
  /* PERF: Lighter shadow */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  /* PERF: GPU acceleration */
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: auto;
  /* PERF: Contain rendering */
  contain: layout style;
}

/* Themes */
.section-banner-card.theme-red {
  background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
}

.section-banner-card.theme-blue {
  background: linear-gradient(135deg, #4481eb 0%, #04befe 100%);
}

.section-banner-card.theme-custom {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.section-banner-card.theme-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.section-banner-card.theme-orange {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.section-banner-card.theme-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.section-banner-card.theme-pink {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.section-banner-card.theme-teal {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.section-banner-card.theme-yellow {
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
  color: var(--gray-900);
}

.section-banner-card.theme-yellow h3,
.section-banner-card.theme-yellow .banner-link {
  color: var(--gray-900);
}

.section-banner-card.theme-gray {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.section-banner-card.theme-black {
  background: linear-gradient(135deg, #374151 0%, #111827 100%);
}

/* Banner Content */
.section-banner-card h3 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--white);
  z-index: 2;
  position: relative;
}

.section-banner-card .banner-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  z-index: 2;
  position: relative;
  /* PERF: Remove transition - not needed */
}

.section-banner-card .banner-link:hover {
  color: var(--white);
}

/* PERF: Decorative Curve removed - causes scroll jank */
/* Original was: ::after with border-radius:50% and 200% width */
.section-banner-card::after {
  display: none;
}

/* Product Grid (Right Side) */
.section-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
  .section-split-layout {
    grid-template-columns: 200px 1fr;
    gap: 20px;
  }

  .section-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-split-layout {
    grid-template-columns: 1fr;
  }

  .section-banner-card {
    min-height: 200px;
    padding: 30px;
    margin-bottom: 20px;
  }

  .section-banner-card h3 {
    font-size: 1.6rem;
  }

  .section-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .section-product-grid {
    grid-template-columns: 1fr;
  }
}

/* Split Layout Reverse (Grid Left, Banner Right) */
.section-split-layout.reverse {
  grid-template-columns: 1fr 270px;
}

.section-split-layout.reverse .section-banner-card {
  order: 2;
}

.section-split-layout.reverse .section-product-grid {
  order: 1;
}

@media (max-width: 1024px) {
  .section-split-layout.reverse {
    grid-template-columns: 1fr 200px;
  }
}

@media (max-width: 768px) {
  .section-split-layout.reverse {
    grid-template-columns: 1fr;
  }

  .section-split-layout.reverse .section-banner-card {
    order: -1;
    /* Keep banner on top for mobile */
  }
}

/* Featured Product Card (Replaces Banner in Split Layout) */
.section-featured-product {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 100%;
  min-height: 340px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-decoration: none;
  border: 1px solid var(--gray-200);
}

.section-featured-product:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-cyan);
}

.featured-product-image {
  flex: 1;
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.section-featured-product:hover .featured-product-image img {
  transform: scale(1.05);
}

.featured-product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #ffc107;
  color: var(--gray-900);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.featured-product-content {
  padding: 24px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
  position: relative;
}

.featured-product-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0;
  line-height: 1.3;
}

.featured-product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-cyan);
}

.featured-product-btn {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-900);
  color: var(--white);
  padding: 12px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: background 0.2s;
}

.section-featured-product:hover .featured-product-btn {
  background: var(--primary-cyan);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .section-featured-product {
    min-height: 350px;
  }
}

/* FIX: Ensure Featured Product follows reverse ordering */
.section-split-layout.reverse .section-featured-product {
  order: 2;
}

/* ============================================
   DYNAMIC SECTION THEMES (Admin Config)
   ============================================ */
.section-highlight.theme-red {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.section-highlight.theme-blue {
  background: linear-gradient(135deg, #00aeef 0%, #0ea5e9 100%) !important;
}

.section-highlight.theme-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.section-highlight.theme-orange {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.section-highlight.theme-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
}

.section-highlight.theme-pink {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%) !important;
}

.section-highlight.theme-teal {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%) !important;
}

.section-highlight.theme-yellow {
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%) !important;
  color: var(--gray-900);
}

.section-highlight.theme-yellow .section-title,
.section-highlight.theme-yellow .section-subtitle {
  color: var(--gray-900) !important;
}

.section-highlight.theme-gray {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
}

.section-highlight.theme-black {
  background: linear-gradient(135deg, #374151 0%, #111827 100%) !important;
}

/* ============================================
   MOBILE UI PARITY UPDATES
   ============================================ */

/* Wishlist Button on Product Card */
.product-card-image {
  position: relative;
  /* Ensure absolute positioning works */
}

.btn-wishlist {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.btn-wishlist:hover {
  background: white;
  color: #ef4444;
  /* Heart Red */
  transform: scale(1.1);
}

/* Force 2-Column Grid on Mobile (< 480px) */
@media (max-width: 480px) {
  .section-product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* Adjust card padding for smaller 2-col */
  .product-card-info {
    padding: 10px !important;
  }

  .product-card-name {
    font-size: 0.85rem !important;
    margin-bottom: 4px;
  }

  .product-card-price {
    font-size: 0.9rem !important;
  }
}

/* Mobile: Product images show natural ratio (no crop/zoom/distortion) */
@media (max-width: 768px) {
  .product-card-image {
    aspect-ratio: unset !important;
    min-height: unset !important;
    height: auto !important;
  }

  .product-card-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
}

/* ============================================
   MOBILE BANNER: Modern Card with <img>
   ============================================ */

/* Mobile banner hidden on desktop */
.section-banner-mobile {
  display: none;
}

/* Compact Banner on Mobile */
@media (max-width: 768px) {

  /* Hide desktop banner, show mobile banner */
  .section-banner-card.desktop-banner {
    display: none !important;
  }

  .section-banner-mobile {
    display: block;
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    text-decoration: none;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .section-banner-mobile img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-card);
  }

  .section-banner-mobile .mobile-banner-gradient {
    width: 100%;
    min-height: 160px;
    border-radius: var(--radius-card);
  }

  /* Overlay with gradient + text */
  .section-banner-mobile .mobile-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 16px 20px;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.2) 60%,
        transparent 100%);
    border-radius: 0 0 var(--radius-card) var(--radius-card);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
  }

  .section-banner-mobile .mobile-banner-overlay h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }

  .section-banner-mobile .mobile-banner-cta {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 20px;
    flex-shrink: 0;
  }
}

/* ============================================
   REFERENCE LAYOUT UPDATES (Bigger Banner)
   ============================================ */

@media (min-width: 1200px) {
  .section-split-layout {
    grid-template-columns: 340px 1fr !important;
    /* Reduced by 80px */
    gap: 40px !important;
  }

  /* Adjust Banner Typography for larger size */
  .section-banner-card {
    padding: 48px !important;
  }

  .section-banner-card h3 {
    font-size: 2.25rem !important;
    margin-bottom: 24px !important;
  }

  /* Ensure Grid handles the space */
  .section-product-grid {
    gap: 24px !important;
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* FINAL TWEAK: Maximize Banner Size */
@media (min-width: 1400px) {
  .section-split-layout {
    grid-template-columns: 400px 1fr !important;
    /* Reduced by 80px */
  }

  .section-banner-card {
    padding: 56px !important;
  }

  .section-banner-card h3 {
    font-size: 2.5rem !important;
  }
}

/* FIX: Match Reverse Layout (Banner Right) dimensions with Standard Layout */
@media (min-width: 1200px) {
  .section-split-layout.reverse {
    grid-template-columns: 1fr 340px !important;
  }
}

@media (min-width: 1400px) {
  .section-split-layout.reverse {
    grid-template-columns: 1fr 400px !important;
  }
}

/* ============================================
   BLOG SYSTEM STYLES (Professional)
   ============================================ */

.blog-header-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4rem 0;
  margin-bottom: 3rem;
}

.blog-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Card Styling */
.blog-card {
  background: #fff;
  border: 1px solid #eef0f2;
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.blog-card-img-wrapper {
  position: relative;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio */
  overflow: hidden;
  background-color: #f1f1f1;
}

.blog-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img {
  transform: scale(1.05);
}

.blog-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #111;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: #212529;
}

.blog-card-title a {
  text-decoration: none;
  color: inherit;
  background-image: linear-gradient(to right, #00aeef, #00aeef);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.3s;
}

.blog-card:hover .blog-card-title a {
  background-size: 100% 2px;
}

.blog-card-excerpt {
  font-size: 0.95rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f8f9fa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* Post Types */
@media (min-width: 992px) {
  .blog-card.type-large {
    grid-column: span 2;
    flex-direction: row;
  }

  .blog-card.type-large .blog-card-img-wrapper {
    width: 50%;
    padding-top: 0;
    min-height: 100%;
    position: relative;
  }

  .blog-card.type-large .blog-card-body {
    width: 50%;
    padding: 2.5rem;
    justify-content: center;
  }

  .blog-card.type-large .blog-card-title {
    font-size: 1.75rem;
  }

  .blog-card.type-large .blog-card-excerpt {
    -webkit-line-clamp: 4;
  }
}

/* Sidebar */
.blog-sidebar-section {
  position: sticky;
  top: 2rem;
}

.blog-sidebar-card {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.blog-sidebar-header {
  padding: 1.25rem;
  background: #fff;
  border-bottom: 1px solid #f1f1f1;
  font-weight: 700;
}

.blog-filter-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  color: #495057;
  text-decoration: none;
  transition: all 0.2s;
}

.blog-filter-link:hover,
.blog-filter-link.active {
  background-color: #f8f9fa;
  color: #00aeef;
  padding-left: 1.5rem;
}

.blog-tag-cloud {
  padding: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-tag {
  padding: 0.4rem 0.8rem;
  background: #f8f9fa;
  border-radius: 4px;
  color: #6c757d;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}

.blog-tag:hover,
.blog-tag.active {
  background: #00aeef;
  color: #fff;
}

/* Pagination */
.blog-pagination .page-link {
  border: none;
  color: #495057;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 0.25rem;
}

.blog-pagination .page-item.active .page-link {
  background-color: #00aeef;
  color: #fff;
}

/* ============================================
   Basic Carousel Styles (Legacy / Homepage)
   ============================================ */
.blog-carousel-card {
  min-width: 280px;
  height: 160px;
  border-radius: var(--radius-medium);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
  transition: transform 0.3s ease;
}

.blog-carousel-card:hover {
  transform: translateY(-4px);
}

.blog-carousel-card.blue-1 {
  background: #0284c7;
}

.blog-carousel-card.blue-2 {
  background: #0891b2;
}

.blog-carousel-card.blue-3 {
  background: #0ea5e9;
}

.blog-carousel-card.blue-4 {
  background: #06b6d4;
}

.blog-carousel-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.blog-carousel-excerpt {
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0.95;
}

/* ============================================
   BLOG DETAIL PAGES
   ============================================ */
.blog-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray-700);
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.blog-content p {
  margin-bottom: 1.5rem;
}

.blog-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--gray-800);
}

.blog-blocks figure {
  margin: 2.5rem 0;
}

.blog-blocks .blockquote {
  border-left: 4px solid var(--primary-cyan);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--gray-700);
  background: transparent !important;
  border-top: none;
  border-right: none;
  border-bottom: none;
}

#reading-progress {
  background: var(--primary-cyan) !important;
}

/* Detail Sidebar */
.list-group-item-action:hover {
  background-color: var(--gray-50);
}

.list-group-item-action:hover h6 {
  color: var(--primary-cyan);
}

/* Responsive Typography for Detail */
@media (max-width: 768px) {
  .blog-text {
    font-size: 1rem;
  }

  h1.display-5 {
    font-size: 2rem;
  }
}