/* Focus Frame Custom Styles */

/* ==========================================================================
   Color System & Design Tokens
   ========================================================================== */

:root {
  /* Primary Brand Colors */
  --primary-color: #ef7e1a; /* Main brand orange */
  --primary-light: #f39c12; /* Lighter variant */
  --primary-dark: #d35400; /* Darker variant */
  --primary-rgb: 239, 126, 26; /* RGB values for rgba() */
  --primary-contrast: #ffffff; /* Text color on primary background */
  --primary-contrast-alt: #2c3e50; /* Alternative contrast color */

  --secondary-color: #ef7e1a; /* Currently same as primary */

  /* Semantic Colors */
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;

  /* Base Colors */
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --text-color: #2c3e50;

  /* Design Tokens */
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #ef7e1a; /* Slightly brighter for dark mode */
    --text-color: #ecf0f1;
    --dark-color: #ecf0f1;
    --light-color: #2c3e50;
  }
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
  max-width: 100vw;
  padding-top: 60px; /* Compensate for fixed topbar + navbar */
  width: 100%;
}

/* Image Loading Optimization Styles */
img {
  max-width: 100%;
  height: auto;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Lazy loading states */
img.lazy {
  opacity: 0;
  filter: blur(5px);
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

img.loaded {
  opacity: 1;
  filter: blur(0);
}

img.error {
  opacity: 0.7;
  filter: grayscale(100%);
}

/* Loading shimmer animation */
@keyframes loading-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Image placeholder styles */
.image-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

/* Progressive image enhancement */
.progressive-image {
  position: relative;
  overflow: hidden;
}

.progressive-image img {
  transition: opacity 0.3s ease;
}

.progressive-image .placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

/* Responsive images */
@media (max-width: 768px) {
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* WebP support detection */
.webp img[data-webp] {
  content: attr(data-webp);
}

.no-webp img[data-fallback] {
  content: attr(data-fallback);
}

/* Fix for mobile viewport height issues */
.full-height {
  height: 100vh; /* Fallback for browsers that do not support Custom Properties */
  height: calc(var(--vh, 1vh) * 100);
}

.min-full-height {
  min-height: 100vh; /* Fallback for browsers that do not support Custom Properties */
  min-height: calc(var(--vh, 1vh) * 100);
}

/* Responsive Grid System */
.row-cols-1 > * {
  flex: 0 0 100%;
  max-width: 100%;
}

.row-cols-2 > * {
  flex: 0 0 50%;
  max-width: 50%;
}

.row-cols-3 > * {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.row-cols-4 > * {
  flex: 0 0 25%;
  max-width: 25%;
}

/* Responsive Container Padding */
.container,
.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    max-width: 100%;
    padding-right: 10px;
    padding-left: 10px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  /* Center content on mobile */
  main .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Center images and media */
  main .container img,
  main .container video,
  main .container iframe,
  main .container .card,
  main .container .btn,
  main .container form,
  main .container ul,
  main .container ol,
  main .container blockquote {
    list-style-position: inside;
    margin-left: auto;
    margin-right: auto;
  }

  /* Center images and media */
  main .container img,
  main .container video,
  main .container iframe,
  main .container .card,
  main .container .btn,
  main .container form {
    margin-left: auto;
    margin-right: auto;
  }

  /* Ensure text alignment for content */
  main .container p,
  main .container h1,
  main .container h2,
  main .container h3,
  main .container h4,
  main .container h5,
  main .container h6,
  main .container ul,
  main .container ol,
  main .container blockquote {
    text-align: center;
  }

  /* Adjust padding for better mobile experience */
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  /* Adjust margins for mobile */
  .mb-4,
  .mb-5 {
    margin-bottom: 1.5rem !important;
  }

  /* Adjust headings for mobile */
  h1 {
    font-size: 1.75rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  /* Adjust grid columns for mobile */
  .row {
    margin-right: -7.5px;
    margin-left: -7.5px;
    justify-content: center;
    text-align: center;
  }

  .row > [class*="col-"] {
    padding-right: 7.5px;
    padding-left: 7.5px;
  }

  /* Adjust buttons for mobile */
  .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }

  /* Adjust form elements for mobile */
  .form-control {
    font-size: 0.875rem;
    height: calc(1.5em + 0.75rem + 2px);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  form {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .form-group {
    width: 100%;
    text-align: center;
  }

  form .btn {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  /* Adjust card spacing for mobile */
  .card {
    margin-bottom: 1rem;
    text-align: center;
  }

  .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .card-img-top {
    margin-left: auto;
    margin-right: auto;
  }

  /* Adjust spacing between elements */
  .mt-3 {
    margin-top: 0.75rem !important;
  }

  .mb-3 {
    margin-bottom: 0.75rem !important;
  }
}

/* Very Small Devices (small phones, less than 400px) */
@media (max-width: 399.98px) {
  .container {
    padding-right: 8px;
    padding-left: 8px;
  }

  /* Further reduce padding and margins */
  .py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  /* Further adjust headings */
  h1 {
    font-size: 1.5rem !important;
  }

  h2 {
    font-size: 1.25rem !important;
  }

  h3 {
    font-size: 1.125rem !important;
  }

  /* Adjust buttons for very small screens */
  .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
  }

  /* Adjust navbar brand */
  .navbar-brand img {
    max-height: 30px;
  }

  /* Stack buttons in very small screens */
  .d-flex.auth-buttons {
    flex-direction: column;
  }

  .auth-buttons .btn {
    margin-right: 0 !important;
    margin-bottom: 0.5rem;
  }

  /* Adjust search box */
  .search-box {
    max-width: 100%;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }

  .row-cols-sm-1 > * {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .row-cols-sm-2 > * {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .row-cols-sm-3 > * {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  .row-cols-sm-4 > * {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }

  .row-cols-md-1 > * {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .row-cols-md-2 > * {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .row-cols-md-3 > * {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  .row-cols-md-4 > * {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }

  .row-cols-lg-1 > * {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .row-cols-lg-2 > * {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .row-cols-lg-3 > * {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  .row-cols-lg-4 > * {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* XXL Devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Mobile Navigation Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1020;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.show {
  display: block;
  opacity: 1;
}

/* Responsive Navigation Improvements */
@media (max-width: 767px) {
  .navbar-collapse.show + .nav-overlay {
    display: block;
    opacity: 1;
  }

  /* Improve mobile navigation */
  .navbar {
    padding: 0.5rem 0;
  }

  .navbar-brand {
    max-width: 50%;
  }

  .navbar-brand img {
    max-height: 35px;
  }

  .navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    border: none;
    outline: none;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }

  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background-color: white;
    z-index: 1030;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .navbar-nav {
    padding: 0;
    width: 100%;
  }

  .navbar-nav .nav-item {
    width: 100%;
    border-bottom: 1px solid #f1f1f1;
  }

  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }

  .navbar-nav .nav-link {
    padding: 1rem;
    color: #333;
    font-weight: 500;
    text-align: left;
    display: block;
    width: 100%;
  }

  .navbar-nav .nav-link:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
  }

  /* Dropdown Menu Mobile Styles */
  .navbar-nav .dropdown {
    position: relative;
  }

  .navbar-nav .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    margin-top: 0;
    background-color: #f8f9fa;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    transform: none !important;
    display: none;
  }

  .navbar-nav .dropdown-menu.show {
    display: block !important;
  }

  .navbar-nav .dropdown-item {
    padding: 0.75rem 1.5rem;
    color: #666;
    border-bottom: 1px solid #e9ecef;
    background-color: transparent;
    font-size: 0.9rem;
    text-align: left;
  }

  .navbar-nav .dropdown-item:hover,
  .navbar-nav .dropdown-item:focus {
    background-color: var(--primary-color);
    color: white;
  }

  .navbar-nav .dropdown-item:last-child {
    border-bottom: none;
  }

  /* Search Box Mobile */
  .navbar .d-flex {
    flex-direction: column;
    width: 100%;
    padding: 1rem;
    border-top: 1px solid #f1f1f1;
  }

  .search-box {
    width: 100%;
    margin-bottom: 1rem;
    order: 1;
  }

  .search-box input {
    width: 100%;
    padding: 0.75rem;
    font-size: 16px; /* Prevent zoom on iOS */
  }

  /* Auth Buttons Mobile */
  .auth-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    order: 2;
  }

  .auth-buttons .btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
  }

  /* User Dropdown Mobile */
  .navbar .dropdown.user-dropdown {
    order: 2;
    width: 100%;
  }

  .navbar .dropdown.user-dropdown .dropdown-toggle {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
  }

  .navbar .dropdown.user-dropdown .dropdown-menu {
    background-color: white;
    border: 1px solid #dee2e6;
    margin-top: 0;
  }

  .navbar .dropdown.user-dropdown .dropdown-item {
    padding: 0.75rem 1rem;
    color: #333;
  }
}

/* Prevent horizontal scroll */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Utility for preventing scroll when mobile menu is open */
body.overflow-hidden {
  overflow: hidden;
}

/* Responsive Footer */
@media (max-width: 767px) {
  footer {
    text-align: center;
  }

  footer .row > div {
    margin-bottom: 1.5rem;
  }

  footer .social-links {
    justify-content: center;
    display: flex;
    margin-top: 1rem;
  }

  footer .footer-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
  }

  footer .whatsapp-contact {
    max-width: 280px;
    margin: 0 auto;
  }

  footer .text-end {
    text-align: center !important;
  }
}

/* Tablet Navigation Adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
  .navbar-nav .dropdown-menu {
    position: absolute !important;
    top: 100%;
    left: 0;
    right: auto;
    width: auto;
    min-width: 200px;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    margin-top: 0.125rem;
    z-index: 1000;
  }

  .navbar-nav .dropdown-item {
    padding: 0.5rem 1rem;
    color: #212529;
    text-align: left;
    border-bottom: none;
    font-size: 0.875rem;
  }

  .navbar-nav .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
  }
}

/* Tablet Footer Adjustments */
@media (min-width: 768px) and (max-width: 991px) {
  footer .row > div:last-child {
    margin-top: 1.5rem;
  }
}

/* Fix for iOS momentum scrolling */
@supports (-webkit-overflow-scrolling: touch) {
  body.overflow-hidden {
    position: fixed;
    width: 100%;
    height: 100%;
  }
}

/* Responsive Content Sections */
@media (max-width: 767px) {
  /* Main content adjustments */
  main {
    padding-bottom: 2rem;
  }

  /* Card adjustments for mobile */
  .card {
    margin-bottom: 1rem;
  }

  .card-body {
    padding: 1rem;
  }

  /* Product cards for mobile */
  .product-card {
    margin-bottom: 1.5rem;
  }

  .product-card .card-img-top {
    height: auto;
    max-height: 200px;
    object-fit: contain;
  }

  /* Form adjustments */
  .form-group {
    margin-bottom: 1rem;
  }

  /* Button adjustments */
  .btn {
    padding: 0.375rem 0.75rem;
  }

  /* Image responsiveness */
  img,
  video,
  iframe,
  embed,
  object {
    max-width: 100%;
    height: auto;
  }

  /* Responsive media containers */
  .media-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
  }

  .media-container iframe,
  .media-container embed,
  .media-container object,
  .media-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  /* Responsive images with different aspect ratios */
  .img-square {
    aspect-ratio: 1/1;
    object-fit: cover;
  }

  .img-4-3 {
    aspect-ratio: 4/3;
    object-fit: cover;
  }

  .img-16-9 {
    aspect-ratio: 16/9;
    object-fit: cover;
  }

  /* Fallback for browsers that don't support aspect-ratio */
  @supports not (aspect-ratio: 1/1) {
    .img-square,
    .img-4-3,
    .img-16-9 {
      height: 0;
      overflow: hidden;
      position: relative;
    }

    .img-square {
      padding-top: 100%;
    }

    .img-4-3 {
      padding-top: 75%;
    }

    .img-16-9 {
      padding-top: 56.25%;
    }

    .img-square img,
    .img-4-3 img,
    .img-16-9 img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  /* Table responsiveness */
  .table-responsive {
    margin-bottom: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Spacing utilities for mobile */
  .m-sm-0 {
    margin: 0 !important;
  }
  .mt-sm-0 {
    margin-top: 0 !important;
  }
  .mr-sm-0 {
    margin-right: 0 !important;
  }
  .mb-sm-0 {
    margin-bottom: 0 !important;
  }
  .ml-sm-0 {
    margin-left: 0 !important;
  }

  .m-sm-1 {
    margin: 0.25rem !important;
  }
  .mt-sm-1 {
    margin-top: 0.25rem !important;
  }
  .mr-sm-1 {
    margin-right: 0.25rem !important;
  }
  .mb-sm-1 {
    margin-bottom: 0.25rem !important;
  }
  .ml-sm-1 {
    margin-left: 0.25rem !important;
  }

  .m-sm-2 {
    margin: 0.5rem !important;
  }
  .mt-sm-2 {
    margin-top: 0.5rem !important;
  }
  .mr-sm-2 {
    margin-right: 0.5rem !important;
  }
  .mb-sm-2 {
    margin-bottom: 0.5rem !important;
  }
  .ml-sm-2 {
    margin-left: 0.5rem !important;
  }

  .p-sm-0 {
    padding: 0 !important;
  }
  .pt-sm-0 {
    padding-top: 0 !important;
  }
  .pr-sm-0 {
    padding-right: 0 !important;
  }
  .pb-sm-0 {
    padding-bottom: 0 !important;
  }
  .pl-sm-0 {
    padding-left: 0 !important;
  }

  .p-sm-1 {
    padding: 0.25rem !important;
  }
  .pt-sm-1 {
    padding-top: 0.25rem !important;
  }
  .pr-sm-1 {
    padding-right: 0.25rem !important;
  }
  .pb-sm-1 {
    padding-bottom: 0.25rem !important;
  }
  .pl-sm-1 {
    padding-left: 0.25rem !important;
  }

  .p-sm-2 {
    padding: 0.5rem !important;
  }
  .pt-sm-2 {
    padding-top: 0.5rem !important;
  }
  .pr-sm-2 {
    padding-right: 0.5rem !important;
  }
  .pb-sm-2 {
    padding-bottom: 0.5rem !important;
  }
  .pl-sm-2 {
    padding-left: 0.5rem !important;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate__animated,
  [data-aos],
  .parallax,
  .animate-on-scroll {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Accessibility Improvements */
/* Focus styles */
:focus {
  outline: 2px solid var(--primary-color) !important;
  outline-offset: 2px !important;
}

/* Skip to content link for keyboard users */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  z-index: 9999;
  transition: top 0.3s;
}

.skip-to-content:focus {
  top: 0;
}

/* Improve button and interactive element focus states */
button:focus,
.btn:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.5) !important;
  outline: none !important;
}

/* High contrast mode support */
@media (forced-colors: active) {
  * {
    border-color: ButtonText !important;
  }

  button,
  .btn {
    border: 1px solid ButtonText !important;
  }

  a {
    text-decoration: underline !important;
  }
}

/* PWA Update Notification */
.update-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 15px 20px;
  z-index: 9999;
  transition: transform 0.3s ease;
  max-width: 90%;
  width: 400px;
}

.update-notification.show {
  transform: translateX(-50%) translateY(0);
}

.update-notification-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.update-notification-content p {
  margin: 0;
  font-weight: 500;
}

.update-notification .btn {
  padding: 5px 15px;
  font-size: 14px;
}

/* Offline Status Indicator */
.offline-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #f8d7da;
  color: #721c24;
  text-align: center;
  padding: 5px 10px;
  font-size: 14px;
  z-index: 9999;
  display: none;
}

body.offline .offline-indicator {
  display: block;
}

/* Offline Content Styling */
body.offline .requires-online {
  opacity: 0.5;
  pointer-events: none;
}

body.offline .offline-hidden {
  display: none !important;
}

body.offline .offline-visible {
  display: block !important;
}

/* PWA Install Button */
.pwa-install-button {
  display: none;
  background-color: #4a6cf7;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.pwa-install-button:hover {
  background-color: #3a5ce5;
}

/* Breadcrumb Styling - Simple & Clean */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
  list-style: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.breadcrumb-item {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 400;
  color: #6c757d;
}

.breadcrumb-item i {
  display: none; /* Hide icons for simpler look */
}

.breadcrumb-item + .breadcrumb-item {
  padding-left: 1.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  display: block;
  position: absolute;
  left: 0.5rem;
  color: #ced4da;
  font-weight: 300;
}

.breadcrumb-item a {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0.25rem 0.5rem;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.breadcrumb-item a:hover {
  color: var(--primary-color);
  background-color: #f1f3f5;
}

.breadcrumb-item.active {
  color: #343a40;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  background-color: #f8f9fa;
  border-radius: 4px;
}

/* Responsive Breadcrumb */
@media (max-width: 576px) {
  .breadcrumb {
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
  }

  .breadcrumb-item {
    font-size: 0.75rem;
  }

  .breadcrumb-item + .breadcrumb-item {
    padding-left: 1rem;
  }

  .breadcrumb-item + .breadcrumb-item::before {
    left: 0.35rem;
  }

  .breadcrumb-item a,
  .breadcrumb-item.active {
    padding: 0.15rem 0.35rem;
  }
}

/* Landscape Orientation for Mobile Devices */
.landscape-orientation {
  /* Specific styles when JS detects landscape orientation */
  height: auto;
  overflow-y: auto;
}

@media (max-width: 767px) and (orientation: landscape) {
  /* Adjust navbar height for landscape */
  .navbar {
    padding: 0.25rem 0;
  }

  .navbar-brand img {
    max-height: 30px;
  }

  /* Adjust content padding for landscape */
  main {
    padding-top: 0.5rem;
  }

  /* Optimize layout for landscape */
  .row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-right: -5px;
    margin-left: -5px;
  }

  .row > [class*="col-"] {
    padding-right: 5px;
    padding-left: 5px;
    flex-shrink: 0;
  }

  /* Adjust card heights for landscape */
  .card {
    max-height: 80vh;
    overflow-y: auto;
  }

  /* Adjust modal positioning for landscape */
  .modal-dialog {
    margin: 0.5rem;
  }

  /* Adjust footer for landscape */
  footer {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  /* Fix for iOS Safari issues in landscape */
  body {
    height: 100%;
  }

  /* Optimize images for landscape */
  .card-img-top {
    max-height: 120px;
    object-fit: cover;
  }

  /* Adjust product cards for landscape */
  .product-card {
    display: flex;
    flex-direction: row;
    height: auto;
    max-height: 150px;
  }

  .product-card .product-image {
    width: 40%;
    height: 100%;
  }

  .product-card .card-body {
    width: 60%;
    padding: 0.5rem;
  }

  /* Optimize forms for landscape */
  .form-group {
    margin-bottom: 0.5rem;
  }

  /* Adjust hero sections for landscape */
  .hero-section {
    min-height: 200px;
    padding: 1rem 0;
  }

  /* Optimize tables for landscape */
  .table th,
  .table td {
    padding: 0.5rem;
  }
}

/* Tablet Specific Adjustments */
@media (min-width: 768px) and (max-width: 991px) {
  /* Adjust column spacing */
  .row {
    justify-content: center;
    text-align: center;
  }

  .row > [class*="col-"] {
    padding-right: 10px;
    padding-left: 10px;
  }

  /* Center content on tablets */
  .container {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  main .container img,
  main .container video,
  main .container iframe,
  main .container .card,
  main .container .btn,
  main .container form,
  main .container ul,
  main .container ol,
  main .container blockquote {
    margin-left: auto;
    margin-right: auto;
  }

  main .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Ensure proper text alignment for content */
  main .container p,
  main .container h1,
  main .container h2,
  main .container h3,
  main .container h4,
  main .container h5,
  main .container h6,
  main .container ul,
  main .container ol,
  main .container blockquote {
    text-align: center;
  }

  main .container ul,
  main .container ol {
    list-style-position: inside;
  }

  /* Adjust card sizes */
  .card-deck .card {
    margin-right: 10px;
    margin-left: 10px;
    text-align: center;
  }

  .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .card-img-top {
    margin-left: auto;
    margin-right: auto;
  }

  /* Adjust navigation */
  .navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }

  /* Adjust product cards */
  .product-card .card-title {
    font-size: 1rem;
  }

  /* Adjust form elements */
  .form-control {
    padding: 0.375rem 0.5rem;
  }
}

/* Small Desktop Adjustments */
@media (min-width: 992px) and (max-width: 1199px) {
  /* Adjust container padding */
  .container {
    padding-right: 20px;
    padding-left: 20px;
  }

  /* Adjust navigation spacing */
  .navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }
}

/* Print Media Styles */
@media print {
  /* Hide elements not needed for printing */
  header,
  footer,
  nav,
  .navbar,
  .sidebar,
  .no-print,
  .btn,
  button,
  .search-box,
  .social-links,
  .pwa-install-button,
  .update-notification,
  .offline-indicator,
  #scrollToTopBtn {
    display: none !important;
  }

  /* Reset body padding and margins */
  body {
    padding: 0 !important;
    margin: 0 !important;
    background-color: #fff !important;
    color: #000 !important;
  }

  /* Ensure content is visible */
  main,
  .container,
  .content,
  article {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Improve text readability */
  p,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  li {
    color: #000 !important;
    background: transparent !important;
  }

  /* Ensure links are readable */
  a {
    color: #000 !important;
    text-decoration: underline !important;
  }

  /* Show link URLs */
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
  }

  /* Don't show URLs for internal links */
  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }

  /* Improve table readability */
  table {
    border-collapse: collapse !important;
  }

  table td,
  table th {
    background-color: #fff !important;
    border: 1px solid #000 !important;
  }

  /* Page breaks */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    page-break-after: avoid;
  }

  img {
    page-break-inside: avoid;
  }

  /* Avoid breaking inside paragraphs and lists */
  p,
  ul,
  ol,
  dl {
    page-break-inside: avoid;
  }

  /* Always start new chapters on a new page */
  h1 {
    page-break-before: always;
  }
}

/* Class for JavaScript detection */
.no-js {
  display: none;
}

.js-loaded .no-js {
  display: none;
}

.js-loaded .js-only {
  display: block;
}

.js-only {
  display: none;
}

* {
  max-width: 100%;
}

.container,
.container-fluid {
  overflow-x: hidden;
  max-width: 80%;
}

.page-header {
  margin-top: 70px;
}
/* Navbar container specific overflow handling */
.navbar .container {
  overflow: visible !important;
}

.navbar-collapse {
  overflow: visible !important;
}

.navbar-nav {
  overflow: visible !important;
}

/* Active menu item styling */
.navbar .nav-item.active .nav-link {
  color: var(--primary-color);
  font-weight: 600;
}

.navbar .dropdown-item.active {
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
  font-weight: 600;
}

.row {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

[class*="col-"] {
  padding-left: 15px;
  padding-right: 15px;
  max-width: 100%;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Additional mobile fixes */
.hero-section,
.section {
  overflow-x: hidden;
  width: 100%;
}

.hero-bg {
  width: 100%;
  overflow: hidden;
}

.navbar {
  width: 100%;
  overflow: visible;
}

.top-bar {
  width: 100%;
  overflow-x: hidden;
}

/* Ensure all sections don't overflow */
section {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Fix for any potential wide elements */
.w-100 {
  max-width: 100% !important;
}

.min-vh-100 {
  overflow-x: hidden;
}

/* ==========================================================================
   Component Styles
   ========================================================================== */

/* Search Results Styling */
.search-results-container {
  position: absolute;
  width: 100%;
  max-height: 400px;
  overflow-y: auto;
  background-color: #fff;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: var(--box-shadow);
  z-index: 1000;
  border: 1px solid rgba(0, 0, 0, 0.1);
  scrollbar-width: thin;
}

.search-results-container::-webkit-scrollbar {
  width: 6px;
}

.search-results-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.search-results-container::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 10px;
}

.search-result-item {
  transition: var(--transition);
}

.search-result-item:hover {
  background-color: rgba(var(--primary-rgb), 0.05);
}

.search-result-item:last-child {
  border-bottom: none !important;
}

.search-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(var(--primary-rgb), 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: search-spin 0.8s linear infinite;
  margin-right: 10px;
}

@keyframes search-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Top Bar */
.top-bar {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  ) !important;
  font-size: 0.9rem;
  transition: var(--transition);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  width: 100%;
}

.top-bar:hover {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-color)
  ) !important;
}

/* Topbar Arrow Button */
.topbar-arrow .arrow-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-color);
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.topbar-arrow .arrow-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  color: var(--primary-dark);
}

.topbar-arrow .arrow-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Floating Scroll to Top Button */
.scroll-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top-btn:hover {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-color)
  );
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Background Colors */
.bg-primary {
  background-color: var(--primary-color) !important;
  color: var(--primary-contrast) !important;
}

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

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

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

/* ==========================================================================
   Floating Contact Button & Popup Balloon
   ========================================================================== */

/* Floating Contact Button */
.floating-contact-btn {
  position: fixed !important;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(239, 126, 26, 0.4);
  transition: all 0.3s ease;
  z-index: 9999 !important;
  animation: pulse 2s infinite;
  /* Memastikan button selalu terlihat */
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.floating-contact-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(239, 126, 26, 0.6);
}

.floating-contact-btn .contact-icon {
  color: white;
  font-size: 24px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 20px rgba(239, 126, 26, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(239, 126, 26, 0.8),
      0 0 0 10px rgba(239, 126, 26, 0.1);
  }
  100% {
    box-shadow: 0 4px 20px rgba(239, 126, 26, 0.4);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Contact Popup Balloon */
.contact-popup {
  position: fixed !important;
  bottom: 100px;
  left: 30px;
  width: 320px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 10000 !important;
  overflow: hidden;
  /* Memastikan popup tidak terpengaruh oleh parent container */
  top: auto !important;
  margin: 0 !important;
  /* Mencegah transformasi dari parent elements */
  will-change: transform, opacity;
  /* Memastikan popup selalu dapat diakses */
  pointer-events: auto !important;
}

.contact-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.popup-header {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  color: white;
  padding: 20px;
  position: relative;
}

.popup-header h5 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.popup-subtitle {
  font-size: 14px;
  opacity: 0.9;
  display: block;
  margin-top: 2px;
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.popup-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.popup-content {
  padding: 20px;
}

.contact-info {
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  color: #555;
}

.contact-item i {
  width: 20px;
  margin-right: 12px;
  color: var(--primary-color);
  font-size: 16px;
}

.social-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

/* Social kontak untuk popup - style terpisah */
.social-kontak {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Top bar social links - keep original styling */
.top-bar .social-links {
  display: flex;
  flex-direction: row;
  gap: 0;
}

.social-kontak .social-btn {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-bottom: 2px;
}

.social-kontak .social-btn i {
  width: 22px;
  margin-right: 14px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-kontak .social-btn.whatsapp {
  background: #25d366;
}

.social-kontak .social-btn.whatsapp:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.social-kontak .social-btn.youtube {
  background: #ff0000;
}

.social-kontak .social-btn.youtube:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.social-kontak .social-btn.instagram {
  background: #e4405f;
}

.social-kontak .social-btn.instagram:hover {
  background: #c13584;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(228, 64, 95, 0.4);
}

.social-kontak .social-btn.facebook {
  background: #1877f2;
}

.social-kontak .social-btn.facebook:hover {
  background: #166fe5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

/* Popup Arrow */
.popup-arrow {
  position: absolute;
  bottom: -10px;
  left: 45px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-popup {
    width: 280px;
    left: 20px;
    bottom: 80px;
    /* Memastikan positioning tetap fixed di mobile */
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    /* Memastikan popup selalu terlihat di viewport mobile */
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }

  .floating-contact-btn {
    left: 20px;
    bottom: 20px;
    width: 55px;
    height: 55px;
    position: fixed !important;
    z-index: 9999 !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .floating-contact-btn .contact-icon {
    font-size: 22px;
  }

  .popup-arrow {
    left: 40px;
  }

  /* Tablet responsive fixes */
  .container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero-section {
    overflow-x: hidden;
  }

  .display-4 {
    font-size: 2.5rem;
  }

  .lead {
    font-size: 1.1rem;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .btn {
    font-size: 15px;
    padding: 10px 20px;
  }

  .navbar-brand img {
    height: 35px;
  }

  .footer-brand img {
    height: 35px;
  }
}

/* Media query untuk layar sangat kecil */
@media (max-width: 480px) {
  .contact-popup {
    width: calc(100vw - 40px);
    left: 30px;
    bottom: 80px;
    /* Memastikan popup tidak keluar dari viewport */
    position: fixed !important;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .page-header {
    margin-top: auto;
  }

  .popup-content {
    padding: 15px;
  }

  .popup-header {
    padding: 15px;
  }

  .social-kontak .social-btn {
    padding: 12px 15px;
    font-size: 14px;
  }

  .social-kontak .social-btn i {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
  }

  .contact-item {
    margin-bottom: 10px;
    font-size: 13px;
  }

  .floating-contact-btn {
    left: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    position: fixed !important;
    z-index: 9999 !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .floating-contact-btn .contact-icon {
    font-size: 20px;
  }

  /* Mobile responsive fixes */
  .container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
  }

  .hero-section {
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
  }

  .hero-content {
    padding: 0 15px;
  }

  .display-4 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .lead {
    font-size: 1rem;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .navbar-brand img {
    height: 28px;
  }

  .footer-brand img {
    height: 28px;
  }

  .nav-link {
    font-size: 14px;
  }

  /* Logo sizing for very small screens */
  .navbar-brand img {
    height: 24px;
    max-width: 120px;
  }

  .footer-brand img {
    height: 24px;
    max-width: 120px;
  }
}

/* Extra small devices (phones, 360px and down) */
@media (max-width: 360px) {
  .navbar-brand {
    font-size: 1rem;
  }

  .page-header {
    margin-top: auto;
  }

  .navbar-brand img {
    height: 20px;
    max-width: 100px;
  }

  .footer-brand img {
    height: 20px;
    max-width: 100px;
  }

  .navbar {
    padding: 0.5rem 1rem;
  }
}

.bg-warning {
  background-color: var(--warning-color) !important;
  color: var(--dark-color) !important;
}

.bg-danger {
  background-color: var(--danger-color) !important;
  color: white !important;
}

.bg-info {
  background-color: var(--info-color) !important;
  color: white !important;
}

/* Text Colors */
.text-primary {
  color: var(--primary-color) !important;
}

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

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

.text-success {
  color: var(--success-color) !important;
}

.text-warning {
  color: var(--warning-color) !important;
}

.text-danger {
  color: var(--danger-color) !important;
}

.text-info {
  color: var(--info-color) !important;
}

/* Border Colors */
.border-primary {
  border-color: var(--primary-color) !important;
}

.border-primary-light {
  border-color: var(--primary-light) !important;
}

.border-primary-dark {
  border-color: var(--primary-dark) !important;
}

/* Button Styles */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--primary-contrast);
  transition: var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--primary-contrast);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-primary:active {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(0);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background-color: transparent;
  transition: var(--transition);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--primary-contrast);
}

/* Link Styles */
.link-primary {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.link-primary:hover,
.link-primary:focus {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Alert Styles */
.alert-primary {
  background-color: rgba(var(--primary-rgb), 0.1);
  border-color: var(--primary-color);
  color: var(--primary-dark);
}

.alert-success {
  background-color: rgba(40, 167, 69, 0.1);
  border-color: var(--success-color);
  color: #155724;
}

.alert-warning {
  background-color: rgba(255, 193, 7, 0.1);
  border-color: var(--warning-color);
  color: #856404;
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  border-color: var(--danger-color);
  color: #721c24;
}

.alert-info {
  background-color: rgba(23, 162, 184, 0.1);
  border-color: var(--info-color);
  color: #0c5460;
}

.social-links a {
  transition: var(--transition);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(120, 120, 119, 0.1);
}

.social-links a:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* Navigation */
.navbar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95) !important;
  transition: var(--transition);
  position: fixed;
  top: 50px; /* Position below topbar */
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1020;
  overflow: visible;
}

/* Dropdown Menu Styling */
.dropdown-menu {
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 8px 0;
  margin-top: 8px;
  z-index: 1030;
}

.dropdown-item {
  padding: 8px 20px;
  transition: all 0.3s ease;
  border-radius: 4px;
  margin: 2px 8px;
}

.dropdown-item:hover {
  background-color: var(--primary-color);
  color: white !important;
  transform: translateX(5px);
}

.nav-item.dropdown {
  position: static;
}

.navbar-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: auto;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.navbar-brand img {
  height: 40px;
  width: auto;
  transition: var(--transition);
}

/* Footer logo styling */
.footer-brand img {
  height: 40px;
  width: auto;
  transition: var(--transition);
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 10px;
  transition: var(--transition);
  position: relative;
}

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

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--primary-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 80%;
}

/* Search Box */
.search-box {
  position: relative;
}

.search-box input {
  padding-right: 40px;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  transition: var(--transition);
  width: 300px;
  min-width: 250px;
}

.search-box input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 140, 0, 0.25);
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
}

/* Hero Section */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.hero:hover {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-color)
  );
}

.hero::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="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>')
    repeat;
  pointer-events: none;
}

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

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .lead {
  font-size: 1.25rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn {
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
}

.hero-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Carousel Styling */
.hero-image {
  width: 100%;
}

.hero-image .carousel {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.hero-image .carousel-inner {
  width: 100%;
}

.hero-image .carousel-item img {
  height: 400px;
  object-fit: cover;
  transition: var(--transition);
  width: 100%;
  max-width: 100%;
}

.hero-image .carousel:hover {
  transform: scale(1.02);
}

/* Custom carousel controls */
.hero-image .carousel-control-prev,
.hero-image .carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(var(--primary-rgb), 0.8);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: var(--transition);
}

.hero-image .carousel-control-prev:hover,
.hero-image .carousel-control-next:hover {
  background: rgba(var(--primary-rgb), 0.9);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.hero-image .carousel:hover .carousel-control-prev,
.hero-image .carousel:hover .carousel-control-next {
  opacity: 1;
}

.hero-image .carousel-control-prev {
  left: 15px;
}

.hero-image .carousel-control-next {
  right: 15px;
}

.hero-image .carousel-control-prev:hover,
.hero-image .carousel-control-next:hover {
  background: rgba(255, 140, 0, 1);
}

/* Custom carousel indicators */
.hero-image .carousel-indicators {
  bottom: 15px;
}

.hero-image .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 140, 0, 0.8);
  margin: 0 5px;
  transition: var(--transition);
}

.hero-image .carousel-indicators button.active {
  background: rgba(255, 140, 0, 1);
  transform: scale(1.2);
}

.hero-image img {
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.hero-image img:hover {
  transform: scale(1.05);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-arrow {
  color: white;
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Product Cards */
.product-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-overlay {
  opacity: 1;
}

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

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.product-category {
  color: #6c757d;
  font-size: 0.9rem;
}

/* Feature Items */
.feature-item {
  text-align: center;
  padding: 1rem;
}

.feature-icon {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  margin: 0 auto;
}

/* Benefit Items */
.benefit-item {
  padding: 2rem 1rem;
  transition: var(--transition);
}

.benefit-item:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  border-radius: 25px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: var(--transition);
}

.btn:hover::before {
  left: 100%;
}

.btn-warning {
  background: linear-gradient(135deg, #ff8c00, #f39c12);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.btn-warning:hover {
  background: linear-gradient(135deg, #e67e00, #d68910);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
  color: white;
}

.btn-outline-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Footer */
footer {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.whatsapp-contact {
  background: linear-gradient(135deg, #25d366, #128c7e) !important;
  border-radius: var(--border-radius);
  transition: var(--transition);
  margin-bottom: 15px;
}

.whatsapp-contact:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Images */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Image aspect ratio containers */
.ratio {
  position: relative;
  width: 100%;
}

.ratio::before {
  display: block;
  padding-top: var(--aspect-ratio);
  content: "";
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ratio-1x1 {
  --aspect-ratio: 100%;
}

.ratio-4x3 {
  --aspect-ratio: 75%;
}

.ratio-16x9 {
  --aspect-ratio: 56.25%;
}

.ratio-21x9 {
  --aspect-ratio: 42.86%;
}

/* Responsive Forms */
.form-floating {
  position: relative;
}

.form-floating > .form-control {
  height: calc(3.5rem + 2px);
  padding: 1rem 0.75rem;
}

.form-floating > label {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  padding: 1rem 0.75rem;
  pointer-events: none;
  border: 1px solid transparent;
  transform-origin: 0 0;
  transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

@media (max-width: 767px) {
  .form-floating > .form-control {
    font-size: 16px; /* Prevent iOS zoom */
  }
}

/* Responsive Utilities */
.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-flex {
  display: flex !important;
}

/* Responsive Tables */
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
  .table-responsive-sm {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Stack table on mobile */
  .table-stack-sm tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    margin-left: auto;
    margin-right: auto;
  }

  .table-responsive-sm {
    text-align: center;
  }

  .table-stack-sm th {
    display: none;
  }

  .table-stack-sm td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem;
  }

  .table-stack-sm td:last-child {
    border-bottom: none;
  }

  .table-stack-sm td::before {
    content: attr(data-label);
    font-weight: 600;
    margin-right: auto;
    text-align: left;
  }
}

/* Large Screen Utilities */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }

  .d-xxl-none {
    display: none !important;
  }

  .d-xxl-block {
    display: block !important;
  }

  .d-xxl-flex {
    display: flex !important;
  }
}

/* Responsive Text */
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Responsive Design */
/* Landscape orientation for mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
  .navbar,
  .top-bar {
    position: absolute;
  }

  .hero-section {
    min-height: 450px;
  }

  .hero-content {
    padding: 2rem 0;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .section {
    padding: 2rem 0;
  }

  .product-card {
    height: auto;
    min-height: 250px;
  }

  .product-image {
    height: 140px;
  }
}

/* Large Devices (Desktops) */
@media (min-width: 992px) and (max-width: 1199px) {
  .container,
  .container-fluid {
    max-width: 95%;
  }

  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .navbar-nav .nav-link {
    padding: 0.5rem 0.8rem;
  }

  .card-product {
    height: 100%;
  }

  .product-image {
    height: 220px;
  }

  .d-lg-none {
    display: none !important;
  }

  .d-lg-block {
    display: block !important;
  }

  .d-lg-flex {
    display: flex !important;
  }
}

/* Medium Devices (Tablets) */
@media (min-width: 768px) and (max-width: 991px) {
  .container,
  .container-fluid {
    max-width: 95%;
  }

  .table-responsive {
    text-align: center;
  }

  table {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .navbar-nav .nav-link {
    padding: 0.5rem 0.6rem;
    font-size: 0.9rem;
  }

  .card-product {
    height: 100%;
  }

  .product-image {
    height: 200px;
  }

  .benefit-item {
    margin-bottom: 1.5rem;
  }

  /* Tablet navbar adjustments */
  .navbar {
    position: fixed !important;
    top: 45px !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1020;
    padding: 0.5rem 0;
  }

  .top-bar {
    position: fixed !important;
    top: 0;
    height: 45px !important;
    padding: 0.25rem 0 !important;
    font-size: 0.85rem;
  }

  body {
    padding-top: 100px !important;
  }

  /* Social media positioning for tablet */
  .top-bar .col-md-4 {
    text-align: center;
    justify-content: center;
  }

  .top-bar .social-links {
    justify-content: center;
    gap: 12px;
  }

  /* Grid adjustments for tablets */
  .row > [class*="col-"] {
    margin-bottom: 20px;
  }

  /* Form elements */
  input,
  select,
  textarea {
    font-size: 16px !important; /* Prevents iOS zoom on focus */
  }

  /* Adjust spacing for better mobile experience */
  .section {
    padding: 3rem 0;
  }

  .d-md-none {
    display: none !important;
  }

  .d-md-block {
    display: block !important;
  }

  .d-md-flex {
    display: flex !important;
  }
}

/* Small Devices (Mobile Landscape) */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-buttons {
    text-align: center;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }

  .benefit-item {
    margin-bottom: 2rem;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .search-box {
    margin-top: 1rem;
    margin-bottom: 1rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    display: block;
    text-align: center;
  }

  .search-box input {
    width: 100% !important;
    min-width: 100% !important;
    margin: 0;
    padding-left: 15px;
    padding-right: 40px;
  }

  .auth-buttons {
    padding-bottom: 35px;
    margin-top: 4px;
  }

  /* Mobile navbar adjustments */
  .navbar {
    position: fixed !important;
    top: 45px !important; /* Reduced topbar height for mobile */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1020;
    padding: 0.5rem 0;
  }

  .top-bar {
    position: fixed !important;
    top: 0;
    height: 45px !important; /* Reduced height for mobile */
    padding: 0.25rem 0 !important;
    font-size: 0.8rem;
  }

  body {
    padding-top: 100px !important; /* Adjusted for mobile navbar + topbar */
  }

  /* Social media positioning for tablet */
  .top-bar .col-md-4 {
    text-align: center;
    justify-content: center;
  }

  .top-bar .social-links {
    justify-content: center;
    gap: 12px;
  }

  /* Topbar arrow responsive */
  .topbar-arrow {
    margin-right: 1rem !important;
  }

  .topbar-arrow .arrow-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  /* Floating scroll button responsive */
  .scroll-to-top-btn {
    width: 45px;
    height: 45px;
    font-size: 16px;
    bottom: 25px;
    right: 25px;
  }

  /* Grid adjustments for mobile */
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }

  [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Table responsive */
  .table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Images responsive */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Form elements */
  input,
  select,
  textarea {
    font-size: 16px !important; /* Prevents iOS zoom on focus */
  }

  /* Improve touch targets for mobile */
  .btn,
  .navbar-link,
  .dropdown-item {
    padding: 0.625rem 1rem;
    min-height: 44px; /* Apple's recommended minimum touch target size */
  }

  /* Adjust spacing for better mobile experience */
  .section {
    padding: 2.5rem 0;
  }

  .d-sm-none {
    display: none !important;
  }

  .d-sm-block {
    display: block !important;
  }

  .d-sm-flex {
    display: flex !important;
  }
}

/* Extra Small Devices (Mobile Portrait) */
@media (max-width: 576px) {
  .container,
  .container-fluid {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .navbar .d-flex {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .d-flex .search-box {
    order: 1;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    min-width: 100% !important;
  }

  .search-box input {
    margin-top: 2px;
  }

  .d-flex .auth-buttons,
  .d-flex .dropdown {
    order: 2;
    padding-bottom: 35px;
    margin-top: 4px;
  }

  /* Mobile specific navbar */
  .navbar {
    position: fixed !important;
    top: 70px !important; /* Even smaller topbar for small mobile */
    padding: 0.25rem 0;
    overflow: visible !important;
  }

  /* Mobile dropdown adjustments for very small screens */
  .navbar-nav .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    margin-top: 0;
    background-color: #f8f9fa;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    transform: none !important;
    display: none;
    max-height: 300px;
    overflow-y: auto;
  }

  .navbar-nav .dropdown-menu.show {
    display: block !important;
    opacity: 1;
    visibility: visible;
  }

  .nav-item.dropdown {
    position: relative !important;
  }

  .top-bar {
    position: fixed !important;
    top: 0;
    height: 70px !important; /* Smaller height for small mobile */
    padding: 0.2rem 0 !important;
    font-size: 0.75rem;
    text-align: center;
  }

  body {
    padding-top: 90px !important; /* Adjusted for small mobile */
    margin-top: 30px;
  }

  .top-bar .col-md-4 {
    margin-top: 0.25rem;
    text-align: center !important;
    justify-content: center !important;
  }

  .top-bar .social-links {
    justify-content: center !important;
    display: flex !important;
    align-items: center;
    gap: 15px;
  }

  .top-bar .social-links a {
    margin: 0 !important;
    padding: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
  }

  .top-bar .social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
  }

  /* Topbar arrow mobile */
  .topbar-arrow {
    margin-right: 0.5rem !important;
  }

  .topbar-arrow .arrow-btn {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  /* Floating scroll button mobile */
  .scroll-to-top-btn {
    width: 40px;
    height: 40px;
    font-size: 14px;
    bottom: 20px;
    right: 20px;
  }

  /* Product cards for mobile */
  .card-product {
    margin-bottom: 20px;
  }

  .product-image {
    height: 180px;
  }

  /* Form adjustments for mobile */
  .form-group {
    margin-bottom: 1rem;
  }

  .form-control {
    height: 45px;
    font-size: 16px; /* Prevent iOS zoom */
  }

  /* Button adjustments for mobile */
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    height: 44px; /* Better touch target */
  }

  /* Spacing adjustments */
  .section {
    padding: 40px 0;
  }

  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .my-5 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }

  /* Text adjustments */
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Utility classes for extra small devices */
  .d-xs-none {
    display: none !important;
  }

  .d-xs-block {
    display: block !important;
  }

  .d-xs-flex {
    display: flex !important;
  }

  /* Improve touch targets for mobile */
  .nav-link,
  .dropdown-item {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Extra Extra Small Devices (Small Mobile) */
@media (max-width: 375px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.125rem;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }

  .top-bar {
    font-size: 0.7rem;
  }

  .top-bar .social-links a {
    width: 30px;
    height: 30px;
  }

  .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  .product-card {
    height: 300px;
  }

  .product-image {
    height: 160px;
  }

  /* Further reduce spacing */
  .section {
    padding: 30px 0;
  }

  .py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .my-5 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  /* Further reduce padding for very small screens */
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Ensure buttons and form elements are usable */
  .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }

  /* Improve readability on very small screens */
  p,
  li,
  .card-text {
    font-size: 0.875rem;
  }

  /* Adjust grid for very small screens */
  .row {
    margin-left: -5px;
    margin-right: -5px;
  }

  [class*="col-"] {
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Focus States */
.btn:focus,
.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 140, 0, 0.25);
}

/* Utility Classes */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-gradient-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.border-radius {
  border-radius: var(--border-radius);
}

.box-shadow {
  box-shadow: var(--box-shadow);
}

.transition {
  transition: var(--transition);
}

/* Skip to Content - Accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  z-index: 9999;
  transition: top 0.3s;
}

.skip-to-content:focus {
  top: 0;
}
