body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 30px;
  padding-bottom: 60px;
}

.container {
  margin: 0 auto;
  padding: 2rem;
}

.nav-cart-wrapper {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding-left: 40px;
  padding-right: 40px;
}

/* ===== SHOP INTRO ===== */
.shop-intro {
  background-color: rgba(139, 69, 19, 0.1);
  border: 2px solid var(--primary);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-dark);
  text-align: center;
}

.shop-intro strong {
  color: var(--red);
  font-weight: bold;
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.product-card {
  background-color: rgba(229, 217, 197, 0.3);
  border: 2px solid var(--primary);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  border-color: var(--red);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background-color: var(--background);
}

.product-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  font-family: "Grenze Gotisch";
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.2;
}

.product-description {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  flex-grow: 1;
  line-height: 1.5;
}

.product-price {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--red);
  margin-bottom: 12px;
  margin-top: auto;
}

.details-button {
  background-color: #a0522d;
  color: var(--color-text-light);
  padding: 5px;
  border: 1px solid var(--color-1);
  cursor: pointer;
}

.details-button:hover {
  background-color: var(--color-2);
}

/* ===== SNIPCART BUTTON ===== */
.product-buy-btn {
  background-color: var(--primary);
  color: var(--text-light);
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: "Goudy Bookletter 1911", serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-buy-btn:hover {
  background-color: var(--dark);
  transform: scale(1.02);
}

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

/* ===== CART BUTTON IN HEADER ===== */
.snipcart-btn {
  background-color: var(--red);
  color: var(--text-light);
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.snipcart-btn:hover {
  background-color: var(--dark);
  transform: scale(1.05);
}

/* ===== LOADING STATE ===== */
.loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-dark);
  padding: 40px 20px;
  font-size: 1.1rem;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 5, 3, 0.85);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  z-index: 20;
  padding: auto 3rem;
}

.card-wrapper {
  position: relative;
  margin: auto auto;
  max-width: var(--max-size);
  justify-self: center;
  background-color: white;
  padding: 10px;
}

.change-image-button {
  position: absolute;
  top: 25%;
  border: 1px solid var(--color-1);
  background-color: var(--color-2);
  width: 30px;
  height: 30px;
  border-radius: 4px;
}

.left-image-button {
  left: -15px;
}

.right-image-button {
  right: -15px;
  left: auto;
}

.price-add-wrapper {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--primary);
  border: 3px solid var(--dark);
  color: var(--text-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  z-index: 30;
}

.lightbox-close:hover {
  background-color: #a0522d;
  transform: scale(1.1);
}

/* ===== SNIPCART MODAL ADJUSTMENTS ===== */
.snipcart-modal__header {
  background-color: var(--primary);
  color: var(--text-light);
}

.snipcart-modal__content {
  background-color: var(--background);
  color: var(--text-dark);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .shop-container {
    padding: 160px 15px 60px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }

  .product-image {
    height: 200px;
  }

  .product-name {
    font-size: 1.1rem;
  }

  .product-price {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .shop-container {
    padding: 160px 10px 40px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .shop-intro {
    font-size: 0.95rem;
    padding: 15px;
  }

  .snipcart-btn {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
}
