@import "vars.css";

.cart-drawer{
  position:fixed;right:0;top:0;height:100%;
  width:min(500px,100vw);
  background:var(--whiteColor);box-shadow:var(--sh-xl);z-index:401;
  display:flex;flex-direction:column;
  transform:translateX(100%);transition:transform .28s cubic-bezier(.16,1,.3,1);
}

.cart-drawer.open{transform:translateX(0);}

.cart-body{
  font-family: var(--bodyFont), serif;
  flex:1;
  overflow-y:auto;
  display:flex;
  padding: 0;
  flex-direction:column;
  line-height: 25px;
}

.cart-count {
  line-height: 15px;
}

.cart-delete {
  font-size: 20px;
  font-weight: bold;
  margin: 0 8px;
}

.cart-delete:hover {
  cursor: pointer;
}

.cart-section {
  width: 100%;
  line-height: 2rem;
  flex: 1;
  min-width: 0;
}

.hist-content {
  margin: 11px 0;
}

.cart-empty {
  padding: 40px;
  text-align: center;
  color: #777;
  font-size: 18px;
  line-height: 40px;
}

.cart-empty i {
  font-size: 40px;
}

.cart-item {
  display: flex;
  width: 100%;
  gap: 32px;
  padding: 28px;
  margin-bottom: 14px;
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--blackColorDim);
  background: var(--whiteColor);
}

.cart-thumb {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  background: #f5f5f5;
  flex-shrink: 0;
}

.order-thumb {
  width: 55px;
  height: 55px;
  margin: 0 5px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px var(--blackColorDim);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.cart-icon {
  width: 36px; height: 36px; background: var(--secondaryColor);
  border-radius: var(--r-md); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}

.cart-icon.i {
  color: var(--primaryColor);
  font-size: 0.9rem;
}

.hist-icon {
  background: var(--primaryColorDim);
}

.cart-drawer-close {
  margin-left: auto;
}

.cart-title {
  font-size: clamp(16px,calc(100vh/1024),21px);
  font-weight: normal;
  text-decoration: underline;
  margin-bottom: 3px;
}

.cart-subtitle {
  font-size: clamp(0.8rem,calc(100vh/1024),1rem);
  font-weight: normal;
  text-decoration: none;
  vertical-align: bottom;
  margin: 0;
  padding: 0;
}

.order-body {
  font-size: clamp(1rem,calc(100vh/1024),1.33rem);
  font-weight: normal;
  text-decoration: none;
  margin-bottom: 3px;
  font-style: italic;
}

.cart-price {
  font-size: clamp(1.66rem,calc(100vh/1024),2rem);
  font-weight: bold;
}

.cart-checkout {
  font-size:  clamp(1.66rem,calc(100vh/1024),2rem);
  width: 100%;
}

.cart-date{
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.cart-date-stub {
  font-size: clamp(0.8rem,calc(100vh/1024),1rem);
  font-weight: normal;
  text-decoration: none;
  vertical-align: middle;
  text-align: right;
}

.cart-price-stub {
  font-size: clamp(1rem,calc(100vh/1024),1.33rem);
  font-weight: bold;
  vertical-align: middle;
}

.cart-checkout-stub  {
  margin: 0 5px;
  vertical-align: bottom;
  font-weight: normal;
}

.cart-desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

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


.cart-qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
}

.cart-qty-btn :hover {
  border: 2px var(--secondaryColor);
}

.qty-value {
  min-width: 40px;
  text-align: center;
  font-weight: bold;
}