/* Theme CSS Variables */
:root[data-theme="light"] {
    --background-color: #ffffff;
    --text-color: #333333;
    --primary-color: #ff6b00;
    --primary-color-hover: #ff8c3f;
    --secondary-color: #777777;
    --nav-background: #ffffff;
    --search-background: #ffffff;
    --search-border: #dddddd;
    --search-text: #333333;
    --card-background: #ffffff;
    --card-border: #e0e0e0;
    --size-box-background: #f5f5f5;
    --size-box-border: #e0e0e0;
    --size-box-text: #333333;
    --size-box-selected: #ff6b00;
    --size-box-selected-text: #ffffff;
    --footer-background: #f5f5f5;
    --footer-text: #333333;
    --discount-badge-bg: #ffebe6;
    --discount-badge-text: #ff6b00;
    --discount-text: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --hover-color: #f5f5f5;
    --border-color: #eeeeee;
}

:root[data-theme="dark"] {
    --background-color: #121212;
    --text-color: #f0f0f0;
    --primary-color: #ff6b00;
    --primary-color-hover: #ff8c3f;
    --secondary-color: #999999;
    --nav-background: #1a1a1a;
    --search-background: #1a1a1a;
    --search-border: #333333;
    --search-text: #f0f0f0;
    --card-background: #1a1a1a;
    --card-border: #333333;
    --size-box-background: #2a2a2a;
    --size-box-border: #333333;
    --size-box-text: #f0f0f0;
    --size-box-selected: #ff6b00;
    --size-box-selected-text: #ffffff;
    --footer-background: #1a1a1a;
    --footer-text: #f0f0f0;
    --discount-badge-bg: #663300;
    --discount-badge-text: #ffffff;
    --discount-text: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --hover-color: #333333;
    --border-color: #333333;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.0rem 5%;
    background-color: var(--nav-background);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.nav-buttons {
    display: flex;
    align-items: center;
}

.nav-buttons a {
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.signin {
    color: var(--secondary-color);
}

.signin:hover {
    color: var(--primary-color);
}

.signup {
    color: white;
    background-color: var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    transition: background-color 0.3s;
}

.signup:hover {
    background-color: var(--primary-color-hover);
}

/* Search bar */
.search-bar {
    border-radius: 30px;
    display: flex;
    margin-top: 2rem;
    max-width: 600px;
    background-color: transparent;
    border: 1px solid var(--search-border);
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid var(--search-border);
    border-radius: 30px 0 0 30px;
    outline: none;
    background-color: var(--search-background);
    color: var(--search-text);
}

.search-button {
    padding: 1rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: var(--primary-color-hover);
}

/* Footer styles */
.footer {
    margin-top: auto;
    padding: 30px 40px;
    background-color: var(--footer-background);
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--footer-text);
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-info {
    text-align: center;
    color: var(--text-color);
}

.footer-contact {
    text-align: right;
    color: var(--text-color);
}

.footer-contact a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

/* Theme toggle button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    margin-right: 15px;
    padding: 5px 10px;
    margin-left: 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--size-box-background);
    box-shadow: 0 2px 5px var(--shadow-color);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.05);
}

/* Show/hide icons based on current theme */
:root[data-theme="light"] .dark-icon {
    display: none;
}

:root[data-theme="dark"] .light-icon {
    display: none;
}

/* Common button styles */
.view-more-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.view-more-button:hover {
    background-color: var(--primary-color-hover);
}

.view-more-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Common message styles */
.loading-message, .error-message, .no-results-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-color);
    background-color: var(--card-background);
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 600px;
    border: 1px solid var(--card-border);
}

/* Responsive styles */
@media (max-width: 992px) {
    .navbar {
        padding: 1rem 5%;
    }
    
    .logo {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 1rem 5%;
    }
    
    .logo {
        font-size: 1.5rem;
    }
}

/* Scroll to top button */
.scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 20px 16px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
}

.scrollTopBtn:hover {
    background-color: var(--primary-color-hover);
}

/* Notification toast styles */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    width: 300px;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slide-in 0.3s ease-out forwards;
    cursor: pointer;
}

.toast.error {
    background-color: #ffebee;
    color: #e53935;
    border-left: 4px solid #e53935;
}

.toast.success {
    background-color: #e8f5e9;
    color: #43a047;
    border-left: 4px solid #43a047;
}

.toast.info {
    background-color: #e3f2fd;
    color: #1e88e5;
    border-left: 4px solid #1e88e5;
}

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.wishlist-header {
  margin-top: 70px; /* Provides space below the fixed navbar */
  padding-top: 20px;
  padding-bottom: 10px;
}

/* Add these styles to your theme.css or create a new CSS file */

.user-pill {
  display: inline-flex;
  align-items: center;
  background-color: var(--size-box-background);
  border-radius: 50px;
  padding: 6px 16px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s;
}

.user-pill:hover {
  background-color: var(--hover-color);
}

.user-avatar {
  width: 30px;
  height: 30px;
  background-color: var(--primary-color);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 8px;
  font-size: 12px;
}

/* Anonymous user avatar style */
.user-avatar.anonymous {
  background-color: var(--secondary-color);
}

.user-avatar.anonymous svg {
  width: 16px;
  height: 16px;
  color: white;
}

/* Logged in user avatar style */
.user-avatar.logged-in {
  background-color: var(--primary-color);
}

.user-name {
  font-weight: 600;
  margin-right: 5px;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
} 

.dropdown-icon {
    margin-left: 2px;
    opacity: 0.7;
}

.user-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
    display: none;
    min-width: 160px;
    z-index: 1000;
    border: 1px solid var(--card-border);
}

.user-dropdown.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.user-dropdown a.dropdown-item {
  color: var(--text-color);
}

/* Special styling for sign up in dropdown */
.user-dropdown a.dropdown-item:nth-child(2) {
  font-weight: 600;
  color: var(--primary-color);
}

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

.dropdown-item {
  padding: 10px 20px;
  color: var(--text-color);
  transition: background-color 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.dropdown-item:hover {
  background-color: var(--hover-color);
}

.dropdown-item svg {
  margin-right: 8px;
  opacity: 0.7;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 5px 0;
}

.logout-item {
    color: #e53935;
}


/* Mobile-Friendly CSS Enhancements for SneakerEye */

/* Improved Responsive Navbar */
@media (max-width: 768px) {
    .navbar {
      padding: 0.8rem 4%;
    }
    
    .logo {
      font-size: 1rem;
    }
    
    .nav-buttons {
      gap: 10px;
    }
    
    .signin, .signup {
      font-size: 0.9rem;
    }
    
    .signup {
      padding: 0.4rem 1rem;
    }
    
    /* Mobile menu toggle button (to be used with JavaScript) */
    .mobile-menu-toggle {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      width: 24px;
      height: 18px;
      background: transparent;
      border: none;
      cursor: pointer;
      padding: 0;
      z-index: 10;
    }
    
    .mobile-menu-toggle span {
      width: 100%;
      height: 2px;
      background-color: var(--text-color);
      transition: all 0.3s linear;
    }
    
    /* User pill adjustments for mobile */
    .user-pill {
      max-width: 120px; /* Limit width on mobile */
    }
    
    .user-name {
      max-width: 70px;
    }
  }
  
  /* Fix for the hero section layout on mobile */
@media (max-width: 768px) {
    /* Center align text and adjust margins */
    .hero-text {
      text-align: center;
      padding: 0 20px;
      margin-bottom: 30px;
    }
    
    /* Adjust headline text sizing */
    .hero-text h1 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
    }
    
    /* Make search bar full width and center it */
    .search-bar {
      width: 100%;
      max-width: 90%;
      margin: 0 auto;
    }
    
    /* Adjust floating image size for mobile */
    .hero-image {
      width: 100%;
      display: flex;
      justify-content: center;
      margin-top: 2rem;
    }
    
    .floating-image {
      max-width: 70%;
      height: auto;
    }
    
    /* Fix overall hero section spacing */
    .hero {
      padding: 100px 0 40px;
      flex-direction: column;
      min-height: auto;
    }
  }
  
  /* Additional fix for very small screens */
  @media (max-width: 480px) {
    .hero-text h1 {
      font-size: 2rem;
    }
    
    .floating-image {
      max-width: 60%;
    }
  }
  /* Improved Product Grids for Mobile */
  @media (max-width: 768px) {
    .results-grid {
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 15px;
    }
    
    .sneaker-card {
      border-radius: 8px;
    }
    
    .sneaker-image {
      height: 160px;
    }
    
    .sneaker-info {
      padding: 0.8rem;
    }
    
    .sneaker-title {
      font-size: 0.95rem;
      height: 2.4rem;
    }
    
    .sneaker-price {
      flex-wrap: wrap;
    }
    
    .sale-price {
      font-size: 1.1rem;
    }
    
    /* Adjust size boxes for mobile tapping */
    .size-options {
      gap: 8px;
    }
    
    .size-box {
      width: 40px;
      height: 40px;
      font-size: 13px;
    }
  }
  
  /* Optimize Filter and Options Bar for Mobile */
  @media (max-width: 768px) {
    .options-bar {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
      padding: 10px 15px;
    }
    
    .option-group {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .option-group label {
      min-width: 80px;
    }
    
    .filter-dropdown {
      width: 100%;
    }
    
    .dropdown-container {
      max-width: 100%;
    }
    
    .dropdown-header {
      padding: 8px 10px;
    }
    
    /* Improve dropdown usability on mobile */
    .dropdown-menu {
      max-height: 180px;
      width: 100%;
    }
    
    .checkbox-option {
      padding: 8px 10px;
    }
    
    .checkbox-option input[type="checkbox"] {
      width: 16px;
      height: 16px;
    }
  }
  
  /* Enhanced Footer for Mobile */
  @media (max-width: 768px) {
    .footer {
      flex-direction: column;
      gap: 20px;
      text-align: center;
      padding: 20px;
    }
    
    .footer-contact {
      text-align: center;
    }
  }
  
  /* Forms Optimization for Mobile */
  @media (max-width: 768px) {
    .login-container,
    .signup-container {
      max-width: 90%;
      margin: 100px auto 40px;
      padding: 20px;
    }
    
    .login-title,
    .signup-title {
      font-size: 1.7rem;
    }
    
    .form-input {
      padding: 10px 12px;
    }
    
    .form-button {
      padding: 10px;
    }
  }
  
  /* Improved Toast Notifications for Mobile */
  @media (max-width: 768px) {
    .toast-container {
      bottom: 10px;
      right: 10px;
      left: 10px;
      width: auto;
    }
    
    .toast {
      width: 100%;
      max-width: 100%;
      font-size: 0.9rem;
    }
  }
  
  /* Fix Scroll to Top Button Position on Mobile */
  @media (max-width: 768px) {
    .scrollTopBtn {
      bottom: 10px;
      right: 10px;
      padding: 10px 10px;
    }
  }
  
  /* Additional for very small screens */
  @media (max-width: 360px) {
    .logo {
      font-size: 1.2rem;
    }
    
    .results-grid {
      grid-template-columns: 1fr;
    }
  }
  
  /* Fix for mobile input zoom issues */
  @media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"] {
      font-size: 16px; /* Prevents iOS zoom on input focus */
    }
  }
  
  /* Hamburger menu implementation - to be added with JS */
  @media (max-width: 768px) {
    .nav-buttons.mobile-expanded {
      position: fixed;
      top: 0;
      right: 0;
      height: 100vh;
      width: 80%;
      max-width: 300px;
      background-color: var(--card-background);
      flex-direction: column;
      align-items: flex-start;
      padding: 80px 20px 20px;
      z-index: 5;
      box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease;
    }
    
    .nav-buttons:not(.mobile-expanded) {
      transition: none;
    }
    
    .mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
      opacity: 0;
    }
    
    .mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
      transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .nav-buttons.mobile-expanded a {
      margin: 15px 0;
      width: 100%;
      text-align: left;
    }
    
    .nav-buttons.mobile-expanded .signup {
      text-align: center;
    }
    
    .mobile-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 4;
    }
    
    .mobile-menu-open .mobile-overlay {
      display: block;
    }
  }

  /* Mobile enhancements for theme.css */

/* Improved User Avatar/Pill for Mobile */
@media (max-width: 768px) {
  .user-pill {
    padding: 5px 12px;
    max-width: 110px;
  }
  
  .user-avatar {
    width: 28px;
    height: 28px;
    margin-right: 6px;
  }
  
  .user-name {
    max-width: 50px;
    font-size: 0.9rem;
  }
  
  .dropdown-icon {
    width: 14px;
    height: 14px;
  }
  
  .user-dropdown {
    top: 40px;
    width: 180px;
    right: -5px;
  }
  
  .dropdown-item {
    padding: 12px 15px;
    font-size: 0.95rem;
  }
  
  .dropdown-item svg {
    width: 14px;
    height: 14px;
    margin-right: 10px;
  }
}

/* Improved Toast Notifications for Mobile */
@media (max-width: 768px) {
  .toast-container {
    bottom: 10px;
    right: 10px;
    left: 10px;
    width: auto;
    z-index: 10000;
  }
  
  .toast {
    width: 100%;
    max-width: 100%;
    font-size: 0.9rem;
    padding: 12px 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  }
  
  .toast-message {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .toast-close {
    padding: 5px;
    font-size: 1.1rem;
  }
}

/* Enhanced Form Elements for Mobile */
@media (max-width: 768px) {
  .form-input, 
  .form-select, 
  .form-textarea {
    padding: 12px;
    border-radius: 6px;
    font-size: 16px; /* Prevents iOS zoom */
    height: 45px; /* Consistent height for tapping */
  }
  
  .form-label {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-button {
    height: 48px; /* Larger tap target */
    font-size: 1rem;
    border-radius: 6px;
  }
  
  /* Improve form checkbox and radio buttons */
  input[type="checkbox"], 
  input[type="radio"] {
    width: 20px;
    height: 20px;
  }
  
  /* Improve select dropdowns */
  select {
    background-position: right 10px center;
    padding-right: 30px;
  }
}

/* Better Buttons for Mobile */
@media (max-width: 768px) {
  button, 
  .button,
  .view-more-button,
  .search-button {
    min-height: 44px; /* Apple's recommendation for minimum tap target */
    font-size: 0.95rem;
    padding: 8px 15px;
  }
  
  .theme-toggle {
    width: 40px;
    height: 40px;
    margin-left: 5px;
    margin-right: 0;
    padding: 0;
    font-size: 1rem;
  }
}

/* Improved Mobile Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .logo {
    font-size: 1.4rem;
  }
}

/* Enhanced Card Layouts for Mobile */
@media (max-width: 768px) {
  .sneaker-card,
  .brand-card,
  .card {
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-color);
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  .card-content {
    padding: 12px;
  }
}

/* Improved Search Bar for Mobile */
@media (max-width: 768px) {
  .search-bar {
    max-width: 100%;
    margin: 15px auto;
  }
  
  .search-input {
    height: 48px;
    font-size: 16px; /* Prevents iOS zoom */
    padding: 0 15px;
    border-radius: 24px 0 0 24px;
  }
  
  .search-button {
    height: 48px;
    padding: 0 15px;
    border-radius: 0 24px 24px 0;
    font-size: 0.95rem;
  }
}

/* Enhanced Mobile Navigation and Layout */
@media (max-width: 480px) {
  .navbar {
    padding: 0.7rem 3%;
  }
  
  .container, 
  .content-section {
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .section-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
}

/* Fixed Position Elements Adjustments */
@media (max-width: 768px) {
  .fixed-bottom,
  .sticky-bottom {
    padding: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .scrollTopBtn {
    width: 40px;
    height: 40px;
    bottom: 15px;
    right: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
  }
}

/* Grid Layouts for Mobile */
@media (max-width: 768px) {
  .grid, 
  .results-grid,
  .brand-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 0 5px;
  }
  
  /* Single column layout for very small screens */
  @media (max-width: 350px) {
    .grid, 
    .results-grid {
      grid-template-columns: 1fr;
    }
  }
}

/* Spacing Adjustments for Mobile */
@media (max-width: 768px) {
  .mt-large { margin-top: 30px !important; }
  .mb-large { margin-bottom: 30px !important; }
  .pt-large { padding-top: 30px !important; }
  .pb-large { padding-bottom: 30px !important; }
  
  section {
    margin: 25px 0;
    padding: 25px 0;
  }
  
  .container {
    margin-top: 70px; /* Adjust for fixed navbar */
  }
}

/* Enhanced Form Controls for Better Mobile UX */
@media (max-width: 768px) {
  /* Password toggle buttons */
  .password-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 0;
  }
  
  /* Checkboxes and radio buttons - larger touch targets */
  .checkbox-label,
  .radio-label {
    display: flex;
    align-items: center;
    padding: 8px 0;
  }
  
  .checkbox-label input,
  .radio-label input {
    margin-right: 10px;
  }
}

/* Optimized Mobile Drawer/Menu */
@media (max-width: 768px) {
  /* User dropdown positioning fixes */
  .user-dropdown {
    right: 0;
    left: auto;
    top: 42px;
    min-width: 200px;
  }
  
  /* If dropdown would go off-screen on mobile, reposition it */
  @media (max-width: 220px) {
    .user-dropdown {
      right: -50px;
    }
  }
  
  /* For drawer navigation on mobile */
  .mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background-color: var(--card-background);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 60px 20px 20px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }
  
  .mobile-nav-drawer.open {
    transform: translateX(0);
  }
  
  .mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
  }
  
  .mobile-nav-overlay.visible {
    opacity: 1;
    visibility: visible;
  }
}

/* Touch-friendly Slider Components */
@media (max-width: 768px) {
  .slider-control {
    width: 40px;
    height: 40px;
  }
  
  .slider-dot {
    width: 12px;
    height: 12px;
    margin: 0 5px;
  }
  
  .slider-pagination {
    margin-top: 10px;
  }
}

/* iOS-specific Fixes */
@supports (-webkit-touch-callout: none) {
  /* Add iOS shadows to important UI elements */
  .card, 
  .user-dropdown,
  .toast,
  .form-button {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  }
  
  /* Fix for iOS momentum scrolling */
  .scrollable {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Fix for iOS button styling */
  button {
    -webkit-appearance: none;
    appearance: none;
  }
}

/* Dark mode optimizations for OLED screens */
@media (max-width: 768px) {
  :root[data-theme="dark"] {
    --background-color: #000000; /* True black for OLED screens */
    --nav-background: #0a0a0a;
    --card-background: #0a0a0a;
  }
}

/* Make images behave better on mobile */
@media (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
  }
  
  .responsive-image {
    width: 100%;
  }
}

/* Better font rendering for mobile */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Heart wishlist button styles */
.heart-wishlist {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--background-color);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px var(--shadow-color)
}

.heart-wishlist:hover {
  transform: scale(1.1);
  background-color: var(--background-color);
}

.heart-wishlist svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary-color);
  stroke-width: 2;
  fill: none;
  transition: fill 0.2s ease;
}

.heart-wishlist.wishlisted svg {
  fill: var(--primary-color);
}

/* Add a relative position to the sneaker card for proper positioning */
.sneaker-card {
  position: relative;
}

/* Dark mode adjustments */
:root[data-theme="dark"] .heart-wishlist {
  background-color: rgba(40, 40, 40, 0.8);
}

:root[data-theme="dark"] .heart-wishlist:hover {
  background-color: rgba(50, 50, 50, 0.9);
}
/* Increase heart wishlist SVG size on mobile */
@media (max-width: 768px) {
  .heart-wishlist {
    width: 42px;
    height: 42px;
    top: 12px;
    left: 12px;
  }
  
  .heart-wishlist svg {
    width: 24px;
    height: 24px;
    stroke-width: 2px;
  }
}

/* For even smaller screens */
@media (max-width: 480px) {
  .heart-wishlist {
    width: 44px;
    height: 44px;
  }
  
  .heart-wishlist svg {
    width: 26px;
    height: 26px;
  }
}
/* Popular Searches - Clean layout under search bar */
.popular-searches-container {
  max-width: 600px; /* Match search bar width */
  margin: 10px auto 0; /* Small top margin */
  padding: 0;
}

.popular-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start; /* Left align pills */
}

.popular-pill {
  display: inline-flex;
  align-items: center;
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.2s ease;
  font-weight: 500;
}

.popular-pill svg {
  margin-left: 5px;
  width: 14px;
  height: 14px;
  color: var(--primary-color);
  transition: transform 0.2s ease;
}

.popular-pill:hover {
  background-color: var(--hover-color);
  transform: translateY(-1px);
  box-shadow: 0 1px 5px var(--shadow-color);
}

.popular-pill:hover svg {
  transform: translateX(2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .popular-searches-container {
    width: 90%; /* Match search bar width on mobile */
  }
  
  .popular-pill {
    padding: 3px 10px;
    font-size: 0.75rem;
  }
  
  .popular-pill svg {
    width: 12px;
    height: 12px;
  }
}