@import url("https://fonts.googleapis.com/css?family=Roboto:300");

html,
body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 90%;
  margin: 20px auto;
}

h1 {
  text-align: center;
  color: #111111;
  margin-bottom: 20px;
}

.shop {
  display: flex;
  gap: 20px;
}

.products {
  flex: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 20px;
}

.product .name {
  color: #444444;
}

.product .price {
  font-weight: 700;
  color: #666666;
}

.product img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.add-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 4px;
  margin-top: 10px;
  border: 2px solid #111111;
  background-color: #EBEBEB;
  color: #000;
  font-weight: bolder;
  padding: 12px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.add-btn:hover {
  background: #111111;
  color: #fff;
}

.add-btn i {
  font-size: 16px;
}

.added {
  background: #444444;
  color: #fff;
  border-color: #000;
  transition: background 0.4s ease, color 0.4s ease;
}

.add-btn.added::after {
  content: url(assets/icons/Check.svg);
  position: absolute;
  right: 12px;
  font-size: 18px;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.added i::before {
  content: url(assets/icons/Plus.svg);
  /* Font Awesome check icon */
}

.bundle {
  flex: 1;
  border: 2px solid #111111;
  padding: 16px;
}


.bundle-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  padding-bottom: 8px;
}

.summary {
  margin-top: 15px;
}

.bundle-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 5px;
}

.bundle-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

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

.bundle-item .price {
  color: #888;
  font-size: 14px;
  margin: 6px 0;
}

.details .price{
  font-weight: 700;
}

.bundle-item .name {
  color: #000;
  font-weight: bold;
  font-size: 16px;
}

.bundle-right {
  width: 100%;
}

.skeleton {
  height: 80px;
  margin: 8px 0;
  display: flex;
  gap: 16px;
  border-radius: 5px;
}

.skeleton-image {
  width: 80px;
  height: 80px;
  background: #F5F5F5;
}

.skeleton-text {
  flex: 1;
  background: #F5F5F5;
}

/* Progress bar */
.progress-container {
  position: relative;
  background: #EBEBEB;
  height: 6px;
  width: 100%;
  margin: 10px 0 20px;
  border-radius: 3px;
}

.progress-bar {
  background: #000;
  height: 100%;
  width: 0%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.qty-controls {
  background-color: #F5F5F5;
  width: 100px;
  display: flex;
  align-items: center;
  padding: 4px;
  width: max-content;
  gap: 8px;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qty-controls button {
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 4px;
}

.qty-controls span {
  width: 20px;
  font-weight: bold;
  text-align: center;
}

.fa-trash {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #888;
  margin-left: 10px;
}

#add-to-cart {
  width: 100%;
  background: #555;
  color: white;
  padding: 12px;
  border: none;
  cursor: not-allowed;
  font-weight: bold;
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#add-to-cart.enabled {
  background: #000;
  cursor: pointer;
}

#add-to-cart.enabled::after {
  content: url(assets/icons/Check.svg);
}


@media (max-width:450px) {
  .shop {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .products {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(1, minmax(200px, 1fr));
    gap: 20px;
  }

}



