@charset "utf-8";


@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic&family=Noto+Sans+KR:wght@100..900&display=swap');

@font-face {
  font-family: 'Gmarket Sans';
  src: url('../fonts/GmarketSansTTFLight.woff2') format('woff2'),
      url('../fonts/GmarketSansTTFLight.woff') format('woff'),
      url('../fonts/GmarketSansTTFLight.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body,html{
  scroll-behavior: smooth;
  font-family: 'Gmarket Sans', sans-serif, "Noto Sans KR"!important;
  font-size: clamp(12px, 2vw, 18px) !important;
}

body {
  font-family: 'Gmarket Sans', sans-serif, "Noto Sans KR";
}
/* cart.css */
* {
  box-sizing: border-box;
}
body {
  font-family: 'Arial', sans-serif;
  background: #fff;
  margin: 0;
  padding: 0;
  color: #000;
}

.cart_container{
  margin: 0 auto;
  width:1200px;
}

.title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 50px;
  text-align: center;
  margin-top: 100px;
}
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.filters button {
  padding: 8px 16px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
  border-radius: 4px;
}
.address-box {
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 24px;
}
.address-box h4 {
  margin: 0 0 8px 0;
}
.address-box p {
  margin: 8px 0;
}
.address-box button {
  margin-top: 8px;
  padding: 8px 16px;
  background-color: #00C01E;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.cart-section {
  width: 100%;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  justify-content: flex-start;
}
.cart-header-box {
  max-width: 850px;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 10px 8px 10px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-item {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  align-items: center;
}
/* .cart-item {
  align-items: flex-start;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  position: relative;
} */

.cart-item .checkbox-wrap{
  margin-right: 12px;
  margin-top: 5px;
}

.cart-item input[type="checkbox"] {
  cursor: pointer;
  margin-right: 10px;
}

.cart-item img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  margin-right: 16px;
}

.cart-item img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  margin-right: 16px;
}
.cart-item button{
  background: #fff;
  border: none;
}

.select_del{
  padding: 10px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 5px;
  font-size: 14px;
}
.item-details {
  flex-grow: 1;
}
.item-name {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
}
.badge {
  display: inline-block;
  background-color: #067DFD;
  color: white;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 4px;
  margin-right: 4px;
}
.quantity {
  display: flex;
  align-items: center;
  margin-top: 8px;
}
.quantity button {
  width: 25px;
  height: 25px;
  text-align: center;
}
.price {
  font-weight: bold;
  margin-left: 16px;
}
.sticky-box{
  position: sticky;
  top: 50px;
}
.summary, .shipping-box {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 16px;
  height: fit-content;
  margin-bottom: 16px;
  width: 303px;
}
.summary{
  max-width: 480px;
  width: 100%;
  padding: 16px;
  box-sizing: border-box;
}
.summary h2, .shipping-box h2 {
  font-size: 18px;
  margin-top: 0;
  font-weight: bold;
}
.summary{line-height: 25px;}
.delivery_btn {
  margin-top: 8px;
  background-color: #0028AC;
  color: #fff;
  border: none;
  padding: 9px;
  border-radius: 4px;
  cursor: pointer;
}
.dis_product{
  color: red;
}
#deli_address{
  font-size: 13px;
  padding:7px;
  width: 207px;
  height: 35px;
  margin: 10px 0;
}
.summary div {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
}
.summary .total {
  font-weight: bold;
  font-size: 25px;
  color: #000;
}
.purchase-btn {
  width: 100%;
  padding: 16px;
  background-color: #0028AC;
  color: white;
  font-size: 19px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 16px;
}
.purchase-btn:hover {
  background-color: #0028AC;
}

.cart_container .cart_mobile{display: none;}
@media screen and (max-width:1024px){
  .cart_container{
    width: 100%;
  }
  .filters{
    padding-left: 20px;
  }
  .filters button {
  padding: 5px 10px;
  font-size: 14px;
}
  .cart-header-box{
    flex: 3 1 0;
    max-width: none;
    width: auto;
  }
  .text-center{
    margin: 20px 270px 0 0;
  }
  .sticky-box {
    width: 100%;
  }
  .cart-section{
    padding-left: 20px;
  }

}

@media screen and (max-width: 767px) {
  header,footer{display: none!important;}
  .cart_container .cart_mobile{display: block;position: relative;top: 38px;font-size: 25px;left: 20px;}
  .title{
    margin: 10px 0px 20px 0px;
  }
  .cart_container {
    max-width: 400px;
    width: 100%;
    margin: 0px auto;
    padding: 10px;
  }
  .filters{
    margin: 25px 0px;
  }
  .filters button {
    padding: 8px 4px;}

  .text-center{
    margin: 20px 99px;
  }
  .cart-section {
    width: 100%;
    flex-direction: column;
    gap: 16px;
    background: #fff;
    border-radius: 10px;
  }

  .cart-item {
    align-items: flex-start;
    padding: 15px 0px 0px 5px;
    margin-bottom: 0px;
  }


  .cart-header-box{
    width: 100%;
  }
  .cart-item img {
    width: 20%;
    height: auto;
    margin-bottom: 10px;
  }

  .item-details {
    width: 100%;
    font-size: 14px;
  }

  .quantity {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }

  .price {
    margin-left: 0;
    margin-top: 8px;
  }
  .sticky-box {
    max-width: 380px;
    width: 100%;
  }
  .summary {
    width: 95%;
    font-size: 14px;
  }

  .summary > h2 {
    display: none;
  }

  .shipping-box {
    display: none;
  }

  .purchase-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    padding: 14px;
    z-index: 100;
  }
}

