:root {
  --blue: #9ad4ff;
  --green: #b8e6c8;
  --orange: #f9c18d;
  --cream: #fff8ec;
  --text: #2d2b32;
  --accent: #ff8a5b;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --header-height: 70px;
}

* { box-sizing: border-box; }
html {
  overflow-x: hidden;
  height: 100%;
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  min-height: 100%;
}

/* Accessibility: Skip to main content */
.skip-to-main:focus {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  z-index: 10000;
}

/* Enhanced focus indicators for keyboard navigation (excluding buttons, button-styled links, and navbar) */
a:focus:not(.btn):not([class*="btn"]):not(header a):not(.nav a):not(.menu a):not(.header-actions a):not(.cart-badge a),
input:focus:not([type="button"]):not([type="submit"]):not([type="reset"]),
textarea:focus,
select:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Explicitly remove outline from button-styled links and navbar elements */
a.btn:focus,
a.btn:active,
a.btn:focus-visible,
a[class*="btn"]:focus,
a[class*="btn"]:active,
a[class*="btn"]:focus-visible,
header a:focus,
header a:active,
header a:focus-visible,
.nav a:focus,
.nav a:active,
.nav a:focus-visible,
.menu a:focus,
.menu a:active,
.menu a:focus-visible,
.mobile-menu-toggle:focus,
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus-visible,
.header-actions a:focus,
.header-actions a:active,
.header-actions a:focus-visible,
#userMenuToggle:focus,
#userMenuToggle:active,
#userMenuToggle:focus-visible,
#cartIcon:focus,
#cartIcon:active,
#cartIcon:focus-visible,
.cart-badge a:focus,
.cart-badge a:active,
.cart-badge a:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  outline-width: 0 !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-focus-ring-color: transparent !important;
  -moz-outline: none !important;
}

/* Remove ALL borders, outlines, and box-shadows from buttons on click/focus/active */
button,
button:focus,
button:active,
button:focus-visible,
button:focus-within,
button:hover:focus,
button:hover:active,
.btn,
.btn:focus,
.btn:active,
.btn:focus-visible,
.btn:focus-within,
.btn:hover:focus,
.btn:hover:active,
input[type="button"],
input[type="button"]:focus,
input[type="button"]:active,
input[type="button"]:focus-visible,
input[type="submit"],
input[type="submit"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus-visible,
input[type="reset"],
input[type="reset"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-focus-ring-color: transparent !important;
}

/* Remove default outline for mouse users, keep for keyboard */
.js-focus-visible a:focus:not(.focus-visible),
.js-focus-visible button:focus:not(.focus-visible),
.js-focus-visible input:focus:not(.focus-visible) {
  outline: none;
}

/* CRITICAL: Remove ALL button outlines and borders - must be last to override everything */
button:focus,
button:active,
button:focus-visible,
button:focus-within,
.btn:focus,
.btn:active,
.btn:focus-visible,
.btn:focus-within,
input[type="button"]:focus,
input[type="button"]:active,
input[type="submit"]:focus,
input[type="submit"]:active,
input[type="reset"]:focus,
input[type="reset"]:active,
button:hover:focus,
button:hover:active,
.btn:hover:focus,
.btn:hover:active {
  outline: none !important;
  outline-offset: 0 !important;
  outline-width: 0 !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-focus-ring-color: transparent !important;
  -moz-outline: none !important;
}

/* Loading states */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Form validation styles */
.input.error,
input.error,
textarea.error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.field-error {
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-error {
  background: #f8d7da;
  color: #721c24;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  border-left: 4px solid #dc3545;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Base responsive font sizes */
p {
  font-size: 16px;
  line-height: 1.6;
}

/* Ensure all text elements have base font size */
body,
p,
span,
div,
li,
td,
th,
label,
small {
  font-size: inherit;
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  
  p {
    font-size: 15px;
  }
  
  /* Ensure all text is readable on mobile */
  p:not([style*="font-size"]),
  span:not([style*="font-size"]),
  div:not([style*="font-size"]),
  li:not([style*="font-size"]) {
    font-size: 15px !important;
  }
  
  /* Add proper padding for small screens */
  .container {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
  
  /* Ensure checkout page has proper right padding */
  section.container,
  .section.container,
  section.section.container {
    padding-left: 25px !important;
  }
  
  /* Fix password toggle eye icon position on small screens */
  .password-toggle {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 100 !important;
    pointer-events: auto !important;
  }
  
  .password-toggle i {
    display: block !important;
    line-height: 1 !important;
    position: relative !important;
    z-index: 101 !important;
  }
  
  /* Ensure password input doesn't cover the icon */
  input[type="password"],
  input[id*="password"] {
    position: relative !important;
    z-index: 1 !important;
  }
  
  main {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  
  p {
    font-size: 14px;
  }
  
  /* Ensure all text is readable on very small screens */
  p:not([style*="font-size"]),
  span:not([style*="font-size"]),
  div:not([style*="font-size"]),
  li:not([style*="font-size"]) {
    font-size: 14px !important;
  }
  
  /* Add more padding for very small screens */
  .container {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
  
  /* Ensure checkout page has proper right padding */
  section.container,
  .section.container,
  section.section.container {
    padding-right: 25px !important;
  }
  
  /* Fix password toggle eye icon position on very small screens */
  .password-toggle {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 100 !important;
    padding: 6px !important;
    pointer-events: auto !important;
  }
  
  .password-toggle i {
    display: block !important;
    line-height: 1 !important;
    position: relative !important;
    z-index: 101 !important;
  }
  
  /* Ensure password input doesn't cover the icon */
  input[type="password"],
  input[id*="password"] {
    position: relative !important;
    z-index: 1 !important;
  }
  
  main {
    padding-left: 0;
    padding-right: 0;
  }
}
main {
  margin: 0;
  padding: 0;
  padding-top: 60px;
  position: relative;
  z-index: 1;
}

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #ff8a5b;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Image Lazy Loading */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 92%; max-width: 1200px; margin: 0 auto; padding-left: 4%; padding-right: 4%; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn.primary { background: linear-gradient(135deg, var(--blue), var(--green)); color: #0f1b2c; }
.btn.secondary { background: var(--orange); color: #1b0f05; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { 
  transform: translateY(0); 
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}
.btn:focus,
.btn:focus-visible,
.btn:focus-within {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}
.btn.ripple { position: relative; overflow: hidden; }
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}
@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

header {
  background: #ffffff;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  z-index: 50 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease, background 0.3s ease;
  overflow-x: hidden;
  overflow-y: visible;
  will-change: transform;
  margin: 0 !important;
  padding: 0 !important;
}
header.scrolled {
  box-shadow: 0 6px 30px rgba(0,0,0,0.1);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  overflow: visible !important;
  z-index: 50;
}
.logo {
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(1.05);
}
.menu a {
  position: relative;
  transition: color 0.3s ease;
  font-weight: 500;
}
.menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
  transform: translateX(-50%);
}
.menu a:hover::after,
.menu a.active::after {
  width: 80%;
  left: 50%;
  transform: translateX(-50%);
}
.menu a.active {
  color: var(--accent);
  font-weight: 600;
}
.nav {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
  position: relative;
  pointer-events: auto;
  z-index: 106;
}
.logo { 
  font-size: 20px; 
  font-weight: 800; 
  color: #1d3b5a; 
  display: flex; 
  align-items: center; 
  flex-shrink: 0;
}
.logo img { 
  height: 40px; 
  width: auto; 
  object-fit: contain; 
}
.logo span { 
  display: inline-block; 
}
.menu { 
  display: flex; 
  gap: 16px; 
  flex-wrap: wrap;
}
.menu a { 
  padding: 8px 16px; 
  border-radius: var(--radius); 
  transition: all 0.3s ease;
}
.menu a:hover { 
  background: var(--cream); 
  color: var(--accent);
}

/* Search Bar Styling */
.search-container {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 10px 40px 10px 16px;
  border: 2px solid #e9ecef;
  border-radius: 24px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #fff;
  color: #333;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 138, 91, 0.1);
}

.search-input::placeholder {
  color: #999;
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
  transition: color 0.3s ease;
}

.search-input:focus + .search-icon {
  color: var(--accent);
}

.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.search-results::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.search-results::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none !important;
  background: none;
  border: none;
  font-size: 24px;
  color: #1d3b5a;
  cursor: pointer;
  padding: 8px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 10000;
  pointer-events: auto;
}

.mobile-menu-toggle:hover {
  transform: scale(1.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 400px;
  margin: 0 16px;
}

/* Responsive Navbar */
@media (max-width: 968px) and (min-width: 769px) {
  .header-actions {
    max-width: 300px;
    margin: 0 8px;
  }
  
  .menu {
    gap: 8px;
  }
  
  .menu a {
    padding: 6px 12px;
    font-size: 14px;
  }
  
  /* Ensure mobile menu toggle is hidden on tablets (768px-968px) */
  .mobile-menu-toggle {
    display: none !important;
  }
  
  /* Menu visible on tablets - but NOT #mainMenu which is controlled by mobile menu script */
  .menu:not(#mainMenu) {
    display: flex !important;
  }
}

/* Tablet landscape (769px to 968px) */
@media (min-width: 769px) and (max-width: 968px) {
  .nav {
    flex-wrap: nowrap;
  }
  
  .header-actions {
    max-width: 280px;
  }
  
  .menu a {
    padding: 8px 14px;
    font-size: 14px;
  }
  
  .nav > div:last-child {
    gap: 12px;
  }
}

@media (max-width: 768px) {
  header .container {
    width: 100%;
      padding: 0 20px;
  }
  
  header {
    min-height: 70px;
  }
  
  .nav {
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 0;
    min-height: 70px;
  }
  
  .logo {
    order: 1;
    flex-shrink: 0;
    margin-left: 40px; /* Space for menu toggle */
  }
  
  /* Hide search bar on mobile */
  .header-actions {
    display: none !important;
  }
  
  /* Mobile menu toggle - move to left corner */
  .mobile-menu-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    order: 0;
    flex-shrink: 0;
    z-index: 10000 !important;
    position: absolute !important;
    left: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    padding: 0 !important;
    font-size: 26px !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: rgba(29, 59, 90, 0.2);
    touch-action: manipulation;
    background: transparent !important;
    border: none !important;
    overflow: visible !important;
    box-sizing: border-box;
    -webkit-user-select: none !important;
    user-select: none !important;
  }
  
  .mobile-menu-toggle:active {
    transform: translateY(-50%) scale(0.95);
    opacity: 0.8;
  }
  
  .mobile-menu-toggle:active i {
    transform: translate(-50%, -50%) scale(0.95);
  }
  
  .mobile-menu-toggle i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    line-height: 1 !important;
    font-size: 26px !important;
    pointer-events: none;
    color: #1d3b5a !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  /* Ensure cross icon is in same position as hamburger */
  .mobile-menu-toggle i.fa-times {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 26px !important;
    width: 100% !important;
    height: 100% !important;
    line-height: 1 !important;
    color: #1d3b5a !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .mobile-menu-toggle i.fa-bars {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 26px !important;
    width: 100% !important;
    height: 100% !important;
    line-height: 1 !important;
    color: #1d3b5a !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* User actions area (login/register/cart) - keep at end */
  .nav > div:last-child {
    order: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
  }
  
  /* Ensure proper layout */
  .nav {
    justify-content: space-between;
    position: relative;
  }
  
  .nav > .logo {
    flex: 0 0 auto;
  }
  
  .nav > div:last-child {
    flex: 0 0 auto;
  }
  
  /* Menu - hidden by default - MUST be more specific than .menu rules */
  nav.menu#mainMenu,
  #mainMenu.menu {
    display: none !important;
  }
  
  /* Menu when shown - override with even more specific selector */
  nav.menu#mainMenu.mobile-menu-show,
  #mainMenu.menu.mobile-menu-show,
  #mainMenu.mobile-menu-show,
  #mainMenu[data-menu-open="true"] {
    display: flex !important;
    position: fixed !important;
    top: 70px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #fff !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 20px !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    z-index: 9999 !important;
    max-height: calc(100vh - 70px) !important;
    overflow-y: auto !important;
  }
  
  /* Ensure header stays above backdrop when menu is open */
  header {
    position: relative;
    z-index: 105 !important;
  }
  
  /* Mobile menu backdrop - hidden by default */
  .menu-backdrop {
    display: none !important;
  }
  
  /* Mobile menu backdrop when shown */
  .menu-backdrop.mobile-backdrop-show {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 9998 !important;
  }
  
  /* When menu is active, backdrop should NOT block menu area */
  .menu.active ~ *,
  header:has(.menu.active) {
    position: relative;
    z-index: 155 !important;
  }
  
  /* Alternative: Use CSS to create a "hole" in backdrop for menu */
  @supports not (selector(:has(*))) {
    /* Fallback for browsers without :has() support */
    body.menu-open header {
      z-index: 155 !important;
    }
  }
  
  /* When menu is active, ensure it's above backdrop */
  .menu.active {
    position: relative;
    z-index: 150 !important;
    pointer-events: auto !important;
  }
  
  /* Ensure menu and all its children are above backdrop and clickable */
  header .menu.active,
  header .menu.active * {
    position: relative;
    z-index: 150 !important;
    pointer-events: auto !important;
  }
  
  /* Menu links must be above everything */
  .menu.active a {
    z-index: 151 !important;
    pointer-events: auto !important;
    position: relative;
  }
  
  /* Prevent backdrop from blocking menu clicks */
  .menu-backdrop.active {
    pointer-events: auto;
  }
  
  /* But menu area should not be affected by backdrop - create a "hole" */
  header {
    position: relative;
    z-index: 151 !important;
  }
  
  header .menu.active {
    pointer-events: auto !important;
    position: relative;
    z-index: 152 !important;
  }
  
  header .menu.active *,
  header .menu.active a {
    pointer-events: auto !important;
    position: relative;
    z-index: 153 !important;
  }
  
  /* Ensure menu links are always clickable */
  .menu.active a {
    pointer-events: auto !important;
    z-index: 154 !important;
    position: relative;
  }
  
  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }
  
  .menu a {
    width: 100%;
    padding: 12px 16px;
    text-align: center !important;
    border-radius: 8px;
    font-size: 15px;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 115 !important;
    display: block !important;
    -webkit-tap-highlight-color: rgba(255, 138, 91, 0.3);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    text-decoration: none;
    color: inherit;
    background: transparent;
    border: none;
    outline: none;
    justify-content: center;
    align-items: center;
  }
  
  .menu a:hover,
  .menu a:active,
  .menu a:focus {
    background: #f8f9fa !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 115 !important;
    text-align: center !important;
  }
  
  .menu a:active {
    background: #e9ecef !important;
    transform: scale(0.98);
  }
  
  /* Ensure menu links are always above everything */
  .menu.active a {
    z-index: 115 !important;
    pointer-events: auto !important;
    position: relative;
    text-align: center !important;
  }
  
  /* Center the orange underline with the centered text */
  .menu a::after {
    left: 50% !important;
    transform: translateX(-50%);
  }
  
  .menu a:hover::after,
  .menu a.active::after {
    left: 50% !important;
    transform: translateX(-50%);
    width: 80%;
  }
  
  /* Add search link in mobile menu */
  .menu a[href*="search"],
  .menu .mobile-search-link {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .menu .mobile-search-link::before {
    content: "\f002";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
  }
  
  /* Hide search bar on mobile - not very important */
  .header-actions {
    display: none !important;
  }
  
  .logo img {
    height: 36px !important;
    margin-right: 6px !important;
  }
  
  .logo span {
    font-size: 18px;
  }
  
  /* User menu button - hide text, show icon only */
  #userMenuToggle {
    padding: 10px 12px !important;
    font-size: 14px !important;
    min-width: 44px;
    justify-content: center;
  }
  
  #userMenuToggle i.fa-user-circle {
    font-size: 20px !important;
    margin: 0 !important;
  }
  
  #userMenuToggle span {
    display: none !important;
  }
  
  #userMenuToggle .user-name-mobile {
    display: none !important;
  }
  
  /* Hide chevron down icon on mobile */
  #userMenuToggle i.fa-chevron-down {
    display: none !important;
  }
  
  /* User menu dropdown */
  #userMenu {
    right: 0 !important;
    left: auto !important;
    min-width: 180px !important;
    max-width: calc(100vw - 32px);
    z-index: 10000 !important;
    overflow: visible !important;
  }
  
  /* Ensure parent container doesn't clip the menu */
  header .header-actions > div[style*="position: relative"] {
    overflow: visible !important;
  }
  
  /* Login/Register buttons - hide text, show icon only */
  .nav > div:last-child .btn {
    padding: 10px 12px !important;
    font-size: 13px !important;
    min-width: 44px;
    justify-content: center;
  }
  
  .nav > div:last-child .btn span {
    display: none !important;
  }
  
  .nav > div:last-child .btn i {
    margin: 0 !important;
  }
  
  /* Cart badge */
  .cart-badge {
    flex-shrink: 0;
  }
  
  .cart-badge a {
    font-size: 20px !important;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Mini cart */
  #miniCart {
    width: calc(100vw - 32px) !important;
    max-width: 320px !important;
    right: 0 !important;
    left: auto !important;
  }
}

@media (max-width: 480px) {
  header .container {
    padding: 0 16px;
  }
  
  header {
    min-height: 65px;
  }
  
  .nav {
    gap: 10px;
    padding: 18px 0;
    min-height: 65px;
  }
  
  /* Hide logo text on very small screens */
  .logo span {
    display: none;
  }
  
  .logo {
    margin-left: 36px !important; /* Adjust for smaller menu toggle */
  }
  
  .logo img {
    height: 36px !important;
    margin-right: 6px !important;
  }
  
  /* Adjust menu toggle position for very small screens */
  .mobile-menu-toggle {
    left: 8px !important;
    padding: 0 !important;
    font-size: 26px !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
  }
  
  .mobile-menu-toggle i {
    font-size: 26px !important;
    width: 100% !important;
    height: 100% !important;
  }
  
  /* Search bar already hidden on mobile */
  .header-actions {
    display: none !important;
  }
  
  /* Mobile menu toggle */
  .mobile-menu-toggle {
    padding: 6px !important;
    font-size: 20px !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .mobile-menu-toggle i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    line-height: 1 !important;
    font-size: inherit !important;
  }
  
  /* Menu items */
  .menu {
    padding: 12px 0 !important;
    gap: 6px !important;
  }
  
  .menu a {
    padding: 10px 14px !important;
    font-size: 14px !important;
  }
  
  /* User actions area - compact spacing */
  .nav > div:last-child {
    gap: 6px;
  }
  
  /* User menu button - icon only */
  #userMenuToggle {
    padding: 8px !important;
    min-width: 36px;
  }
  
  #userMenuToggle span,
  #userMenuToggle i.fa-chevron-down {
    display: none !important;
  }
  
  #userMenuToggle i.fa-user-circle {
    font-size: 16px !important;
  }
  
  /* Login/Register buttons - icon only */
  .nav > div:last-child .btn {
    padding: 8px !important;
    font-size: 12px !important;
    min-width: 36px;
  }
  
  .nav > div:last-child .btn span {
    display: none !important;
  }
  
  .nav > div:last-child .btn i {
    font-size: 14px !important;
  }
  
  /* Cart icon */
  .cart-badge a {
    font-size: 16px !important;
    padding: 6px;
  }
  
  .cart-count {
    font-size: 10px !important;
    padding: 2px 5px !important;
    top: -6px !important;
    right: -8px !important;
  }
  
  /* Mini cart */
  #miniCart {
    padding: 0 !important;
  }
  
  #miniCartContent {
    padding: 0 16px !important;
  }
  
  #miniCart > div:last-of-type {
    padding: 16px !important;
    padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
  }
  
  /* User menu */
  #userMenu {
    min-width: 160px !important;
  }
  
  #userMenu a {
    padding: 10px 14px !important;
    font-size: 13px !important;
  }
}
.cart-badge { 
  position: relative; 
}

.cart-count {
  position: absolute; 
  top: -8px; 
  right: -10px;
  background: var(--accent); 
  color: #fff; 
  border-radius: 50%; 
  padding: 3px 7px; 
  font-size: 12px;
  transition: transform 0.3s ease;
  animation: pulse 2s infinite;
  z-index: 10;
}

/* Mini Cart Modal */
#miniCart {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 12px;
  width: 320px;
  background: #ffffff !important;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  z-index: 1000;
  padding: 20px;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#miniCart.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
  background: #ffffff !important;
}

/* Ensure cart modal content is also white */
#miniCartContent {
  background: #ffffff !important;
}

/* Cart modal positioning on large screens - position outside navbar */
@media (min-width: 769px) {
  .cart-badge {
    position: relative;
  }
  
  #miniCart {
    position: fixed;
    top: calc(var(--header-height) + 10px);
    right: 20px;
    left: auto;
    margin-top: 0;
    max-width: 320px;
    width: 320px;
    background: #ffffff !important;
  }
  
  #miniCart * {
    background-color: transparent;
  }
  
  #miniCart > * {
    background: #ffffff !important;
  }
  
  /* Ensure cart modal is above everything */
  #miniCart.show {
    z-index: 10000;
  }
}

/* Cart modal on mobile - full width with backdrop */
@media (max-width: 768px) {
  #miniCart {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    overflow: hidden;
    z-index: 1001;
    transform: translateY(100%);
    background: #ffffff !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    /* Safe area for notched devices */
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  #miniCart.show {
    transform: translateY(0);
    background: #ffffff !important;
  }
  
  /* Cart header with close button */
  #miniCart::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 12px auto 8px;
    flex-shrink: 0;
  }
  
  /* Cart header */
  #miniCart > div:first-of-type:not(#miniCartContent) {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: #ffffff !important;
  }
  
  #miniCart > div:first-of-type:not(#miniCartContent) h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d3b5a;
  }
  
  #miniCart > div:first-of-type:not(#miniCartContent) button,
  #miniCart > div:first-of-type:not(#miniCartContent) .close-cart {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background 0.2s;
  }
  
  #miniCart > div:first-of-type:not(#miniCartContent) button:hover,
  #miniCart > div:first-of-type:not(#miniCartContent) .close-cart:hover {
    background: #f0f0f0;
  }
  
  /* Cart content - scrollable area */
  #miniCartContent {
    background: #ffffff !important;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
  }
  
  #miniCartContent > div {
    background: #ffffff !important;
    padding: 8px 0;
  }
  
  /* Cart items styling */
  #miniCartContent > div > div {
    padding: 12px 0 !important;
    border-bottom: 1px solid #f0f0f0;
  }
  
  #miniCartContent > div > div:last-child {
    border-bottom: none;
  }
  
  /* Cart footer */
  #miniCart > div:last-of-type {
    padding: 16px;
    border-top: 1px solid #e9ecef;
    background: #ffffff !important;
    flex-shrink: 0;
    /* Safe area for notched devices */
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
  
  #miniCart > div:last-of-type > div {
    margin-bottom: 12px;
    padding: 0;
  }
  
  #miniCart > div:last-of-type .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    margin: 0;
  }
  
  /* Ensure all divs inside cart are white */
  #miniCart div {
    background: #ffffff !important;
  }
  
  /* Cart modal backdrop on mobile */
  .cart-backdrop {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: none !important; /* Don't block clicks when hidden */
  }
  
  .cart-backdrop.active {
    display: block !important;
    opacity: 1;
    pointer-events: auto !important; /* Allow clicks when active */
  }
  
  /* Ensure cart backdrop doesn't block when not active */
  .cart-backdrop:not(.active) {
    pointer-events: none !important;
    z-index: -1 !important;
  }
  
  body.cart-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 138, 91, 0.7); }
  50% { box-shadow: 0 0 0 8px rgba(255, 138, 91, 0); }
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 40px 0 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 Q300,20 600,60 T1200,60 L1200,120 L0,120 Z' fill='rgba(255, 138, 91, 0.25)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 Q300,40 600,60 T1200,60 L1200,120 L0,120 Z' fill='rgba(255, 138, 91, 0.2)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 Q300,10 600,60 T1200,60 L1200,120 L0,120 Z' fill='rgba(255, 138, 91, 0.15)'/%3E%3C/svg%3E");
  background-size: 200% 220px, 180% 200px, 160% 180px;
  background-position: 0% bottom, 0% bottom, 0% bottom;
  background-repeat: repeat-x;
  z-index: 0;
  pointer-events: none;
  animation: wave-animate 15s ease-in-out infinite;
  opacity: 0.8;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 138, 91, 0.1) 50%, rgba(255, 138, 91, 0.2) 100%);
  z-index: 0;
  pointer-events: none;
}

.hero > div {
  position: relative;
  z-index: 1;
}

.hero-visual {
  position: relative;
  z-index: 1;
}

@keyframes wave-animate {
  0% {
    background-position: 0% bottom, 0% bottom, 0% bottom;
  }
  50% {
    background-position: -100% bottom, -80% bottom, -60% bottom;
  }
  100% {
    background-position: -200% bottom, -160% bottom, -120% bottom;
  }
}
.hero-visual {
  position: relative;
  background: linear-gradient(180deg, #e7f7ff, #fff);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-scroll-images {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(154, 212, 255, 0.15), rgba(184, 230, 200, 0.15), rgba(249, 193, 141, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.carousel-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  /* Animation disabled - controlled by JavaScript for better timing */
  /* animation: rotate-carousel 20s infinite linear; */
  transform: rotateY(0deg);
  transition: transform 800ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.carousel-3d:hover {
  /* animation-play-state: paused; */
  /* Hover pause is now handled by JavaScript */
}

.carousel-item {
  position: absolute;
  width: auto;
  height: auto;
  max-width: 250px;
  max-height: 300px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.carousel-item img {
  width: 100%;
  height: 100%;
  max-width: 250px;
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
  transition: transform 0.5s ease;
  display: block;
}

.carousel-item[data-index="0"] {
  transform: translate(-50%, -50%) rotateY(0deg) translateZ(280px);
  animation: float-0 3s ease-in-out infinite;
}

.carousel-item[data-index="1"] {
  transform: translate(-50%, -50%) rotateY(51.43deg) translateZ(280px);
  animation: float-1 3s ease-in-out infinite 0.15s;
}

.carousel-item[data-index="2"] {
  transform: translate(-50%, -50%) rotateY(102.86deg) translateZ(280px);
  animation: float-2 3s ease-in-out infinite 0.3s;
}

.carousel-item[data-index="3"] {
  transform: translate(-50%, -50%) rotateY(154.29deg) translateZ(280px);
  animation: float-3 3s ease-in-out infinite 0.45s;
}

.carousel-item[data-index="4"] {
  transform: translate(-50%, -50%) rotateY(205.71deg) translateZ(280px);
  animation: float-4 3s ease-in-out infinite 0.6s;
}

.carousel-item[data-index="5"] {
  transform: translate(-50%, -50%) rotateY(257.14deg) translateZ(280px);
  animation: float-5 3s ease-in-out infinite 0.75s;
}

.carousel-item[data-index="6"] {
  transform: translate(-50%, -50%) rotateY(308.57deg) translateZ(280px);
  animation: float-6 3s ease-in-out infinite 0.9s;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
  pointer-events: none;
  z-index: 1;
}

.carousel-item:hover {
  transform: translate(-50%, -50%) scale(1.15) translateZ(50px);
}

.carousel-item:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.3));
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(29, 59, 90, 0.3);
}

.carousel-dots .dot.active {
  background: #1d3b5a;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(29, 59, 90, 0.5);
}

.carousel-dots .dot:hover {
  transform: scale(1.2);
  background: rgba(29, 59, 90, 0.7);
}

@keyframes rotate-carousel {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes float-0 {
  0%, 100% {
    transform: translate(-50%, -50%) rotateY(0deg) translateZ(280px) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) rotateY(0deg) translateZ(280px) translateY(-15px);
  }
}

@keyframes float-1 {
  0%, 100% {
    transform: translate(-50%, -50%) rotateY(51.43deg) translateZ(280px) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) rotateY(51.43deg) translateZ(280px) translateY(-15px);
  }
}

@keyframes float-2 {
  0%, 100% {
    transform: translate(-50%, -50%) rotateY(102.86deg) translateZ(280px) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) rotateY(102.86deg) translateZ(280px) translateY(-15px);
  }
}

@keyframes float-3 {
  0%, 100% {
    transform: translate(-50%, -50%) rotateY(154.29deg) translateZ(280px) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) rotateY(154.29deg) translateZ(280px) translateY(-15px);
  }
}

@keyframes float-4 {
  0%, 100% {
    transform: translate(-50%, -50%) rotateY(205.71deg) translateZ(280px) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) rotateY(205.71deg) translateZ(280px) translateY(-15px);
  }
}

@keyframes float-5 {
  0%, 100% {
    transform: translate(-50%, -50%) rotateY(257.14deg) translateZ(280px) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) rotateY(257.14deg) translateZ(280px) translateY(-15px);
  }
}

@keyframes float-6 {
  0%, 100% {
    transform: translate(-50%, -50%) rotateY(308.57deg) translateZ(280px) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) rotateY(308.57deg) translateZ(280px) translateY(-15px);
  }
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

@media (max-width: 768px) {
  .hero-scroll-images {
    min-height: 300px;
    perspective: 800px;
  }
  
  .carousel-item {
    max-width: 180px;
    max-height: 220px;
  }
  
  .carousel-item img {
    max-width: 180px;
    max-height: 220px;
  }
  
  .carousel-item[data-index="0"] {
    transform: translate(-50%, -50%) rotateY(0deg) translateZ(200px);
  }
  .carousel-item[data-index="1"] {
    transform: translate(-50%, -50%) rotateY(51.43deg) translateZ(200px);
  }
  .carousel-item[data-index="2"] {
    transform: translate(-50%, -50%) rotateY(102.86deg) translateZ(200px);
  }
  .carousel-item[data-index="3"] {
    transform: translate(-50%, -50%) rotateY(154.29deg) translateZ(200px);
  }
  .carousel-item[data-index="4"] {
    transform: translate(-50%, -50%) rotateY(205.71deg) translateZ(200px);
  }
  .carousel-item[data-index="5"] {
    transform: translate(-50%, -50%) rotateY(257.14deg) translateZ(200px);
  }
  .carousel-item[data-index="6"] {
    transform: translate(-50%, -50%) rotateY(308.57deg) translateZ(200px);
  }
  
  .carousel-dots {
    bottom: 15px;
  }
  
  .carousel-dots .dot {
    width: 10px;
    height: 10px;
  }
}
.hero-bubbles div {
  position: absolute;
  border-radius: 50%;
  background: rgba(154, 212, 255, 0.3);
}
.hero-bubbles .b1 { width: 120px; height: 120px; top: 12%; left: 10%; }
.hero-bubbles .b2 { width: 80px; height: 80px; bottom: 18%; right: 12%; background: rgba(249,193,141,0.35); }
.hero-bubbles .b3 { width: 60px; height: 60px; bottom: 35%; left: 45%; background: rgba(184,230,200,0.45); }

.hero h1 { 
  font-size: 32px; 
  margin: 0 0 12px; 
  line-height: 1.3;
  font-weight: 700;
}
.hero p { 
  margin: 0 0 18px; 
  color: #4a4a55; 
  line-height: 1.6;
  font-size: 16px;
}
.hero .tag {
  font-size: 12px;
  padding: 6px 12px;
  margin-bottom: 12px;
  display: inline-block;
}
.hero .cta { 
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap; 
}
.hero .cta .btn {
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
}

.section { padding: 60px 0; }
.section h2 { 
  margin: 0 0 40px; 
  font-size: 32px; 
  font-weight: 700;
  color: #1d3b5a;
  text-align: center;
}
.pill {
  background: #fff; border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow);
}
.benefits {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 24px;
  visibility: visible !important;
  opacity: 1 !important;
}
.benefit { 
  background: #fff !important; 
  padding: 28px 24px !important; 
  border-radius: var(--radius); 
  box-shadow: var(--shadow); 
  min-height: 240px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: visible;
  text-align: center;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 1;
}

.benefit > div:first-child {
  font-size: 42px !important;
  margin-bottom: 16px !important;
  line-height: 1;
  display: block !important;
  visibility: visible !important;
}

.benefit h4 {
  margin: 0 0 12px !important;
  color: #1d3b5a !important;
  font-size: 18px !important;
  font-weight: 600;
  line-height: 1.3;
  display: block !important;
  visibility: visible !important;
}

.benefit p {
  margin: 0 !important;
  font-size: 14px !important;
  color: #666 !important;
  line-height: 1.6;
  flex: 1;
  display: block !important;
  visibility: visible !important;
}

/* Override AOS to ensure elements are always visible - MUST be after AOS CSS loads */
[data-aos] {
  opacity: 1 !important;
  visibility: visible !important;
}

[data-aos].aos-init {
  opacity: 1 !important;
  visibility: visible !important;
}

[data-aos].aos-animate {
  opacity: 1 !important;
  visibility: visible !important;
}

.benefit[data-aos],
.benefit[data-aos].aos-init,
.benefit[data-aos].aos-animate {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  display: flex !important;
}

.trust .pill[data-aos],
.trust .pill[data-aos].aos-init,
.trust .pill[data-aos].aos-animate {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(0) translateY(0) !important;
  display: flex !important;
}

/* Ensure sections and containers are visible */
#benefits,
#trust {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.benefits {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 24px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.trust {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 24px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.benefit,
.trust .pill {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .benefits {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .trust {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .benefit {
    min-height: auto;
    padding: 20px;
  }
  
  .trust .pill {
    min-height: auto;
    padding: 24px 20px;
  }
  
  .section h2 {
    font-size: 26px;
    margin-bottom: 30px;
  }
}
.benefit::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(154, 212, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
  pointer-events: none;
}
.benefit:hover::after {
  width: 300px;
  height: 300px;
}
.benefit:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}
.benefit h4 { margin: 0 0 8px; }

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  justify-items: start;
}
/* Center single product card and limit max width */
.products:has(.product-card:only-child),
.products.single-product {
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  max-width: 400px !important;
  margin: 0 auto !important;
}
.products:has(.product-card:only-child) .product-card,
.products.single-product .product-card {
  max-width: 400px !important;
  width: 100% !important;
}
.product-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
  z-index: 1;
  pointer-events: none;
}
.product-card:hover::before {
  left: 100%;
}
.product-card:hover { 
  transform: translateY(-8px) scale(1.02); 
  box-shadow: 0 20px 50px rgba(0,0,0,0.15); 
}
/* Product card image container - maintains fixed aspect ratio */
.product-card > a,
.product-card > div > a {
  display: block;
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 aspect ratio - adjust as needed */
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 50%, #f5f5f5 100%);
  background-size: 200% 200%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  overflow: hidden;
}
.product-card > a:has(img.loaded),
.product-card > div > a:has(img.loaded),
.product-card a:has(img[style*="opacity: 1"]) {
  animation: none !important;
  background: transparent !important;
  background-size: auto !important;
}
.product-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease, opacity 0.3s ease;
  opacity: 0;
  display: block;
  z-index: 2;
}
.product-card img.loaded,
.product-card img[style*="opacity: 1"] {
  opacity: 1 !important;
}
.product-card:hover img {
  transform: scale(1.1);
}
/* Skeleton loader animation */
@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
/* Alternative: shimmer effect for skeleton */
.product-card .image-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.product-card img.loaded ~ .image-loader,
.product-card img.loaded + .image-loader,
.product-card a:has(img.loaded) .image-loader,
.product-card .image-loader.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}
.product-card a:has(img[style*="opacity: 1"]) .image-loader {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.product-card .body { padding: 16px; }
.product-card h3 { margin: 0 0 6px; font-size: 18px; }
.product-meta { font-size: 14px; color: #4c5563; }
.price { font-weight: 800; margin: 10px 0; }
.tag { display: inline-block; background: var(--cream); padding: 4px 10px; border-radius: 12px; font-size: 12px; }

.trust {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 24px;
  visibility: visible !important;
  opacity: 1 !important;
}

.trust .pill {
  padding: 32px 24px !important;
  text-align: center;
  min-height: 220px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  visibility: visible !important;
  opacity: 1 !important;
  background: #fff !important;
}

.trust .pill:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.trust .pill > div:first-child {
  font-size: 48px !important;
  margin-bottom: 16px !important;
  line-height: 1;
  display: block !important;
  visibility: visible !important;
}

.trust .pill h3 {
  margin: 0 0 14px !important;
  color: #1d3b5a !important;
  font-size: 20px !important;
  font-weight: 600;
  line-height: 1.3;
  display: block !important;
  visibility: visible !important;
}

.trust .pill p {
  margin: 0 !important;
  color: #666 !important;
  line-height: 1.7;
  font-size: 14px !important;
  flex: 1;
  display: block !important;
  visibility: visible !important;
}

/* Hide share buttons in trust section on homepage */
#trust #social-share-buttons,
#trust .social-share-buttons,
.trust #social-share-buttons,
.trust .social-share-buttons {
  display: none !important;
  visibility: hidden !important;
}

.testimonials { 
  position: relative; 
  padding: 60px 0;
  background: linear-gradient(135deg, rgba(154, 212, 255, 0.05) 0%, rgba(184, 230, 200, 0.05) 100%);
}
.testimonial-card { 
  background: #fff !important; 
  padding: 32px 24px !important; 
  border-radius: 24px !important; 
  box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
  height: 100% !important;
  min-height: 280px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(154, 212, 255, 0.2) !important;
  width: 100% !important;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 16px;
  font-size: 80px;
  color: rgba(154, 212, 255, 0.15);
  font-family: Georgia, serif;
  line-height: 1;
  z-index: 0;
}
.testimonial-card > * {
  position: relative;
  z-index: 1;
}
.testimonial-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
  border-color: rgba(154, 212, 255, 0.4) !important;
}
.testimonial-card .stars { 
  color: #f4b400 !important; 
  font-size: 20px !important;
  margin-bottom: 16px !important;
  letter-spacing: 2px !important;
  line-height: 1 !important;
  display: block !important;
}
.testimonial-card p {
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: #495057 !important;
  margin-bottom: 20px !important;
  flex: 1 !important;
  font-style: italic !important;
  display: block !important;
}
.testimonial-card strong {
  color: #1d3b5a !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin-top: auto !important;
  display: block !important;
}

/* NEW Redesigned Testimonials Section */
.testimonials-container {
  position: relative;
  width: 100%;
  padding: 0;
  margin: 0 auto;
  max-width: 100%;
}

.testimonial-swiper-new {
  position: relative;
  width: 100%;
  padding: 0 70px;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.testimonial-swiper-new .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.testimonial-swiper-new .swiper-slide {
  height: auto;
  display: flex;
  box-sizing: border-box;
}

.review-card {
  background: #fff; 
  padding: 32px 24px; 
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(154, 212, 255, 0.2);
  width: 100%;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 16px;
  font-size: 80px;
  color: rgba(154, 212, 255, 0.15);
  font-family: Georgia, serif;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
}

.review-card > * {
  position: relative;
  z-index: 1;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  border-color: rgba(154, 212, 255, 0.4);
}

.review-card .stars {
  color: #f4b400; 
  font-size: 20px;
  margin-bottom: 16px;
  letter-spacing: 2px;
  line-height: 1;
  display: block;
}

.review-card p {
  font-size: 16px;
  line-height: 1.7;
  color: #495057;
  margin-bottom: 20px;
  flex: 1;
  font-style: italic;
  display: block;
}

.review-card strong {
  color: #1d3b5a;
  font-size: 14px;
  font-weight: 600;
  margin-top: auto;
  display: block;
}

/* Navigation Buttons */
.testimonial-swiper-new .swiper-button-next,
.testimonial-swiper-new .swiper-button-prev {
  color: #1d3b5a;
  background: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  z-index: 10;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-swiper-new .swiper-button-next {
  right: 10px;
}

.testimonial-swiper-new .swiper-button-prev {
  left: 10px;
}

.testimonial-swiper-new .swiper-button-next:hover,
.testimonial-swiper-new .swiper-button-prev:hover {
  background: #1d3b5a;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(29, 59, 90, 0.3);
}

.testimonial-swiper-new .swiper-button-next::after,
.testimonial-swiper-new .swiper-button-prev::after {
  font-size: 18px;
  font-weight: 700;
}

.testimonial-swiper-new .swiper-pagination {
  position: relative;
  margin-top: 32px;
  bottom: auto;
  text-align: center;
}

.testimonial-swiper-new .swiper-pagination-bullet {
  background: #1d3b5a;
  opacity: 0.3;
  width: 10px;
  height: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 0 4px;
}

.testimonial-swiper-new .swiper-pagination-bullet:hover {
  opacity: 0.6;
}

.testimonial-swiper-new .swiper-pagination-bullet-active {
  opacity: 1;
  width: 24px;
  border-radius: 5px;
  background: #1d3b5a;
}

/* Old Swiper Navigation Buttons for Testimonials - keeping for backward compatibility */
.testimonial-swiper {
  position: relative;
  padding: 0 60px;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
}
.testimonial-swiper .swiper-wrapper {
  display: flex !important;
  align-items: stretch !important;
  transition-timing-function: ease-in-out !important;
  box-sizing: border-box !important;
}
.testimonial-swiper .swiper-slide {
  height: auto !important;
  display: flex !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}
.testimonial-swiper .swiper-slide .testimonial-card {
  width: 100% !important;
  margin: 0 !important;
}
.testimonial-swiper .swiper-button-next,
.testimonial-swiper .swiper-button-prev {
  color: #1d3b5a !important;
  background: #fff !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
  transition: all 0.3s ease !important;
  z-index: 99999 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin-top: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: rgba(29, 59, 90, 0.1) !important;
}
.testimonial-swiper .swiper-button-next {
  right: 0 !important;
}
.testimonial-swiper .swiper-button-prev {
  left: 0 !important;
}
.testimonial-swiper .swiper-button-next:hover,
.testimonial-swiper .swiper-button-prev:hover {
  background: #1d3b5a !important;
  color: #fff !important;
  transform: translateY(-50%) scale(1.1) !important;
  box-shadow: 0 6px 20px rgba(29, 59, 90, 0.3) !important;
}
.testimonial-swiper .swiper-button-next:active,
.testimonial-swiper .swiper-button-prev:active {
  transform: translateY(-50%) scale(0.95) !important;
  background: #0f2440 !important;
}
.testimonial-swiper .swiper-button-next::after,
.testimonial-swiper .swiper-button-prev::after {
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  pointer-events: none !important;
}
.testimonial-swiper .swiper-button-next.swiper-button-disabled,
.testimonial-swiper .swiper-button-prev.swiper-button-disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}
/* Ensure buttons are always on top and clickable */
.testimonial-swiper .swiper-button-next *,
.testimonial-swiper .swiper-button-prev * {
  pointer-events: none !important;
}
.testimonial-swiper .swiper-pagination {
  position: relative !important;
  margin-top: 32px !important;
  bottom: auto !important;
  left: auto !important;
  width: auto !important;
}
.testimonial-swiper .swiper-pagination-bullet {
  background: #1d3b5a !important;
  opacity: 0.3 !important;
  width: 10px !important;
  height: 10px !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  margin: 0 4px !important;
}
.testimonial-swiper .swiper-pagination-bullet:hover {
  opacity: 0.6 !important;
}
.testimonial-swiper .swiper-pagination-bullet-active {
  opacity: 1 !important;
  width: 24px !important;
  border-radius: 5px !important;
  background: #1d3b5a !important;
}
/* Duplicate rules removed - already defined above */

.cta-banner {
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: visible;
  animation: gradient-shift 8s ease infinite;
  background-size: 200% 200%;
}
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* Removed rotating .cta-banner::before element - explicitly disabled */
.cta-banner::before {
  content: '' !important;
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  animation: none !important;
  transform: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  top: 0 !important;
  left: 0 !important;
  background: transparent !important;
  pointer-events: none !important;
  z-index: -1 !important;
}
.cta-banner > * {
  position: relative;
  z-index: 1;
}

/* Hide comparison buttons - removed per user request */
.compare-btn {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

footer { background: #1c2c3d; color: #f6f6f6; padding: 32px 0; }
footer .columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; }
footer a { color: #e7f0ff; }

/* Social Icons */
footer .social-icons {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

footer .social-icons a {
  color: #fff;
  font-size: 24px;
  transition: transform 0.3s ease, color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

footer .social-icons a:hover {
  transform: scale(1.2);
}

footer .social-icons a[aria-label="Instagram"]:hover {
  color: #E4405F;
}

footer .social-icons a[aria-label="Facebook"]:hover {
  color: #1877F2;
}

footer .social-icons a[aria-label="WhatsApp"]:hover {
  color: #25D366;
}

.shop-filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.input { width: 100%; padding: 12px; border-radius: var(--radius); border: 1px solid #d9e2ec; background: #fff; }
.input[type="file"] {
  padding: 8px;
  cursor: pointer;
  background: #f8f9fa;
  border: 2px dashed #d9e2ec;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.input[type="file"]:hover {
  border-color: var(--blue);
  background: #f0f7ff;
}
.input[type="file"]::file-selector-button {
  padding: 8px 16px;
  margin-right: 12px;
  border-radius: var(--radius);
  border: none;
  background: var(--blue);
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}
.input[type="file"]::file-selector-button:hover {
  background: var(--green);
}
.form-group { margin-bottom: 14px; }
.grid-1 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 14px; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 12px; text-align: left; background: #fff; }
.cart-table th { background: #f3f7fb; }

.admin-bar { display: flex; justify-content: space-between; align-items: center; }
.badge { padding: 6px 10px; border-radius: 12px; background: #eef5ff; color: #204070; font-weight: 600; }

.payment-redirect { display:flex; align-items:center; justify-content:center; min-height:100vh; }
.payment-redirect .container { text-align:center; background:#fff; padding:24px; border-radius:16px; box-shadow:var(--shadow); }

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Fade in animation for page load */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  animation: fadeIn 0.6s ease-out;
}

/* Icon styling */
i.fas, i.far, i.fal, i.fab {
  margin-right: 6px;
}
.btn i:only-child, .btn i:last-child {
  margin-right: 0;
  margin-left: 6px;
}
.btn i:first-child:not(:only-child) {
  margin-right: 6px;
  margin-left: 0;
}

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea {
  transition: all 0.3s ease;
}

/* Hover effects for menu items */
.menu a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* Cart icon animation */
.cart-badge a {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 20px;
  color: var(--text);
}
.cart-badge a:hover {
  transform: scale(1.2) rotate(10deg);
  color: var(--accent);
}

/* Product card tag animation */
.tag {
  transition: transform 0.3s ease, background 0.3s ease;
}
.product-card:hover .tag {
  transform: scale(1.05);
  background: var(--orange);
  color: #fff;
}

/* Testimonial card hover */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Input focus animations */
.input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(154, 212, 255, 0.2);
  transform: translateY(-2px);
}

/* User menu styles */
.user-name-desktop { display: inline; }
.user-name-mobile { display: none; }
.login-text-desktop { display: inline; }
.login-text-mobile { display: none; }
.register-text-desktop { display: inline; }
.register-text-mobile { display: none; }

/* Ensure user menu is fully visible - highest z-index and no clipping */
#userMenu {
  position: absolute !important;
  z-index: 999999 !important;
  overflow: visible !important;
  max-height: none !important;
  transform: none !important;
  clip: auto !important;
  clip-path: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  will-change: auto !important;
  contain: none !important;
  isolation: auto !important;
  backface-visibility: visible !important;
  -webkit-backface-visibility: visible !important;
  filter: none !important;
  backdrop-filter: none !important;
}

/* Ensure header backdrop doesn't interfere with menu */
header.scrolled {
  z-index: 50 !important;
}

/* Ensure menu is above header backdrop */
header {
  z-index: 50 !important;
}

/* Ensure user menu parent doesn't clip */
.header-actions > div[style*="position: relative"] {
  overflow: visible !important;
  z-index: 1000 !important;
  contain: none !important;
}

/* Ensure parent containers don't clip the menu */
header,
.nav,
.header-actions,
.header-actions > div[style*="position: relative"],
.header-actions > div,
.container {
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
}

/* Ensure user menu is never clipped */
body,
html {
  overflow-x: hidden;
  overflow-y: auto;
}

/* Force user menu to be above everything - ensure it's never clipped */
#userMenu {
  position: absolute !important;
  z-index: 999999 !important;
  overflow: visible !important;
  max-height: none !important;
  transform: none !important;
  clip: auto !important;
  clip-path: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  will-change: auto !important;
  contain: none !important;
  isolation: auto !important;
  backface-visibility: visible !important;
  -webkit-backface-visibility: visible !important;
  filter: none !important;
  backdrop-filter: none !important;
}

/* Ensure header backdrop doesn't interfere with menu */
header.scrolled {
  z-index: 50 !important;
}

/* Ensure menu is above header backdrop */
header {
  z-index: 50 !important;
}

#userMenu a:hover {
  background: #f8f9fa;
}

@media (max-width: 768px) {
  .user-name-desktop { display: none; }
  .user-name-mobile { display: inline; }
  .login-text-desktop { display: none; }
  .login-text-mobile { display: inline; }
  .register-text-desktop { display: none; }
  .register-text-mobile { display: inline; }
  
  .nav {
    flex-wrap: wrap;
  }
  
  .menu {
    order: 3;
    width: 100%;
    margin-top: 12px;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .hero h1 { font-size: 40px; }
}

/* Large screens - reduce top padding */
@media (min-width: 1024px) {
  .hero {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================ */

/* Base mobile styles (up to 768px) */
@media (max-width: 768px) {
  /* CRITICAL: Ensure body and main are clickable */
  body, html {
    pointer-events: auto !important;
    position: relative !important;
  }
  
  main {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 100 !important; /* Higher than overlays to ensure content is clickable */
  }
  
  /* Ensure all content sections are above potential blockers */
  main section,
  main .section,
  main .container,
  main > * {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 100 !important;
  }
  
  /* Ensure containers don't block */
  .container {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 100 !important;
  }
  
  /* Ensure all page content is above blockers */
  body > *:not(header):not(script):not(style) {
    pointer-events: auto !important;
    position: relative !important;
  }
  
  /* Ensure all interactive elements work */
  button, a, input, select, textarea, [role="button"], .btn, .product-card {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    position: relative !important;
    z-index: 101 !important;
  }
  
  /* Container adjustments */
  .container {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
  
  /* Typography */
  h1 {
    font-size: 28px !important;
    line-height: 1.3;
  }
  
  h2 {
    font-size: 24px !important;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 20px !important;
  }
  
  /* Hero section */
  .hero {
    padding: 24px 16px 20px !important;
    gap: 20px;
  }
  
  .hero > div:first-child {
    padding: 0 !important;
  }
  
  .hero .tag {
    font-size: 11px !important;
    padding: 6px 12px !important;
    margin-bottom: 12px !important;
    display: inline-block !important;
  }
  
  .hero h1 {
    font-size: 26px !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
    font-weight: 700 !important;
  }
  
  .hero p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    color: #4a4a55 !important;
  }
  
  .hero .cta {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  
  .hero .cta .btn {
    width: 100% !important;
    text-align: center !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    display: block !important;
  }
  
  /* Section padding */
  .section {
    padding: 40px 0;
  }
  
  .section h2 {
    font-size: 24px !important;
    margin-bottom: 30px;
  }
  
  /* Grid layouts - stack on mobile */
  .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  
  /* Center checkout form on small screens - only for checkout page */
  .checkout section.container .grid-2,
  .checkout .section.container .grid-2,
  .checkout section.section.container .grid-2 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    width: 100% !important;
    justify-items: center !important;
  }
  
  /* Product page and other pages - no center alignment */
  section.container .grid-2,
  .section.container .grid-2,
  section.section.container .grid-2 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    width: 100% !important;
    justify-items: stretch !important;
  }
  
  section.container .grid-2 > div,
  .section.container .grid-2 > div,
  section.section.container .grid-2 > div {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  section.container .grid-2 form,
  .section.container .grid-2 form,
  section.section.container .grid-2 form,
  section.container .grid-2 .pill,
  .section.container .grid-2 .pill,
  section.section.container .grid-2 .pill {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  
  .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  /* Products grid */
  .products {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
    gap: 16px !important;
  }
  
  /* Product cards - ensure all are clickable */
  .product-card {
    border-radius: 16px;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    cursor: pointer !important;
    position: relative !important;
    -webkit-tap-highlight-color: rgba(29, 59, 90, 0.1) !important;
  }
  
  /* Don't force pointer-events on all children - let them inherit naturally */
  
  .product-card a {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    z-index: 10 !important;
    position: relative !important;
    display: block !important;
  }
  
  .product-card button,
  .product-card .btn,
  .product-card [data-add-to-cart],
  .product-card .wishlist-btn {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    z-index: 100 !important;
    position: relative !important;
    cursor: pointer !important;
  }
  
  .product-card .body {
    padding: 12px !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    position: relative !important;
    cursor: pointer !important;
  }
  
  .product-card .body * {
    pointer-events: auto !important;
  }
  
  .product-card .body button,
  .product-card .body .btn {
    pointer-events: auto !important;
    z-index: 100 !important;
  }
  
  /* Quick View Button - Hidden on Mobile */
  .quick-view-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  
  .quick-view-btn i {
    font-size: 10px !important;
    pointer-events: none !important;
  }
  
  .quick-view-btn:active {
    transform: scale(0.95) !important;
    background: #fff !important;
  }
  
  /* Product Page Image Navigation Buttons - Mobile Styles */
  .image-nav-btn {
    position: absolute !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    color: #1d3b5a !important;
    transition: all 0.3s !important;
    z-index: 10002 !important;
    opacity: 0.9 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    left: 8px !important;
  }
  
  .image-nav-btn#nextImageBtn {
    left: auto !important;
    right: 8px !important;
  }
  
  .image-nav-btn i {
    pointer-events: none !important;
  }
  
  .image-nav-btn:active {
    transform: translateY(-50%) scale(0.9) !important;
    background: #fff !important;
    opacity: 1 !important;
  }
  
  .image-nav-btn#prevImageBtn:active {
    transform: translateY(-50%) scale(0.9) !important;
  }
  
  .image-nav-btn#nextImageBtn:active {
    transform: translateY(-50%) scale(0.9) !important;
  }
  
  /* Wishlist Button in Product Cards - Mobile Styles */
  .product-card .wishlist-btn {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    color: #666 !important;
    transition: all 0.3s !important;
    z-index: 100 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    outline: none !important;
  }
  
  .product-card .wishlist-btn i {
    pointer-events: none !important;
  }
  
  .product-card .wishlist-btn:active {
    transform: scale(0.9) !important;
    background: #f8f9fa !important;
  }
  
  .product-card .wishlist-btn[data-wishlist="remove"] {
    color: #ff8a5b !important;
  }
  
  /* Wishlist Button in Product Page Image Container - Mobile Styles */
  .product-image-main .wishlist-btn {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    color: #666 !important;
    transition: all 0.3s !important;
    z-index: 1002 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    outline: none !important;
  }
  
  .product-image-main .wishlist-btn i {
    pointer-events: none !important;
  }
  
  .product-image-main .wishlist-btn:active {
    transform: scale(0.9) !important;
    background: #f8f9fa !important;
  }
  
  .product-image-main .wishlist-btn[data-wishlist="remove"] {
    color: #ff8a5b !important;
  }
  
  .product-card h3,
  .product-card .price,
  .product-card .tag,
  .product-card .product-meta,
  .product-card p:not(.price) {
    pointer-events: auto !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
  }
  
  .product-card h3 {
    font-size: 16px !important;
    margin-bottom: 6px;
  }
  
  .product-card .price {
    font-size: 18px !important;
    margin: 8px 0;
  }
  
  .product-card .btn {
    padding: 10px !important;
    font-size: 14px !important;
  }
  
  .product-card::before,
  .product-card::after {
    pointer-events: none !important;
  }
  
  /* Ensure images don't block clicks */
  .product-card img {
    pointer-events: none !important;
  }
  
  .product-card a img {
    pointer-events: none !important;
  }
  
  /* Benefits and Trust sections */
  .benefits,
  .trust {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .benefit,
  .trust .pill {
    padding: 20px !important;
    min-height: auto !important;
  }
  
  .benefit > div:first-child,
  .trust .pill > div:first-child {
    font-size: 36px !important;
    margin-bottom: 12px !important;
  }
  
  .benefit h4,
  .trust .pill h3 {
    font-size: 16px !important;
    margin-bottom: 10px !important;
  }
  
  .benefit p,
  .trust .pill p {
    font-size: 13px !important;
  }
  
  /* Override inline font sizes on mobile - comprehensive text responsiveness */
  [style*="font-size: 48px"],
  h1[style*="font-size: 48px"] {
    font-size: 28px !important;
    line-height: 1.3 !important;
  }
  
  [style*="font-size: 32px"],
  h1[style*="font-size: 32px"] {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }
  
  [style*="font-size: 28px"] {
    font-size: 22px !important;
  }
  
  [style*="font-size: 24px"] {
    font-size: 20px !important;
  }
  
  [style*="font-size: 20px"] {
    font-size: 18px !important;
  }
  
  [style*="font-size: 18px"] {
    font-size: 16px !important;
  }
  
  [style*="font-size: 16px"] {
    font-size: 15px !important;
  }
  
  /* Paragraph text responsiveness */
  p[style*="font-size"] {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }
  
  /* Label text responsiveness */
  label[style*="font-size"] {
    font-size: 14px !important;
  }
  
  /* Small text responsiveness */
  small,
  span[style*="font-size: 14px"],
  span[style*="font-size: 12px"] {
    font-size: 12px !important;
  }
  
  /* Icon sizes - keep proportional */
  i[style*="font-size: 48px"] {
    font-size: 36px !important;
  }
  
  i[style*="font-size: 32px"] {
    font-size: 28px !important;
  }
  
  i[style*="font-size: 24px"] {
    font-size: 20px !important;
  }
  
  i[style*="font-size: 20px"] {
    font-size: 18px !important;
  }
  
  /* Price text responsiveness */
  .price[style*="font-size: 28px"] {
    font-size: 22px !important;
  }
  
  .price[style*="font-size: 24px"] {
    font-size: 20px !important;
  }
  
  /* Button text responsiveness */
  .btn[style*="font-size: 18px"],
  .btn[style*="font-size: 16px"] {
    font-size: 14px !important;
  }
  
  /* Section headings */
  h2[style*="font-size"],
  h3[style*="font-size: 18px"] {
    font-size: 20px !important;
  }
  
  /* Product page specific */
  .product-page h1[style*="font-size: 32px"] {
    font-size: 24px !important;
  }
  
  .product-page .price[style*="font-size: 28px"] {
    font-size: 22px !important;
  }
  
  /* About/Contact page headings */
  section h1[style*="font-size: 48px"] {
    font-size: 28px !important;
  }
  
  /* Profile page statistics */
  [style*="font-size: 28px"][style*="font-weight: 700"] {
    font-size: 24px !important;
  }
  
  [style*="font-size: 32px"][style*="color: #ff8a5b"] {
    font-size: 28px !important;
  }
  
  /* Cart table - convert to cards on mobile */
  .cart-table {
    display: block;
    width: 100%;
  }
  
  .cart-table thead {
    display: none;
  }
  
  .cart-table tbody {
    display: block;
  }
  
  .cart-table tr {
    display: block;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
  }
  
  .cart-table td {
    display: block;
    padding: 8px 0;
    text-align: left !important;
    border: none;
  }
  
  .cart-table td:before {
    content: attr(data-label);
    font-weight: 600;
    color: #1d3b5a;
    display: block;
    margin-bottom: 4px;
  }
  
  .cart-table td:first-child {
    font-weight: 600;
    font-size: 16px;
    color: #1d3b5a;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 12px;
  }
  
  .cart-table td:last-child {
    padding-top: 12px;
  }
  
  .cart-table .input {
    width: 100% !important;
    max-width: 100px;
  }
  
  .cart-table .btn {
    width: 100%;
    padding: 10px;
  }
  
  /* Checkout page */
  .checkout .grid-2 {
    gap: 24px !important;
  }
  
  .checkout .pill {
    padding: 20px !important;
  }
  
  .checkout form .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  /* Center checkout form on small screens */
  section.container .grid-2,
  .section.container .grid-2 {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 24px !important;
    width: 100% !important;
  }
  
  section.container .grid-2 > div,
  .section.container .grid-2 > div {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Product page - remove center alignment for product info */
  section.container .grid-2 > div:not(.checkout),
  .section.container .grid-2 > div:not(.checkout) {
    display: block !important;
    align-items: stretch !important;
  }
  
  section.container .grid-2 form,
  .section.container .grid-2 form,
  section.container .grid-2 .pill,
  .section.container .grid-2 .pill {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  
  /* Ensure checkout page container has proper right padding on small screens */
  section.container,
  .section.container,
  section.section.container {
    padding-right: 25px !important;
  }
  
  /* Product page */
  /* Base styles for small/medium screens - use aspect ratio */
  /* Override inline height for small screens */
  @media (max-width: 1023px) {
    .product-image-main,
    #productImageContainer {
      margin-bottom: 16px;
      width: 100% !important;
      position: relative !important;
      padding-bottom: 100% !important;
      height: 0 !important;
      min-height: 0 !important;
      max-height: none !important;
      padding-top: 0 !important;
      padding-left: 0 !important;
      padding-right: 0 !important;
      max-width: 100% !important;
      flex-shrink: 0 !important;
      box-sizing: content-box !important;
      aspect-ratio: unset !important;
      display: block !important;
      overflow: visible !important;
    }
    
    .product-image-main img {
      position: absolute !important;
      top: 0 !important;
      left: 0 !important;
      width: 100% !important;
      height: 100% !important;
      object-fit: contain !important;
      object-position: center !important;
      max-width: 100% !important;
      max-height: 100% !important;
    }
  }
  
  /* Fixed height container for large screens - CRITICAL */
  /* Match the structure that works for small screens but use fixed height */
  @media (min-width: 1024px) {
    .product-image-main,
    div.product-image-main,
    .product-image-main[style],
    div[class="product-image-main"],
    #productImageContainer,
    div#productImageContainer.product-image-main {
      margin-bottom: 16px !important;
      width: 100% !important;
      position: relative !important;
      /* Use fixed height instead of padding-bottom technique */
      height: 400px !important;
      padding-bottom: 0 !important;
      padding-top: 0 !important;
      padding-left: 0 !important;
      padding-right: 0 !important;
      max-width: 100% !important;
      flex-shrink: 0 !important;
      box-sizing: border-box !important;
      aspect-ratio: auto !important;
      display: block !important;
      overflow: visible !important;
      min-height: 400px !important;
      max-height: 400px !important;
      flex-grow: 0 !important;
      line-height: 0 !important;
    }
    
    /* Ensure navigation buttons are clickable on large screens */
    .product-image-main .image-nav-btn,
    #productImageContainer .image-nav-btn,
    .product-image-main #prevImageBtn,
    .product-image-main #nextImageBtn,
    #productImageContainer #prevImageBtn,
    #productImageContainer #nextImageBtn {
      position: absolute !important;
      z-index: 10002 !important;
      pointer-events: auto !important;
      cursor: pointer !important;
      touch-action: manipulation !important;
      display: flex !important;
    }
    
    .product-image-main .image-nav-btn:hover,
    #productImageContainer .image-nav-btn:hover {
      opacity: 1 !important;
      z-index: 10003 !important;
    }
    
    div.product-image-main img,
    .product-image-main img,
    #productImageContainer img {
      position: absolute !important;
      top: 0 !important;
      left: 0 !important;
      width: 100% !important;
      height: 100% !important;
      object-fit: contain !important;
      object-position: center !important;
      display: block !important;
      max-width: 100% !important;
      max-height: 100% !important;
      min-height: auto !important;
      z-index: 1 !important;
      pointer-events: none !important;
    }
  }
  
  .product-image-thumbnails {
    gap: 8px !important;
  }
  
  .product-image-thumbnails img {
    width: 60px !important;
    height: 60px !important;
  }
  
  .product-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    display: flex;
    gap: 0;
  }
  
  .tab-btn {
    padding: 10px 16px !important;
    font-size: 14px !important;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .tab-content {
    padding: 20px 0 !important;
  }
  
  /* Forms */
  .form-group {
    margin-bottom: 16px;
  }
  
  .input,
  .input[type="text"],
  .input[type="email"],
  .input[type="tel"],
  .input[type="password"],
  .input[type="number"],
  textarea.input,
  select.input {
    width: 100% !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
  }
  
  textarea.input {
    min-height: 100px;
  }
  
  /* Buttons */
  .btn {
    padding: 12px 20px;
    font-size: 14px;
    width: 100%;
    max-width: 100%;
  }
  
  .btn.primary,
  .btn.secondary {
    width: 100%;
  }
  
  /* Shop filters */
  .shop-filters {
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  .shop-filters select,
  .shop-filters .btn {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* CTA Banner */
  .cta-banner {
    padding: 24px 20px !important;
    border-radius: 16px;
  }
  
  .cta-banner h2 {
    font-size: 24px !important;
  }
  
  .cta-banner p {
    font-size: 15px;
  }
  
  /* Footer */
  footer {
    padding: 32px 0 24px !important;
  }
  
  footer .columns {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    text-align: center;
  }
  
  footer .columns > div {
    margin-bottom: 20px;
  }
  
  footer .columns h3,
  footer .columns h4 {
    margin-bottom: 12px;
    font-size: 18px;
  }
  
  footer .social-icons {
    justify-content: center;
    gap: 20px;
  }
  
  footer .social-icons a {
    font-size: 28px;
  }
  
  #newsletterForm {
    flex-direction: column !important;
    max-width: 100% !important;
  }
  
  #newsletterForm input {
    margin-bottom: 10px;
  }
  
  #newsletterForm button {
    width: 100%;
  }
  
  /* About page */
  .about .grid-2 {
    gap: 24px !important;
  }
  
  /* Contact page */
  .contact .grid-2 {
    gap: 32px !important;
  }
  
  /* Profile page */
  .profile .grid-2,
  .profile .grid-3 {
    gap: 24px !important;
  }
  
  /* Alert messages */
  .alert {
    padding: 12px 16px !important;
    font-size: 14px;
  }
  
  .alert i {
    font-size: 18px !important;
  }
  
  /* Review section */
  .reviews-list .pill {
    padding: 16px !important;
  }
  
  .rating-input {
    gap: 6px !important;
  }
  
  .rating-input label {
    font-size: 20px !important;
  }
  
  /* NEW Testimonials - mobile */
  .testimonial-swiper-new {
    padding: 0 50px !important;
  }
  
  .review-card {
    padding: 24px 20px !important;
    min-height: 240px !important;
  }
  
  .review-card::before {
    font-size: 60px !important;
    top: 5px !important;
    left: 12px !important;
  }
  
  .review-card .stars {
    font-size: 18px !important;
    margin-bottom: 14px !important;
  }
  
  .review-card p {
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-bottom: 18px !important;
  }
  
  .review-card strong {
    font-size: 13px !important;
  }
  
  .testimonial-swiper-new .swiper-button-next,
  .testimonial-swiper-new .swiper-button-prev {
    width: 40px !important;
    height: 40px !important;
  }
  
  .testimonial-swiper-new .swiper-button-next {
    right: 5px !important;
  }
  
  .testimonial-swiper-new .swiper-button-prev {
    left: 5px !important;
  }
  
  .testimonial-swiper-new .swiper-button-next::after,
  .testimonial-swiper-new .swiper-button-prev::after {
    font-size: 16px !important;
  }
  
  /* OLD Testimonial cards - mobile (backward compatibility) */
  .testimonial-card {
    padding: 24px 20px !important;
    min-height: 240px !important;
  }
  
  .testimonial-card::before {
    font-size: 60px !important;
    top: 5px !important;
    left: 12px !important;
  }
  
  .testimonial-card .stars {
    font-size: 18px !important;
    margin-bottom: 14px !important;
  }
  
  .testimonial-card p {
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-bottom: 18px !important;
  }
  
  .testimonial-card strong {
    font-size: 13px !important;
  }
  
  .testimonial-swiper {
    padding: 0 50px !important;
    overflow: hidden !important;
  }
  
  .testimonial-swiper .swiper-button-next,
  .testimonial-swiper .swiper-button-prev {
    width: 40px !important;
    height: 40px !important;
    z-index: 999 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: absolute !important;
  }
  
  .testimonial-swiper .swiper-button-next {
    right: 5px !important;
  }
  
  .testimonial-swiper .swiper-button-prev {
    left: 5px !important;
  }
  
  .testimonial-swiper .swiper-button-next::after,
  .testimonial-swiper .swiper-button-prev::after {
    font-size: 16px !important;
  }
  
  /* Address cards in checkout */
  label[style*="display: flex"] {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  
  /* Wishlist button */
  .wishlist-btn {
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
  }
  
  /* Search results */
  .search-results {
    max-height: 300px;
  }
  
  /* Admin bar */
  .admin-bar {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  /* Payment redirect */
  .payment-redirect .container {
    padding: 20px !important;
    margin: 20px;
  }
}

/* Small mobile devices (up to 480px) */
@media (max-width: 480px) {
  .container {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
  
  h1 {
    font-size: 24px !important;
  }
  
  h2 {
    font-size: 20px !important;
  }
  
  .hero {
    padding: 20px 12px 16px !important;
    gap: 16px !important;
  }
  
  .hero > div:first-child {
    padding: 0 !important;
  }
  
  .hero .tag {
    font-size: 10px !important;
    padding: 5px 10px !important;
    margin-bottom: 10px !important;
  }
  
  .hero h1 {
    font-size: 22px !important;
    line-height: 1.3 !important;
    margin-bottom: 10px !important;
    font-weight: 700 !important;
  }
  
  .hero p {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin-bottom: 18px !important;
  }
  
  .hero .cta {
    gap: 10px !important;
  }
  
  .hero .cta .btn {
    padding: 12px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
  }
  
  .section {
    padding: 32px 0;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  
  .section h2 {
    font-size: 20px !important;
    margin-bottom: 24px;
  }
  
  .products {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    justify-items: stretch !important;
  }
  /* Single product card on mobile - full width */
  .products:has(.product-card:only-child),
  .products.single-product {
    max-width: 100% !important;
  }
  .products:has(.product-card:only-child) .product-card,
  .products.single-product .product-card {
    max-width: 100% !important;
  }
  
  .product-card .body {
    padding: 10px !important;
  }
  
  /* Testimonial swiper - small mobile */
  .testimonial-swiper {
    padding: 0 40px !important;
  }
  
  .testimonial-swiper .swiper-button-next,
  .testimonial-swiper .swiper-button-prev {
    width: 32px !important;
    height: 32px !important;
    z-index: 999 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
  }
  
  .testimonial-swiper .swiper-button-next {
    right: 5px !important;
  }
  
  .testimonial-swiper .swiper-button-prev {
    left: 5px !important;
  }
  
  .testimonial-swiper .swiper-button-next::after,
  .testimonial-swiper .swiper-button-prev::after {
    font-size: 12px !important;
  }
  
  .testimonial-card {
    padding: 20px 16px !important;
    min-height: 220px !important;
  }
  
  .testimonial-card::before {
    font-size: 50px !important;
    top: 5px !important;
    left: 10px !important;
  }
  
  .testimonial-card .stars {
    font-size: 16px !important;
    margin-bottom: 12px !important;
  }
  
  .testimonial-card p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 16px !important;
  }
  
  .testimonial-card strong {
    font-size: 12px !important;
  }
  
  .benefit,
  .trust .pill {
    padding: 16px !important;
  }
  
  .benefit > div:first-child,
  .trust .pill > div:first-child {
    font-size: 32px !important;
  }
  
  .btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .pill {
    padding: 16px !important;
  }
  
  .cart-table tr {
    padding: 12px;
  }
  
  .checkout .pill {
    padding: 16px !important;
  }
  
  .product-image-thumbnails img {
    width: 50px !important;
    height: 50px !important;
  }
  
  .tab-btn {
    padding: 8px 12px !important;
    font-size: 13px !important;
  }
  
  footer {
    padding: 24px 0 20px !important;
  }
  
  footer .columns {
    gap: 20px !important;
  }
  
  .cta-banner {
    padding: 20px 16px !important;
  }
  
  .cta-banner h2 {
    font-size: 20px !important;
  }
  
  .input,
  .input[type="text"],
  .input[type="email"],
  .input[type="tel"],
  .input[type="password"],
  .input[type="number"],
  textarea.input,
  select.input {
    padding: 10px 12px !important;
    font-size: 13px !important;
  }
}

/* Tablet adjustments (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .products {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  }
  
  .grid-2 {
    gap: 28px !important;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure videos are responsive */
video {
  max-width: 100%;
  height: auto;
}

/* Fix for tables on mobile - add data-label attributes via JS or CSS */
@media (max-width: 768px) {
  .cart-table td[data-label]:before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: #1d3b5a;
    display: block;
    margin-bottom: 4px;
  }
  
  .cart-table td[data-label=""]:before {
    display: none;
  }
  
  /* Ensure cart table cells stack properly */
  .cart-table td {
    border-bottom: 1px solid #f0f0f0;
  }
  
  .cart-table td:last-child {
    border-bottom: none;
  }
}

/* Additional responsive fixes */
@media (max-width: 768px) {
  /* Ensure all pill containers are responsive */
  .pill {
    padding: 20px !important;
  }
  
  /* Order summary in checkout */
  .order-summary,
  .checkout .pill:last-child {
    margin-top: 24px;
  }
  
  /* Product page quantity input */
  #qty-input {
    width: 100% !important;
    max-width: 120px;
  }
  
  /* Related products section */
  .products .product-card {
    margin-bottom: 0;
  }
  
  /* Address selection in checkout */
  label[style*="display: flex"][style*="align-items"] {
    padding: 12px !important;
  }
  
  /* Form labels */
  label {
    font-size: 14px !important;
  }
  
  /* Small text adjustments */
  small {
    font-size: 11px !important;
  }
  
  /* Price display */
  .price {
    font-size: 20px !important;
  }
  
  /* Tag styling */
  .tag {
    font-size: 11px !important;
    padding: 3px 8px !important;
  }
  
  /* Testimonial cards */
  .testimonial-card {
    padding: 20px 16px !important;
  }
  
  .testimonial-swiper {
    padding: 0 40px !important;
  }
  
  .testimonial-swiper .swiper-button-next,
  .testimonial-swiper .swiper-button-prev {
    width: 36px !important;
    height: 36px !important;
  }
  
  .testimonial-swiper .swiper-button-next::after,
  .testimonial-swiper .swiper-button-prev::after {
    font-size: 14px !important;
  }
  
  /* CTA buttons in hero */
  .hero .btn {
    font-size: 14px !important;
    padding: 12px 20px !important;
  }
  
  /* Shop page product count */
  .shop-filters + div {
    padding: 10px 14px !important;
    font-size: 13px !important;
  }
  
  /* Review form */
  .review-form .form-group {
    margin-bottom: 16px;
  }
  
  /* Rating stars in product page */
  .stars {
    font-size: 14px !important;
  }
  
  /* Product meta information */
  .product-meta {
    font-size: 13px !important;
  }
  
  /* Video container */
  video {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }
  
  /* Alert icons */
  .alert i {
    flex-shrink: 0;
  }
  
  /* Alert text */
  .alert {
    font-size: 14px !important;
  }
  
  .alert strong {
    font-size: 15px !important;
  }
  
  .alert p {
    font-size: 13px !important;
  }
  
  /* User menu adjustments */
  #userMenu {
    right: 0 !important;
    left: auto !important;
    width: calc(100vw - 32px) !important;
    max-width: 280px !important;
    z-index: 10000 !important;
    overflow: visible !important;
  }
  
  /* Ensure parent container doesn't clip the menu */
  header .header-actions > div[style*="position: relative"] {
    overflow: visible !important;
  }
  
  /* Mini cart adjustments */
  .mini-cart {
    max-width: calc(100vw - 32px) !important;
  }
  
  /* Ensure header doesn't overflow */
  header {
    overflow-x: hidden;
  }
  
  .nav {
    overflow-x: visible;
  }
  
  /* Search results on mobile */
  .search-results {
    max-width: calc(100vw - 32px);
    left: 0 !important;
    right: 0 !important;
  }
  
  /* Additional text responsiveness - ensure all text is readable */
  /* Body text and paragraphs */
  body {
    font-size: 15px;
  }
  
  p:not([style*="font-size"]) {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }
  
  /* Lists */
  li {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }
  
  /* Links */
  a:not(.btn):not([style*="font-size"]) {
    font-size: 15px !important;
  }
  
  /* Strong and bold text */
  strong:not([style*="font-size"]),
  b:not([style*="font-size"]) {
    font-size: 15px !important;
  }
  
  /* Table text */
  table,
  th,
  td {
    font-size: 14px !important;
  }
  
  /* Form text */
  input:not([style*="font-size"]),
  textarea:not([style*="font-size"]),
  select:not([style*="font-size"]) {
    font-size: 14px !important;
  }
  
  /* Footer text */
  footer,
  footer p,
  footer a,
  footer h3,
  footer h4 {
    font-size: 14px !important;
  }
  
  /* Testimonial text */
  .testimonial-card,
  .testimonial-card p {
    font-size: 14px !important;
  }
  
  /* Review text */
  .reviews-list p,
  .reviews-list h4 {
    font-size: 14px !important;
  }
}

  /* Wishlist page buttons */
  .wishlist-remove-btn {
    min-width: 48px !important;
    padding: 12px !important;
  }
  
  .product-card .body > div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 8px !important;
  }
  
  .product-card .body > div[style*="display: flex"] .btn {
    width: 100% !important;
  }
  
  /* Orders page */
  .orders .pill {
    padding: 32px 20px !important;
  }
  
  .orders h1 {
    font-size: 24px !important;
  }
  
  .orders .pill i {
    font-size: 40px !important;
  }
  
  .orders .pill h2 {
    font-size: 20px !important;
  }
  
  /* Very small screens (up to 360px) */
@media (max-width: 360px) {
  .container {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .hero {
    padding: 16px 12px 12px !important;
    gap: 14px !important;
  }
  
  .hero > div:first-child {
    padding: 0 !important;
  }
  
  .hero .tag {
    font-size: 9px !important;
    padding: 4px 8px !important;
    margin-bottom: 8px !important;
  }
  
  .hero h1 {
    font-size: 20px !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
    font-weight: 700 !important;
  }
  
  .hero p {
    font-size: 12px !important;
    line-height: 1.5 !important;
    margin-bottom: 16px !important;
  }
  
  .hero .cta {
    gap: 8px !important;
  }
  
  .hero .cta .btn {
    padding: 11px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
  }
  
  .section h2 {
    font-size: 18px !important;
  }
  
  .btn {
    padding: 10px 14px;
    font-size: 12px;
  }
  
  .pill {
    padding: 14px !important;
  }
  
  .product-card .body {
    padding: 8px !important;
  }
  
  .product-card h3 {
    font-size: 15px !important;
  }
  
  .product-card .price {
    font-size: 16px !important;
  }
}


