*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #eaeded;
  color: #111;
}

a {
  text-decoration: none;
  color: inherit;
}

.header {
  background-color: #131921;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  gap: 1rem;
}

.header-left,
.header-center,
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  padding: 0.3rem 0;
}

.logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.location .small-text {
  font-size: 0.75rem;
}

.location .bold-text {
  font-size: 0.9rem;
  font-weight: bold;
}

.search-input {
  width: 320px;
  padding: 0.4rem 0.6rem;
  border-radius: 4px 0 0 4px;
  border: none;
}

.search-button {
  padding: 0.45rem 0.9rem;
  border-radius: 0 4px 4px 0;
  border: none;
  background-color: #febd69;
  cursor: pointer;
}

.account .small-text {
  font-size: 0.75rem;
}

.account .bold-text {
  font-size: 0.9rem;
  font-weight: bold;
}

.cart {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  position: relative;
  padding: 0.2rem 0.5rem;
}

.cart-count {
  position: absolute;
  top: -0.3rem;
  left: 0.1rem;
  background: #f08804;
  color: #111;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 0.05rem 0.25rem;
  border-radius: 999px;
}

.cart-icon {
  font-size: 1.4rem;
}

.bold-text {
  font-weight: bold;
}

.main {
  padding: 1rem 1.5rem 2rem;
}

.poster-carousel {
  position: relative;
  width: 100%;
  height: 400px;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 2rem;
  z-index: 2;
}

.carousel-content h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-content p {
  font-size: 1.2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background-color: white;
  width: 30px;
  border-radius: 6px;
}

.indicator:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.products-section h2 {
  margin-bottom: 0.75rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.product-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  margin-bottom: 0.5rem;
}

.product-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-title {
  font-size: 0.95rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.product-price {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.product-rating {
  font-size: 0.8rem;
  color: #f0c14b;
  margin-bottom: 0.35rem;
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.quantity-select {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 2px solid #ddd;
  background-color: white;
  font-size: 0.9rem;
  font-weight: 500;
  color: #111;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 2rem;
  min-width: 80px;
}

.quantity-select:hover {
  border-color: #ff9900;
  box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.1);
}

.quantity-select:focus {
  outline: none;
  border-color: #ff9900;
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.2);
}

.primary-button {
  background-color: #ffd814;
  border-radius: 999px;
  border: 1px solid #fcd200;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  font-size: 0.85rem;
  white-space: nowrap;
  min-width: 120px;
}

.primary-button:hover {
  background-color: #f7ca00;
}

.footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  background-color: #131921;
  color: #ddd;
}

.checkout-main {
  max-width: 1100px;
  margin: 0 auto;
}

.checkout-content {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 1rem;
  align-items: flex-start;
}

.cart-items {
  background: white;
  padding: 1rem;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cart-items h2 {
  margin-bottom: 0.75rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #ddd;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-image {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: bold;
}

.cart-item-price {
  font-size: 0.9rem;
  color: #b12704;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.cart-item-controls label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

.cart-item-quantity-input {
  width: 70px;
  padding: 0.5rem;
  border-radius: 8px;
  border: 2px solid #ddd;
  background-color: white;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
}

.cart-item-quantity-input:hover {
  border-color: #ff9900;
  box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.1);
}

.cart-item-quantity-input:focus {
  outline: none;
  border-color: #ff9900;
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.2);
}

.link-button {
  background: none;
  border: none;
  color: #007185;
  cursor: pointer;
  font-size: 0.8rem;
}

.summary {
  background: white;
  padding: 1rem;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 1rem;
}

.summary h3 {
  margin-bottom: 0.5rem;
}

.delivery-options {
  margin-bottom: 0.75rem;
}

.delivery-options h4 {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.delivery-options label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.price-breakdown {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.price-breakdown .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.price-breakdown .total-row {
  font-weight: bold;
  border-top: 1px solid #ddd;
  padding-top: 0.3rem;
  margin-top: 0.3rem;
}

.full-width {
  width: 100%;
}

.empty-cart-container {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-cart-message {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.shop-now-button {
  display: inline-block;
  background-color: #ffd814;
  color: #111;
  padding: 0.75rem 2rem;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
  border: 1px solid #fcd200;
  transition: background-color 0.2s ease, transform 0.2s ease;
  font-size: 1rem;
}

.shop-now-button:hover {
  background-color: #f7ca00;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .header {
    flex-wrap: wrap;
  }

  .search-input {
    width: 180px;
  }

  .checkout-content {
    grid-template-columns: 1fr;
  }
}

