/* =========================================================================
   SHOP-SPEZIFISCHE STYLES - Mäxx Foto Website
   ========================================================================= */

/* =========================================================================
   SHOP LAYOUT
   ========================================================================= */

/* Shop Seite Header */
.page-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
  font-family: var(--font-heading);
}

.page-header p {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1.1rem;
}

.shop-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.products-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* minmax verhindert Überlauf */
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  width: 100%;
}

.product-item {
  background: var(--background-overlay);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: transform var(--transition-fast);
  max-width: 100%; /* Verhindert, dass Produkte über den Container hinausragen */
  height: auto; /* Erlaubt variable Höhen für die Produkte */
  min-height: 500px; /* Erhöhte Mindesthöhe für mehr Platz für Buttons */
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  overflow: visible; /* Verhindert, dass Inhalte abgeschnitten werden */
}

.product-item:hover {
  transform: translateY(-5px);
}

/* =========================================================================
   SHOPIFY STYLING OVERRIDES
   ========================================================================= */

/* Shopify Produkt-Container */
.shopify-buy__product {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}

/* Shopify Buttons */
.shopify-buy__btn,
.shopify-buy__btn-wrapper button {
  background-color: rgb(201, 113, 72) !important;
  font-family: Cambria, Georgia, serif !important;
  color: white !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 12px 20px !important;
  font-size: 16px !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease !important;
  display: inline-block !important;
  width: auto !important;
  margin-top: 15px !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-align: center !important;
  z-index: 999 !important;
  position: relative !important;
  pointer-events: auto !important;
}

.shopify-buy__btn:hover,
.shopify-buy__btn-wrapper button:hover {
  background-color: rgb(181, 102, 65) !important;
}

/* Shopify Produkt-Titel und Preis */
.shopify-buy__product__title {
  font-size: 26px !important;
  color: white !important;
  font-family: Cambria, Georgia, serif !important;
  margin-bottom: 15px !important;
  font-weight: normal !important;
}

.shopify-buy__product__price {
  font-size: 18px !important;
  color: #c1b6b2 !important;
  margin-bottom: 20px !important;
  font-weight: normal !important;
}

/* Shopify Produktbeschreibung */
.shopify-buy__product-description {
  color: #c1b6b2 !important;
  font-family: Arial, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  margin-bottom: 20px !important;
}

/* Shopify Bilder */
.shopify-buy__carousel {
  margin-bottom: 30px !important;
}

.shopify-buy__carousel-item {
  border-radius: 8px !important;
  overflow: hidden !important;
}

/* Shopify Button Container */
.shopify-buy__btn-wrapper {
  display: block !important;
  margin-top: 20px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.shopify-buy__cart-popup {
  background: var(--background-dark) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--background-overlay-strong) !important;
}

.shopify-buy__product {
  background: var(--text-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  padding: var(--spacing-md);
}

.shopify-buy__product:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.shopify-buy__product-img-wrapper {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.shopify-buy__product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shopify-buy__product-title {
  font-size: 1.4rem;
  color: var(--background-dark);
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-heading);
}

.shopify-buy__product-price {
  font-size: 1.2rem;
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: var(--spacing-md);
}

/* Ensure Shopify components are visible */
.shopify-buy__product-description {
  color: var(--text-secondary) !important;
  font-family: var(--font-primary) !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

.shopify-buy__product__title {
  margin-bottom: var(--spacing-sm) !important;
}

.shopify-buy__product__price {
  margin-bottom: var(--spacing-md) !important;
  font-weight: bold !important;
}

.shopify-buy__btn-wrapper {
  display: block !important;
  margin-top: var(--spacing-md) !important;
}

/* Force visibility of buttons */
.shopify-buy__btn {
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 999 !important;
  min-width: 120px !important;
  min-height: 44px !important;
}

/* Button Wrapper muss auch sichtbar sein */
.shopify-buy__btn-wrapper {
  display: block !important;
  margin-top: var(--spacing-md) !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative !important;
  z-index: 998 !important;
}

.shop-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
  align-items: center;
}

.shop-info {
  flex: 1;
  min-width: 300px;
}

.shop-info h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.shop-info p {
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
  letter-spacing: normal;
}

.shop-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.shop-category {
  background-color: var(--background-overlay);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.shop-category:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.08);
}

.shop-category i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.shop-category h4 {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
}

.shop-category p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.shop-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-primary);
  padding: 0.8rem var(--spacing-md);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: bold;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  margin-top: var(--spacing-sm);
}

.shop-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
}

.shop-button i {
  margin-right: var(--spacing-xs);
}

.shop-preview {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.shop-image {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-strong);
  transition: transform var(--transition-fast);
}

.shop-preview:hover .shop-image {
  transform: scale(1.03);
}

.shop-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background-color: var(--primary-color);
  color: var(--text-primary);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-circle);
  font-weight: bold;
  box-shadow: var(--shadow-medium);
}

/* =========================================================================
   RESPONSIVE SHOP
   ========================================================================= */

@media (max-width: 1200px) {
  .products-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .products-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .product-item {
    min-height: 450px;
    padding: var(--spacing-md);
  }
  
  .shop-container {
    flex-direction: column;
  }
  
  .shop-preview {
    order: -1;
    margin-bottom: var(--spacing-md);
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .page-header p {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
  
  .shopify-buy__product__title {
    font-size: 22px !important;
  }
  
  .shopify-buy__product__price {
    font-size: 16px !important;
  }
  
  .shopify-buy__product-description {
    font-size: 14px !important;
  }
}

@media (max-width: 480px) {
  .shop-categories {
    grid-template-columns: 1fr;
  }
}

/* Shop-spezifische Anpassungen */
#shop {
  max-width: 90%; /* Breitere Sektion für Shop-Inhalte */
}

/* Zentrierte Container-Klasse für maximale Breite */
.centered-container {
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
