/* Los Unicos - Mobile-Optimized Shop Styles */
:root {
  --primary: #059E84;
  --primary-dark: #048a72;
  --secondary: #2d465e;
  --text: #333;
  --text-light: #777;
  --light: #f8f9fa;
  --light-gray: #eee;
  --white: #fff;
  --black: #111;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --radius: 8px;
  --transition: all 0.25s ease;
  --tap-highlight: rgba(5, 158, 132, 0.1);
}

/* Base Mobile Optimizations */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  touch-action: manipulation; /* Prevent zoom on double-tap */
}

/* Shop Hero - Mobile First */
.shop-hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
              url('../img/shop-hero-mobile.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 4rem 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-hero h1 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

/* Products Grid - Mobile First */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  will-change: transform;
}

/* Touch Devices - Optimize hover effects */
@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
  }
}

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

/* Product Media */
.product-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  -webkit-tap-highlight-color: var(--tap-highlight);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

/* Product Badges */
.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2;
}

.featured-badge, .sale-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Product Actions - Mobile Optimized */
.product-actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2;
}

/* Show actions always on mobile */
.product-actions {
  opacity: 1;
  transform: translateX(0);
}

.wishlist-btn, .view-btn {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--white);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  -webkit-tap-highlight-color: transparent;
}

/* Add to Cart - Mobile Optimized */
.add-to-cart {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  color: var(--primary);
  text-align: center;
  padding: 0.6rem;
  font-weight: 600;
  font-size: 0.9rem;
  transform: translateY(0); /* Always visible on mobile */
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  z-index: 2;
  -webkit-tap-highlight-color: var(--tap-highlight);
}

/* Product Info */
.product-info {
  padding: 1rem 0.75rem;
  text-align: center;
}

.product-title {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
  line-height: 1.3;
}

.product-title a {
  color: var(--text);
  text-decoration: none;
  -webkit-tap-highlight-color: var(--tap-highlight);
}

.product-price {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.current-price {
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
}

.original-price {
  color: var(--text-light);
  text-decoration: line-through;
  font-size: 0.8rem;
}

/* Shop Filter - Mobile Optimized */
.shop-filter {
  padding: 1rem 0;
  margin-bottom: 1rem;
  background-color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.filter-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.5rem 1rem;
}

.filter-nav {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.25rem;
  background: var(--light);
  border-radius: 2rem;
  min-width: min-content;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  background: transparent;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: var(--transition);
  border: none;
  -webkit-tap-highlight-color: transparent;
}

.filter-btn.active {
  background: var(--primary);
  color: var(--white);
}

/* Responsive Breakpoints */
@media (min-width: 400px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (min-width: 576px) {
  .shop-hero {
    padding: 5rem 0;
    min-height: 300px;
    background-image: url('../img/shop-hero.jpg');
  }
  
  .shop-hero h1 {
    font-size: 2.2rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
  }
  
  .product-actions {
    opacity: 0;
    transform: translateX(10px);
  }
  
  .add-to-cart {
    transform: translateY(100%);
  }
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 0;
  }
  
  .shop-hero {
    padding: 6rem 0;
  }
  
  .shop-hero h1 {
    font-size: 2.5rem;
  }
  
  .filter-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
  }
}

@media (min-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  
  .product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
  }
  
  .product-card:hover .add-to-cart {
    transform: translateY(0);
  }
}

/* Touch device specific adjustments */
@media (pointer: coarse) {
  .product-title a, 
  .product-media, 
  .filter-btn {
    min-height: 44px; /* Minimum touch target size */
  }
  
  .wishlist-btn, 
  .view-btn {
    width: 2rem;
    height: 2rem;
  }
}
/* Floating Cart Button */
.floating-cart {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--primary);
  color: var(--white);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 999;
  transition: transform 0.2s ease, background 0.3s ease;
}

.floating-cart:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.floating-cart .cart-count {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  background: #ff3b3b;
  color: #fff;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
