@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Baloo+2:wght@400..800&family=Baloo+Bhaijaan+2:wght@400..800&family=Butcherman&family=Cutive+Mono&family=Fredoka:wght@300..700&family=Gothic+A1&family=Gravitas+One&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Libertinus+Sans:ital,wght@0,400;0,700;1,400&family=Luckiest+Guy&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Nanum+Pen+Script&family=Nata+Sans:wght@100..900&family=Nosifer&family=Noto+Sans+NKo&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Paprika&family=Parisienne&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Playwrite+VN+Guides&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Protest+Revolution&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto+Flex:opsz,wght@8..144,100..1000&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Rubik+Doodle+Shadow&family=Rubik+Spray+Paint&family=Sen:wght@400..800&family=Shadows+Into+Light&display=swap');

:root {
    --bg: #ffffff;
    --bg-soft: #f7f7f7;
    --bg-dark: #0e0e0e;
    --card: #ffffff;

    --text: #111111;
    --muted: #777777;

    --accent: #000000;
    --border: rgba(0,0,0,.08);
    --glass: rgba(255,255,255,.6);

    --radius: 20px;
    --shadow: 0 12px 40px rgba(0,0,0,.08);

    --font-head: 'Raleway';
    --font-para: 'Nunito Sans';

    --accent1: #fefefe;
    --accent2: #121212;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f7f7f7;
  color: #111;
}

.cart_header {
  background: #fff;
  padding: 18px 22px;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
}

.brand img {
  width: 69px;
  height: auto;
  object-fit: cover;
}

.cart_header h1 {
  font-size: 1.6rem;
  font-weight: 500;
}

.back_link {
  font-size: 0.9rem;
  text-decoration: none;
  color: #555;
}

.cart_wrapper {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}

.cart_item {
  background: #fff;
  border-radius: 20px;
  padding: 16px;
}

.cart_item {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 18px;
  break-inside: avoid;
  /*border: 2px solid #000;*/
  /*outline: 1px solid red*/;
}

.cart_item:last-child {
  border-bottom: none;
}

.cart_item img {
  width: 150px;
  height: 210px;
  object-fit: cover;
  border-radius: 6px;
  transition: all .3s ease;
}

.cart_item img:hover {
  transform: scale(1.05);
}

.cart_info h3 {
  font-size: 1rem;
  font-weight: 500;
}

.cart_info p {
  font-size: 0.9rem;
  color: #666;
  margin-top: 4px;
}

.qty-controls {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-controls button {
  color: #fff;
  background: #111;
  border: none;
  border-radius: 8px;
  padding: 4px 10px;
  height: fit-content;
  width: fit-content;
}

.qty_box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty_box button {
  border: 1px solid #ccc;
  background: none;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
}

.qty_box span {
  min-width: 20px;
  text-align: center;
}

.remove_btn {
  border: none;
  background: #ff0101be;
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 10px ;
  transition: background .3s ease;
}

.remove_btn:hover {
  background: #9d2626d6;
}

.cart_summary {
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  height: fit-content;
  position: sticky;
  top: 90px; 
}

.cart_summary h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.summary_row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.checkout_btn {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  background: #25D366;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
}

.checkout_btn:hover {
  background: #1ebe5d;
}

.note {
  font-size: 0.8rem;
  color: #777;
  margin-top: 10px;
  text-align: center;
}

@media (max-width: 600px) {
  .cart_wrapper {
    display: flex;
    flex-direction: column;
  }
}
