/* Sticky Header Styles */
.sticky-header {
   position: sticky;
   top: 0;
   background-color: #fff;
   z-index: 1000;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
   padding: 10px 0;
}

.sticky-header .logo {
   text-align: center;
}

.sticky-header .logo img {
   width: 55px;
}

.banner {
   background-image: url('../images/products/p-1.jpg');
   background-size: cover;
   background-position: center;
   height: 400px;
   color: white;
   display: flex;
   justify-content: center;
   align-items: center;
   text-align: center;
}

.banner h1 {
      min-width: 0;
      width: 100%;
      max-width: 100%;
.section {
   padding: 60px 0;
   position: relative;
}

.section.bg-green {
   margin-bottom: 70px; /* Account for fixed bottom navbar */
}

.section .container {
   position: relative;
      font-size: 18px;
}

/* Ensure content doesn't get hidden behind fixed navbar */
      font-size: 13px;
   margin-bottom: 70px;
}

@media (max-width: 767px) {
   body {
      margin-bottom: 80px;
   }
   
   .section.bg-green {
      margin-bottom: 80px;
   }
}

.carousel-item img {
   height: 250px;
   object-fit: cover;
}

/* Custom styles for Owl Carousel */
.owl-carousel .item {
   display: flex;
   justify-content: center;
   align-items: center;
   padding: 10px;
}

.owl-carousel img {
   border-radius: 10px;
}

.bg-brown {
   background-color: #cf823c;
}

.bg-green {
   background: linear-gradient(135deg, #58b15f 0%, #4a9b51 100%);
   position: relative;
   overflow: hidden;
   padding-top: 20px;
}

.bg-green::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="30" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="90" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
   opacity: 0.1;
      font-size: 15px;
}

.bg-green > * {
      font-size: 12px;
   z-index: 2;
}

/* Smooth scrolling for anchor links */
html {
   scroll-behavior: smooth;
}

/* Improved link transitions */
a {
   transition: all 0.3s ease;
}

/* Enhanced shadow effects */
.navbar-bawah {
   background-color: rgba(0, 0, 0, 0.8) !important;
   position: fixed;
   width: 100%;
   height: 60px;
   z-index: 1000;
   bottom: 0;
   left: 0;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 0 15px;
   box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
   backdrop-filter: blur(10px);
   -webkit-backdrop-filter: blur(10px);
}

.navbar-bawah .container {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 100%;
}

.navbar-bawah .col-md-12 {
   display: flex;
   align-items: center;
   justify-content: center;
}


/* Margin untuk tombol WhatsApp di navbar bawah agar proporsional */
.navbar-bawah .wa {
   margin-top: 10px;
   margin-bottom: 10px;
}



/* Margin bottom untuk tombol WhatsApp di section agar proporsional */
.wa {
   background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 12px 20px;
   color: #fff !important;
   border-radius: 25px;
   font-weight: 700;
   text-decoration: none;
   box-shadow: 0 4px 15px rgba(255, 152, 0, 0.18);
   transition: all 0.3s cubic-bezier(.4,2,.3,1);
   border: none;
   outline: none;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   font-size: 14px;
   min-width: 280px;
   line-height: 1.2;
   gap: 8px;
   margin-bottom: 18px;
}

.wa:hover {
   background: linear-gradient(135deg, #ff5722 0%, #ff9800 100%);
   color: #fff !important;
   transform: translateY(-2px) scale(1.04);
   box-shadow: 0 6px 20px rgba(255, 152, 0, 0.28);
   text-decoration: none;
}

.wa:active {
   transform: translateY(0) scale(0.98);
   box-shadow: 0 2px 10px rgba(255, 152, 0, 0.18);
}

.wa i {
   font-size: 20px;
   animation: pulse 2s ease-in-out infinite;
   display: inline-flex;
   align-items: center;
   vertical-align: middle;
}

@keyframes pulse {
   0% {
      transform: scale(1);
   }
   50% {
      transform: scale(1.1);
   }
   100% {
      transform: scale(1);
   }
}

.wa span {
   font-size: 14px;
   font-weight: 600;
   display: inline-flex;
   align-items: center;
   vertical-align: middle;
   line-height: 1.2;
}


.button {
   background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
   border: none;
   color: #fff !important;
   padding: 15px 30px;
   text-align: center;
   text-decoration: none;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   font-size: 18px;
   font-weight: 700;
   cursor: pointer;
   border-radius: 50px;
   box-shadow: 0 8px 25px rgba(255, 152, 0, 0.18);
   transition: all 0.3s cubic-bezier(.4,2,.3,1);
   text-transform: uppercase;
   letter-spacing: 0.5px;
   min-width: 250px;
   margin-bottom: 18px;
}

.button:hover {
   background: linear-gradient(135deg, #ff5722 0%, #ff9800 100%);
   color: #fff !important;
   transform: translateY(-3px) scale(1.04);
   box-shadow: 0 12px 35px rgba(255, 152, 0, 0.28);
   text-decoration: none;
}

.button:active {
   transform: translateY(-1px) scale(0.98);
   box-shadow: 0 5px 15px rgba(255, 152, 0, 0.18);
}

.button i {
   margin-right: 10px;
   font-size: 20px;
   animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
   0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
   }
   40% {
      transform: translateY(-5px);
   }
   60% {
      transform: translateY(-3px);
   }
}

.whatsapp-box {
   position: fixed;
   bottom: 80px;
   right: 20px;
   z-index: 99999;
   background: #fff;
   width: 360px;
   max-width: calc(100vw - 40px);
   border-radius: 15px;
   overflow: hidden;
   box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
   transform: translateY(100%);
   opacity: 0;
   visibility: hidden;
   transition: .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
   border: 1px solid rgba(0, 0, 0, 0.1);
}

.whatsapp-box.active {
   transform: translateY(0);
   visibility: visible;
   opacity: 1;
}

.whatsapp-box .heading {
   background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
   padding: 25px;
   color: #fff;
   text-align: center;
   position: relative;
}

.whatsapp-box .heading .name {
   font-size: 16px;
   font-weight: 600;
   margin-top: 10px;
}

.whatsapp-box .heading .avatar {
   width: 70px;
   height: 70px;
   background: #fff;
   border-radius: 50%;
   overflow: hidden;
   margin: 0 auto 10px;
   border: 3px solid rgba(255, 255, 255, 0.3);
}

.whatsapp-box .chatbox {
   padding: 20px;
   background: #f8f9fa;
   max-height: 300px;
   overflow-y: auto;
}

.whatsapp-box .welcome-text {
   background: #E4FDC7;
   font-size: 14px;
   position: relative;
   padding: 15px;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
   border-radius: 8px;
   font-family: "Maven Pro", sans-serif;
   margin-left: 0;
   margin-bottom: 15px;
   line-height: 1.4;
   transform: translateY(30px);
   opacity: 0;
   visibility: hidden;
   transition: .3s ease;
   transition-delay: .6s;
}

.whatsapp-box .welcome-text:last-child {
   margin-bottom: 0;
}

.whatsapp-box .whatsapp-form {
   display: flex;
   align-items: center;
   padding: 15px;
   background: #fff;
   border-top: 1px solid #eee;
}

.whatsapp-box .whatsapp-form .form-control {
   flex: 1;
   border: 1px solid #ddd;
   border-radius: 25px;
   padding: 12px 15px;
   font-size: 14px;
   outline: none;
   margin-right: 10px;
}

.whatsapp-box .whatsapp-form .form-control:focus {
   border-color: #25D366;
   box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.1);
}

.whatsapp-box .whatsapp-form .btn-send {
   background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
   border: none;
   border-radius: 50%;
   width: 40px;
   height: 40px;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   transition: all 0.3s ease;
}

.whatsapp-box .whatsapp-form .btn-send:hover {
   transform: scale(1.1);
   box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-box .whatsapp-form .btn-send svg {
   width: 18px;
   height: 18px;
   fill: white;
}

@media (max-width: 767px) {
   .navbar-bawah .wa {
      margin-top: 8px;
      margin-bottom: 8px;
   }
   .welcome-tip {
      display: none;
   }

   .btn-whatsapp {
      width: auto;
      left: 0;
      right: 0;
      border-radius: 0;
   }

   .whatsapp-box {
      bottom: 80px;
      right: 10px;
      left: 10px;
      width: auto;
      max-width: 350px;
      z-index: 99999;
      background: #fff;
      border-radius: 15px;
      transition: .4s ease;
   }

   .whatsapp-form {
      position: relative;
      bottom: auto;
      left: auto;
      right: auto;
      box-shadow: none;
      background: #fff;
   }

   .navbar-bawah {
      height: 70px;
      padding: 0 10px;
   }

   .wa {
      min-width: 250px;
      padding: 15px 20px;
      font-size: 13px;
      margin-bottom: 14px;
   }

   .wa i {
      font-size: 16px;
   }

   .wa span {
      font-size: 13px;
   }

   .button {
      min-width: 220px;
      padding: 12px 25px;
      font-size: 16px;
      margin-bottom: 14px;
   }

   .button i {
      font-size: 18px;
   }
}

@media (max-width: 480px) {
   .navbar-bawah {
      height: 65px;
      padding: 0 5px;
   }

   .wa {
      min-width: 200px;
      padding: 12px 15px;
      font-size: 12px;
      margin-bottom: 10px;
   }

   .wa i {
      font-size: 15px;
   }

   .wa span {
      font-size: 12px;
   }

   .button {
      min-width: 180px;
      padding: 10px 20px;
      font-size: 14px;
      margin-bottom: 10px;
   }
}

/* Style untuk Loader */
.loader-container {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: white;
   z-index: 9999;
   display: flex;
   justify-content: center;
   align-items: center;
}

.loader {
   border: 8px solid #f3f3f3;
   /* Light grey background */
   border-top: 8px solid #a52925;
   /* Blue color */
   border-radius: 50%;
   width: 50px;
   height: 50px;
   animation: spin 2s linear infinite;
}

@keyframes spin {
   0% {
      transform: rotate(0deg);
   }

   100% {
      transform: rotate(360deg);
   }
}

/* Additional WhatsApp Chat Styles */
.whatsapp-box.active .welcome-text {
   opacity: 1;
   visibility: visible;
   transform: translateY(0);
}

.whatsapp-box .welcome-text:before {
   content: "";
   position: absolute;
   top: 0;
   left: -8px;
   border: 8px solid transparent;
   border-right: 8px solid #E4FDC7;
   border-top: 8px solid #E4FDC7;
}

.whatsapp-box .welcome-text .notice {
   display: flex;
   align-items: center;
   justify-content: flex-end;
   margin-top: 8px;
}

.whatsapp-box .welcome-text .time {
   font-size: 11px;
   color: #888;
   margin-right: 5px;
}

.whatsapp-box .welcome-text svg {
   width: 12px;
   height: 12px;
   fill: #4fc3f7;
   vertical-align: middle;
}

.whatsapp-box .heading .btn-close {
   background: none;
   border: none;
   outline: none;
   box-shadow: none;
   position: absolute;
   top: 10px;
   left: 10px;
   color: #fff;
   padding: 5px;
   font-size: 18px;
   cursor: pointer;
   border-radius: 50%;
   width: 35px;
   height: 35px;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all 0.3s ease;
}

.whatsapp-box .heading .btn-close:hover {
   background: rgba(255, 255, 255, 0.2);
}

.whatsapp-box .heading .avatar img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

/* Mobile responsive for WhatsApp box */
@media (max-width: 767px) {
   .whatsapp-box {
      bottom: 80px;
      right: 10px;
      left: 10px;
      width: auto;
      max-width: 350px;
      margin: 0 auto;
   }
}

@media (max-width: 480px) {
   .whatsapp-box {
      bottom: 75px;
      right: 8px;
      left: 8px;
      width: auto;
      max-width: 320px;
   }
   
   .whatsapp-box .heading {
      padding: 20px 15px;
   }
   
   .whatsapp-box .heading .name {
      font-size: 14px;
   }
   
   .whatsapp-box .heading .avatar {
      width: 60px;
      height: 60px;
   }
   
   .whatsapp-box .chatbox {
      padding: 15px;
   }
   
   .whatsapp-box .welcome-text {
      font-size: 13px;
      padding: 12px;
   }
   
   .whatsapp-box .whatsapp-form {
      padding: 12px;
   }
   
   .whatsapp-box .whatsapp-form .form-control {
      font-size: 13px;
      padding: 10px 12px;
   }
}

/* Extra small devices (phones, 320px and down) */
@media (max-width: 360px) {
   .whatsapp-box {
      bottom: 75px;
      right: 5px;
      left: 5px;
      width: auto;
      max-width: 280px;
   }
   
   .whatsapp-box .heading {
      padding: 15px 10px;
   }
   
   .whatsapp-box .heading .name {
      font-size: 13px;
   }
   
   .whatsapp-box .heading .avatar {
      width: 50px;
      height: 50px;
   }
   
   .whatsapp-box .chatbox {
      padding: 12px;
   }
   
   .whatsapp-box .welcome-text {
      font-size: 12px;
      padding: 10px;
   }
   
   .whatsapp-box .whatsapp-form {
      padding: 10px;
   }
   
   .whatsapp-box .whatsapp-form .form-control {
      font-size: 12px;
      padding: 8px 10px;
   }
}