/* RESEARCHEM.EU MOBILE OPTIMIZATION CSS */

/* ===================================================================
   MOBILE RESPONSIVE FIXES FOR RESEARCHEM.EU
   =================================================================== */

/* Base mobile reset and optimizations */
* {
  box-sizing: border-box;
}

/* ===================================================================
   1. HEADER & NAVIGATION FIXES
   =================================================================== */

/* Mobile header optimization */
@media (max-width: 768px) {
  /* Fix header layout */
  .header-container {
    flex-direction: column !important;
    padding: 10px 15px !important;
    gap: 10px !important;
  }
  
  /* Logo and brand section */
  .header-brand {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 5px !important;
  }
  
  .header-brand h1 {
    font-size: 18px !important;
    margin: 0 !important;
  }
  
  /* Navigation buttons - horizontal scroll */
  .header-nav {
    display: flex !important;
    overflow-x: auto !important;
    gap: 8px !important;
    padding: 0 5px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  
  .header-nav::-webkit-scrollbar {
    display: none !important;
  }
  
  .header-nav button {
    flex-shrink: 0 !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
  }
  
  /* User section */
  .header-user {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 5px !important;
  }
  
  .header-user button {
    padding: 6px 12px !important;
    font-size: 11px !important;
  }
  
  /* Search input */
  .header-search {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
  }
  
  .header-search input {
    width: 100% !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
  }
}

/* ===================================================================
   2. HERO SECTION FIXES
   =================================================================== */

@media (max-width: 768px) {
  /* Hero section */
  .hero-section {
    padding: 30px 15px !important;
    text-align: center !important;
  }
  
  .hero-title {
    font-size: 24px !important;
    line-height: 1.2 !important;
    margin-bottom: 15px !important;
  }
  
  .hero-subtitle {
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin-bottom: 20px !important;
  }
  
  .hero-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    align-items: center !important;
  }
  
  .hero-buttons a {
    width: 100% !important;
    max-width: 250px !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
  }
  
  /* Stats section */
  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    margin-top: 25px !important;
  }
  
  .hero-stat {
    text-align: center !important;
    padding: 15px !important;
  }
  
  .hero-stat-value {
    font-size: 20px !important;
    font-weight: bold !important;
  }
  
  .hero-stat-label {
    font-size: 11px !important;
    opacity: 0.8 !important;
  }
}

/* ===================================================================
   3. CATEGORY OVERVIEW FIXES
   =================================================================== */

@media (max-width: 768px) {
  /* Category grid */
  .category-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 15px !important;
  }
  
  .category-item {
    padding: 15px 10px !important;
    text-align: center !important;
    border-radius: 8px !important;
  }
  
  .category-item h3 {
    font-size: 14px !important;
    margin-bottom: 5px !important;
  }
  
  .category-item p {
    font-size: 11px !important;
    opacity: 0.8 !important;
  }
  
  /* View all link */
  .category-view-all {
    display: block !important;
    text-align: center !important;
    margin: 15px auto 0 !important;
    padding: 10px 20px !important;
    font-size: 12px !important;
    max-width: 150px !important;
  }
}

/* ===================================================================
   4. FEATURED STACKS (PRODUCT CARDS) FIXES
   =================================================================== */

@media (max-width: 768px) {
  /* Featured stacks section */
  .featured-stacks {
    padding: 30px 15px !important;
  }
  
  .featured-stacks h2 {
    font-size: 20px !important;
    text-align: center !important;
    margin-bottom: 20px !important;
  }
  
  /* Stack cards - single column */
  .stack-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  
  .stack-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }
  
  .stack-card-header {
    padding: 15px !important;
  }
  
  .stack-card-header h3 {
    font-size: 16px !important;
    margin-bottom: 5px !important;
  }
  
  .stack-card-header p {
    font-size: 12px !important;
  }
  
  .stack-card-content {
    padding: 15px !important;
  }
  
  /* Stack items */
  .stack-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
  }
  
  .stack-item:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  
  .stack-item-bullet {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    margin-top: 6px !important;
  }
  
  .stack-item-name {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
  }
  
  .stack-item-desc {
    font-size: 11px !important;
    color: #666 !important;
    margin-top: 2px !important;
  }
  
  /* Pricing section */
  .stack-pricing {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 15px !important;
    background: #f8f9fa !important;
  }
  
  .stack-price-original {
    font-size: 14px !important;
    text-decoration: line-through !important;
    color: #999 !important;
  }
  
  .stack-price-current {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #e74c3c !important;
  }
  
  .stack-price-discount {
    font-size: 12px !important;
    color: #27ae60 !important;
    font-weight: 500 !important;
  }
  
  /* Stack details button */
  .stack-details-btn {
    display: block !important;
    width: 100% !important;
    padding: 12px !important;
    background: #2c3e50 !important;
    color: white !important;
    text-align: center !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border: none !important;
    cursor: pointer !important;
  }
  
  .stack-details-btn:hover {
    background: #34495e !important;
  }
}

/* ===================================================================
   5. PEPTIDE CATEGORIES GRID FIXES
   =================================================================== */

@media (max-width: 768px) {
  /* Categories section */
  .peptide-categories {
    padding: 30px 15px !important;
  }
  
  .peptide-categories h2 {
    font-size: 20px !important;
    text-align: center !important;
    margin-bottom: 20px !important;
  }
  
  /* Category cards grid */
  .category-cards {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  .category-card {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 15px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    color: inherit !important;
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
  }
  
  .category-card:hover {
    background: #e9ecef !important;
    transform: none !important;
  }
  
  .category-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    flex-shrink: 0 !important;
  }
  
  .category-info {
    flex: 1 !important;
  }
  
  .category-info h3 {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 3px !important;
    color: #1a1a1a !important;
  }
  
  .category-info p {
    font-size: 11px !important;
    color: #666 !important;
    line-height: 1.3 !important;
  }
  
  .category-arrow {
    color: #adb5bd !important;
    font-size: 16px !important;
  }
}

/* ===================================================================
   6. SALES NAVIGATOR FIXES
   =================================================================== */

@media (max-width: 768px) {
  /* Sales navigator section */
  .sales-navigator {
    padding: 30px 15px !important;
    background: #f8f9fa !important;
  }
  
  .sales-navigator h2 {
    font-size: 18px !important;
    text-align: center !important;
    margin-bottom: 20px !important;
  }
  
  /* Popular peptides */
  .popular-peptides {
    margin-bottom: 25px !important;
  }
  
  .popular-peptides h3 {
    font-size: 14px !important;
    margin-bottom: 12px !important;
    text-align: center !important;
  }
  
  .popular-peptides-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  
  .popular-peptide-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 12px 8px !important;
    background: white !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    color: inherit !important;
    text-align: center !important;
  }
  
  .popular-peptide-item span:first-child {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    margin-bottom: 3px !important;
  }
  
  .popular-peptide-item span:last-child {
    font-size: 9px !important;
    color: #666 !important;
    opacity: 0.8 !important;
  }
  
  /* Problem solutions */
  .problem-solutions {
    margin-bottom: 25px !important;
  }
  
  .problem-solutions h3 {
    font-size: 14px !important;
    margin-bottom: 12px !important;
    text-align: center !important;
  }
  
  .problem-solutions-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  
  .problem-solution-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 12px 8px !important;
    background: white !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    color: inherit !important;
    text-align: center !important;
  }
  
  .problem-solution-item span:first-child {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    margin-bottom: 3px !important;
  }
  
  .problem-solution-item span:last-child {
    font-size: 9px !important;
    color: #666 !important;
    opacity: 0.8 !important;
  }
  
  /* Premium stacks */
  .premium-stacks {
    margin-bottom: 0 !important;
  }
  
  .premium-stacks h3 {
    font-size: 14px !important;
    margin-bottom: 12px !important;
    text-align: center !important;
  }
  
  .premium-stacks-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  
  .premium-stack-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 12px 8px !important;
    background: white !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    color: inherit !important;
    text-align: center !important;
  }
  
  .premium-stack-item span:first-child {
    font-size: 16px !important;
    margin-bottom: 5px !important;
  }
  
  .premium-stack-item span:last-child {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #e74c3c !important;
  }
}

/* ===================================================================
   7. FOOTER FIXES
   =================================================================== */

@media (max-width: 768px) {
  /* Footer */
  .footer {
    padding: 30px 15px !important;
    background: #1a1a1a !important;
    color: white !important;
  }
  
  /* Footer navigation */
  .footer-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
  }
  
  .footer-nav a {
    color: white !important;
    text-decoration: none !important;
    font-size: 12px !important;
    opacity: 0.8 !important;
  }
  
  .footer-nav a:hover {
    opacity: 1 !important;
  }
  
  /* RUO disclaimer */
  .ruo-disclaimer {
    background: #2c2c2c !important;
    padding: 20px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
  }
  
  .ruo-disclaimer h4 {
    font-size: 12px !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
    color: #e74c3c !important;
  }
  
  .ruo-disclaimer p {
    font-size: 10px !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    opacity: 0.9 !important;
  }
  
  .ruo-disclaimer p:last-child {
    margin-bottom: 0 !important;
  }
  
  /* Copyright */
  .footer-copyright {
    text-align: center !important;
    font-size: 10px !important;
    opacity: 0.6 !important;
    padding-top: 20px !important;
    border-top: 1px solid #333 !important;
  }
}

/* ===================================================================
   8. UTILITY CLASSES
   =================================================================== */

/* Hide on mobile */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
  
  .show-mobile {
    display: block !important;
  }
  
  .text-center-mobile {
    text-align: center !important;
  }
  
  .full-width-mobile {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ===================================================================
   9. TABLET OPTIMIZATIONS (768px - 1024px)
   =================================================================== */

@media (min-width: 769px) and (max-width: 1024px) {
  /* Stack cards - 2 columns */
  .stack-cards {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
  
  /* Category cards - 2 columns */
  .category-cards {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
  
  /* Popular items - 4 columns */
  .popular-peptides-grid,
  .problem-solutions-grid,
  .premium-stacks-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* ===================================================================
   10. PERFORMANCE OPTIMIZATIONS
   =================================================================== */

/* Optimize images and animations for mobile */
@media (max-width: 768px) {
  /* Disable hover effects on mobile */
  .hover-effect,
  .hover-lift,
  .hover-scale {
    transition: none !important;
  }
  
  .hover-effect:hover,
  .hover-lift:hover,
  .hover-scale:hover {
    transform: none !important;
  }
  
  /* Optimize shadows for performance */
  .card-shadow {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  }
  
  /* Reduce animation complexity */
  .fade-in,
  .slide-up {
    animation-duration: 0.3s !important;
  }
}

/* ===================================================================
   11. ACCESSIBILITY IMPROVEMENTS
   =================================================================== */

/* Improve touch targets on mobile */
@media (max-width: 768px) {
  /* Improve focus states */
  button:focus,
  .button:focus,
  a:focus {
    outline: 2px solid #3498db !important;
    outline-offset: 2px !important;
  }
}

/* ===================================================================
   12. PRINT STYLES (Optional)
   =================================================================== */

@media print {
  .header-nav,
  .hero-buttons,
  .stack-details-btn,
  .footer-nav {
    display: none !important;
  }
  
  .stack-card,
  .category-card {
    break-inside: avoid !important;
  }
}
