/* ====================
SHOP PAGE STYLING
==================== */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.filter-button {
  padding: var(--space-xs) var(--space-md);
  border: var(--border-width) solid var(--brand-yellow);
  border-radius: var(--radius-md);
  color: var(--text-on-dark);
  text-decoration: none;
  transition: all var(--transition-base);
  font-weight: 500;
}

.filter-button:hover,
.filter-button.active {
  background-color: var(--brand-yellow);
  color: var(--text-on-light);
  box-shadow: var(--shadow-focus);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-sm);
}

.product-card {
  background-color: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.product-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

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

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--bg), var(--section));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
}

.product-info {
  padding: var(--card-padding);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  color: var(--brand-yellow);
  margin-bottom: var(--space-xs);
  font-size: 1.5rem;
  text-transform: uppercase;
}

.description {
  color: var(--text-on-dark);
  margin-bottom: var(--space-sm);
  flex-grow: 1;
  line-height: 1.4;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.price {
  color: var(--brand-yellow);
  font-size: 1.5rem;
  font-weight: bold;
}

.vat-info {
  color: var(--text-on-dark-soft);
  font-size: 0.8em;
  margin-left: 4px;
}

.summary-row.total {
  font-weight: bold;
  font-size: 1.2em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1rem;
  padding-top: 1rem;
}
.status {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

.status.in-stock {
  background-color: var(--brand-green);
  color: var(--text-on-light);
}

.status.out-of-stock {
  background-color: var(--brand-red);
  color: var(--text-on-light);
}

.add-to-cart-form {
  margin-top: auto;
}

.form-row {
  display: flex;
  gap: var(--space-xs);
}

.quantity-input {
  width: 80px;
  padding: var(--space-xs);
  border: var(--border-width) solid var(--brand-yellow);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-on-dark);
  font-size: 1rem;
}

.button {
  flex-grow: 1;
  padding: var(--space-xs) var(--space-sm);
  background-color: var(--brand-yellow);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-on-light);
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition-base);
}

.button:hover:not(:disabled) {
  background-color: var(--brand-blue);
}

.button:disabled {
  background-color: var(--grey);
  cursor: not-allowed;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-sm);
  }

  .product-image {
    height: 240px;
  }

  .product-info {
    padding: var(--space-sm);
  }

  .product-info h3 {
    font-size: 1.25rem;
  }

  .price {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .category-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-button {
    text-align: center;
  }

  .form-row {
    flex-direction: column;
  }

  .quantity-input {
    width: 100%;
  }
}

/* ====================
CART PAGE STYLING
==================== */
/* Add to your shop-style.css */

.cart-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  padding: 1rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.5);
}

.cart-item-image {
  width: 150px;
  height: 150px;
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
}

.cart-item-details h3 {
  color: var(--yellow);
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 1rem;
}

.custom-details {
  color: white;
}

.quantity-form {
  display: flex;
  align-items: center;
}

.quantity-input {
  width: 60px;
  padding: 0.5rem;
  border: 2px solid var(--yellow);
  border-radius: 5px;
  background: transparent;
  color: white;
}

.price-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: white;
}

.item-price {
  font-size: 0.9rem;
}

.subtotal {
  color: var(--yellow);
  font-weight: bold;
  font-size: 1.3rem;
}

.remove-button {
  padding: 0.5rem 1rem;
  background-color: transparent;
  border: 2px solid #f44336;
  border-radius: 5px;
  color: #f44336;
  cursor: pointer;
  transition: all 0.3s ease;
}

.remove-button:hover {
  background-color: #f44336;
  color: white;
}

.cart-summary {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  height: fit-content;
}

.cart-summary h3 {
  color: var(--yellow);
  margin-bottom: 1.5rem;
  text-align: center;
}

.summary-row {
  display: flex;
  font-size: 1.25rem;
  justify-content: space-between;
  color: white;
  margin-bottom: 1rem;
}

.summary-row.total {
  border-top: 1px solid var(--yellow);
  padding-top: 1rem;
  font-weight: bold;
  font-size: 1.5rem;
}

.cart-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.button.secondary {
  background-color: transparent;
  border: 2px solid var(--yellow);
  color: var(--yellow);
}

.button.secondary:hover {
  background-color: var(--yellow);
  color: black;
}

.empty-cart {
  text-align: center;
  color: white;
  padding: 2rem;
}

.empty-cart p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

@media (max-width: 1000px) {
  .cart-container {
    display: flex;
    flex-direction: column-reverse;
  }
}

@media (max-width: 768px) {
  .cart-item {
    grid-template-columns: 100px 1fr;
  }

  .cart-item-image {
    width: 100px;
    height: 100px;
  }

  .cart-item-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .price-info {
    align-items: flex-start;
  }

  .cart-item-details h3 {
    color: var(--yellow);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
  }
}
