/* mobile.css - Mobile responsive styles only */
/* ============================
   MOBILE RESPONSIVE STYLES
============================ */

/* ============================
   GLOBAL MOBILE ADJUSTMENTS
============================ */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  .container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
  }
}

/* ============================
   HEADER MOBILE STYLES
============================ */
@media (max-width: 991px) {
  /* Mobile header container */
  .mobile-header {
    padding: 10px 15px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  
  /* Mobile menu button */
  .menu-btn {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #333;
    font-size: 20px;
    transition: all 0.3s ease;
  }
  
  .menu-btn:hover {
    background: #0d6efd;
    color: white;
    transform: scale(1.05);
  }
  
  /* Mobile logo */
  .mobile-logo {
    flex: 1;
    text-align: center;
    margin: 0 10px;
  }
  
  .mobile-logo img {
    height: 40px;
    max-width: 150px;
    object-fit: contain;
  }
  
  /* Mobile icons */
  .mobile-icons {
    display: flex;
    gap: 15px;
    align-items: center;
  }
  
  .mobile-icons a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .mobile-icons a:hover {
    background: #0d6efd;
    color: white;
    transform: translateY(-2px);
  }
  
  /* Mobile badge */
  .mobile-icons .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4d4d;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
  }
}

/* Hide desktop header on mobile */
@media (max-width: 991px) {
  .archon-header .container.d-none.d-md-flex {
    display: none !important;
  }
}

/* Show mobile header only on mobile */
@media (min-width: 992px) {
  .mobile-header {
    display: none !important;
  }
}

/* ============================
   SEARCH BAR MOBILE STYLES
============================ */
@media (max-width: 768px) {
  /* Search container for mobile */
  .header-search {
    width: 100%;
    margin: 15px 0;
  }
  
  .header-search form {
    position: relative;
    width: 100%;
  }
  
  .header-search input {
    width: 100%;
    height: 44px;
    border-radius: 25px;
    border: 2px solid #e8e8e8;
    padding: 0 45px 0 45px;
    font-size: 14px;
    background: white;
  }
  
  .search-icon {
    left: 15px;
    font-size: 14px;
  }
  
  /* Search suggestions for mobile */
  .search-suggestions {
    position: fixed;
    top: auto;
    left: 15px;
    right: 15px;
    max-height: 50vh;
    z-index: 1000;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-top: 8px;
  }
  
  .suggestion-item {
    padding: 14px 20px;
    font-size: 13px;
  }
}

/* ============================
   CONTENT SECTION MOBILE STYLES
============================ */
@media (max-width: 768px) {
  /* Ensure content sections are responsive */
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  
  .col-md-4, .col-md-2, .col-md-3 {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  /* Cards and product items */
  .card, .product-item, .category-item {
    margin-bottom: 15px;
  }
  
  /* Carousel adjustments */
  .owl-carousel .owl-stage {
    padding-left: 0 !important;
  }
  
  .owl-carousel .owl-item {
    padding: 5px;
  }
}

/* ============================
   FOOTER MOBILE STYLES
============================ */
@media (max-width: 768px) {
  /* Footer container */
  .othoba-footer {
    padding-top: 30px;
    background: linear-gradient(#ffffff, #f7f4f4);
  }
  
  /* Footer sections */
  .othoba-footer .col-md-4,
  .othoba-footer .col-6 {
    margin-bottom: 25px;
  }
  
  /* Company info section */
  .othoba-footer .col-md-4:first-child {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
    margin-bottom: 25px;
  }
  
  .othoba-footer .col-md-4:first-child img {
    width: 140px;
    margin: 0 auto 15px;
  }
  
  /* Footer headings */
  .othoba-footer h6 {
    font-size: 14px;
    margin-bottom: 12px;
    color: #333;
    font-weight: 700;
  }
  
  /* Footer links */
  .footer-links {
    padding: 0;
  }
  
  .footer-links li {
    margin-bottom: 8px;
  }
  
  .footer-links a {
    font-size: 13px;
    color: #555;
    padding: 4px 0;
    display: block;
    transition: all 0.3s ease;
  }
  
  .footer-links a:hover {
    color: #0d6efd;
    transform: translateX(5px);
  }
  
  /* Social icons */
  .footer-social {
    width: 36px;
    height: 36px;
    margin: 0 5px;
    font-size: 14px;
  }
  
  .d-flex.gap-2 {
    justify-content: center;
    margin-top: 10px;
  }
  
  /* Trustpilot section */
  .othoba-footer .small {
    font-size: 12px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  
  /* Payment section */
  .col-md-3.mb-4 {
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
  }
  
  .col-md-3.mb-4 p {
    font-size: 13px;
    margin-bottom: 10px;
  }
  
  /* Payment icons */
  .col-md-3.mb-4 img {
    height: 30px;
    margin: 0 5px 5px;
  }
  
  /* Copyright section */
  .othoba-footer .text-center.py-3 {
    padding: 15px;
    font-size: 12px;
    background: white;
    margin-top: 10px;
  }
}

/* ============================
   CART DRAWER MOBILE STYLES
============================ */
@media (max-width: 576px) {
  #cartDrawer {
    width: 100%;
    right: -100%;
  }
  
  #cartDrawer.active {
    right: 0;
  }
  
  .cart-header {
    padding: 15px;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
  }
  
  .cart-body {
    padding: 15px;
    padding-bottom: 80px;
  }
  
  #closeCart {
    font-size: 16px;
    padding: 5px 10px;
  }
}

/* ============================
   BANNER SLIDER MOBILE STYLES
============================ */
@media (max-width: 768px) {
  .banner-slider .banner-item {
    height: 200px;
  }
  
  .banner-slider .banner-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  
  /* Adjust banner dots for mobile */
  .banner-slider .owl-dots {
    bottom: 10px;
  }
  
  .banner-slider .owl-dot span {
    width: 8px;
    height: 8px;
    margin: 3px;
  }
}

/* ============================
   CATEGORY SLIDER MOBILE STYLES
============================ */
@media (max-width: 768px) {
  .othoba-category-slider {
    margin: 0 -5px;
  }
  
  .othoba-category-slider .owl-stage {
    padding-left: 0 !important;
  }
  
  .othoba-category-slider .category-item {
    padding: 0 5px;
  }
  
  /* Adjust category items for mobile */
  .category-item .icon {
    width: 50px;
    height: 50px;
    margin: 0 auto;
  }
  
  .category-item h6 {
    font-size: 11px;
    margin-top: 5px;
    text-align: center;
  }
}

/* ============================
   HOT DEALS MOBILE STYLES
============================ */
@media (max-width: 768px) {
  .hot-deals-slider .owl-nav {
    display: none;
  }
  
  .hot-deals-slider .owl-dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
  }
  
  .hot-deals-slider .product-card {
    margin: 0 5px;
  }
}

/* ============================
   PRODUCT CARDS MOBILE STYLES
============================ */
@media (max-width: 576px) {
  .product-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    background: white;
  }
  
  .product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 10px;
  }
  
  .product-card .product-title {
    font-size: 13px;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    margin-bottom: 8px;
  }
  
  .product-card .price {
    font-size: 16px;
    font-weight: bold;
    color: #0d6efd;
  }
  
  .product-card .original-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-left: 5px;
  }
}

/* ============================
   BUTTONS MOBILE STYLES
============================ */
@media (max-width: 576px) {
  .btn {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
  }
  
  .add-cart-btn,
  .wishlist-btn {
    width: 100%;
    margin-bottom: 5px;
  }
  
  /* Stack buttons vertically on mobile */
  .product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
  }
}

/* ============================
   FORMS MOBILE STYLES
============================ */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 14px;
    padding: 10px 15px;
  }
  
  .form-control {
    height: 44px;
  }
}

/* ============================
   TOUCH-FRIENDLY SIZES
============================ */
@media (max-width: 768px) {
  /* Minimum touch target size */
  a, button, .clickable {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Larger tap targets for interactive elements */
  .footer-links a,
  .suggestion-item,
  .category-item {
    padding: 10px 0;
  }
  
  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
    width: 100%;
  }
}

/* ============================
   ANIMATIONS FOR MOBILE
============================ */
@media (max-width: 768px) {
  /* Smooth transitions for mobile */
  .archon-icon,
  .footer-social,
  .btn {
    transition: all 0.2s ease;
  }
  
  /* Subtle hover effects for touch */
  .archon-icon:active,
  .footer-social:active,
  .btn:active {
    transform: scale(0.95);
  }
  
  /* Loading animation for mobile */
  .spinner {
    width: 20px;
    height: 20px;
  }
}

/* ============================
   FIX FOR IOS SAFARI
============================ */
@supports (-webkit-touch-callout: none) {
  .banner-slider .banner-item {
    height: auto;
    max-height: 250px;
  }
  
  input, select, textarea {
    font-size: 16px;
  }
}

/* ============================
   DARK MODE SUPPORT
============================ */
@media (max-width: 768px) {
  @media (prefers-color-scheme: dark) {
    .archon-header,
    .mobile-header {
      background: #1a1a1a;
      color: #ffffff;
      border-bottom-color: #333;
    }
    
    .header-search input {
      background: #2d2d2d;
      border-color: #444;
      color: #fff;
    }
    
    .search-suggestions {
      background: #2d2d2d;
      color: #fff;
    }
    
    .suggestion-item {
      border-bottom-color: #444;
    }
  }
}