/* Premium Mobile-First Optimization for Eurocars */

:root {
  --primary-color: #23a1d1;
  --secondary-color: #1f90bb;
  --dark-bg: #1a1a1a;
  --light-bg: #f8f9fa;
  --glass-bg: rgba(255, 255, 255, 0.8);
  --border-radius: 12px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 767px) {
  body {
    font-size: 14px;
    background-color: #f4f7f9;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Premium Header */
  header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
  }

  #logo {
    text-align: left;
    margin: 0;
  }

  #logo img {
    max-height: 40px;
    width: auto;
  }

  /* Product Gallery Swiper Style */
  .gallery-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 8px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-item {
    flex: 0 0 85%;
    scroll-snap-align: center;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }

  .gallery-thumb {
    width: 100%;
    height: 250px;
    object-fit: cover;
  }

  /* Product Card (Horizontal Style) */
  .product-horizontal {
    background: #fff;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: none !important;
    transition: transform 0.2s;
  }

  .product-horizontal:active {
    transform: scale(0.98);
  }

  .product-thumb {
    display: flex;
    flex-direction: row;
    height: 140px;
    border: none !important;
    margin-bottom: 0 !important;
  }

  .product-thumb-image {
    width: 40% !important;
    min-width: 130px;
  }

  .product-thumb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .product-thumb .caption {
    width: 60%;
    padding: 12px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: auto !important;
  }

  .product-card-title {
    font-size: 15px !important;
    margin: 0 0 5px 0 !important;
    font-weight: 700 !important;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2 !important;
  }

  .price-tag {
    font-size: 18px !important;
    color: var(--primary-color) !important;
    font-weight: 800 !important;
  }

  .product-card-specs {
    font-size: 11px;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  .card-spec {
    background: #f0f2f5;
    padding: 2px 6px;
    border-radius: 4px;
  }

  /* Bottom Sticky Nav */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1001;
  }

  .nav-item {
    text-align: center;
    color: #666;
    font-size: 10px;
    text-decoration: none;
    flex: 1;
  }

  .nav-item i {
    display: block;
    font-size: 20px;
    margin-bottom: 2px;
  }

  .nav-item.active {
    color: var(--primary-color);
  }

  /* Hide Breadcrumbs on Mobile to save space */
  .breadcrumb {
    display: none;
  }
}

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

.product-horizontal {
  animation: fadeIn 0.4s ease-out backwards;
}
