/* Styles for individual shop pages */

body {
  margin: 0 auto;
  padding: 0;
  max-width: 480px;
  background: #fff;
}

/* Header */
.shop-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 2rem 1.5rem;
}

.shop-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
}

.shop-header-text {
  flex: 1;
  text-align: center;
  min-width: 0; /* Allow text to shrink */
}

.shop-header h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.shop-tagline {
  margin: 0;
  opacity: 0.95;
  font-size: 1rem;
  font-weight: 400;
}

/* Cart Button */
.cart-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.cart-button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.cart-button:active {
  transform: scale(0.95);
}

.cart-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Content */
.shop-content {
  padding: 2rem 1.5rem;
}

/* Catalog Section */
.catalog-section h2 {
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
  color: #1f2937;
  font-weight: 600;
}

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

.product-card {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.4);
  font-size: 0.875rem;
  overflow: hidden;
}

.product-image picture,
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.product-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
  color: #1f2937;
}

.product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

/* Empty State */
.empty-state {
  border: 2px dashed rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  color: rgba(0, 0, 0, 0.6);
  background: #f9fafb;
}

.empty-state h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: rgba(0, 0, 0, 0.8);
  font-weight: 600;
}

.empty-state p {
  margin: 0;
  font-size: 0.95rem;
}

/* Footer */
.shop-footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.6);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background: #f9fafb;
  margin-top: 2rem;
}

.shop-footer p {
  margin: 0.5rem 0;
}

.shop-footer p:first-child {
  margin-top: 0;
}

.shop-footer p:last-child {
  margin-bottom: 0;
}

.shop-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.15s ease;
}

.shop-footer a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 360px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

