/* General & Reusable Styles */
body {
  font-family: "Inter", sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  margin: 0;
}

.container {
  width: 100%;
  margin: 0 auto;
}
@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

/* Header (Consistent with other pages) */
.site-header {
  background-color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.logo-icon {
  height: 2rem;
  width: 2rem;
  color: #2563eb;
}
.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}
.main-nav {
  /* display: none; */
  gap: 2rem;
}
@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
}
.main-nav a {
  color: #475569;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms;
}
.main-nav a:hover {
  color: #2563eb;
}
.header-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.icon-link {
  position: relative;
  color: #64748b;
  transition: color 150ms;
}
.icon-link:hover {
  color: #2563eb;
}
.icon {
  height: 1.5rem;
  width: 1.5rem;
}
.cart-badge {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 0.75rem;
  border-radius: 9999px;
  height: 1.25rem;
  width: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Content */
.page-content {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.page-header {
  margin-bottom: 1.5rem;
}
.page-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #0f172a;
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}
.breadcrumbs li {
  display: flex;
  align-items: center;
}
.breadcrumbs a {
  color: #64748b;
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: #2563eb;
}
.breadcrumbs span {
  color: #1e293b;
  font-weight: 500;
}
.separator-icon {
  height: 0.75rem;
  width: 0.75rem;
  fill: #94a3b8;
  margin: 0 0.5rem;
}

/* Cart Layout */
.cart-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .cart-layout {
    flex-direction: row;
  }
}

/* Cart Items Section */
.cart-items-container {
  width: 100%;
}
@media (min-width: 1024px) {
  .cart-items-container {
    width: 66.66%;
  }
}

.cart-items-card {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}
.cart-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}
.cart-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
@media (min-width: 640px) {
  .cart-item {
    flex-direction: row;
  }
}

.cart-item-image {
  width: 6rem;
  height: 6rem;
  border-radius: 0.5rem;
  object-fit: cover;
}
.cart-item-details {
  flex-grow: 1;
  text-align: center;
}
@media (min-width: 640px) {
  .cart-item-details {
    text-align: left;
  }
}
.cart-item-details .product-name {
  font-weight: 600;
  font-size: 1.125rem;
}
.cart-item-details .product-meta {
  font-size: 0.875rem;
  color: #64748b;
}
.remove-button {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
}
.remove-button:hover {
  color: #b91c1c;
}

.quantity-selector {
  display: flex;
  align-items: center;
}
.quantity-btn {
  height: 2rem;
  width: 2rem;
  background-color: #e2e8f0;
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
}
.quantity-btn:first-child {
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}
.quantity-btn:last-child {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}
.quantity-input {
  height: 2rem;
  width: 3rem;
  text-align: center;
  border: 1px solid #e2e8f0;
  border-left: none;
  border-right: none;
  box-sizing: border-box;
}

.cart-item-price {
  font-weight: 600;
  font-size: 1.125rem;
  width: 8rem;
  text-align: right;
}

/* Order Summary Section */
.order-summary-container {
  width: 100%;
}
@media (min-width: 1024px) {
  .order-summary-container {
    width: 33.33%;
  }
}

.order-summary-card {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.summary-title {
  font-size: 1.25rem;
  font-weight: 700;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.75rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
}
.summary-total {
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.125rem;
}

.promo-code-group {
  display: flex;
  padding-top: 0.5rem;
}
.promo-input {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #cbd5e1;
  border-right: none;
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}
.promo-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #60a5fa;
}
.promo-button {
  background-color: #1e293b;
  color: #fff;
  padding: 0 1rem;
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  border: none;
  cursor: pointer;
}
.promo-button:hover {
  background-color: #0f172a;
}

.checkout-button {
  width: 100%;
  background-color: #2563eb;
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 0;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background-color 300ms;

  a {
    text-decoration: none;
    color: #fff;
  }
}
.checkout-button:hover {
  background-color: #1d4ed8;
}

.continue-shopping-link {
  color: #2563eb;
  text-align: center;
  display: block;
  margin-top: 0.5rem;
  text-decoration: none;
}
.continue-shopping-link:hover {
  color: #1e3a8a;
}

/* Footer */
.site-footer {
  background-color: #1e293b;
  color: #ffffff;
  margin-top: 4rem;
}
.footer-bottom {
  border-top: 1px solid #334155;
  padding: 1.5rem 0;
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
}
